feat: export old setting

This commit is contained in:
Gabe
2025-09-25 12:53:46 +08:00
parent 393f1a29d5
commit 533a0e2d5b
9 changed files with 79 additions and 25 deletions

View File

@@ -7,5 +7,7 @@ export const APP_CONSTS = {
boxID: `${APP_LCNAME}-box`,
};
export const APP_VERSION = process.env.REACT_APP_VERSION.split(".");
export const THEME_LIGHT = "light";
export const THEME_DARK = "dark";

View File

@@ -1402,4 +1402,9 @@ export const I18N = {
en: `Whether to pre-initialize`,
zh_TW: `是否預初始化`,
},
export_old: {
zh: `导出旧版`,
en: `Export old version`,
zh_TW: `匯出舊版`,
},
};

View File

@@ -1,16 +1,18 @@
import { APP_NAME } from "./app";
import { APP_NAME, APP_VERSION } from "./app";
export const KV_RULES_KEY = "kiss-rules.json";
export const KV_RULES_KEY = `kiss-rules_v${APP_VERSION[0]}.json`;
export const KV_WORDS_KEY = "kiss-words.json";
export const KV_RULES_SHARE_KEY = "kiss-rules-share.json";
export const KV_SETTING_KEY = "kiss-setting.json";
export const KV_RULES_SHARE_KEY = `kiss-rules-share_v${APP_VERSION[0]}.json`;
export const KV_SETTING_KEY = `kiss-setting_v${APP_VERSION[0]}.json`;
export const KV_SALT_SYNC = "KISS-Translator-SYNC";
export const KV_SALT_SHARE = "KISS-Translator-SHARE";
export const STOKEY_MSAUTH = `${APP_NAME}_msauth`;
export const STOKEY_BDAUTH = `${APP_NAME}_bdauth`;
export const STOKEY_SETTING = `${APP_NAME}_setting`;
export const STOKEY_RULES = `${APP_NAME}_rules`;
export const STOKEY_SETTING_OLD = `${APP_NAME}_setting`;
export const STOKEY_RULES_OLD = `${APP_NAME}_rules`;
export const STOKEY_SETTING = `${APP_NAME}_setting_v${APP_VERSION[0]}`;
export const STOKEY_RULES = `${APP_NAME}_rules_v${APP_VERSION[0]}`;
export const STOKEY_WORDS = `${APP_NAME}_words`;
export const STOKEY_SYNC = `${APP_NAME}_sync`;
export const STOKEY_FAB = `${APP_NAME}_fab`;