summaryrefslogtreecommitdiff
path: root/packages/client/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-06-13 00:41:09 +0900
committerGitHub <noreply@github.com>2022-06-13 00:41:09 +0900
commit1bc856c4513e6bd53bf14b3f227733c7e297c3c9 (patch)
treebe05a96eaacd1c5e82a5cbf9a14663ebd3847a6f /packages/client/src
parentMerge pull request #8783 from misskey-dev/develop (diff)
parentMerge branch 'master' into develop (diff)
downloadmisskey-1bc856c4513e6bd53bf14b3f227733c7e297c3c9.tar.gz
misskey-1bc856c4513e6bd53bf14b3f227733c7e297c3c9.tar.bz2
misskey-1bc856c4513e6bd53bf14b3f227733c7e297c3c9.zip
Merge pull request #8821 from misskey-dev/develop
Release: 12.111.1
Diffstat (limited to 'packages/client/src')
-rw-r--r--packages/client/src/router.ts2
-rw-r--r--packages/client/src/ui/deck/deck-store.ts26
-rw-r--r--packages/client/src/ui/deck/widgets-column.vue2
3 files changed, 15 insertions, 15 deletions
diff --git a/packages/client/src/router.ts b/packages/client/src/router.ts
index db39dd741c..96c793166c 100644
--- a/packages/client/src/router.ts
+++ b/packages/client/src/router.ts
@@ -41,7 +41,7 @@ const defaultRoutes = [
{ path: '/gallery', component: page(() => import('./pages/gallery/index.vue')) },
{ path: '/gallery/new', component: page(() => import('./pages/gallery/edit.vue')) },
{ path: '/gallery/:postId/edit', component: page(() => import('./pages/gallery/edit.vue')), props: route => ({ postId: route.params.postId }) },
- { path: '/gallery/:postId', component: page(() => import('./pages/gallery/edit.vue')), props: route => ({ postId: route.params.postId }) },
+ { path: '/gallery/:postId', component: page(() => import('./pages/gallery/post.vue')), props: route => ({ postId: route.params.postId }) },
{ path: '/channels', component: page('channels') },
{ path: '/channels/new', component: page('channel-editor') },
{ path: '/channels/:channelId/edit', component: page('channel-editor'), props: true },
diff --git a/packages/client/src/ui/deck/deck-store.ts b/packages/client/src/ui/deck/deck-store.ts
index c847bf2b43..03d57c3467 100644
--- a/packages/client/src/ui/deck/deck-store.ts
+++ b/packages/client/src/ui/deck/deck-store.ts
@@ -1,9 +1,9 @@
import { throttle } from 'throttle-debounce';
-import { i18n } from '@/i18n';
-import { api } from '@/os';
import { markRaw } from 'vue';
-import { Storage } from '../../pizzax';
import { notificationTypes } from 'misskey-js';
+import { Storage } from '../../pizzax';
+import { i18n } from '@/i18n';
+import { api } from '@/os';
type ColumnWidget = {
name: string;
@@ -32,35 +32,35 @@ function copy<T>(x: T): T {
export const deckStore = markRaw(new Storage('deck', {
profile: {
where: 'deviceAccount',
- default: 'default'
+ default: 'default',
},
columns: {
where: 'deviceAccount',
- default: [] as Column[]
+ default: [] as Column[],
},
layout: {
where: 'deviceAccount',
- default: [] as Column['id'][][]
+ default: [] as Column['id'][][],
},
columnAlign: {
where: 'deviceAccount',
- default: 'left' as 'left' | 'right' | 'center'
+ default: 'left' as 'left' | 'right' | 'center',
},
alwaysShowMainColumn: {
where: 'deviceAccount',
- default: true
+ default: true,
},
navWindow: {
where: 'deviceAccount',
- default: true
+ default: true,
},
columnMargin: {
where: 'deviceAccount',
- default: 16
+ default: 16,
},
columnHeaderHeight: {
where: 'deviceAccount',
- default: 42
+ default: 42,
},
}));
@@ -109,7 +109,7 @@ export const saveDeck = throttle(1000, () => {
value: {
columns: deckStore.reactiveState.columns.value,
layout: deckStore.reactiveState.layout.value,
- }
+ },
});
});
@@ -276,7 +276,7 @@ export function setColumnWidgets(id: Column['id'], widgets: ColumnWidget[]) {
saveDeck();
}
-export function updateColumnWidget(id: Column['id'], widgetId: string, WidgetData: any) {
+export function updateColumnWidget(id: Column['id'], widgetId: string, widgetData: any) {
const columns = copy(deckStore.state.columns);
const columnIndex = deckStore.state.columns.findIndex(c => c.id === id);
const column = copy(deckStore.state.columns[columnIndex]);
diff --git a/packages/client/src/ui/deck/widgets-column.vue b/packages/client/src/ui/deck/widgets-column.vue
index 10c6f5adf6..9b10f602fb 100644
--- a/packages/client/src/ui/deck/widgets-column.vue
+++ b/packages/client/src/ui/deck/widgets-column.vue
@@ -10,9 +10,9 @@
<script lang="ts" setup>
import { } from 'vue';
-import XWidgets from '@/components/widgets.vue';
import XColumn from './column.vue';
import { addColumnWidget, Column, removeColumnWidget, setColumnWidgets, updateColumnWidget } from './deck-store';
+import XWidgets from '@/components/widgets.vue';
const props = defineProps<{
column: Column;