data sync

This commit is contained in:
Gabe Yuan
2023-07-31 03:10:09 +08:00
parent 497084fe8a
commit 2aef159d9d
12 changed files with 14333 additions and 9971 deletions

View File

@@ -206,4 +206,12 @@ export const I18N = {
zh: `重启浏览器时清除缓存`,
en: `Clear cache when restarting browser`,
},
data_sync_url: {
zh: `数据同步接口`,
en: `Data Sync API`,
},
data_sync_key: {
zh: `数据同步密钥`,
en: `Data Sync Key`,
},
};

View File

@@ -8,6 +8,11 @@ export const APP_LCNAME = APP_NAME.toLowerCase();
export const STOKEY_MSAUTH = `${APP_NAME}_msauth`;
export const STOKEY_SETTING = `${APP_NAME}_setting`;
export const STOKEY_RULES = `${APP_NAME}_rules`;
export const STOKEY_RULES_UPDATE_AT = `${APP_NAME}_rules_update_at`;
export const KV_HEADER_KEY = "X-KISS-PSK";
export const KV_RULES_KEY = "KT_RULES";
export const KV_SETTING_KEY = "KT_SETTING";
export const CACHE_NAME = `${APP_NAME}_cache`;
@@ -130,6 +135,9 @@ export const DEFAULT_SETTING = {
openaiKey: "",
openaiModel: "gpt-4",
openaiPrompt: `You will be provided with a sentence in ${PROMPT_PLACE_FROM}, and your task is to translate it into ${PROMPT_PLACE_TO}.`,
syncUrl: "", // 数据同步接口
syncKey: "", // 数据同步密钥
updateAt: 1, // 更新时间
};
export const DEFAULT_RULES = [