From 9a4b52a1bbe69cf785dda93dad395e083a68c9b7 Mon Sep 17 00:00:00 2001 From: mattyatea Date: Thu, 18 Jan 2024 22:55:46 +0900 Subject: [PATCH] wakariyasuku --- locales/index.d.ts | 1 + locales/ja-JP.yml | 1 + .../frontend/src/pages/settings/general.vue | 215 +++++++++--------- 3 files changed, 114 insertions(+), 103 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index c9eeeb225d..0d205ef15a 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -658,6 +658,7 @@ export interface Locale { "medium": string; "small": string; "generateAccessToken": string; + "accessToken": string; "permission": string; "adminPermission": string; "enableAll": string; diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 5eb3c4c2d3..1fcc2b3b0a 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -655,6 +655,7 @@ large: "大" medium: "中" small: "小" generateAccessToken: "アクセストークンの発行" +accessToken: "アクセストークン" permission: "権限" adminPermission: "管理者権限" enableAll: "全て有効にする" diff --git a/packages/frontend/src/pages/settings/general.vue b/packages/frontend/src/pages/settings/general.vue index eb7a332385..63ad544526 100644 --- a/packages/frontend/src/pages/settings/general.vue +++ b/packages/frontend/src/pages/settings/general.vue @@ -159,7 +159,7 @@ SPDX-License-Identifier: AGPL-3.0-only - +
@@ -216,93 +216,102 @@ SPDX-License-Identifier: AGPL-3.0-only
+ + +
+ + + + +
+ + + + + + + + + + + + {{ i18n.ts.enable }} + +
+
+ + + + + + + + + + + + {{ i18n.ts.enable }} + +
+ +
+ + + + + + + + + + + + {{ i18n.ts.enable }} + +
+ +
+ + + + + + + + + + + + {{ i18n.ts.enable }} + +
+ +
+ + + + + + + + + + + + {{ i18n.ts.enable }} + +
+ + + {{ i18n.ts.save }} + +
+
- - -
-
- - - - - - - - - - - - {{ i18n.ts.enable }} - -
-
- - - - - - - - - - - - {{ i18n.ts.enable }} - -
-
- - - - - - - - - - - - {{ i18n.ts.enable }} - -
-
- - - - - - - - - - {{ i18n.ts.enable }} - -
-
- - - - - - - - - - - - {{ i18n.ts.enable }} - - -
- - {{ i18n.ts.save}} - -
-
@@ -507,26 +516,26 @@ watch([ }); async function remoteLocaltimelineSave() { - os.alert({ - type: 'success', - text: i18n.ts.saved, - }); - defaultStore.set('remoteLocalTimelineDomain1', remoteLocalTimelineDomain1.value); - defaultStore.set('remoteLocalTimelineToken1', remoteLocalTimelineToken1.value); - defaultStore.set('remoteLocalTimelineDomain2', remoteLocalTimelineDomain2.value); - defaultStore.set('remoteLocalTimelineToken2', remoteLocalTimelineToken2.value); - defaultStore.set('remoteLocalTimelineDomain3', remoteLocalTimelineDomain3.value); - defaultStore.set('remoteLocalTimelineToken3', remoteLocalTimelineToken3.value); - defaultStore.set('remoteLocalTimelineDomain4', remoteLocalTimelineDomain4.value); - defaultStore.set('remoteLocalTimelineToken4', remoteLocalTimelineToken4.value); - defaultStore.set('remoteLocalTimelineDomain5', remoteLocalTimelineDomain5.value); - defaultStore.set('remoteLocalTimelineToken5', remoteLocalTimelineToken5.value); - defaultStore.set('remoteLocalTimelineName1', remoteLocalTimelineName1.value); - defaultStore.set('remoteLocalTimelineName2', remoteLocalTimelineName2.value); - defaultStore.set('remoteLocalTimelineName3', remoteLocalTimelineName3.value); - defaultStore.set('remoteLocalTimelineName4', remoteLocalTimelineName4.value); - defaultStore.set('remoteLocalTimelineName5', remoteLocalTimelineName5.value); - await reloadAsk(); + os.alert({ + type: 'success', + text: i18n.ts.saved, + }); + defaultStore.set('remoteLocalTimelineDomain1', remoteLocalTimelineDomain1.value); + defaultStore.set('remoteLocalTimelineToken1', remoteLocalTimelineToken1.value); + defaultStore.set('remoteLocalTimelineDomain2', remoteLocalTimelineDomain2.value); + defaultStore.set('remoteLocalTimelineToken2', remoteLocalTimelineToken2.value); + defaultStore.set('remoteLocalTimelineDomain3', remoteLocalTimelineDomain3.value); + defaultStore.set('remoteLocalTimelineToken3', remoteLocalTimelineToken3.value); + defaultStore.set('remoteLocalTimelineDomain4', remoteLocalTimelineDomain4.value); + defaultStore.set('remoteLocalTimelineToken4', remoteLocalTimelineToken4.value); + defaultStore.set('remoteLocalTimelineDomain5', remoteLocalTimelineDomain5.value); + defaultStore.set('remoteLocalTimelineToken5', remoteLocalTimelineToken5.value); + defaultStore.set('remoteLocalTimelineName1', remoteLocalTimelineName1.value); + defaultStore.set('remoteLocalTimelineName2', remoteLocalTimelineName2.value); + defaultStore.set('remoteLocalTimelineName3', remoteLocalTimelineName3.value); + defaultStore.set('remoteLocalTimelineName4', remoteLocalTimelineName4.value); + defaultStore.set('remoteLocalTimelineName5', remoteLocalTimelineName5.value); + await reloadAsk(); } const emojiIndexLangs = ['en-US', 'ja-JP', 'ja-JP_hira'] as const;