From f786c4ca56532c8e9747ce4e37b762a197cda65a Mon Sep 17 00:00:00 2001
From: 64104061f23fda247c679fa8 <64104061f23fda247c679fa8@devide>
Date: Thu, 13 Jul 2023 16:10:13 +0800
Subject: [PATCH] Auto Commit
---
.gitignore | 30 +------
.inscode | 8 +-
.upm/store.json | 1 -
README.md | 29 -------
docs/.vitepress/config.ts | 55 +++++++++++++
docs/example.md | 15 ++++
docs/index.md | 15 ++++
index.html | 13 ----
package.json | 19 ++---
public/favicon.ico | Bin 4286 -> 0 bytes
src/App.vue | 47 -----------
src/assets/base.css | 74 ------------------
src/assets/logo.svg | 1 -
src/assets/main.css | 35 ---------
src/components/HelloWorld.vue | 43 -----------
src/components/TheWelcome.vue | 84 --------------------
src/components/WelcomeItem.vue | 86 ---------------------
src/components/icons/IconCommunity.vue | 7 --
src/components/icons/IconDocumentation.vue | 7 --
src/components/icons/IconEcosystem.vue | 7 --
src/components/icons/IconSupport.vue | 7 --
src/components/icons/IconTooling.vue | 19 -----
src/main.js | 6 --
vite.config.js | 10 ---
24 files changed, 99 insertions(+), 519 deletions(-)
delete mode 100644 .upm/store.json
delete mode 100644 README.md
create mode 100644 docs/.vitepress/config.ts
create mode 100644 docs/example.md
create mode 100644 docs/index.md
delete mode 100644 index.html
delete mode 100644 public/favicon.ico
delete mode 100644 src/App.vue
delete mode 100644 src/assets/base.css
delete mode 100644 src/assets/logo.svg
delete mode 100644 src/assets/main.css
delete mode 100644 src/components/HelloWorld.vue
delete mode 100644 src/components/TheWelcome.vue
delete mode 100644 src/components/WelcomeItem.vue
delete mode 100644 src/components/icons/IconCommunity.vue
delete mode 100644 src/components/icons/IconDocumentation.vue
delete mode 100644 src/components/icons/IconEcosystem.vue
delete mode 100644 src/components/icons/IconSupport.vue
delete mode 100644 src/components/icons/IconTooling.vue
delete mode 100644 src/main.js
delete mode 100644 vite.config.js
diff --git a/.gitignore b/.gitignore
index 66240cd..f2a0619 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,29 +1,5 @@
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-package-lock.json
-
node_modules
-.DS_Store
dist
-dist-ssr
-coverage
-*.local
-
-/cypress/videos/
-/cypress/screenshots/
-
-# Editor directories and files
-.vscode/*
-!.vscode/extensions.json
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
+.temp
+cache
+package-lock.json
\ No newline at end of file
diff --git a/.inscode b/.inscode
index 70c7853..5cc93bb 100644
--- a/.inscode
+++ b/.inscode
@@ -1,10 +1,10 @@
-run = "npm i && npm run dev"
+run = "npm i && npm run docs:dev"
[deployment]
-build = "npm i && npm run build"
-run = "npm run preview"
+build = "npm i --registry=https://registry.npmmirror.com"
+run = "npm run docs:build && npm run docs:preview"
[env]
PATH = "/root/${PROJECT_DIR}/.config/npm/node_global/bin:/root/${PROJECT_DIR}/node_modules/.bin:${PATH}"
XDG_CONFIG_HOME = "/root/.config"
-npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global"
+npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global"
\ No newline at end of file
diff --git a/.upm/store.json b/.upm/store.json
deleted file mode 100644
index 6135792..0000000
--- a/.upm/store.json
+++ /dev/null
@@ -1 +0,0 @@
-{"version":2,"languages":{"nodejs-npm":{"specfileHash":"58c9ae4e8687db16ea7925086afedf3b","lockfileHash":"2157a76123c004596bbf191d5ad4beb8"}}}
diff --git a/README.md b/README.md
deleted file mode 100644
index 2cb2a80..0000000
--- a/README.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# VueJS-with-Vite
-
-Vue.js 是基于 JavaScript 构建用户界面的库。该模板使用 Vite 来提供应用程序服务。
-
-## 推荐的IDE设置
-
-[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
-
-## 自定义配置
-
-请参阅 [[Vite配置参考](https://vitejs.dev/config/).
-
-## 项目设置
-
-```sh
-npm install
-```
-
-### 在开发环境中启动和热更新
-
-```sh
-npm run dev
-```
-
-### 编译用于生产环境
-
-```sh
-npm run build
-```
diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts
new file mode 100644
index 0000000..e8654b0
--- /dev/null
+++ b/docs/.vitepress/config.ts
@@ -0,0 +1,55 @@
+import { defineConfig } from 'vitepress';
+
+// refer https://vitepress.vuejs.org/config/introduction for details
+export default defineConfig({
+ lang: 'zh-CN',
+ title: 'VitePress',
+ description: 'Vite & Vue powered static site generator.',
+ lastUpdated: true,
+ markdown: {
+ lineNumbers: true
+ },
+ themeConfig: {
+ search: {
+ provider: 'local'
+ },
+ outline: [2, 3],
+ outlineTitle: '目录',
+ lastUpdatedText: '最后更新时间',
+ footer: {
+ message: '该网站在 InsCode 开发并部署',
+ // copyright: 'Copyright © '
+ },
+ docFooter: {
+ prev: '上一篇',
+ next: '下一篇'
+ },
+ darkModeSwitchLabel: '外观',
+ sidebarMenuLabel: '菜单',
+ returnToTopLabel: '返回顶部',
+ nav: [
+ { text: 'Example', link: '/example' },
+
+ // {
+ // text: 'Dropdown Menu',
+ // items: [
+ // { text: 'Item A', link: '/item-1' },
+ // { text: 'Item B', link: '/item-2' },
+ // { text: 'Item C', link: '/item-3' },
+ // ],
+ // },
+
+ // ...
+ ],
+
+ sidebar: [
+ {
+ // text: 'Guide',
+ items: [
+ { text: 'Example', link: '/example' },
+ // ...
+ ],
+ },
+ ],
+ },
+});
diff --git a/docs/example.md b/docs/example.md
new file mode 100644
index 0000000..04691e2
--- /dev/null
+++ b/docs/example.md
@@ -0,0 +1,15 @@
+# VitePress 💙 InsCode
+
+Hi there :wave: This is a demo running VitePress within your **browser tab**!
+
+## Powered by Vite
+
+VitePress uses Vite under the hood. This means:
+
+- Instant server start
+- Lightning fast HMR
+- Optimized builds
+
+## Markdown-Centered
+
+So you can focus more on writing. Powered by MarkdownIt. Comes with many [built-in extensions](https://vitepress.vuejs.org/guide/markdown), and you can use Vue features in Markdown too!
diff --git a/docs/index.md b/docs/index.md
new file mode 100644
index 0000000..ae8af8a
--- /dev/null
+++ b/docs/index.md
@@ -0,0 +1,15 @@
+---
+layout: home
+
+hero:
+ name: VitePress
+ text: Vite & Vue powered static site generator.
+ tagline: Simple, powerful, and performant. Meet the modern SSG framework you've always wanted.
+ actions:
+ - theme: brand
+ text: Get Started
+ link: /example
+ - theme: alt
+ text: View on GitHub
+ link: https://github.com/vuejs/vitepress
+---
diff --git a/index.html b/index.html
deleted file mode 100644
index 030a6ff..0000000
--- a/index.html
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
- Vite App
-
-
-
-
-
-
diff --git a/package.json b/package.json
index aa1c7de..1945862 100644
--- a/package.json
+++ b/package.json
@@ -1,17 +1,12 @@
{
- "name": "vuejs-with-vite",
- "version": "0.0.0",
+ "private": true,
"scripts": {
- "dev": "vite",
- "build": "vite build",
- "preview": "vite preview --port 4173"
- },
- "dependencies": {
- "guess": "^1.0.2",
- "vue": "^3.2.37"
+ "docs:dev": "vitepress dev docs",
+ "docs:build": "vitepress build docs",
+ "docs:serve": "vitepress serve docs",
+ "docs:preview": "vitepress preview docs"
},
"devDependencies": {
- "@vitejs/plugin-vue": "^3.0.1",
- "vite": "^3.0.1"
+ "vitepress": "latest"
}
-}
+}
\ No newline at end of file
diff --git a/public/favicon.ico b/public/favicon.ico
deleted file mode 100644
index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 4286
zcmds*O-Phc6o&64GDVCEQHxsW(p4>LW*W<827=Unuo8sGpRux(DN@jWP-e29Wl%wj
zY84_aq9}^Am9-cWTD5GGEo#+5Fi2wX_P*bo+xO!)p*7B;iKlbFd(U~_d(U?#hLj56
zPhFkj-|A6~Qk#@g^#D^U0XT1cu=c-vu1+SElX9NR;kzAUV(q0|dl0|%h|dI$%VICy
zJnu2^L*Te9JrJMGh%-P79CL0}dq92RGU6gI{v2~|)p}sG5x0U*z<8U;Ij*hB9z?ei
z@g6Xq-pDoPl=MANPiR7%172VA%r)kevtV-_5H*QJKFmd;8yA$98zCxBZYXTNZ#QFk2(TX0;Y2dt&WitL#$96|gJY=3xX
zpCoi|YNzgO3R`f@IiEeSmKrPSf#h#Qd<$%Ej^RIeeYfsxhPMOG`S`Pz8q``=511zm
zAm)MX5AV^5xIWPyEu7u>qYs?pn$I4nL9J!=K=SGlKLXpE<5x+2cDTXq?brj?n6sp=
zphe9;_JHf40^9~}9i08r{XM$7HB!`{Ys~TK0kx<}ZQng`UPvH*11|q7&l9?@FQz;8
zx!=3<4seY*%=OlbCbcae?5^V_}*K>Uo6ZWV8mTyE^B=DKy7-sdLYkR5Z?paTgK-zyIkKjIcpyO
z{+uIt&YSa_$QnN_@t~L014dyK(fOOo+W*MIxbA6Ndgr=Y!f#Tokqv}n<7-9qfHkc3
z=>a|HWqcX8fzQCT=dqVbogRq!-S>H%yA{1w#2Pn;=e>JiEj7Hl;zdt-2f+j2%DeVD
zsW0Ab)ZK@0cIW%W7z}H{&~yGhn~D;aiP4=;m-HCo`BEI+Kd6
z={Xwx{T%b6i9IjI)Ls)S{-*mq<@~R{?$}ZKjf;^k75i_}(2MXt}^SEBVg7AI@28
zo_uPg2V)_e-`2Ois=PYoe%9u*n9({PFR)OnHJPi{dNx>KxD#iCLfl2vQGDitKtN>z|-AdCN|$jTFDg0m3O`WLD4_s#$S
diff --git a/src/App.vue b/src/App.vue
deleted file mode 100644
index 633a5df..0000000
--- a/src/App.vue
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/assets/base.css b/src/assets/base.css
deleted file mode 100644
index 71dc55a..0000000
--- a/src/assets/base.css
+++ /dev/null
@@ -1,74 +0,0 @@
-/* color palette from */
-:root {
- --vt-c-white: #ffffff;
- --vt-c-white-soft: #f8f8f8;
- --vt-c-white-mute: #f2f2f2;
-
- --vt-c-black: #181818;
- --vt-c-black-soft: #222222;
- --vt-c-black-mute: #282828;
-
- --vt-c-indigo: #2c3e50;
-
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
- --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
-
- --vt-c-text-light-1: var(--vt-c-indigo);
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
- --vt-c-text-dark-1: var(--vt-c-white);
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
-}
-
-/* semantic color variables for this project */
-:root {
- --color-background: var(--vt-c-white);
- --color-background-soft: var(--vt-c-white-soft);
- --color-background-mute: var(--vt-c-white-mute);
-
- --color-border: var(--vt-c-divider-light-2);
- --color-border-hover: var(--vt-c-divider-light-1);
-
- --color-heading: var(--vt-c-text-light-1);
- --color-text: var(--vt-c-text-light-1);
-
- --section-gap: 160px;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-background: var(--vt-c-black);
- --color-background-soft: var(--vt-c-black-soft);
- --color-background-mute: var(--vt-c-black-mute);
-
- --color-border: var(--vt-c-divider-dark-2);
- --color-border-hover: var(--vt-c-divider-dark-1);
-
- --color-heading: var(--vt-c-text-dark-1);
- --color-text: var(--vt-c-text-dark-2);
- }
-}
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- position: relative;
- font-weight: normal;
-}
-
-body {
- min-height: 100vh;
- color: var(--color-text);
- background: var(--color-background);
- transition: color 0.5s, background-color 0.5s;
- line-height: 1.6;
- font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
- Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
- font-size: 15px;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
diff --git a/src/assets/logo.svg b/src/assets/logo.svg
deleted file mode 100644
index bc826fe..0000000
--- a/src/assets/logo.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/assets/main.css b/src/assets/main.css
deleted file mode 100644
index c133f91..0000000
--- a/src/assets/main.css
+++ /dev/null
@@ -1,35 +0,0 @@
-@import "./base.css";
-
-#app {
- max-width: 1280px;
- margin: 0 auto;
- padding: 2rem;
-
- font-weight: normal;
-}
-
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
-
-@media (min-width: 1024px) {
- body {
- display: flex;
- place-items: center;
- }
-
- #app {
- display: grid;
- grid-template-columns: 1fr 1fr;
- padding: 0 2rem;
- }
-}
diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue
deleted file mode 100644
index 1b8faac..0000000
--- a/src/components/HelloWorld.vue
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-
-
{{ msg }}
-
- You’ve successfully created a project with
- Vite +
- Vue 3 .
-
-
-
-
-
diff --git a/src/components/TheWelcome.vue b/src/components/TheWelcome.vue
deleted file mode 100644
index d3d2e7a..0000000
--- a/src/components/TheWelcome.vue
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
-
-
-
-
-
- Documentation
-
- Vue’s
- official documentation
- provides you with all information you need to get started.
-
-
-
-
-
-
- Tooling
-
- This project is served and bundled with
- Vite . The recommended IDE
- setup is VSCode +
- Volar . If you need to test
- your components and web pages, check out
- Cypress and
- Cypress Component Testing .
-
-
-
- More instructions are available in README.md.
-
-
-
-
-
-
- Ecosystem
-
- Get official tools and libraries for your project:
- Pinia ,
- Vue Router ,
- Vue Test Utils , and
- Vue Dev Tools . If you need more
- resources, we suggest paying
- Awesome Vue
- a visit.
-
-
-
-
-
-
- Community
-
- Got stuck? Ask your question on
- Vue Land , our official Discord server, or
- StackOverflow .
- You should also subscribe to
- our mailing list and follow the official
- @vuejs
- twitter account for latest news in the Vue world.
-
-
-
-
-
-
- Support Vue
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- becoming a sponsor .
-
-
diff --git a/src/components/WelcomeItem.vue b/src/components/WelcomeItem.vue
deleted file mode 100644
index ba0def3..0000000
--- a/src/components/WelcomeItem.vue
+++ /dev/null
@@ -1,86 +0,0 @@
-
-
-
-
-
diff --git a/src/components/icons/IconCommunity.vue b/src/components/icons/IconCommunity.vue
deleted file mode 100644
index 2dc8b05..0000000
--- a/src/components/icons/IconCommunity.vue
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/src/components/icons/IconDocumentation.vue b/src/components/icons/IconDocumentation.vue
deleted file mode 100644
index 6d4791c..0000000
--- a/src/components/icons/IconDocumentation.vue
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/src/components/icons/IconEcosystem.vue b/src/components/icons/IconEcosystem.vue
deleted file mode 100644
index c3a4f07..0000000
--- a/src/components/icons/IconEcosystem.vue
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/src/components/icons/IconSupport.vue b/src/components/icons/IconSupport.vue
deleted file mode 100644
index 7452834..0000000
--- a/src/components/icons/IconSupport.vue
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/src/components/icons/IconTooling.vue b/src/components/icons/IconTooling.vue
deleted file mode 100644
index 660598d..0000000
--- a/src/components/icons/IconTooling.vue
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
diff --git a/src/main.js b/src/main.js
deleted file mode 100644
index 90e6400..0000000
--- a/src/main.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import { createApp } from 'vue'
-import App from './App.vue'
-
-import './assets/main.css'
-
-createApp(App).mount('#app')
diff --git a/vite.config.js b/vite.config.js
deleted file mode 100644
index 4ad898d..0000000
--- a/vite.config.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import { defineConfig } from 'vite'
-import vue from '@vitejs/plugin-vue'
-
-// https://vitejs.dev/config/
-export default defineConfig({
- server: {
- host: true
- },
- plugins: [vue()]
-})
--
GitLab