From a077a283bb88963dbdf4070b944ff13bdb47b5f5 Mon Sep 17 00:00:00 2001
From: Hakadao
Date: Sun, 29 Oct 2023 19:42:43 +0800
Subject: [PATCH] feat: import/export settings (#60)
---
src/_locales/cmn-CN.yml | 4 ++
src/_locales/cmn-TW.yml | 4 ++
src/_locales/en.yml | 4 ++
src/_locales/jyut.yml | 4 ++
src/components/Settings/components/About.vue | 66 ++++++++++++++++++++
5 files changed, 82 insertions(+)
diff --git a/src/_locales/cmn-CN.yml b/src/_locales/cmn-CN.yml
index a7758d70..da77225a 100644
--- a/src/_locales/cmn-CN.yml
+++ b/src/_locales/cmn-CN.yml
@@ -118,6 +118,10 @@ settings:
settings_shared_with_the_search_page_desc: 这些设置都与搜索页共用
search_page_mode_wallpaper_fixed: 将搜索页模式的壁纸固定
+ # About
+ import_settings: 导入设置
+ export_settings: 导出设置
+
auth:
err_tip: 授权 access key 失败
plz_login_first: 请先登录 bilibili
diff --git a/src/_locales/cmn-TW.yml b/src/_locales/cmn-TW.yml
index 381a9c69..3b2752c9 100644
--- a/src/_locales/cmn-TW.yml
+++ b/src/_locales/cmn-TW.yml
@@ -118,6 +118,10 @@ settings:
settings_shared_with_the_search_page_desc: 這些設定都與搜尋頁共用
search_page_mode_wallpaper_fixed: 將搜尋頁模式的背景固定
+ # About
+ import_settings: 匯入設定
+ export_settings: 匯出設定
+
auth:
err_tip: 無法授權 access key
plz_login_first: 請先登入 bilibili
diff --git a/src/_locales/en.yml b/src/_locales/en.yml
index 33470b73..5f008333 100644
--- a/src/_locales/en.yml
+++ b/src/_locales/en.yml
@@ -119,6 +119,10 @@ settings:
settings_shared_with_the_search_page_desc: Those settings are used in common with the search page
search_page_mode_wallpaper_fixed: Make the wallpaper of the search page mode fixed
+ # About
+ import_settings: Import settings
+ export_settings: Export settings
+
auth:
err_tip: Failed to grant access key
plz_login_first: Please login to bilibili first
diff --git a/src/_locales/jyut.yml b/src/_locales/jyut.yml
index f616df93..70755e2c 100644
--- a/src/_locales/jyut.yml
+++ b/src/_locales/jyut.yml
@@ -118,6 +118,10 @@ settings:
settings_shared_with_the_search_page_desc: 呢啲設定都同搵嘢頁共用
search_page_mode_wallpaper_fixed: 定住搵嘢頁模式嘅背景
+ # About
+ import_settings: 匯入設定
+ export_settings: 匯出設定
+
auth:
err_tip: 無法授權 access key
plz_login_first: 唔該登入 bilibili 先
diff --git a/src/components/Settings/components/About.vue b/src/components/Settings/components/About.vue
index 51c19a5f..b3d1bbed 100644
--- a/src/components/Settings/components/About.vue
+++ b/src/components/Settings/components/About.vue
@@ -1,6 +1,50 @@
@@ -29,6 +73,28 @@ import { version } from '../../../../package.json'
Bilibili
+
+
+
+
+
+