From 3617a07124925764fa05d532373bc2ad0dec796c Mon Sep 17 00:00:00 2001 From: Zephyruso <176294927+Zephyruso@users.noreply.github.com> Date: Tue, 3 Dec 2024 13:31:03 +0800 Subject: [PATCH] feat: export & import settings --- src/i18n/en.ts | 2 ++ src/i18n/zh.ts | 2 ++ src/views/SettingsPage.vue | 53 +++++++++++++++++++++++++++++++++++++- 3 files changed, 56 insertions(+), 1 deletion(-) diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 148fdfb5..a1c3f228 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -81,6 +81,8 @@ export default { auto: 'Auto', dots: 'Dots', bar: 'Bar', + exportSettings: 'Export Settings', + importSettings: 'Import Settings', [LANG.EN_US]: 'English', [LANG.ZH_CN]: '中文', } diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts index 4e18e890..1e71523f 100644 --- a/src/i18n/zh.ts +++ b/src/i18n/zh.ts @@ -81,6 +81,8 @@ export default { auto: '自动', dots: '点', bar: '条', + exportSettings: '导出设置', + importSettings: '导入设置', [LANG.EN_US]: 'English', [LANG.ZH_CN]: '中文', } diff --git a/src/views/SettingsPage.vue b/src/views/SettingsPage.vue index 51a67470..9cfdee43 100644 --- a/src/views/SettingsPage.vue +++ b/src/views/SettingsPage.vue @@ -39,13 +39,26 @@ /> -