Skip to content

Commit 5a329a0

Browse files
authored
Revert "enhance(frontend): add contact page" (#208)
This reverts commit ef630df.
1 parent 40b501b commit 5a329a0

File tree

6 files changed

+40
-42
lines changed

6 files changed

+40
-42
lines changed

locales/index.d.ts

-4
Original file line numberDiff line numberDiff line change
@@ -4952,10 +4952,6 @@ export interface Locale extends ILocale {
49524952
* フォローの際常に確認する
49534953
*/
49544954
readonly "alwaysConfirmFollow": string;
4955-
/**
4956-
* お問い合わせ
4957-
*/
4958-
readonly "inquiry": string;
49594955
readonly "_bubbleGame": {
49604956
/**
49614957
* 遊び方

locales/ja-JP.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,6 @@ keepOriginalFilename: "オリジナルのファイル名を保持"
12341234
keepOriginalFilenameDescription: "この設定をオフにすると、アップロード時にファイル名が自動でランダム文字列に置き換えられます。"
12351235
noDescription: "説明文はありません"
12361236
alwaysConfirmFollow: "フォローの際常に確認する"
1237-
inquiry: "お問い合わせ"
12381237

12391238
_bubbleGame:
12401239
howToPlay: "遊び方"

packages/frontend/src/components/MkVisitorDashboard.vue

+37-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ import { i18n } from '@/i18n.js';
6565
import { instance } from '@/instance.js';
6666
import MkNumber from '@/components/MkNumber.vue';
6767
import XActiveUsersChart from '@/components/MkVisitorDashboard.ActiveUsersChart.vue';
68-
import { openInstanceMenu } from '@/ui/_common_/common.js';
6968

7069
const stats = ref<Misskey.entities.StatsResponse | null>(null);
7170

@@ -86,7 +85,43 @@ function signup() {
8685
}
8786

8887
function showMenu(ev) {
89-
openInstanceMenu(ev);
88+
os.popupMenu([{
89+
text: i18n.ts.instanceInfo,
90+
icon: 'ti ti-info-circle',
91+
action: () => {
92+
os.pageWindow('/about');
93+
},
94+
}, {
95+
text: i18n.ts.aboutMisskey,
96+
icon: 'ti ti-info-circle',
97+
action: () => {
98+
os.pageWindow('/about-misskey');
99+
},
100+
}, { type: 'divider' }, (instance.impressumUrl) ? {
101+
text: i18n.ts.impressum,
102+
icon: 'ti ti-file-invoice',
103+
action: () => {
104+
window.open(instance.impressumUrl!, '_blank', 'noopener');
105+
},
106+
} : undefined, (instance.tosUrl) ? {
107+
text: i18n.ts.termsOfService,
108+
icon: 'ti ti-notebook',
109+
action: () => {
110+
window.open(instance.tosUrl!, '_blank', 'noopener');
111+
},
112+
} : undefined, (instance.privacyPolicyUrl) ? {
113+
text: i18n.ts.privacyPolicy,
114+
icon: 'ti ti-shield-lock',
115+
action: () => {
116+
window.open(instance.privacyPolicyUrl!, '_blank', 'noopener');
117+
},
118+
} : undefined, (!instance.impressumUrl && !instance.tosUrl && !instance.privacyPolicyUrl) ? undefined : { type: 'divider' }, {
119+
text: i18n.ts.help,
120+
icon: 'ti ti-help-circle',
121+
action: () => {
122+
window.open('https://misskey-hub.net/docs/for-users/', '_blank', 'noopener');
123+
},
124+
}], ev.currentTarget ?? ev.target);
90125
}
91126

92127
function exploreOtherServers() {

packages/frontend/src/pages/contact.vue

-24
This file was deleted.

packages/frontend/src/router/definition.ts

-3
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,6 @@ const routes: RouteDef[] = [{
197197
path: '/about',
198198
component: page(() => import('@/pages/about.vue')),
199199
hash: 'initialTab',
200-
}, {
201-
path: '/contact',
202-
component: page(() => import('@/pages/contact.vue')),
203200
}, {
204201
path: '/about-misskey',
205202
redirect: '/tms/about',

packages/frontend/src/ui/_common_/common.ts

+3-8
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,7 @@ export function openInstanceMenu(ev: MouseEvent) {
7979
text: i18n.ts.tools,
8080
icon: 'ti ti-tool',
8181
children: toolsMenuItems(),
82-
}, { type: 'divider' }, {
83-
type: 'link',
84-
text: i18n.ts.inquiry,
85-
icon: 'ti ti-help-circle',
86-
to: '/contact',
87-
}, (instance.impressumUrl) ? {
82+
}, { type: 'divider' }, (instance.impressumUrl) ? {
8883
text: i18n.ts.impressum,
8984
icon: 'ti ti-file-invoice',
9085
action: () => {
@@ -103,8 +98,8 @@ export function openInstanceMenu(ev: MouseEvent) {
10398
window.open(instance.privacyPolicyUrl, '_blank', 'noopener');
10499
},
105100
} : undefined, (!instance.impressumUrl && !instance.tosUrl && !instance.privacyPolicyUrl) ? undefined : { type: 'divider' }, {
106-
text: i18n.ts.document,
107-
icon: 'ti ti-bulb',
101+
text: i18n.ts.help,
102+
icon: 'ti ti-help-circle',
108103
action: () => {
109104
window.open('https://misskey-hub.net/docs/for-users/', '_blank', 'noopener');
110105
},

0 commit comments

Comments
 (0)