diff --git a/src/helpers/markdownRenderer.ts b/src/helpers/markdownRenderer.ts index e3725fd33..2c3993534 100644 --- a/src/helpers/markdownRenderer.ts +++ b/src/helpers/markdownRenderer.ts @@ -35,7 +35,7 @@ export function setupMarkdownRenderer(checkboxId: string) { return isLocal ? html : html.replace(/^ const DEFAULT_LIST_VIEW = 'list.list' as const -// We use local storage and not a store here to make it persistent across reloads. -export const saveListView = (listId: IList['id'], routeName: string) => { +/** + * Save the current list view to local storage + */ +export function saveListView(listId: IList['id'], routeName: string) { if (routeName.includes('settings.')) { return } - + if (!listId) { return } - + + // We use local storage and not the store here to make it persistent across reloads. const savedListView = localStorage.getItem('listView') let savedListViewJson: ListView | false = false if (savedListView !== null) { diff --git a/src/sentry.ts b/src/sentry.ts index 678a1c738..fad06913f 100644 --- a/src/sentry.ts +++ b/src/sentry.ts @@ -1,6 +1,8 @@ +import type { App } from 'vue' +import type { Router } from 'vue-router' import {VERSION} from './version.json' -export default async function setupSentry(app, router) { +export default async function setupSentry(app: App, router: Router) { const Sentry = await import('@sentry/vue') const {Integrations} = await import('@sentry/tracing') diff --git a/src/services/migrator/abstractMigrationFile.ts b/src/services/migrator/abstractMigrationFile.ts index 1e6a19347..2b1cf39e1 100644 --- a/src/services/migrator/abstractMigrationFile.ts +++ b/src/services/migrator/abstractMigrationFile.ts @@ -6,7 +6,7 @@ import AbstractService from '../abstractService' export default class AbstractMigrationFileService extends AbstractService { serviceUrlKey = '' - constructor(serviceUrlKey: '') { + constructor(serviceUrlKey: string) { super({ create: '/migration/' + serviceUrlKey + '/migrate', })