diff options
| author | Johann150 <johann.galle@protonmail.com> | 2022-07-04 16:22:11 +0200 |
|---|---|---|
| committer | Johann150 <johann.galle@protonmail.com> | 2022-07-04 16:22:21 +0200 |
| commit | 2bd4323b17a65ded8e86fd0faf59b2d8321b3dbe (patch) | |
| tree | e42108142c93351f2ddd7c4553795976bed786e0 /packages/client/src | |
| parent | refactor: remove unnecessary computed (diff) | |
| download | sharkey-2bd4323b17a65ded8e86fd0faf59b2d8321b3dbe.tar.gz sharkey-2bd4323b17a65ded8e86fd0faf59b2d8321b3dbe.tar.bz2 sharkey-2bd4323b17a65ded8e86fd0faf59b2d8321b3dbe.zip | |
fix lint: use let instead of const for $ref
Fixes lint no-const-assign.
Diffstat (limited to 'packages/client/src')
| -rw-r--r-- | packages/client/src/pages/admin/overview.user.vue | 2 | ||||
| -rw-r--r-- | packages/client/src/pages/gallery/post.vue | 4 | ||||
| -rw-r--r-- | packages/client/src/pages/theme-editor.vue | 2 | ||||
| -rw-r--r-- | packages/client/src/ui/classic.vue | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/packages/client/src/pages/admin/overview.user.vue b/packages/client/src/pages/admin/overview.user.vue index 40592b280b..d70336f3c2 100644 --- a/packages/client/src/pages/admin/overview.user.vue +++ b/packages/client/src/pages/admin/overview.user.vue @@ -19,7 +19,7 @@ const props = defineProps<{ user: misskey.entities.User; }>(); -const chart = $ref(null); +let chart = $ref(null); os.apiGet('charts/user/notes', { userId: props.user.id, limit: 16, span: 'day' }).then(res => { chart = res; diff --git a/packages/client/src/pages/gallery/post.vue b/packages/client/src/pages/gallery/post.vue index e16ccc3150..e87a541e98 100644 --- a/packages/client/src/pages/gallery/post.vue +++ b/packages/client/src/pages/gallery/post.vue @@ -74,8 +74,8 @@ const props = defineProps<{ postId: string; }>(); -const post = $ref(null); -const error = $ref(null); +let post = $ref(null); +let error = $ref(null); const otherPostsPagination = { endpoint: 'users/gallery/posts' as const, limit: 6, diff --git a/packages/client/src/pages/theme-editor.vue b/packages/client/src/pages/theme-editor.vue index cec3833594..d0a26c9cfe 100644 --- a/packages/client/src/pages/theme-editor.vue +++ b/packages/client/src/pages/theme-editor.vue @@ -118,7 +118,7 @@ const fgColors = [ { color: 'pink', forLight: '#84667d', forDark: '#e4d1e0', forPreview: '#b12390' }, ]; -const theme = $ref<Partial<Theme>>({ +let theme = $ref<Partial<Theme>>({ base: 'light', props: lightTheme.props, }); diff --git a/packages/client/src/ui/classic.vue b/packages/client/src/ui/classic.vue index 310232aec0..a2c26f536e 100644 --- a/packages/client/src/ui/classic.vue +++ b/packages/client/src/ui/classic.vue @@ -60,8 +60,8 @@ const DESKTOP_THRESHOLD = 1100; let isDesktop = $ref(window.innerWidth >= DESKTOP_THRESHOLD); let pageMetadata = $ref<null | ComputedRef<PageMetadata>>(); -const widgetsShowing = $ref(false); -const fullView = $ref(false); +let widgetsShowing = $ref(false); +let fullView = $ref(false); let globalHeaderHeight = $ref(0); const wallpaper = localStorage.getItem('wallpaper') != null; const showMenuOnTop = $computed(() => defaultStore.state.menuDisplay === 'top'); |