From 9224fdb827e66d75953e0d41969422fe7d00a48e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E7=AC=91=E5=AF=92?= Date: Fri, 5 Jul 2024 19:35:28 -0400 Subject: [PATCH] docs: add PDF printing instructions, close #13, #16 --- .../components/editor/toolbar/CorrectCase.vue | 4 +-- .../components/editor/toolbar/file/Export.vue | 35 ++++++++++++++----- site/src/components/shared/IssueLink.vue | 19 ++++++++++ site/src/components/ui/alert/index.ts | 6 ++-- site/src/i18n/en.yaml | 11 +++--- site/src/i18n/sp.yaml | 14 +++++--- site/src/i18n/zh-cn.yaml | 13 ++++--- 7 files changed, 75 insertions(+), 27 deletions(-) create mode 100644 site/src/components/shared/IssueLink.vue diff --git a/site/src/components/editor/toolbar/CorrectCase.vue b/site/src/components/editor/toolbar/CorrectCase.vue index 43088a1..72cd230 100644 --- a/site/src/components/editor/toolbar/CorrectCase.vue +++ b/site/src/components/editor/toolbar/CorrectCase.vue @@ -6,14 +6,14 @@ {{ $t("toolbar.correct_case.example.title") }} - {{ $t("toolbar.correct_case.example.desc") }} + {{ $t("toolbar.correct_case.example.content") }} {{ $t("toolbar.correct_case.note.title") }} - {{ $t("toolbar.correct_case.note.desc") }} + {{ $t("toolbar.correct_case.note.content") }} diff --git a/site/src/components/editor/toolbar/file/Export.vue b/site/src/components/editor/toolbar/file/Export.vue index 46ec30c..e2435d0 100644 --- a/site/src/components/editor/toolbar/file/Export.vue +++ b/site/src/components/editor/toolbar/file/Export.vue @@ -1,13 +1,30 @@ + + diff --git a/site/src/components/ui/alert/index.ts b/site/src/components/ui/alert/index.ts index 5b573a9..c24c317 100644 --- a/site/src/components/ui/alert/index.ts +++ b/site/src/components/ui/alert/index.ts @@ -11,10 +11,10 @@ export const alertVariants = cva( variant: { default: "bg-accent/30 text-foreground", destructive: - "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive", + "border-destructive/60 bg-destructive/5 [&>h5]:text-destructive [&>svg]:text-destructive", success: - "border-success/60 bg-success/5 [&>svg]:text-success [&>h5]:text-success", - info: "border-info/60 bg-info/5 [&>svg]:text-info [&>h5]:text-info" + "border-success/60 bg-success/5 [&>h5]:text-success [&>svg]:text-success", + info: "border-info/60 bg-info/5 [&>h5]:text-info [&>svg]:text-info" } }, defaultVariants: { diff --git a/site/src/i18n/en.yaml b/site/src/i18n/en.yaml index 70f8152..b6612c3 100644 --- a/site/src/i18n/en.yaml +++ b/site/src/i18n/en.yaml @@ -41,18 +41,21 @@ toolbar: header: Import a Markdown file from_local: Drag your file here, or click here to choose a file from_url: Paste file URL - export_pdf: Export PDF + export_pdf: + title: Export PDF + alert: + title: Heads up! + content: When printing on Windows, please select "Save as PDF" in the print settings popup, not "Microsoft Print to PDF". export_md: Export Markdown correct_case: title: Correct Case example: title: Example - desc: | + content: | "Github" → "GitHub" note: title: Note - desc: | - Words that are only in uppercase or lowercase ("GITHUB" or "github") will be left untouched. + content: Words that are only in uppercase or lowercase ("GITHUB" or "github") will be left untouched. btn : Correct it! paper_size: Paper Size theme_color: Theme Color diff --git a/site/src/i18n/sp.yaml b/site/src/i18n/sp.yaml index 8db7c1d..b6021b5 100644 --- a/site/src/i18n/sp.yaml +++ b/site/src/i18n/sp.yaml @@ -1,5 +1,8 @@ lang: Idioma + toggle_theme: Cambiar tema claro/oscuro +open_toolbar: Abrir barra de herramientas +close_toolbar: Cerrar barra de herramientas head: title: Oh My CV! - Generador de CV online GRATUITO!! @@ -38,18 +41,21 @@ toolbar: header: Importar un archivo Markdown from_local: Subir archivo from_url: Pegar desde URL - export_pdf: Exportar PDF + export_pdf: + title: Exportar PDF + alert: + title: ¡Atención! + content: Al imprimir en Windows, seleccione "Guardar como PDF" en la ventana emergente de configuración de impresión, no "Microsoft Print to PDF". export_md: Exportar Markdown correct_case: title: Corregir Mayusculas example: title: Ejemplo - desc: | + content: | "Github" → "GitHub" note: title: Nota - desc: | - No se modificarán las palabras que sólo contengan mayúsculas o minúsculas ("GITHUB" or "github"). + content: No se modificarán las palabras que sólo contengan mayúsculas o minúsculas ("GITHUB" or "github"). btn : Corrígelo! paper_size: Tamaño de hoja theme_color: Color y tema diff --git a/site/src/i18n/zh-cn.yaml b/site/src/i18n/zh-cn.yaml index 47f792c..86413d6 100644 --- a/site/src/i18n/zh-cn.yaml +++ b/site/src/i18n/zh-cn.yaml @@ -41,18 +41,21 @@ toolbar: header: 上传一个 Markdown 文件 from_local: 将文件拖拽至这里,或点击这里以选择文件 from_url: 粘贴文件 URL - export_pdf: 导出为 PDF + export_pdf: + title: 导出为 PDF + alert: + title: 注意 + content: 在 Windows 上打印时,请在打印设置弹窗中选择“另存为 PDF”,而不是“Microsoft Print to PDF”。 export_md: 导出为 Markdown correct_case: title: 专有名词大小写修正 example: title: 例子 - desc: | + content: | "Github" → "GitHub" note: - title: 注意 - desc: | - 不会修正全为大写或小写字母的单词(如 "GITHUB" 或 "github")。 + title: 解释 + content: 不会修正全为大写或小写字母的单词(如“GITHUB”或“github”)。 btn : 修正 paper_size: 纸张尺寸 theme_color: 主题色