This commit is contained in:
NoriDev 2023-06-15 00:46:10 +09:00
parent 105f41796b
commit d2a1806300
3 changed files with 11 additions and 1 deletions

View file

@ -13,6 +13,7 @@ import { miLocalStorage } from '@/local-storage';
import { claimAchievement, claimedAchievements } from '@/scripts/achievements';
import { mainRouter } from '@/router';
import { initializeSw } from '@/scripts/initialize-sw';
import { userName } from '@/filters/user';
export async function mainBoot() {
const { isClientUpdated } = await common(() => createApp(
@ -176,7 +177,7 @@ export async function mainBoot() {
// 二時間以上前なら
if (Date.now() - lastUsedDate > 1000 * 60 * 60 * 2) {
welcomeToast(i18n.t('welcomeBackWithName', {
name: $i.name || $i.username,
name: userName($i),
}));
}
}

View file

@ -174,6 +174,11 @@ const menuDef = computed(() => [{
text: i18n.ts.other,
to: '/settings/other',
active: currentPage?.route.name === 'other',
}, {
icon: 'ti ti-bulb-filled',
text: 'CherryPick',
to: '/settings/cherrypick',
active: currentPage?.route.name === 'cherrypick',
}],
}, {
items: [{

View file

@ -181,6 +181,10 @@ export const routes = [{
path: '/other',
name: 'other',
component: page(() => import('./pages/settings/other.vue')),
}, {
path: '/cherrypick',
name: 'cherrypick',
component: page(() => import('./pages/settings/cherrypick.vue')),
}, {
path: '/',
component: page(() => import('./pages/_empty_.vue')),