From 5a2a95027f6fce544125e3b5c4c9645d8d0a90b5 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Mon, 12 Feb 2024 11:46:25 -0500 Subject: [PATCH] [O] Optimize imports --- src/env.d.ts | 4 ++-- src/index.ts | 5 ++--- src/main.ts | 2 +- src/views/FileView.vue | 3 +-- src/views/Location.vue | 2 +- src/views/TgBlog.vue | 2 +- 6 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/env.d.ts b/src/env.d.ts index d27eb5a..9e817fe 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -1,8 +1,8 @@ /// declare module '*.vue' { - import { DefineComponent } from 'vue' - // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types + import {DefineComponent} from 'vue' + // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types const component: DefineComponent<{}, {}, any> export default component } diff --git a/src/index.ts b/src/index.ts index ccf5b23..72e1dfa 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,6 @@ -import { App } from 'vue' +import {App} from 'vue' import * as components from './views' +import './css/global.sass' export default function install (app: App) { for (const key in components) { @@ -7,7 +8,5 @@ export default function install (app: App) { } } -import './css/global.sass' - export * from './views' export * from './logic' diff --git a/src/main.ts b/src/main.ts index 01433bc..e57db59 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,4 +1,4 @@ -import { createApp } from 'vue' +import {createApp} from 'vue' import App from './App.vue' createApp(App).mount('#app') diff --git a/src/views/FileView.vue b/src/views/FileView.vue index 53659c6..5e2450e 100644 --- a/src/views/FileView.vue +++ b/src/views/FileView.vue @@ -54,10 +54,9 @@