From 6502afb992aa14a161d1d6dde13105b72cbef315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=91=E8=BD=BB=E7=8B=82?= <49270362+MarleneJiang@users.noreply.github.com> Date: Fri, 2 Dec 2022 18:45:38 +0800 Subject: [PATCH] Initial commit --- .editorconfig | 9 + .eslintrc | 3 + .github/FUNDING.yml | 1 + .github/workflows/ci.yml | 44 + .gitignore | 12 + .npmrc | 2 + .vscode/extensions.json | 13 + .vscode/settings.json | 28 + LICENSE | 21 + README.md | 241 + app/api/api.py | 9 + app/assets/requirements.txt | 3 + app/config/config.py | 10 + app/main.py | 45 + app/spec/getSpec.py | 141 + index.html | 22 + locales/README.md | 7 + locales/en.yml | 14 + locales/zh-CN.yml | 14 + netlify.toml | 16 + package.json | 88 + pnpm-lock.yaml | 8341 ++++++++++++++++++++++++++++++++++ public/_headers | 3 + public/favicon-dark.svg | 3 + public/favicon.svg | 3 + public/logo.ico | Bin 0 -> 67646 bytes public/pwa-192x192.png | Bin 0 -> 3914 bytes public/pwa-512x512.png | Bin 0 -> 10261 bytes public/safari-pinned-tab.svg | 41 + src/App.vue | 26 + src/auto-imports.d.ts | 560 +++ src/components.d.ts | 17 + src/components/Counter.vue | 19 + src/components/Footer.vue | 33 + src/components/Input.vue | 20 + src/components/README.md | 10 + src/composables/dark.ts | 4 + src/layouts/404.vue | 19 + src/layouts/README.md | 14 + src/layouts/default.vue | 9 + src/layouts/home.vue | 9 + src/main.ts | 24 + src/modules/README.md | 11 + src/modules/i18n.ts | 25 + src/modules/nprogress.ts | 14 + src/modules/pinia.ts | 17 + src/modules/pwa.ts | 12 + src/pages/README.md | 20 + src/pages/[...all].vue | 14 + src/pages/about.md | 21 + src/pages/hi/[name].vue | 47 + src/pages/index.vue | 73 + src/shims.d.ts | 16 + src/store/user.ts | 34 + src/styles/main.css | 29 + src/styles/markdown.css | 28 + src/types.ts | 3 + tsconfig.json | 37 + unocss.config.ts | 38 + vite.config.ts | 152 + 60 files changed, 10489 insertions(+) create mode 100644 .editorconfig create mode 100644 .eslintrc create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/ci.yml create mode 100644 .gitignore create mode 100644 .npmrc create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json create mode 100644 LICENSE create mode 100644 README.md create mode 100644 app/api/api.py create mode 100644 app/assets/requirements.txt create mode 100644 app/config/config.py create mode 100644 app/main.py create mode 100644 app/spec/getSpec.py create mode 100644 index.html create mode 100644 locales/README.md create mode 100644 locales/en.yml create mode 100644 locales/zh-CN.yml create mode 100755 netlify.toml create mode 100644 package.json create mode 100644 pnpm-lock.yaml create mode 100644 public/_headers create mode 100644 public/favicon-dark.svg create mode 100644 public/favicon.svg create mode 100644 public/logo.ico create mode 100644 public/pwa-192x192.png create mode 100644 public/pwa-512x512.png create mode 100644 public/safari-pinned-tab.svg create mode 100644 src/App.vue create mode 100644 src/auto-imports.d.ts create mode 100644 src/components.d.ts create mode 100644 src/components/Counter.vue create mode 100644 src/components/Footer.vue create mode 100644 src/components/Input.vue create mode 100644 src/components/README.md create mode 100644 src/composables/dark.ts create mode 100644 src/layouts/404.vue create mode 100644 src/layouts/README.md create mode 100644 src/layouts/default.vue create mode 100644 src/layouts/home.vue create mode 100644 src/main.ts create mode 100644 src/modules/README.md create mode 100644 src/modules/i18n.ts create mode 100644 src/modules/nprogress.ts create mode 100644 src/modules/pinia.ts create mode 100644 src/modules/pwa.ts create mode 100644 src/pages/README.md create mode 100755 src/pages/[...all].vue create mode 100644 src/pages/about.md create mode 100644 src/pages/hi/[name].vue create mode 100644 src/pages/index.vue create mode 100644 src/shims.d.ts create mode 100644 src/store/user.ts create mode 100755 src/styles/main.css create mode 100644 src/styles/markdown.css create mode 100644 src/types.ts create mode 100644 tsconfig.json create mode 100644 unocss.config.ts create mode 100644 vite.config.ts diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..9d08a1a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..09c2e42 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,3 @@ +{ + "extends": "@antfu" +} diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..7246382 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: antfu diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..306e34b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: CI + +on: + push: + branches: + - main + + pull_request: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + - uses: actions/setup-node@v3 + with: + node-version: 16.x + cache: pnpm + + - name: Install + run: pnpm install + + - name: Lint + run: pnpm run lint + + typecheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + - uses: actions/setup-node@v3 + with: + node-version: 16.x + cache: pnpm + + - name: Install + run: pnpm install + + - name: Typecheck + run: pnpm run typecheck + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..99bed15 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +.DS_Store +.vite-ssg-dist +.vite-ssg-temp +*.local +dist +dist-ssr +node_modules +.idea/ +*.log +*.spec +__pycache__ +.vscode diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..cf04042 --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +shamefully-hoist=true +strict-peer-dependencies=false diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..d066795 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,13 @@ +{ + "recommendations": [ + "antfu.iconify", + "antfu.unocss", + "antfu.vite", + "antfu.goto-alias", + "csstools.postcss", + "dbaeumer.vscode-eslint", + "vue.volar", + "lokalise.i18n-ally", + "streetsidesoftware.code-spell-checker" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..abc755b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,28 @@ +{ + "cSpell.words": [ + "demi", + "iconify", + "intlify", + "pinia", + "pnpm", + "pywebview", + "unocss", + "unplugin", + "Vite", + "vitejs", + "Vitesse", + "vueuse" + ], + "i18n-ally.sourceLanguage": "en", + "i18n-ally.keystyle": "nested", + "i18n-ally.localesPaths": "locales", + "i18n-ally.sortKeys": true, + "prettier.enable": false, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true + }, + "files.associations": { + "*.css": "postcss" + }, + "editor.formatOnSave": false +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..da26da3 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020-2021 Anthony Fu + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..398ce9f --- /dev/null +++ b/README.md @@ -0,0 +1,241 @@ +
+Mocking up web app with Vitesse(speed)
+
+简体中文 | English + +
+ +