diff --git a/components/calendar/generateCalendar.tsx b/components/calendar/generateCalendar.tsx index fc9916629..9220e7d9c 100644 --- a/components/calendar/generateCalendar.tsx +++ b/components/calendar/generateCalendar.tsx @@ -331,7 +331,7 @@ function generateCalendar< return app; }; - return Calendar as unknown as (props: CalendarProps) => JSX.Element; + return Calendar; } export default generateCalendar; diff --git a/site/src/components/demoSort.jsx b/site/src/components/demoSort.jsx index 149cec1d9..f0ac301df 100644 --- a/site/src/components/demoSort.jsx +++ b/site/src/components/demoSort.jsx @@ -1,5 +1,5 @@ import { defineComponent, inject } from 'vue'; -import { GLOBAL_CONFIG } from '@/SymbolKey'; +import { GLOBAL_CONFIG } from '../SymbolKey'; export default defineComponent({ props: { diff --git a/site/src/components/header.jsx b/site/src/components/header.jsx index b88899875..b4be423e3 100644 --- a/site/src/components/header.jsx +++ b/site/src/components/header.jsx @@ -1,5 +1,5 @@ import { isZhCN } from '../utils/util'; -import packageInfo from '../../package.json'; +import packageInfo from '../../../package.json'; import logo from '../assets/logo.svg'; import antDesignVue from '../assets/ant-design-vue.svg'; import { SearchOutlined } from '@ant-design/icons-vue'; diff --git a/site/src/router/otherRoutes.js b/site/src/router/otherRoutes.js deleted file mode 100644 index e1967a832..000000000 --- a/site/src/router/otherRoutes.js +++ /dev/null @@ -1,56 +0,0 @@ -import UserLayout from '../layouts/UserLayout'; -import BaseLayout from '../layouts/BaseLayout'; -export default [ - { - path: '/vip', - - component: () => import('../views/vip.vue'), - }, - { - path: '/jobs', - component: BaseLayout, - props: () => { - return { name: 'list-cn' }; - }, - children: [ - { - path: '/jobs', - redirect: '/jobs/list-cn', - }, - { - path: '/jobs/list-cn', - name: 'list-cn', - component: () => import(/* webpackChunkName: "jobs" */ '../views/jobs.vue'), - }, - ], - }, - { - path: '/user', - component: UserLayout, - children: [ - { - path: '/user', - redirect: '/user/login', - }, - { - path: '/user/login', - name: 'login', - component: () => - import( - /* webpackChunkName: "user" */ - '../views/user/login' - ), - }, - { - path: '/user/register', - name: 'register', - component: () => import(/* webpackChunkName: "user" */ '../views/user/register'), - }, - { - path: '/user/register-result', - name: 'register.result', - component: () => import(/* webpackChunkName: "user" */ '../views/user/register-result'), - }, - ], - }, -]; diff --git a/site/src/views/user/login/components/LoginItem.jsx b/site/src/views/user/login/components/LoginItem.jsx index 57a9a4720..eb6aff464 100644 --- a/site/src/views/user/login/components/LoginItem.jsx +++ b/site/src/views/user/login/components/LoginItem.jsx @@ -1,4 +1,5 @@ import ItemMap from './map'; +// eslint-disable-next-line import/no-unresolved import WrapFormItem from './WrapFormItem'; const LoginItem = {}; diff --git a/site/src/views/user/login/components/index.js b/site/src/views/user/login/components/index.js index fec0c5208..bdd027184 100644 --- a/site/src/views/user/login/components/index.js +++ b/site/src/views/user/login/components/index.js @@ -1,3 +1,4 @@ +/* eslint-disable import/no-unresolved */ import Login from './Login'; import LoginSubmit from './LoginSubmit'; import LoginTab from './LoginTab'; diff --git a/site/typings/index.d.ts b/site/typings/index.d.ts index 799016fa7..7592af772 100644 --- a/site/typings/index.d.ts +++ b/site/typings/index.d.ts @@ -3,6 +3,3 @@ declare module '*.json' { export const version: string; export default value; } - -export * from '../plugin/docs'; -export * from '../plugin/md';