diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-16 14:15:09 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-16 14:15:09 +0900 |
| commit | 1c9e25470afd50e0776313476179b61a7d4986e2 (patch) | |
| tree | b16d13fac4af65502ba875db8bb34b5db345898b | |
| parent | enhance(frontend): 投稿フォームの設定メニューを改良 (#14804) (diff) | |
| download | misskey-1c9e25470afd50e0776313476179b61a7d4986e2.tar.gz misskey-1c9e25470afd50e0776313476179b61a7d4986e2.tar.bz2 misskey-1c9e25470afd50e0776313476179b61a7d4986e2.zip | |
refactor
Diffstat (limited to '')
| -rw-r--r-- | packages/frontend/src/preferences/def.ts | 11 | ||||
| -rw-r--r-- | packages/frontend/src/ui/classic.vue | 13 | ||||
| -rw-r--r-- | packages/frontend/src/ui/universal.vue | 13 |
3 files changed, 10 insertions, 27 deletions
diff --git a/packages/frontend/src/preferences/def.ts b/packages/frontend/src/preferences/def.ts index 048392ef49..9ad604ae72 100644 --- a/packages/frontend/src/preferences/def.ts +++ b/packages/frontend/src/preferences/def.ts @@ -46,7 +46,16 @@ export const PREF_DEF = { }, widgets: { accountDependent: true, - default: [] as { + default: [{ + name: 'calendar', + id: 'a', place: 'right', data: {}, + }, { + name: 'notifications', + id: 'b', place: 'right', data: {}, + }, { + name: 'trends', + id: 'c', place: 'right', data: {}, + }] as { name: string; id: string; place: string | null; diff --git a/packages/frontend/src/ui/classic.vue b/packages/frontend/src/ui/classic.vue index becb219c24..969e30b3a9 100644 --- a/packages/frontend/src/ui/classic.vue +++ b/packages/frontend/src/ui/classic.vue @@ -144,19 +144,6 @@ if (window.innerWidth < 1024) { document.documentElement.style.overflowY = 'scroll'; -if (prefer.s.widgets.length === 0) { - prefer.commit('widgets', [{ - name: 'calendar', - id: 'a', place: null, data: {}, - }, { - name: 'notifications', - id: 'b', place: null, data: {}, - }, { - name: 'trends', - id: 'c', place: null, data: {}, - }]); -} - onMounted(() => { window.addEventListener('resize', () => { isDesktop.value = (window.innerWidth >= DESKTOP_THRESHOLD); diff --git a/packages/frontend/src/ui/universal.vue b/packages/frontend/src/ui/universal.vue index 29248b2720..5b9fbb74ca 100644 --- a/packages/frontend/src/ui/universal.vue +++ b/packages/frontend/src/ui/universal.vue @@ -178,19 +178,6 @@ if (window.innerWidth > 1024) { } } -if (prefer.s.widgets.length === 0) { - prefer.commit('widgets', [{ - name: 'calendar', - id: 'a', place: 'right', data: {}, - }, { - name: 'notifications', - id: 'b', place: 'right', data: {}, - }, { - name: 'trends', - id: 'c', place: 'right', data: {}, - }]); -} - onMounted(() => { if (!isDesktop.value) { window.addEventListener('resize', () => { |