@@ -65,6 +65,7 @@ import { i18n } from '@/i18n.js';
65
65
import { instance } from '@/instance.js';
66
66
import MkNumber from '@/components/MkNumber.vue';
67
67
import XActiveUsersChart from '@/components/MkVisitorDashboard.ActiveUsersChart.vue';
68
+ import { openInstanceMenu } from '@/ui/_common_/common';
68
69
69
70
const stats = ref<Misskey.entities.StatsResponse | null>(null);
70
71
@@ -85,43 +86,7 @@ function signup() {
85
86
}
86
87
87
88
function showMenu(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);
89
+ openInstanceMenu(ev);
125
90
}
126
91
127
92
function exploreOtherServers() {
0 commit comments