diff --git a/frontend/src/views/migrate/icons/microsoft-todo.svg b/frontend/src/assets/migrators/microsoft-todo.svg similarity index 100% rename from frontend/src/views/migrate/icons/microsoft-todo.svg rename to frontend/src/assets/migrators/microsoft-todo.svg diff --git a/frontend/src/views/migrate/icons/ticktick.svg b/frontend/src/assets/migrators/ticktick.svg similarity index 100% rename from frontend/src/views/migrate/icons/ticktick.svg rename to frontend/src/assets/migrators/ticktick.svg diff --git a/frontend/src/views/migrate/icons/todoist.svg b/frontend/src/assets/migrators/todoist.svg similarity index 100% rename from frontend/src/views/migrate/icons/todoist.svg rename to frontend/src/assets/migrators/todoist.svg diff --git a/frontend/src/views/migrate/icons/trello.svg b/frontend/src/assets/migrators/trello.svg similarity index 100% rename from frontend/src/views/migrate/icons/trello.svg rename to frontend/src/assets/migrators/trello.svg diff --git a/frontend/src/views/migrate/icons/vikunja-file.png b/frontend/src/assets/migrators/vikunja-file.png similarity index 100% rename from frontend/src/views/migrate/icons/vikunja-file.png rename to frontend/src/assets/migrators/vikunja-file.png diff --git a/frontend/src/views/migrate/icons/wunderlist.jpg b/frontend/src/assets/migrators/wunderlist.jpg similarity index 100% rename from frontend/src/views/migrate/icons/wunderlist.jpg rename to frontend/src/assets/migrators/wunderlist.jpg diff --git a/frontend/src/views/migrate/migrators.ts b/frontend/src/helpers/migrators.ts similarity index 67% rename from frontend/src/views/migrate/migrators.ts rename to frontend/src/helpers/migrators.ts index 8174e1e21..8f22eb009 100644 --- a/frontend/src/views/migrate/migrators.ts +++ b/frontend/src/helpers/migrators.ts @@ -1,9 +1,9 @@ -import wunderlistIcon from './icons/wunderlist.jpg' -import todoistIcon from './icons/todoist.svg?url' -import trelloIcon from './icons/trello.svg?url' -import microsoftTodoIcon from './icons/microsoft-todo.svg?url' -import vikunjaFileIcon from './icons/vikunja-file.png?url' -import tickTickIcon from './icons/ticktick.svg?url' +import wunderlistIcon from '@/assets/migrators/wunderlist.jpg' +import todoistIcon from '@/assets/migrators/todoist.svg?url' +import trelloIcon from '@/assets/migrators/trello.svg?url' +import microsoftTodoIcon from '@/assets/migrators/microsoft-todo.svg?url' +import vikunjaFileIcon from '@/assets/migrators/vikunja-file.png?url' +import tickTickIcon from '@/assets/migrators/ticktick.svg?url' export interface Migrator { id: string diff --git a/frontend/src/pages/migrate/[service].vue b/frontend/src/pages/migrate/[service].vue index aa6ea0cc3..19d8042eb 100644 --- a/frontend/src/pages/migrate/[service].vue +++ b/frontend/src/pages/migrate/[service].vue @@ -133,7 +133,7 @@ import AbstractMigrationFileService from '@/services/migrator/abstractMigrationF import {formatDateLong} from '@/helpers/time/formatDate' import {parseDateOrNull} from '@/helpers/parseDateOrNull' -import {MIGRATORS, type Migrator} from './migrators' +import {MIGRATORS, type Migrator} from '@/helpers/migrators' import {useTitle} from '@/composables/useTitle' import {useProjectStore} from '@/stores/projects' import {getErrorText} from '@/message' diff --git a/frontend/src/pages/user/settings/migrate.vue b/frontend/src/pages/user/settings/migrate.vue index 866319cbd..830c67a08 100644 --- a/frontend/src/pages/user/settings/migrate.vue +++ b/frontend/src/pages/user/settings/migrate.vue @@ -24,7 +24,7 @@ import {computed} from 'vue' import {useI18n} from 'vue-i18n' -import {MIGRATORS} from './migrators' +import {MIGRATORS} from '@/helpers/migrators' import {useTitle} from '@/composables/useTitle' import {useConfigStore} from '@/stores/config' diff --git a/frontend/src/stores/config.ts b/frontend/src/stores/config.ts index 3504a4f46..3544fc523 100644 --- a/frontend/src/stores/config.ts +++ b/frontend/src/stores/config.ts @@ -6,7 +6,7 @@ import {HTTPFactory} from '@/helpers/fetcher' import {objectToCamelCase} from '@/helpers/case' import type {IProvider} from '@/types/IProvider' -import type {MIGRATORS} from '@/views/migrate/migrators' +import type {MIGRATORS} from '@/helpers/migrators' import {InvalidApiUrlProvidedError} from '@/helpers/checkAndSetApiUrl' export interface ConfigState {