From 1cd652cf0c38e2aa2d4d2d087335c47ceeea1905 Mon Sep 17 00:00:00 2001
From: haml-707 <845831435@qq.com>
Date: Tue, 8 Aug 2023 17:04:13 +0800
Subject: [PATCH] feat: dock-debug
---
.gitignore | 119 +
LICENSE | 127 -
LICENSE.md | 171 +
README.en.md | 15 +
README.md | 46 +-
web-ui/.eslintrc.js | 33 +
web-ui/.gitignore | 119 +
web-ui/.prettierrc.js | 5 +
web-ui/Dockerfile | 25 +
web-ui/LICENSE | 21 +
web-ui/README.en.md | 20 +
web-ui/README.md | 48 +
web-ui/auto-imports.d.ts | 6 +
web-ui/components.d.ts | 16 +
web-ui/deploy/nginx/nginx.conf | 117 +
web-ui/index.html | 13 +
web-ui/package.json | 37 +
web-ui/pnpm-lock.yaml | 3387 +++++++++++++++++
web-ui/public/favicon.ico | Bin 0 -> 4286 bytes
web-ui/src/App.vue | 27 +
web-ui/src/api/docs-api.ts | 20 +
web-ui/src/assets/docs-bug/blind-box-mo.png | Bin 0 -> 23510 bytes
web-ui/src/assets/docs-bug/blind-box.png | Bin 0 -> 21404 bytes
web-ui/src/assets/docs-bug/debug-detail.png | Bin 0 -> 2868 bytes
web-ui/src/assets/docs-bug/docs-banner-mo.png | Bin 0 -> 21720 bytes
web-ui/src/assets/docs-bug/docs-banner.png | Bin 0 -> 61800 bytes
web-ui/src/assets/docs-bug/icon_dark.png | Bin 0 -> 548 bytes
web-ui/src/assets/docs-bug/icon_light.png | Bin 0 -> 492 bytes
.../src/assets/docs-bug/introduction-mo.png | Bin 0 -> 15970 bytes
web-ui/src/assets/docs-bug/introduction.png | Bin 0 -> 20525 bytes
web-ui/src/assets/docs-bug/join-mo.png | Bin 0 -> 26969 bytes
web-ui/src/assets/docs-bug/join.png | Bin 0 -> 26723 bytes
web-ui/src/assets/docs-bug/join_left.png | Bin 0 -> 4887 bytes
web-ui/src/assets/docs-bug/join_right.png | Bin 0 -> 4071 bytes
web-ui/src/assets/docs-bug/prize-1.png | Bin 0 -> 17811 bytes
web-ui/src/assets/docs-bug/prize-2.png | Bin 0 -> 12986 bytes
web-ui/src/assets/docs-bug/prize-3.png | Bin 0 -> 13266 bytes
web-ui/src/assets/docs-bug/prize-4.png | Bin 0 -> 14537 bytes
web-ui/src/assets/docs-bug/prize-5.png | Bin 0 -> 13128 bytes
web-ui/src/assets/docs-bug/prize-mo.png | Bin 0 -> 27284 bytes
web-ui/src/assets/docs-bug/prize.png | Bin 0 -> 37655 bytes
web-ui/src/assets/docs-bug/rule-mo.png | Bin 0 -> 33363 bytes
web-ui/src/assets/docs-bug/rule.png | Bin 0 -> 42499 bytes
web-ui/src/assets/docs-bug/snake.gif | Bin 0 -> 32768 bytes
web-ui/src/assets/footer-img/atom-mo.png | Bin 0 -> 13496 bytes
web-ui/src/assets/footer-img/atom-pc.png | Bin 0 -> 30331 bytes
web-ui/src/assets/footer-img/footer-logo2.svg | 33 +
web-ui/src/assets/footer-img/qrcode.png | Bin 0 -> 18178 bytes
web-ui/src/assets/language/common.ts | 233 ++
web-ui/src/assets/language/debug-text.ts | 192 +
web-ui/src/assets/logo.png | Bin 0 -> 10777 bytes
web-ui/src/assets/svg-icons/alert-circle.svg | 1 +
web-ui/src/assets/svg-icons/arrow-right.svg | 1 +
web-ui/src/assets/svg-icons/arrow-right2.svg | 2 +
web-ui/src/assets/svg-icons/dark.svg | 20 +
web-ui/src/assets/svg-icons/down.svg | 7 +
web-ui/src/assets/svg-icons/extend.svg | 1 +
web-ui/src/assets/svg-icons/left.svg | 7 +
web-ui/src/assets/svg-icons/light.svg | 20 +
web-ui/src/assets/svg-icons/live.svg | 26 +
web-ui/src/assets/svg-icons/offline.svg | 26 +
web-ui/src/assets/svg-icons/plus.svg | 1 +
web-ui/src/assets/svg-icons/right.svg | 7 +
web-ui/src/assets/svg-icons/x.svg | 1 +
web-ui/src/assets/withe_logo.png | Bin 0 -> 3228 bytes
web-ui/src/components/AppFooter.vue | 199 +
web-ui/src/components/AppHeader.vue | 119 +
web-ui/src/components/NavRight.vue | 127 +
web-ui/src/components/SvgIcon.vue | 51 +
web-ui/src/env.d.ts | 8 +
web-ui/src/main.ts | 14 +
web-ui/src/pages/DocsBug.vue | 501 +++
web-ui/src/router.ts | 16 +
web-ui/src/shared/axios/handleError.ts | 54 +
web-ui/src/shared/axios/handleResponse.ts | 39 +
web-ui/src/shared/axios/index.ts | 160 +
web-ui/src/shared/axios/setConfig.ts | 17 +
.../src/shared/styles/base.scss | 109 +-
web-ui/src/shared/styles/main.scss | 963 +++++
web-ui/src/shared/styles/mixin.scss | 45 +
web-ui/src/shared/styles/variable.scss | 53 +
web-ui/src/stores/integral.ts | 22 +
web-ui/tsconfig.json | 20 +
web-ui/tsconfig.node.json | 10 +
web-ui/vite.config.ts | 51 +
website/css/docdetail.css | 737 ----
website/css/markdown.css | 171 -
website/favicon.ico | Bin 4286 -> 0 bytes
website/img/common/gift.png | Bin 764 -> 0 bytes
website/img/common/help.png | Bin 735 -> 0 bytes
website/img/common/help.svg | 1 -
website/img/detail/1-star.png | Bin 3163 -> 0 bytes
website/img/detail/2-star.png | Bin 2997 -> 0 bytes
website/img/detail/3-star.png | Bin 3055 -> 0 bytes
website/img/detail/4-star.png | Bin 3653 -> 0 bytes
website/img/detail/5-star.png | Bin 3205 -> 0 bytes
website/img/detail/active-star.svg | 26 -
website/img/detail/blue-down.svg | 1 -
website/img/detail/blue-left.svg | 1 -
website/img/detail/blue-right.svg | 1 -
website/img/detail/close.png | Bin 208 -> 0 bytes
website/img/detail/feedback.png | Bin 1025 -> 0 bytes
website/img/detail/gift.png | Bin 764 -> 0 bytes
website/img/detail/icon-next.svg | 1 -
website/img/detail/icon-prev.svg | 1 -
website/img/detail/icon-right.svg | 1 -
website/img/detail/icon-star.svg | 17 -
website/img/detail/inside1.png | Bin 2834 -> 0 bytes
website/img/detail/inside2.png | Bin 2345 -> 0 bytes
website/img/detail/inside3.png | Bin 2556 -> 0 bytes
website/img/detail/loading.gif | Bin 61050 -> 0 bytes
website/img/detail/pr-tip.gif | Bin 3599207 -> 0 bytes
website/img/detail/slash.png | Bin 584 -> 0 bytes
website/img/detail/source-code.png | Bin 944 -> 0 bytes
website/img/detail/v-icon-down.svg | 1 -
website/img/markdown/step1.png | Bin 25568 -> 0 bytes
website/img/markdown/step2.png | Bin 23280 -> 0 bytes
website/img/markdown/step3.png | Bin 15015 -> 0 bytes
website/img/markdown/step4.png | Bin 57140 -> 0 bytes
website/index.html | 179 -
website/js/docdetail.js | 296 --
website/js/jq.base64.js | 122 -
website/js/jquery.min.js | 4 -
123 files changed, 7306 insertions(+), 1782 deletions(-)
create mode 100644 .gitignore
delete mode 100644 LICENSE
create mode 100644 LICENSE.md
create mode 100644 README.en.md
create mode 100644 web-ui/.eslintrc.js
create mode 100644 web-ui/.gitignore
create mode 100644 web-ui/.prettierrc.js
create mode 100644 web-ui/Dockerfile
create mode 100644 web-ui/LICENSE
create mode 100644 web-ui/README.en.md
create mode 100644 web-ui/README.md
create mode 100644 web-ui/auto-imports.d.ts
create mode 100644 web-ui/components.d.ts
create mode 100644 web-ui/deploy/nginx/nginx.conf
create mode 100644 web-ui/index.html
create mode 100644 web-ui/package.json
create mode 100644 web-ui/pnpm-lock.yaml
create mode 100644 web-ui/public/favicon.ico
create mode 100644 web-ui/src/App.vue
create mode 100644 web-ui/src/api/docs-api.ts
create mode 100644 web-ui/src/assets/docs-bug/blind-box-mo.png
create mode 100644 web-ui/src/assets/docs-bug/blind-box.png
create mode 100644 web-ui/src/assets/docs-bug/debug-detail.png
create mode 100644 web-ui/src/assets/docs-bug/docs-banner-mo.png
create mode 100644 web-ui/src/assets/docs-bug/docs-banner.png
create mode 100644 web-ui/src/assets/docs-bug/icon_dark.png
create mode 100644 web-ui/src/assets/docs-bug/icon_light.png
create mode 100644 web-ui/src/assets/docs-bug/introduction-mo.png
create mode 100644 web-ui/src/assets/docs-bug/introduction.png
create mode 100644 web-ui/src/assets/docs-bug/join-mo.png
create mode 100644 web-ui/src/assets/docs-bug/join.png
create mode 100644 web-ui/src/assets/docs-bug/join_left.png
create mode 100644 web-ui/src/assets/docs-bug/join_right.png
create mode 100644 web-ui/src/assets/docs-bug/prize-1.png
create mode 100644 web-ui/src/assets/docs-bug/prize-2.png
create mode 100644 web-ui/src/assets/docs-bug/prize-3.png
create mode 100644 web-ui/src/assets/docs-bug/prize-4.png
create mode 100644 web-ui/src/assets/docs-bug/prize-5.png
create mode 100644 web-ui/src/assets/docs-bug/prize-mo.png
create mode 100644 web-ui/src/assets/docs-bug/prize.png
create mode 100644 web-ui/src/assets/docs-bug/rule-mo.png
create mode 100644 web-ui/src/assets/docs-bug/rule.png
create mode 100644 web-ui/src/assets/docs-bug/snake.gif
create mode 100644 web-ui/src/assets/footer-img/atom-mo.png
create mode 100644 web-ui/src/assets/footer-img/atom-pc.png
create mode 100644 web-ui/src/assets/footer-img/footer-logo2.svg
create mode 100644 web-ui/src/assets/footer-img/qrcode.png
create mode 100644 web-ui/src/assets/language/common.ts
create mode 100644 web-ui/src/assets/language/debug-text.ts
create mode 100644 web-ui/src/assets/logo.png
create mode 100644 web-ui/src/assets/svg-icons/alert-circle.svg
create mode 100644 web-ui/src/assets/svg-icons/arrow-right.svg
create mode 100644 web-ui/src/assets/svg-icons/arrow-right2.svg
create mode 100644 web-ui/src/assets/svg-icons/dark.svg
create mode 100644 web-ui/src/assets/svg-icons/down.svg
create mode 100644 web-ui/src/assets/svg-icons/extend.svg
create mode 100644 web-ui/src/assets/svg-icons/left.svg
create mode 100644 web-ui/src/assets/svg-icons/light.svg
create mode 100644 web-ui/src/assets/svg-icons/live.svg
create mode 100644 web-ui/src/assets/svg-icons/offline.svg
create mode 100644 web-ui/src/assets/svg-icons/plus.svg
create mode 100644 web-ui/src/assets/svg-icons/right.svg
create mode 100644 web-ui/src/assets/svg-icons/x.svg
create mode 100644 web-ui/src/assets/withe_logo.png
create mode 100644 web-ui/src/components/AppFooter.vue
create mode 100644 web-ui/src/components/AppHeader.vue
create mode 100644 web-ui/src/components/NavRight.vue
create mode 100644 web-ui/src/components/SvgIcon.vue
create mode 100644 web-ui/src/env.d.ts
create mode 100644 web-ui/src/main.ts
create mode 100644 web-ui/src/pages/DocsBug.vue
create mode 100644 web-ui/src/router.ts
create mode 100644 web-ui/src/shared/axios/handleError.ts
create mode 100644 web-ui/src/shared/axios/handleResponse.ts
create mode 100644 web-ui/src/shared/axios/index.ts
create mode 100644 web-ui/src/shared/axios/setConfig.ts
rename website/css/base.css => web-ui/src/shared/styles/base.scss (51%)
create mode 100644 web-ui/src/shared/styles/main.scss
create mode 100644 web-ui/src/shared/styles/mixin.scss
create mode 100644 web-ui/src/shared/styles/variable.scss
create mode 100644 web-ui/src/stores/integral.ts
create mode 100644 web-ui/tsconfig.json
create mode 100644 web-ui/tsconfig.node.json
create mode 100644 web-ui/vite.config.ts
delete mode 100644 website/css/docdetail.css
delete mode 100644 website/css/markdown.css
delete mode 100644 website/favicon.ico
delete mode 100644 website/img/common/gift.png
delete mode 100644 website/img/common/help.png
delete mode 100644 website/img/common/help.svg
delete mode 100644 website/img/detail/1-star.png
delete mode 100644 website/img/detail/2-star.png
delete mode 100644 website/img/detail/3-star.png
delete mode 100644 website/img/detail/4-star.png
delete mode 100644 website/img/detail/5-star.png
delete mode 100644 website/img/detail/active-star.svg
delete mode 100644 website/img/detail/blue-down.svg
delete mode 100644 website/img/detail/blue-left.svg
delete mode 100644 website/img/detail/blue-right.svg
delete mode 100644 website/img/detail/close.png
delete mode 100644 website/img/detail/feedback.png
delete mode 100644 website/img/detail/gift.png
delete mode 100644 website/img/detail/icon-next.svg
delete mode 100644 website/img/detail/icon-prev.svg
delete mode 100644 website/img/detail/icon-right.svg
delete mode 100644 website/img/detail/icon-star.svg
delete mode 100644 website/img/detail/inside1.png
delete mode 100644 website/img/detail/inside2.png
delete mode 100644 website/img/detail/inside3.png
delete mode 100644 website/img/detail/loading.gif
delete mode 100644 website/img/detail/pr-tip.gif
delete mode 100644 website/img/detail/slash.png
delete mode 100644 website/img/detail/source-code.png
delete mode 100644 website/img/detail/v-icon-down.svg
delete mode 100644 website/img/markdown/step1.png
delete mode 100644 website/img/markdown/step2.png
delete mode 100644 website/img/markdown/step3.png
delete mode 100644 website/img/markdown/step4.png
delete mode 100644 website/index.html
delete mode 100644 website/js/docdetail.js
delete mode 100644 website/js/jq.base64.js
delete mode 100644 website/js/jquery.min.js
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..aa635c2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,119 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+lerna-debug.log*
+
+# Diagnostic reports (https://nodejs.org/api/report.html)
+report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
+
+# Runtime data
+pids
+*.pid
+*.seed
+*.pid.lock
+
+# Directory for instrumented libs generated by jscoverage/JSCover
+lib-cov
+
+# Coverage directory used by tools like istanbul
+coverage
+*.lcov
+
+# nyc test coverage
+.nyc_output
+
+# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
+.grunt
+
+# Bower dependency directory (https://bower.io/)
+bower_components
+
+# node-waf configuration
+.lock-wscript
+
+# Compiled binary addons (https://nodejs.org/api/addons.html)
+build/Release
+
+# Dependency directories
+node_modules/
+jspm_packages/
+
+# Snowpack dependency directory (https://snowpack.dev/)
+web_modules/
+
+# TypeScript cache
+*.tsbuildinfo
+
+# Optional npm cache directory
+.npm
+
+# Optional eslint cache
+.eslintcache
+
+# Microbundle cache
+.rpt2_cache/
+.rts2_cache_cjs/
+.rts2_cache_es/
+.rts2_cache_umd/
+
+# Optional REPL history
+.node_repl_history
+
+# Output of 'npm pack'
+*.tgz
+
+# Yarn Integrity file
+.yarn-integrity
+
+# dotenv environment variables file
+.env
+.env.test
+
+# parcel-bundler cache (https://parceljs.org/)
+.cache
+.parcel-cache
+
+# Next.js build output
+.next
+out
+
+# Nuxt.js build / generate output
+.nuxt
+dist
+
+# Gatsby files
+.cache/
+# Comment in the public line in if your project uses Gatsby and not Next.js
+# https://nextjs.org/blog/next-9-1#public-directory-support
+# public
+
+# vuepress build output
+.vuepress/dist
+
+# Serverless directories
+.serverless/
+
+# FuseBox cache
+.fusebox/
+
+# DynamoDB Local files
+.dynamodb/
+
+# TernJS port file
+.tern-port
+
+# Stores VSCode versions used for testing VSCode extensions
+.vscode-test
+
+# yarn v2
+.yarn/cache
+.yarn/unplugged
+.yarn/build-state.yml
+.yarn/install-state.gz
+.pnp.*
+
+# mac
+.DS_Store
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index ee58399..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,127 +0,0 @@
- 木兰宽松许可证, 第2版
-
- 木兰宽松许可证, 第2版
- 2020年1月 http://license.coscl.org.cn/MulanPSL2
-
-
- 您对“软件”的复制、使用、修改及分发受木兰宽松许可证,第2版(“本许可证”)的如下条款的约束:
-
- 0. 定义
-
- “软件”是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。
-
- “贡献”是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。
-
- “贡献者”是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。
-
- “法人实体”是指提交贡献的机构及其“关联实体”。
-
- “关联实体”是指,对“本许可证”下的行为方而言,控制、受控制或与其共同受控制的机构,此处的控制是指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。
-
- 1. 授予版权许可
-
- 每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可以复制、使用、修改、分发其“贡献”,不论修改与否。
-
- 2. 授予专利许可
-
- 每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软件”结合而将必然会侵犯的专利权利要求,不包括对“贡献”的修改或包含“贡献”的其他结合。如果您或您的“关联实体”直接或间接地,就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权行动之日终止。
-
- 3. 无商标许可
-
- “本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可,但您为满足第4条规定的声明义务而必须使用除外。
-
- 4. 分发限制
-
- 您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。
-
- 5. 免责声明与责任限制
-
- “软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于何种法律理论,即使其曾被建议有此种损失的可能性。
-
- 6. 语言
- “本许可证”以中英文双语表述,中英文版本具有同等法律效力。如果中英文版本存在任何冲突不一致,以中文版为准。
-
- 条款结束
-
- 如何将木兰宽松许可证,第2版,应用到您的软件
-
- 如果您希望将木兰宽松许可证,第2版,应用到您的新软件,为了方便接收者查阅,建议您完成如下三步:
-
- 1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字;
-
- 2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中;
-
- 3, 请将如下声明文本放入每个源文件的头部注释中。
-
- Copyright (c) [Year] [name of copyright holder]
- [Software Name] is licensed under Mulan PSL v2.
- You can use this software according to the terms and conditions of the Mulan PSL v2.
- You may obtain a copy of Mulan PSL v2 at:
- http://license.coscl.org.cn/MulanPSL2
- THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
- See the Mulan PSL v2 for more details.
-
-
- Mulan Permissive Software License,Version 2
-
- Mulan Permissive Software License,Version 2 (Mulan PSL v2)
- January 2020 http://license.coscl.org.cn/MulanPSL2
-
- Your reproduction, use, modification and distribution of the Software shall be subject to Mulan PSL v2 (this License) with the following terms and conditions:
-
- 0. Definition
-
- Software means the program and related documents which are licensed under this License and comprise all Contribution(s).
-
- Contribution means the copyrightable work licensed by a particular Contributor under this License.
-
- Contributor means the Individual or Legal Entity who licenses its copyrightable work under this License.
-
- Legal Entity means the entity making a Contribution and all its Affiliates.
-
- Affiliates means entities that control, are controlled by, or are under common control with the acting entity under this License, ‘control’ means direct or indirect ownership of at least fifty percent (50%) of the voting power, capital or other securities of controlled or commonly controlled entity.
-
- 1. Grant of Copyright License
-
- Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable copyright license to reproduce, use, modify, or distribute its Contribution, with modification or not.
-
- 2. Grant of Patent License
-
- Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable (except for revocation under this Section) patent license to make, have made, use, offer for sale, sell, import or otherwise transfer its Contribution, where such patent license is only limited to the patent claims owned or controlled by such Contributor now or in future which will be necessarily infringed by its Contribution alone, or by combination of the Contribution with the Software to which the Contribution was contributed. The patent license shall not apply to any modification of the Contribution, and any other combination which includes the Contribution. If you or your Affiliates directly or indirectly institute patent litigation (including a cross claim or counterclaim in a litigation) or other patent enforcement activities against any individual or entity by alleging that the Software or any Contribution in it infringes patents, then any patent license granted to you under this License for the Software shall terminate as of the date such litigation or activity is filed or taken.
-
- 3. No Trademark License
-
- No trademark license is granted to use the trade names, trademarks, service marks, or product names of Contributor, except as required to fulfill notice requirements in Section 4.
-
- 4. Distribution Restriction
-
- You may distribute the Software in any medium with or without modification, whether in source or executable forms, provided that you provide recipients with a copy of this License and retain copyright, patent, trademark and disclaimer statements in the Software.
-
- 5. Disclaimer of Warranty and Limitation of Liability
-
- THE SOFTWARE AND CONTRIBUTION IN IT ARE PROVIDED WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL ANY CONTRIBUTOR OR COPYRIGHT HOLDER BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING FROM YOUR USE OR INABILITY TO USE THE SOFTWARE OR THE CONTRIBUTION IN IT, NO MATTER HOW IT’S CAUSED OR BASED ON WHICH LEGAL THEORY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
- 6. Language
-
- THIS LICENSE IS WRITTEN IN BOTH CHINESE AND ENGLISH, AND THE CHINESE VERSION AND ENGLISH VERSION SHALL HAVE THE SAME LEGAL EFFECT. IN THE CASE OF DIVERGENCE BETWEEN THE CHINESE AND ENGLISH VERSIONS, THE CHINESE VERSION SHALL PREVAIL.
-
- END OF THE TERMS AND CONDITIONS
-
- How to Apply the Mulan Permissive Software License,Version 2 (Mulan PSL v2) to Your Software
-
- To apply the Mulan PSL v2 to your work, for easy identification by recipients, you are suggested to complete following three steps:
-
- i Fill in the blanks in following statement, including insert your software name, the year of the first publication of your software, and your name identified as the copyright owner;
-
- ii Create a file named “LICENSE” which contains the whole context of this License in the first directory of your software package;
-
- iii Attach the statement to the appropriate annotated syntax at the beginning of each source file.
-
-
- Copyright (c) [Year] [name of copyright holder]
- [Software Name] is licensed under Mulan PSL v2.
- You can use this software according to the terms and conditions of the Mulan PSL v2.
- You may obtain a copy of Mulan PSL v2 at:
- http://license.coscl.org.cn/MulanPSL2
- THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
- See the Mulan PSL v2 for more details.
diff --git a/LICENSE.md b/LICENSE.md
new file mode 100644
index 0000000..e7714d1
--- /dev/null
+++ b/LICENSE.md
@@ -0,0 +1,171 @@
+# Creative Commons Attribution-ShareAlike 4.0 International
+
+Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
+
+### Using Creative Commons Public Licenses
+
+Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
+
+* __Considerations for licensors:__ Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. [More considerations for licensors](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensors).
+
+* __Considerations for the public:__ By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. [More considerations for the public](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensees).
+
+## Creative Commons Attribution-ShareAlike 4.0 International Public License
+
+By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
+
+### Section 1 – Definitions.
+
+a. __Adapted Material__ means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
+
+b. __Adapter's License__ means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
+
+c. __BY-SA Compatible License__ means a license listed at [creativecommons.org/compatiblelicenses](http://creativecommons.org/compatiblelicenses), approved by Creative Commons as essentially the equivalent of this Public License.
+
+d. __Copyright and Similar Rights__ means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
+
+e. __Effective Technological Measures__ means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
+
+f. __Exceptions and Limitations__ means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
+
+g. __License Elements__ means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike.
+
+h. __Licensed Material__ means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
+
+i. __Licensed Rights__ means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
+
+j. __Licensor__ means the individual(s) or entity(ies) granting rights under this Public License.
+
+k. __Share__ means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
+
+l. __Sui Generis Database Rights__ means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
+
+m. __You__ means the individual or entity exercising the Licensed Rights under this Public License. __Your__ has a corresponding meaning.
+
+### Section 2 – Scope.
+
+a. ___License grant.___
+
+ 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
+
+ A. reproduce and Share the Licensed Material, in whole or in part; and
+
+ B. produce, reproduce, and Share Adapted Material.
+
+ 2. __Exceptions and Limitations.__ For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
+
+ 3. __Term.__ The term of this Public License is specified in Section 6(a).
+
+ 4. __Media and formats; technical modifications allowed.__ The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
+
+ 5. __Downstream recipients.__
+
+ A. __Offer from the Licensor – Licensed Material.__ Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
+
+ B. __Additional offer from the Licensor – Adapted Material.__ Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply.
+
+ C. __No downstream restrictions.__ You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
+
+ 6. __No endorsement.__ Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
+
+b. ___Other rights.___
+
+ 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
+
+ 2. Patent and trademark rights are not licensed under this Public License.
+
+ 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
+
+### Section 3 – License Conditions.
+
+Your exercise of the Licensed Rights is expressly made subject to the following conditions.
+
+a. ___Attribution.___
+
+ 1. If You Share the Licensed Material (including in modified form), You must:
+
+ A. retain the following if it is supplied by the Licensor with the Licensed Material:
+
+ i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
+
+ ii. a copyright notice;
+
+ iii. a notice that refers to this Public License;
+
+ iv. a notice that refers to the disclaimer of warranties;
+
+ v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
+
+ B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
+
+ C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
+
+ 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
+
+ 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
+
+b. ___ShareAlike.___
+
+In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.
+
+1. The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License.
+
+2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.
+
+3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.
+
+### Section 4 – Sui Generis Database Rights.
+
+Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
+
+a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
+
+b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and
+
+c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
+
+For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
+
+### Section 5 – Disclaimer of Warranties and Limitation of Liability.
+
+a. __Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.__
+
+b. __To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.__
+
+c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
+
+### Section 6 – Term and Termination.
+
+a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
+
+b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
+
+ 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
+
+ 2. upon express reinstatement by the Licensor.
+
+ For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
+
+c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
+
+d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
+
+### Section 7 – Other Terms and Conditions.
+
+a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
+
+b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
+
+### Section 8 – Interpretation.
+
+a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
+
+b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
+
+c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
+
+d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
+
+> Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” The text of the Creative Commons public licenses is dedicated to the public domain under the [CC0 Public Domain Dedication](https://creativecommons.org/publicdomain/zero/1.0/legalcode). Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at [creativecommons.org/policies](http://creativecommons.org/policies), Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
+>
+> Creative Commons may be contacted at creativecommons.org.
\ No newline at end of file
diff --git a/README.en.md b/README.en.md
new file mode 100644
index 0000000..6699ce5
--- /dev/null
+++ b/README.en.md
@@ -0,0 +1,15 @@
+# opendesign-templates
+
+## Templates
+
+Project | description | others
+:- | :- | :-
+vue3-ts-starter | `vue3`+`ts`project template | `vue3`+`ts`
+
+#### Contribution
+
+1. Fork the repository
+2. Create Feat_xxx branch
+3. Commit your code
+4. Create Pull Request
+
diff --git a/README.md b/README.md
index 771e2cb..33b79b5 100644
--- a/README.md
+++ b/README.md
@@ -1,32 +1,14 @@
-# docs-accompany-reading(文档伴读)
-
-#### 介绍
-
-本仓库提供了 openeuler 的文档捉虫代码,可用于对开源文档的用户体验提升。
-功能包含:
-1. 划取社区文档片段,跳出“有虫”描述对话框。
-2. 创建Gitee Issue,PR链接的自动跳转。
-
-注意:目前本仓库代码仅支持功能展示及具体实现的代码参考,不具备直接引入使用功能
-#### 目录结构
-```
-website
-├─ css // 页面的 css 文件
-├─ img // 页面的图片文件
-├─ js // 页面的 js 文件
-├─ index.html // 页面
-```
-
-#### 使用说明
-
-1. clone 仓库代码
-2. 找到 website 路径下的 index.html
-3. 双击找到的 index.html 即可在浏览器中打开,查看展示效果
-
-#### 捉虫具体流程说明
-
-1. 用户找到需要捉虫的网页,根据提示打开捉虫弹窗(弹窗内需用户填入内容需要根据网页需求进行自定义设计)
-2. 用户正确输入捉虫内容
-3. 在用户点击跳转前可依据网站的需求自行决定是否使用后端接口接收用户的捉虫数据(这里要做gitee账号的登录提示,否则gitee网站无法正确跳转)
-4. 在跳转git代码仓时按规则(具体规则可参考docdetail.js内的代码跳转地址参数)携带参数后,git那边通过识别会跳转到相应网页让用户进行提交issue或pr的操作(这里必须保证用户已经登录了gitee账号否则无法正常跳转,所以在第三步时做好提示)
-
+# opendesign-templates
+
+## 模板库
+
+项目 | 描述 | 其他
+:- | :- | :-
+vue3-ts-starter | `vue3`+`ts`项目模板 | `vue3`+`ts`
+## 参与贡献
+
+1. Fork 本仓库
+2. 新建 Feat_xxx 分支
+3. 提交代码
+4. 新建 Pull Request
+
diff --git a/web-ui/.eslintrc.js b/web-ui/.eslintrc.js
new file mode 100644
index 0000000..2ec150d
--- /dev/null
+++ b/web-ui/.eslintrc.js
@@ -0,0 +1,33 @@
+module.exports = {
+ parser: 'vue-eslint-parser',
+ parserOptions: {
+ parser: '@typescript-eslint/parser',
+ ecmaVersion: 2020,
+ sourceType: 'module',
+ },
+ extends: [
+ // 'eslint:all',
+ // 'eslint:recommended',
+ 'plugin:vue/vue3-recommended',
+ // '@vue/eslint-config-typescript',
+ '@vue/typescript/recommended',
+ '@vue/prettier',
+ ],
+ plugins: ['@typescript-eslint'],
+ env: {
+ browser: true,
+ node: true,
+ es6: true,
+ 'vue/setup-compiler-macros': true,
+ },
+ rules: {
+ 'no-multiple-empty-lines': 'error',
+ 'prefer-template': 'error',
+ 'spaced-comment': 'error',
+ 'no-var': 'error',
+ 'one-var-declaration-per-line': 'error',
+ 'no-multi-assign': 'error',
+ 'prefer-destructuring': 'error',
+ eqeqeq: 'error',
+ },
+};
diff --git a/web-ui/.gitignore b/web-ui/.gitignore
new file mode 100644
index 0000000..aa635c2
--- /dev/null
+++ b/web-ui/.gitignore
@@ -0,0 +1,119 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+lerna-debug.log*
+
+# Diagnostic reports (https://nodejs.org/api/report.html)
+report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
+
+# Runtime data
+pids
+*.pid
+*.seed
+*.pid.lock
+
+# Directory for instrumented libs generated by jscoverage/JSCover
+lib-cov
+
+# Coverage directory used by tools like istanbul
+coverage
+*.lcov
+
+# nyc test coverage
+.nyc_output
+
+# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
+.grunt
+
+# Bower dependency directory (https://bower.io/)
+bower_components
+
+# node-waf configuration
+.lock-wscript
+
+# Compiled binary addons (https://nodejs.org/api/addons.html)
+build/Release
+
+# Dependency directories
+node_modules/
+jspm_packages/
+
+# Snowpack dependency directory (https://snowpack.dev/)
+web_modules/
+
+# TypeScript cache
+*.tsbuildinfo
+
+# Optional npm cache directory
+.npm
+
+# Optional eslint cache
+.eslintcache
+
+# Microbundle cache
+.rpt2_cache/
+.rts2_cache_cjs/
+.rts2_cache_es/
+.rts2_cache_umd/
+
+# Optional REPL history
+.node_repl_history
+
+# Output of 'npm pack'
+*.tgz
+
+# Yarn Integrity file
+.yarn-integrity
+
+# dotenv environment variables file
+.env
+.env.test
+
+# parcel-bundler cache (https://parceljs.org/)
+.cache
+.parcel-cache
+
+# Next.js build output
+.next
+out
+
+# Nuxt.js build / generate output
+.nuxt
+dist
+
+# Gatsby files
+.cache/
+# Comment in the public line in if your project uses Gatsby and not Next.js
+# https://nextjs.org/blog/next-9-1#public-directory-support
+# public
+
+# vuepress build output
+.vuepress/dist
+
+# Serverless directories
+.serverless/
+
+# FuseBox cache
+.fusebox/
+
+# DynamoDB Local files
+.dynamodb/
+
+# TernJS port file
+.tern-port
+
+# Stores VSCode versions used for testing VSCode extensions
+.vscode-test
+
+# yarn v2
+.yarn/cache
+.yarn/unplugged
+.yarn/build-state.yml
+.yarn/install-state.gz
+.pnp.*
+
+# mac
+.DS_Store
diff --git a/web-ui/.prettierrc.js b/web-ui/.prettierrc.js
new file mode 100644
index 0000000..c4c847c
--- /dev/null
+++ b/web-ui/.prettierrc.js
@@ -0,0 +1,5 @@
+module.exports = {
+ singleQuote: true,
+ printWidth: 80,
+ trailingComma: 'es5',
+};
diff --git a/web-ui/Dockerfile b/web-ui/Dockerfile
new file mode 100644
index 0000000..04a7b7c
--- /dev/null
+++ b/web-ui/Dockerfile
@@ -0,0 +1,25 @@
+FROM gplane/pnpm as Builder
+
+RUN mkdir -p /home/openeuler-debug/web
+WORKDIR /home/openeuler-debug/web
+COPY . /home/openeuler-debug/web
+
+RUN pnpm install
+RUN pnpm build
+
+FROM swr.cn-north-4.myhuaweicloud.com/opensourceway/openeuler/nginx:1.22.0-22.03-lts
+
+COPY --from=Builder /home/openeuler-debug/web/dist/ /usr/share/nginx/html/
+RUN chmod -R 755 /usr/share/nginx/html
+COPY ./deploy/nginx/nginx.conf /etc/nginx/nginx.conf
+
+RUN touch /var/run/nginx.pid \
+ && chown -R nginx:nginx /var/log/nginx \
+ && chown -R nginx:nginx /var/run/nginx.pid \
+ && chown -R nginx:nginx /etc/nginx
+
+EXPOSE 8080
+
+USER nginx
+
+ENTRYPOINT ["nginx", "-g", "daemon off;"]
diff --git a/web-ui/LICENSE b/web-ui/LICENSE
new file mode 100644
index 0000000..a365b36
--- /dev/null
+++ b/web-ui/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 devin-cwd
+
+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/web-ui/README.en.md b/web-ui/README.en.md
new file mode 100644
index 0000000..dbc5295
--- /dev/null
+++ b/web-ui/README.en.md
@@ -0,0 +1,20 @@
+# vue3-ts-starter
+
+### Description
+vue3 starter
+
+### Software Architecture
+Vue 3 + TypeScript + Vite + Scss + Vue Router + Pinia + Axios
+
+### Installation
+
+1. recommend using [pnpm](https://pnpm.io/installation),you can also use ```npm```、```yarn```
+2. install: ```pnpm install```
+3. run project: ```pnpm dev```
+
+### Contribution
+
+1. Fork the repository
+2. Create Feat_xxx branch
+3. Commit your code
+4. Create Pull Request
\ No newline at end of file
diff --git a/web-ui/README.md b/web-ui/README.md
new file mode 100644
index 0000000..7e54047
--- /dev/null
+++ b/web-ui/README.md
@@ -0,0 +1,48 @@
+# vue3-ts-starter
+
+### 介绍
+vue3模板库, 使用vite构建,并集成Scss + Vue Router + Pinia + Axios
+
+### 软件架构
+Vue 3 + TypeScript + Vite + Scss + Vue Router + Pinia + Axios
+
+### 安装教程
+1. 推荐使用[pnpm](https://pnpm.io/installation)安装,当前你也可以使用npm、yarn
+2. 安装依赖 ```pnpm install```
+3. 运行项目 ```pnpm dev```
+
+
+### 风格命名
+1. 文件夹名称建议使用kebab-case, 如: hello-world
+2. vue文件建议使用PascalCase, 如: HelloWorld.vue
+
+### 目录说明
+```
+|-- src
+
+ |-- api API接口
+
+ |-- assets 资源目录,如图片、视频等
+ |-- svg-icons svg 雪碧图图标
+
+ |-- components 跨页面公共组件
+
+ |-- pages 项目页面
+ |-- course 页面
+ |-- course-detail 子页面
+
+ |-- shared 公共工具及文件
+ |-- axios axios封装
+ |-- styles 公共样式
+
+ |-- stores 全局状态管理
+
+ --- main.ts 入口文件
+ --- router.ts 路由文件
+```
+
+### 参与贡献
+1. Fork 本仓库
+2. 新建 Feat_xxx 分支
+3. 提交代码
+4. 新建 Pull Request
\ No newline at end of file
diff --git a/web-ui/auto-imports.d.ts b/web-ui/auto-imports.d.ts
new file mode 100644
index 0000000..5e073f1
--- /dev/null
+++ b/web-ui/auto-imports.d.ts
@@ -0,0 +1,6 @@
+// Generated by 'unplugin-auto-import'
+// We suggest you to commit this file into source control
+declare global {
+
+}
+export {}
diff --git a/web-ui/components.d.ts b/web-ui/components.d.ts
new file mode 100644
index 0000000..b6cbf09
--- /dev/null
+++ b/web-ui/components.d.ts
@@ -0,0 +1,16 @@
+// generated by unplugin-vue-components
+// We suggest you to commit this file into source control
+// Read more: https://github.com/vuejs/vue-next/pull/3399
+
+declare module 'vue' {
+ export interface GlobalComponents {
+ AppFooter: typeof import('./src/components/AppFooter.vue')['default']
+ AppHeader: typeof import('./src/components/AppHeader.vue')['default']
+ ElOption: typeof import('element-plus/es')['ElOption']
+ ElSelect: typeof import('element-plus/es')['ElSelect']
+ NavRight: typeof import('./src/components/NavRight.vue')['default']
+ SvgIcon: typeof import('./src/components/SvgIcon.vue')['default']
+ }
+}
+
+export { }
diff --git a/web-ui/deploy/nginx/nginx.conf b/web-ui/deploy/nginx/nginx.conf
new file mode 100644
index 0000000..25960cb
--- /dev/null
+++ b/web-ui/deploy/nginx/nginx.conf
@@ -0,0 +1,117 @@
+worker_processes auto;
+
+error_log /dev/stdout warn;
+
+pid /var/run/nginx.pid;
+
+load_module /etc/nginx/modules/ngx_http_geoip2_module.so;
+
+worker_rlimit_nofile 4096;
+events {
+ use epoll;
+ worker_connections 4096;
+}
+
+http {
+ include /etc/nginx/mime.types;
+
+ geoip2 /etc/nginx/geoip/GeoLite2-Country.mmdb {
+ $geoip2_city_country_code source=$http_true_client_ip country iso_code;
+ $geoip2_city_country_name source=$http_true_client_ip country names en;
+ }
+
+ geoip2 /etc/nginx/geoip/GeoLite2-City.mmdb {
+ $geoip2_city source=$http_true_client_ip city names en;
+ }
+
+ log_format main '[$time_local] "remote_addr": "$remote_addr"'
+ '"x_forwarded_for": "$http_x_forwarded_for"'
+ '"true-client-ip": "$http_true_client_ip"'
+ '"$request"'
+ '"geoip2_city_country_code": "$geoip2_city_country_code"'
+ '"geoip2_city_country_name": "$geoip2_city_country_name"'
+ '"geoip2_city": "$geoip2_city"'
+ '$status $body_bytes_sent "$http_referer" '
+ '"$http_user_agent"';
+
+ access_log /dev/stdout main;
+
+ autoindex off;
+ sendfile on;
+
+ keepalive_timeout 300;
+ keepalive_requests 100;
+ proxy_read_timeout 900;
+ proxy_connect_timeout 60;
+
+ proxy_send_timeout 60;
+ client_header_timeout 60;
+ client_header_buffer_size 1k;
+ large_client_header_buffers 4 64k;
+ client_body_buffer_size 16K;
+ client_body_timeout 60;
+ send_timeout 60;
+ server_tokens off;
+ port_in_redirect off;
+ limit_conn_zone $binary_remote_addr zone=conn_zone:10m;
+ limit_conn_zone $server_name zone=perserver:10m;
+ limit_req_zone global zone=req_zone:1m rate=1000r/s;
+ limit_req_zone $binary_remote_addr zone=event_zone:10m rate=20r/s;
+
+ proxy_request_buffering off;
+ client_max_body_size 50m;
+
+ gzip on;
+ gzip_min_length 1k;
+ gzip_buffers 4 16k;
+ gzip_http_version 1.0;
+ gzip_comp_level 5;
+ gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/javascript application/x-httpd-php application/json;
+ gzip_vary on;
+
+ server {
+ listen 8080;
+ charset utf-8;
+ limit_conn perserver 50;
+ if ($request_method = 'OPTIONS') {
+ return 401;
+ }
+
+ location / {
+ location /assets {
+ # publish every two weeks
+ expires 14d;
+ add_header Cache-Control public;
+ }
+ location / {
+ add_header Cache-Control no-cache;
+ }
+ location /api {
+ proxy_pass https://dsapi.osinfra.cn/;
+ }
+ root /usr/share/nginx/html;
+ index index.html;
+ # error_page 404 /404.html;
+ }
+
+ location ~ ^/(docs-bug) {
+ try_files $uri /index.html;
+ }
+
+ error_page 500 501 502 503 504 505 /500.html;
+ error_page 401 /401.html;
+ error_page 404 /404.html;
+
+ location = /401.html {
+ root /usr/share/nginx/html;
+ }
+
+ location = /404.html {
+ root /usr/share/nginx/html;
+ }
+
+ location = /500.html {
+ root /usr/share/nginx/html;
+ }
+ }
+}
\ No newline at end of file
diff --git a/web-ui/index.html b/web-ui/index.html
new file mode 100644
index 0000000..7120a6e
--- /dev/null
+++ b/web-ui/index.html
@@ -0,0 +1,13 @@
+
+
+