diff --git a/chromeDist.zip b/chromeDist.zip index bc84dc7..e7ecddb 100644 Binary files a/chromeDist.zip and b/chromeDist.zip differ diff --git a/edgeDist.zip b/edgeDist.zip index 65032c7..0e4f549 100644 Binary files a/edgeDist.zip and b/edgeDist.zip differ diff --git a/package-lock.json b/package-lock.json index 44c412f..b4727d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "lingo-link", - "version": "0.3.5", + "version": "0.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "lingo-link", - "version": "0.3.5", + "version": "0.5.0", "dependencies": { "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", @@ -15,6 +15,7 @@ "common-tags": "^1.8.2", "daisyui": "^4.12.2", "eventsource-parser": "^1.1.2", + "hotkeys-js": "^3.13.7", "i18next": "^23.11.5", "i18next-browser-languagedetector": "^8.0.0", "immer": "^10.1.1", @@ -3164,6 +3165,14 @@ "node": ">= 0.4" } }, + "node_modules/hotkeys-js": { + "version": "3.13.7", + "resolved": "https://registry.npmjs.org/hotkeys-js/-/hotkeys-js-3.13.7.tgz", + "integrity": "sha512-ygFIdTqqwG4fFP7kkiYlvayZppeIQX2aPpirsngkv1xM1lP0piDY5QEh68nQnIKvz64hfocxhBaD/uK3sSK1yQ==", + "funding": { + "url": "https://jaywcjlove.github.io/#/sponsor" + } + }, "node_modules/html-parse-stringify": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/html-parse-stringify/-/html-parse-stringify-3.0.1.tgz", diff --git a/package.json b/package.json index 21f650e..c4e4598 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lingo-link", "private": true, - "version": "0.5.0", + "version": "0.6.0", "type": "module", "scripts": { "dev:edge": "cross-env BUILD_TARGET=edge vite", @@ -19,6 +19,7 @@ "common-tags": "^1.8.2", "daisyui": "^4.12.2", "eventsource-parser": "^1.1.2", + "hotkeys-js": "^3.13.7", "i18next": "^23.11.5", "i18next-browser-languagedetector": "^8.0.0", "immer": "^10.1.1", diff --git a/src/api/index.ts b/src/api/index.ts index 725e866..796a081 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -74,7 +74,7 @@ export const getSwwList = async (): Promise<{ list: Sww[] } | undefined> => { }); }; export const removeWordApi = async (word: string) => { - return request(`/word/delete/${word}`, { + return request(`/word/delete/${encodeURIComponent(word)}`, { method: "DELETE", }); }; diff --git a/src/components/Login.tsx b/src/components/Login.tsx index 0ede090..2cd41ad 100644 --- a/src/components/Login.tsx +++ b/src/components/Login.tsx @@ -140,6 +140,7 @@ export default function Login({ onSuccess }: { onSuccess?: () => void }) { placeholder={t("Email")} type="email" required + autoComplete="username" className="input input-bordered w-full" /> @@ -149,6 +150,7 @@ export default function Login({ onSuccess }: { onSuccess?: () => void }) { placeholder={t("Password")} type="password" required + autoComplete="current-password" className="input input-bordered w-full" /> diff --git a/src/components/UpdateLog.tsx b/src/components/UpdateLog.tsx index 3932d19..3d08a79 100644 --- a/src/components/UpdateLog.tsx +++ b/src/components/UpdateLog.tsx @@ -2,13 +2,25 @@ export default function UpdateLog() { return (
-
0.5.0 (2024-07-02)
+
0.6.0 (2024-07-07)
+
+
0.5.0 (2024-07-02)
+ +
0.4.2 (2024-07-02)
+
+
+ {t("Translate after selecting text and pressing a shortcut key")} +
+
+ +
+