chore: lint
Some checks failed
CI/CD Pipeline / playwright (push) Failing after 8m43s
CI/CD Pipeline / build-and-deploy (push) Has been skipped

This commit is contained in:
严浩
2025-10-27 02:01:08 +08:00
parent effb89c4dc
commit aadf03edd0
7 changed files with 25 additions and 24 deletions

View File

@@ -6,7 +6,10 @@
* https://pinia.vuejs.org/zh/cookbook/testing.html#unit-testing-components
*/
import { mount } from '@vue/test-utils';
import { describe, expect, it } from 'vitest';
import { createMemoryHistory, createRouter } from 'vue-router';
import App from './App.vue';
const router = createRouter({
history: createMemoryHistory(),
@@ -20,10 +23,6 @@ const router = createRouter({
],
});
import { mount } from '@vue/test-utils';
import { createMemoryHistory, createRouter } from 'vue-router';
import App from './App.vue';
describe('App', () => {
it('renders RouterView', async () => {
router.push('/');

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import type { GlobalThemeOverrides } from 'naive-ui';
import { darkTheme } from 'naive-ui';
import { RouterView } from 'vue-router';
import { darkTheme, type GlobalThemeOverrides } from 'naive-ui';
const appStore = useAppStore();
// https://www.naiveui.com/zh-CN/light/docs/customize-theme

View File

@@ -1,7 +1,8 @@
import type { Ref } from 'vue';
import type { MenuInst, MenuOption } from 'naive-ui';
import { createGetRoutes } from 'virtual:meta-layouts';
import { RouterLink, type RouteRecordRaw } from 'vue-router';
import type { Ref } from 'vue';
import type { RouteRecordRaw } from 'vue-router';
import { RouterLink } from 'vue-router';
import IconMenuRounded from '~icons/material-symbols/menu-rounded';
export function useMetaLayoutsNMenuOptions({ menuInstRef }: { menuInstRef: Ref<MenuInst | null> }) {

View File

@@ -1,13 +1,11 @@
import './styles/index.ts';
// import { LogLevels } from 'consola';
// consola.level = LogLevels.verbose;
import { LogLevels } from 'consola';
import App from './App.vue';
import { setupPlugins } from './plugins';
consola.level = LogLevels.verbose;
/* `import.meta.glob(${g}, { eager: ${isSync} })`; */
const autoInstallModules = import.meta.glob('./plugins/!(index).ts', { eager: true });
import { setupPlugins } from './plugins';
setupPlugins(createApp(App), autoInstallModules).mount('#app');

View File

@@ -1,8 +1,8 @@
<script setup lang="tsx">
import type { FunctionalComponent } from 'vue';
import hljs from 'highlight.js/lib/core';
import json from 'highlight.js/lib/languages/json';
import type { FunctionalComponent } from 'vue';
hljs.registerLanguage('json', json);
definePage({ meta: { link: true } });