fix lint: use let instead of const for $ref
Fixes lint no-const-assign.
This commit is contained in:
parent
935fce338a
commit
2bd4323b17
4 changed files with 6 additions and 6 deletions
|
@ -19,7 +19,7 @@ const props = defineProps<{
|
||||||
user: misskey.entities.User;
|
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 => {
|
os.apiGet('charts/user/notes', { userId: props.user.id, limit: 16, span: 'day' }).then(res => {
|
||||||
chart = res;
|
chart = res;
|
||||||
|
|
|
@ -74,8 +74,8 @@ const props = defineProps<{
|
||||||
postId: string;
|
postId: string;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const post = $ref(null);
|
let post = $ref(null);
|
||||||
const error = $ref(null);
|
let error = $ref(null);
|
||||||
const otherPostsPagination = {
|
const otherPostsPagination = {
|
||||||
endpoint: 'users/gallery/posts' as const,
|
endpoint: 'users/gallery/posts' as const,
|
||||||
limit: 6,
|
limit: 6,
|
||||||
|
|
|
@ -118,7 +118,7 @@ const fgColors = [
|
||||||
{ color: 'pink', forLight: '#84667d', forDark: '#e4d1e0', forPreview: '#b12390' },
|
{ color: 'pink', forLight: '#84667d', forDark: '#e4d1e0', forPreview: '#b12390' },
|
||||||
];
|
];
|
||||||
|
|
||||||
const theme = $ref<Partial<Theme>>({
|
let theme = $ref<Partial<Theme>>({
|
||||||
base: 'light',
|
base: 'light',
|
||||||
props: lightTheme.props,
|
props: lightTheme.props,
|
||||||
});
|
});
|
||||||
|
|
|
@ -60,8 +60,8 @@ const DESKTOP_THRESHOLD = 1100;
|
||||||
let isDesktop = $ref(window.innerWidth >= DESKTOP_THRESHOLD);
|
let isDesktop = $ref(window.innerWidth >= DESKTOP_THRESHOLD);
|
||||||
|
|
||||||
let pageMetadata = $ref<null | ComputedRef<PageMetadata>>();
|
let pageMetadata = $ref<null | ComputedRef<PageMetadata>>();
|
||||||
const widgetsShowing = $ref(false);
|
let widgetsShowing = $ref(false);
|
||||||
const fullView = $ref(false);
|
let fullView = $ref(false);
|
||||||
let globalHeaderHeight = $ref(0);
|
let globalHeaderHeight = $ref(0);
|
||||||
const wallpaper = localStorage.getItem('wallpaper') != null;
|
const wallpaper = localStorage.getItem('wallpaper') != null;
|
||||||
const showMenuOnTop = $computed(() => defaultStore.state.menuDisplay === 'top');
|
const showMenuOnTop = $computed(() => defaultStore.state.menuDisplay === 'top');
|
||||||
|
|
Loading…
Reference in a new issue