diff --git a/.vscode/settings.json b/.vscode/settings.json index 53cdf4f..2898360 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -31,6 +31,7 @@ "OPENAI", "pinia", "rushstack", + "Sider", "tailwindcss", "unplugin", "VITE", diff --git a/src/App.vue b/src/App.vue index 0249b04..440873e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,13 +1,12 @@ diff --git a/src/components/NaiveProvider.vue b/src/components/NaiveProvider.vue deleted file mode 100644 index 852a423..0000000 --- a/src/components/NaiveProvider.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/src/components/common/HoverButton/Button.vue b/src/components/common/HoverButton/Button.vue new file mode 100644 index 0000000..cdaeba2 --- /dev/null +++ b/src/components/common/HoverButton/Button.vue @@ -0,0 +1,20 @@ + + + diff --git a/src/components/common/HoverButton/index.vue b/src/components/common/HoverButton/index.vue new file mode 100644 index 0000000..432445a --- /dev/null +++ b/src/components/common/HoverButton/index.vue @@ -0,0 +1,46 @@ + + + diff --git a/src/components/common/NaiveProvider.vue b/src/components/common/NaiveProvider.vue new file mode 100644 index 0000000..53f365d --- /dev/null +++ b/src/components/common/NaiveProvider.vue @@ -0,0 +1,46 @@ + + + diff --git a/src/components/Icon.vue b/src/components/common/SvgIcon.vue similarity index 100% rename from src/components/Icon.vue rename to src/components/common/SvgIcon.vue diff --git a/src/components/common/index.ts b/src/components/common/index.ts new file mode 100644 index 0000000..5912beb --- /dev/null +++ b/src/components/common/index.ts @@ -0,0 +1,5 @@ +import HoverButton from './HoverButton/index.vue' +import NaiveProvider from './NaiveProvider.vue' +import SvgIcon from './SvgIcon.vue' + +export { HoverButton, NaiveProvider, SvgIcon } diff --git a/src/components/GithubSite.vue b/src/components/custom/GithubSite.vue similarity index 100% rename from src/components/GithubSite.vue rename to src/components/custom/GithubSite.vue diff --git a/src/components/custom/index.ts b/src/components/custom/index.ts new file mode 100644 index 0000000..6e03698 --- /dev/null +++ b/src/components/custom/index.ts @@ -0,0 +1,3 @@ +import GithubSite from './GithubSite.vue' + +export { GithubSite } diff --git a/src/components/index.ts b/src/components/index.ts deleted file mode 100644 index 40c979d..0000000 --- a/src/components/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import NaiveProvider from './NaiveProvider.vue' -import Icon from './Icon.vue' -import GithubSite from './GithubSite.vue' - -export { NaiveProvider, Icon, GithubSite } diff --git a/src/typings/global.d.ts b/src/typings/global.d.ts index b199d9e..bf8ef32 100644 --- a/src/typings/global.d.ts +++ b/src/typings/global.d.ts @@ -1,3 +1,6 @@ interface Window { + $loadingBar?: import('naive-ui').LoadingBarProviderInst; + $dialog?: import('naive-ui').DialogProviderInst; $message?: import('naive-ui').MessageProviderInst; + $notification?: import('naive-ui').NotificationProviderInst; } diff --git a/src/views/Chat/index.vue b/src/views/Chat/index.vue index 3fed308..14f5e5a 100644 --- a/src/views/Chat/index.vue +++ b/src/views/Chat/index.vue @@ -1,9 +1,10 @@ diff --git a/src/views/Chat/layout/Layout.vue b/src/views/Chat/layout/Layout.vue new file mode 100644 index 0000000..16e9923 --- /dev/null +++ b/src/views/Chat/layout/Layout.vue @@ -0,0 +1,27 @@ + + + + + diff --git a/src/views/Chat/layout/index.ts b/src/views/Chat/layout/index.ts new file mode 100644 index 0000000..4763bbc --- /dev/null +++ b/src/views/Chat/layout/index.ts @@ -0,0 +1,3 @@ +import Layout from './Layout.vue' + +export { Layout }