From 46097c6bcd75ea8efb8d6cb1282f6dd0b41b9db6 Mon Sep 17 00:00:00 2001 From: frostime Date: Mon, 7 Oct 2024 21:21:36 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E4=B9=A6=E7=AD=BE=E7=BB=84=E7=9A=84=E5=9B=BE=E6=A0=87=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto-i18n.project.yaml | 11 +++++++++++ package.json | 5 +---- plugin.json | 2 +- src/components/group.tsx | 2 +- 4 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 auto-i18n.project.yaml diff --git a/auto-i18n.project.yaml b/auto-i18n.project.yaml new file mode 100644 index 0000000..c67c389 --- /dev/null +++ b/auto-i18n.project.yaml @@ -0,0 +1,11 @@ +code_files: +- './src/**/*.ts' +- './src/**/*.tsx' +dict: {} +export_dir: src/types +i18n_dir: public/i18n +i18n_pattern: \(\(`(.+?)`\)\) +i18n_var_mid: filename +i18n_var_prefix: i18n +main_file: zh_CN.yaml +strategy: diff diff --git a/package.json b/package.json index fe1ad44..2256e0e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sy-bookmark-plus", - "version": "1.4.0-dev1", + "version": "1.4.0", "type": "module", "description": "A more powerful bookmark", "repository": "", @@ -8,9 +8,6 @@ "author": "frostime", "license": "GPL-3.0-only", "scripts": { - "make-link": "node --no-warnings ./scripts/make_dev_link.js", - "make-link-win": "powershell.exe -NoProfile -ExecutionPolicy Bypass -File ./scripts/elevate.ps1 -scriptPath ./scripts/make_dev_link.js", - "update-version": "node --no-warnings ./scripts/update_version.js", "dev": "cross-env NODE_ENV=development VITE_SOURCEMAP=inline vite build --watch", "build": "cross-env NODE_ENV=production vite build", "build-srcmap": "cross-env NODE_ENV=production VITE_SOURCEMAP=inline vite build", diff --git a/plugin.json b/plugin.json index b320dda..5aefa86 100644 --- a/plugin.json +++ b/plugin.json @@ -2,7 +2,7 @@ "name": "sy-bookmark-plus", "author": "frostime", "url": "https://github.com/frostime/sy-bookmark-plus", - "version": "1.4.0-dev1", + "version": "1.4.0", "minAppVersion": "3.0.12", "backends": [ "all" diff --git a/src/components/group.tsx b/src/components/group.tsx index 98d92e2..c4988bd 100644 --- a/src/components/group.tsx +++ b/src/components/group.tsx @@ -44,7 +44,7 @@ const useGroupIcon = (props: Parameters[0]) => { type: 'symbol' | 'emoji' | ''; value: string; }) => { if (!icon || icon.type === '') { - return + return } else if (icon.type === 'symbol') { return } else if (icon.type === 'emoji') {