feat:1
5
prettier.config.js
Normal file
@ -0,0 +1,5 @@
|
||||
// prettier.config.js
|
||||
module.exports = {
|
||||
plugins: [require('prettier-plugin-tailwindcss')],
|
||||
tailwindConfig: './tailwind.config.js',
|
||||
}
|
6
.env.development
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
# base api
|
||||
VITE_APP_BASE_API = '/api'
|
||||
|
||||
# test base api
|
||||
VITE_APP_BASE_API_TEST = '/api-test'
|
240
.eslintrc.cjs
Normal file
@ -0,0 +1,240 @@
|
||||
/* eslint-env node */
|
||||
require("@rushstack/eslint-patch/modern-module-resolution");
|
||||
|
||||
module.exports = {
|
||||
root: true,
|
||||
extends: [
|
||||
"plugin:vue/vue3-essential",
|
||||
"eslint:recommended",
|
||||
"@vue/eslint-config-typescript",
|
||||
"@vue/eslint-config-prettier",
|
||||
"plugin:prettier/recommended",
|
||||
],
|
||||
parserOptions: {
|
||||
ecmaVersion: "latest",
|
||||
},
|
||||
rules: {
|
||||
// 'prettier/prettier': 'warn',
|
||||
"prettier/prettier": "warn",
|
||||
/** vue相关 **/
|
||||
"vue/html-self-closing": 0,
|
||||
// 单行允许有的attr数量
|
||||
"vue/max-attributes-per-line": [
|
||||
1,
|
||||
{
|
||||
singleline: 10,
|
||||
multiline: 3
|
||||
},
|
||||
],
|
||||
// 关闭子组件必须换行
|
||||
"vue/singleline-html-element-content-newline": "off",
|
||||
"vue/multiline-html-element-content-newline": "off",
|
||||
"vue/component-name-in-template-casing": [
|
||||
2,
|
||||
"kebab-case",
|
||||
{
|
||||
registeredComponentsOnly: false,
|
||||
ignores: [],
|
||||
},
|
||||
],
|
||||
// 组件名称强制为Pascal case
|
||||
"vue/name-property-casing": [2, "PascalCase"],
|
||||
// 对于v-html指令,开启警告
|
||||
"vue/no-v-html": 1,
|
||||
"vue/attributes-order": 0,
|
||||
"vue/mustache-interpolation-spacing": 0,
|
||||
"vue/no-unused-components": 1,
|
||||
/** 变量申明相关 **/
|
||||
// 变量申明要求使用 let 或 const 而不是 var
|
||||
"no-var": 2,
|
||||
// 不允许在块中function、var的申明
|
||||
"no-inner-declarations": [2, "both"],
|
||||
// 变量不强制为camelcase
|
||||
camelcase: 0,
|
||||
// 构造函数首字母必须大写
|
||||
"new-cap": [
|
||||
2,
|
||||
{
|
||||
newIsCap: true,
|
||||
capIsNew: false,
|
||||
},
|
||||
],
|
||||
// 尽量不要出现变量及函数参数定义了不使用的情况
|
||||
"no-unused-vars": [
|
||||
1,
|
||||
{
|
||||
vars: "all",
|
||||
args: "none",
|
||||
},
|
||||
],
|
||||
// 禁止在变量定义之前使用它们
|
||||
"no-use-before-define": 0, // 不检测该类型
|
||||
// 要求所有的 var 声明出现在它们所在的作用域顶部,同时应尽量不要使用var申明变量,用let, const代替
|
||||
"vars-on-top": 2,
|
||||
"no-constant-condition": 1,
|
||||
|
||||
/** 编码风格相关 **/
|
||||
// 不强制结尾分号,为保证代码风格一致性,建议统一不使用分号,但应注意不要混淆多行表达式
|
||||
semi: 0,
|
||||
// 代码缩进为2个空格
|
||||
indent: [
|
||||
1,
|
||||
2,
|
||||
{
|
||||
SwitchCase: 1,
|
||||
},
|
||||
],
|
||||
// 箭头函数的箭头前后应该有空格
|
||||
"arrow-spacing": [
|
||||
2,
|
||||
{
|
||||
before: true,
|
||||
after: true,
|
||||
},
|
||||
],
|
||||
// 花括号风格采用one true brace style
|
||||
"brace-style": [
|
||||
2,
|
||||
"1tbs",
|
||||
{
|
||||
allowSingleLine: true,
|
||||
},
|
||||
],
|
||||
// 禁止空格和 tab 的混合缩进
|
||||
"no-mixed-spaces-and-tabs": 2,
|
||||
// 最大的连续空行限制为2行
|
||||
"no-multiple-empty-lines": [
|
||||
2,
|
||||
{
|
||||
max: 2,
|
||||
},
|
||||
],
|
||||
// 不强制在对象和数组字面量中使用一致的拖尾逗号,但所有的风格应尽量保持统一
|
||||
"comma-dangle": 0,
|
||||
// 逗号后需要跟空格
|
||||
"comma-spacing": [
|
||||
2,
|
||||
{
|
||||
before: false,
|
||||
after: true,
|
||||
},
|
||||
],
|
||||
// 允许在字符串和注释以外用一些不规则的空格,但是整体风格应尽量保持统一
|
||||
"no-irregular-whitespace": 0,
|
||||
// 逗号应该在语句后面
|
||||
"comma-style": [2, "last"],
|
||||
// 强制所有控制语句花括号不能省略
|
||||
curly: [2, "all"],
|
||||
// 要求 switch 语句中必须有 default 分支,或者有 // no default 注释
|
||||
"default-case": 2,
|
||||
// 禁止switch的case语句不break、return等结尾,若有意为之,请添加 // no break 类似注释语句
|
||||
"no-fallthrough": [
|
||||
2,
|
||||
{
|
||||
commentPattern: "no[\\s\\w]*break",
|
||||
},
|
||||
],
|
||||
// 不允许使用带标签的break,continue等语句
|
||||
"no-labels": 2,
|
||||
// 换行符应该在成员表达式中的点之前
|
||||
"dot-location": [2, "property"],
|
||||
// 对象属性访问不强制使用点操作符,如 foo["bar"]
|
||||
"dot-notation": 0,
|
||||
// 除null外,对比时强制要求使用 === 和 !==
|
||||
eqeqeq: [
|
||||
1,
|
||||
"always",
|
||||
{
|
||||
null: "ignore",
|
||||
},
|
||||
],
|
||||
// 禁止在函数标识符和其调用之间有空格
|
||||
"func-call-spacing": [2, "never"],
|
||||
// JSX 属性值强制使用双引号
|
||||
"jsx-quotes": [2, "prefer-double"],
|
||||
// 对象字面量属性冒号前不能有空格,冒号后必须跟空格
|
||||
"key-spacing": [
|
||||
2,
|
||||
{
|
||||
beforeColon: false,
|
||||
afterColon: true,
|
||||
},
|
||||
],
|
||||
// if else for 等关键字前后必须跟空格
|
||||
"keyword-spacing": [
|
||||
2,
|
||||
{
|
||||
before: true,
|
||||
after: true,
|
||||
},
|
||||
],
|
||||
// 强制 getter 和 setter 在对象中成对出现
|
||||
"accessor-pairs": 2,
|
||||
// 不应该使用构造函数来构造新Array数组
|
||||
"no-array-constructor": 2,
|
||||
// 尽量不要使用arguments.caller和arguments.callee
|
||||
"no-caller": 1,
|
||||
// 不得对变量使用delete
|
||||
"no-delete-var": 2,
|
||||
// 禁止重复模块导入
|
||||
"no-duplicate-imports": 2,
|
||||
// 出现空函数告警,如果确实需要,函数体中可以加上注释
|
||||
"no-empty-function": 1,
|
||||
// 禁止使用空解构模式,如 const {a: {}} = foo;
|
||||
"no-empty-pattern": 2,
|
||||
// 禁止使用 eval()
|
||||
"no-eval": 2,
|
||||
// 禁止使用类似 eval() 的方法,如 setTimeout("alert('Hi!');", 100)
|
||||
"no-implied-eval": 2,
|
||||
// 禁止对 Function 对象使用 new 操作符,原因与eval相同
|
||||
"no-new-func": 2,
|
||||
// 禁用 with 语句
|
||||
"no-with": 2,
|
||||
// 允许强制转换变量为boolean类型,如 !!bar,但是很多情况没有必要
|
||||
"no-extra-boolean-cast": 0,
|
||||
// 禁止数字字面量中使用前导和末尾小数点,如 .5, 2., -.7等
|
||||
"no-floating-decimal": 2,
|
||||
// 禁止使用 __iterator__ 属性
|
||||
"no-iterator": 2,
|
||||
// 不允许使用 new require表达式
|
||||
"no-new-require": 2,
|
||||
// 禁止对 __dirname 和 __filename 进行字符串连接,应该用path.join等方法代替
|
||||
"no-path-concat": 2,
|
||||
// 关闭禁止直接调用 Object.prototypes 的内置属性规则
|
||||
"no-prototype-builtins": 0,
|
||||
// 不允许字符串文字中的八进制转义序列,如 "abc \234"
|
||||
"no-octal-escape": 2,
|
||||
// 不允许使用 __proto__ 属性,应该用Object.getPrototypeOf和Object.setPrototypeOf方法代替
|
||||
"no-proto": 2,
|
||||
// 不允许在return语句中使用赋值运算符,如 return foo = bar + 2;
|
||||
"no-return-assign": [2, "always"],
|
||||
// 尽量不要在常规字符串中出现模板字面量占位符语法
|
||||
"no-template-curly-in-string": 1,
|
||||
// 尽量不要在 return、throw、continue 和 break 语句后出现不可达代码
|
||||
"no-unreachable": 1,
|
||||
// 尽量少地在对象中使用不必要的计算属性
|
||||
"no-useless-computed-key": 1,
|
||||
// 尽量不要使用没有意义的构造函数,如空的构造函数
|
||||
"no-useless-constructor": 1,
|
||||
// 尽量不要使用没必要的字符转义
|
||||
"no-useless-escape": 1,
|
||||
// 如果对象的属性位于同一行上,则不允许围绕点或在开头括号之前留出空白
|
||||
"no-whitespace-before-property": 2,
|
||||
// 使用 symbol 时必须有描述
|
||||
"symbol-description": 2,
|
||||
// 不限制使用console,但是在生成环境应该尽量删除
|
||||
"no-console": 0,
|
||||
// 不允许在生产环境的代码中有alert、confirm 和 prompt
|
||||
"no-alert": process.env.NODE_ENV === "production" ? 2 : 0,
|
||||
// 不允许在生产环境的代码中有debugger
|
||||
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
|
||||
|
||||
// 禁止解析闭合标签 x-invalid-end-tag 报错
|
||||
"no-parsing-error": [
|
||||
2,
|
||||
{
|
||||
"x-invalid-end-tag": false,
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
28
.gitignore
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
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?
|
23
.prettierrc.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"printWidth": 80,
|
||||
"useTabs": false,
|
||||
"tabWidth": 2,
|
||||
"proseWrap": "preserve",
|
||||
"endOfLine": "auto",
|
||||
"semi": false,
|
||||
"singleQuote": true,
|
||||
"quoteProps": "as-needed",
|
||||
"jsxSingleQuote": false,
|
||||
"trailingComma": "es5",
|
||||
"bracketSpacing": true,
|
||||
"jsxBracketSameLine": false,
|
||||
"arrowParens": "avoid",
|
||||
"overrides": [
|
||||
{
|
||||
"files": "*.scss",
|
||||
"options": {
|
||||
"semi": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
93
README.md
Normal file
@ -0,0 +1,93 @@
|
||||
# TS可视化
|
||||
|
||||
|
||||
|
||||
## Getting started
|
||||
|
||||
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
||||
|
||||
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
||||
|
||||
## Add your files
|
||||
|
||||
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
||||
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
||||
|
||||
```
|
||||
cd existing_repo
|
||||
git remote add origin http://yhm.ink/ddtj/ts.git
|
||||
git branch -M main
|
||||
git push -uf origin main
|
||||
```
|
||||
|
||||
## Integrate with your tools
|
||||
|
||||
- [ ] [Set up project integrations](http://yhm.ink/ddtj/ts/-/settings/integrations)
|
||||
|
||||
## Collaborate with your team
|
||||
|
||||
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
||||
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
||||
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
||||
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
||||
- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
||||
|
||||
## Test and Deploy
|
||||
|
||||
Use the built-in continuous integration in GitLab.
|
||||
|
||||
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
||||
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
||||
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
||||
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
||||
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
||||
|
||||
***
|
||||
|
||||
# Editing this README
|
||||
|
||||
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
||||
|
||||
## Suggestions for a good README
|
||||
|
||||
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
||||
|
||||
## Name
|
||||
Choose a self-explaining name for your project.
|
||||
|
||||
## Description
|
||||
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
||||
|
||||
## Badges
|
||||
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
||||
|
||||
## Visuals
|
||||
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
||||
|
||||
## Installation
|
||||
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
||||
|
||||
## Usage
|
||||
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
||||
|
||||
## Support
|
||||
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
||||
|
||||
## Roadmap
|
||||
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
||||
|
||||
## Contributing
|
||||
State if you are open to contributions and what your requirements are for accepting them.
|
||||
|
||||
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
||||
|
||||
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
||||
|
||||
## Authors and acknowledgment
|
||||
Show your appreciation to those who have contributed to the project.
|
||||
|
||||
## License
|
||||
For open source projects, say how it is licensed.
|
||||
|
||||
## Project status
|
||||
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
60
auto-imports.d.ts
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
// Generated by 'unplugin-auto-import'
|
||||
export {}
|
||||
declare global {
|
||||
const EffectScope: typeof import('vue')['EffectScope']
|
||||
const computed: typeof import('vue')['computed']
|
||||
const createApp: typeof import('vue')['createApp']
|
||||
const customRef: typeof import('vue')['customRef']
|
||||
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
|
||||
const defineComponent: typeof import('vue')['defineComponent']
|
||||
const effectScope: typeof import('vue')['effectScope']
|
||||
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
|
||||
const getCurrentScope: typeof import('vue')['getCurrentScope']
|
||||
const h: typeof import('vue')['h']
|
||||
const inject: typeof import('vue')['inject']
|
||||
const isProxy: typeof import('vue')['isProxy']
|
||||
const isReactive: typeof import('vue')['isReactive']
|
||||
const isReadonly: typeof import('vue')['isReadonly']
|
||||
const isRef: typeof import('vue')['isRef']
|
||||
const markRaw: typeof import('vue')['markRaw']
|
||||
const nextTick: typeof import('vue')['nextTick']
|
||||
const onActivated: typeof import('vue')['onActivated']
|
||||
const onBeforeMount: typeof import('vue')['onBeforeMount']
|
||||
const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
|
||||
const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
|
||||
const onDeactivated: typeof import('vue')['onDeactivated']
|
||||
const onErrorCaptured: typeof import('vue')['onErrorCaptured']
|
||||
const onMounted: typeof import('vue')['onMounted']
|
||||
const onRenderTracked: typeof import('vue')['onRenderTracked']
|
||||
const onRenderTriggered: typeof import('vue')['onRenderTriggered']
|
||||
const onScopeDispose: typeof import('vue')['onScopeDispose']
|
||||
const onServerPrefetch: typeof import('vue')['onServerPrefetch']
|
||||
const onUnmounted: typeof import('vue')['onUnmounted']
|
||||
const onUpdated: typeof import('vue')['onUpdated']
|
||||
const provide: typeof import('vue')['provide']
|
||||
const reactive: typeof import('vue')['reactive']
|
||||
const readonly: typeof import('vue')['readonly']
|
||||
const ref: typeof import('vue')['ref']
|
||||
const resolveComponent: typeof import('vue')['resolveComponent']
|
||||
const resolveDirective: typeof import('vue')['resolveDirective']
|
||||
const shallowReactive: typeof import('vue')['shallowReactive']
|
||||
const shallowReadonly: typeof import('vue')['shallowReadonly']
|
||||
const shallowRef: typeof import('vue')['shallowRef']
|
||||
const toRaw: typeof import('vue')['toRaw']
|
||||
const toRef: typeof import('vue')['toRef']
|
||||
const toRefs: typeof import('vue')['toRefs']
|
||||
const triggerRef: typeof import('vue')['triggerRef']
|
||||
const unref: typeof import('vue')['unref']
|
||||
const useAttrs: typeof import('vue')['useAttrs']
|
||||
const useCssModule: typeof import('vue')['useCssModule']
|
||||
const useCssVars: typeof import('vue')['useCssVars']
|
||||
const useDialog: typeof import('naive-ui')['useDialog']
|
||||
const useLoadingBar: typeof import('naive-ui')['useLoadingBar']
|
||||
const useMessage: typeof import('naive-ui')['useMessage']
|
||||
const useNotification: typeof import('naive-ui')['useNotification']
|
||||
const useSlots: typeof import('vue')['useSlots']
|
||||
const watch: typeof import('vue')['watch']
|
||||
const watchEffect: typeof import('vue')['watchEffect']
|
||||
const watchPostEffect: typeof import('vue')['watchPostEffect']
|
||||
const watchSyncEffect: typeof import('vue')['watchSyncEffect']
|
||||
}
|
77
components.d.ts
vendored
Normal file
@ -0,0 +1,77 @@
|
||||
// generated by unplugin-vue-components
|
||||
// We suggest you to commit this file into source control
|
||||
// Read more: https://github.com/vuejs/core/pull/3399
|
||||
import '@vue/runtime-core'
|
||||
|
||||
export {}
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
export interface GlobalComponents {
|
||||
AboutView: typeof import('./src/components/AboutView.vue')['default']
|
||||
Collapse: typeof import('./src/components/Collapse/index.vue')['default']
|
||||
copy: typeof import('./src/components/Message copy/index.vue')['default']
|
||||
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
|
||||
HomeView: typeof import('./src/components/HomeView.vue')['default']
|
||||
IconCommunity: typeof import('./src/components/icons/IconCommunity.vue')['default']
|
||||
IconDocumentation: typeof import('./src/components/icons/IconDocumentation.vue')['default']
|
||||
IconEcosystem: typeof import('./src/components/icons/IconEcosystem.vue')['default']
|
||||
IconSupport: typeof import('./src/components/icons/IconSupport.vue')['default']
|
||||
IconTooling: typeof import('./src/components/icons/IconTooling.vue')['default']
|
||||
Index1: typeof import('./src/components/Panel/index1.vue')['default']
|
||||
Index2: typeof import('./src/components/Panel/index2.vue')['default']
|
||||
Index3: typeof import('./src/components/Panel/index3.vue')['default']
|
||||
List: typeof import('./src/components/List/index.vue')['default']
|
||||
Message: typeof import('./src/components/Message/index.vue')['default']
|
||||
Modal: typeof import('./src/components/Modal/index.vue')['default']
|
||||
Nav: typeof import('./src/components/Nav/index.vue')['default']
|
||||
NButton: typeof import('naive-ui')['NButton']
|
||||
NButtonGroup: typeof import('naive-ui')['NButtonGroup']
|
||||
NCheckbox: typeof import('naive-ui')['NCheckbox']
|
||||
NCheckboxGroup: typeof import('naive-ui')['NCheckboxGroup']
|
||||
NCollapse: typeof import('naive-ui')['NCollapse']
|
||||
NCollapseItem: typeof import('naive-ui')['NCollapseItem']
|
||||
NColorPicker: typeof import('naive-ui')['NColorPicker']
|
||||
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
|
||||
NDataTable: typeof import('naive-ui')['NDataTable']
|
||||
NDatePicker: typeof import('naive-ui')['NDatePicker']
|
||||
NDivider: typeof import('naive-ui')['NDivider']
|
||||
NEllipsi: typeof import('naive-ui')['NEllipsi']
|
||||
NEllipsis: typeof import('naive-ui')['NEllipsis']
|
||||
NEmpty: typeof import('naive-ui')['NEmpty']
|
||||
NForm: typeof import('naive-ui')['NForm']
|
||||
NFormItem: typeof import('naive-ui')['NFormItem']
|
||||
NGi: typeof import('naive-ui')['NGi']
|
||||
NGrid: typeof import('naive-ui')['NGrid']
|
||||
NIcon: typeof import('naive-ui')['NIcon']
|
||||
NIconWrapper: typeof import('naive-ui')['NIconWrapper']
|
||||
NImage: typeof import('naive-ui')['NImage']
|
||||
NImageGroup: typeof import('naive-ui')['NImageGroup']
|
||||
NInput: typeof import('naive-ui')['NInput']
|
||||
NInputGroup: typeof import('naive-ui')['NInputGroup']
|
||||
NInputNumber: typeof import('naive-ui')['NInputNumber']
|
||||
NMessageProvider: typeof import('naive-ui')['NMessageProvider']
|
||||
NModal: typeof import('naive-ui')['NModal']
|
||||
NNotificationProvider: typeof import('naive-ui')['NNotificationProvider']
|
||||
Notification: typeof import('./src/components/Notification/index.vue')['default']
|
||||
NRadio: typeof import('naive-ui')['NRadio']
|
||||
NRadioButton: typeof import('naive-ui')['NRadioButton']
|
||||
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
|
||||
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
||||
NScroller: typeof import('naive-ui')['NScroller']
|
||||
NSelect: typeof import('naive-ui')['NSelect']
|
||||
NSlider: typeof import('naive-ui')['NSlider']
|
||||
NSpace: typeof import('naive-ui')['NSpace']
|
||||
NSwitch: typeof import('naive-ui')['NSwitch']
|
||||
NTabPane: typeof import('naive-ui')['NTabPane']
|
||||
NTabs: typeof import('naive-ui')['NTabs']
|
||||
NTree: typeof import('naive-ui')['NTree']
|
||||
Page: typeof import('./src/components/Page/index.vue')['default']
|
||||
Panel: typeof import('./src/components/Panel/index.vue')['default']
|
||||
RouterLink: typeof import('vue-router')['RouterLink']
|
||||
RouterView: typeof import('vue-router')['RouterView']
|
||||
Tabs: typeof import('./src/components/Tabs/index.vue')['default']
|
||||
TheWelcome: typeof import('./src/components/TheWelcome.vue')['default']
|
||||
Tree: typeof import('./src/components/Tree/index.vue')['default']
|
||||
WelcomeItem: typeof import('./src/components/WelcomeItem.vue')['default']
|
||||
}
|
||||
}
|
25
index.html
Normal file
@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<!-- <script src="baseConfig.js"></script> -->
|
||||
<!-- <script src="GV/thirdParty/thirdParty.js"></script> -->
|
||||
<!-- <script src="GV/GEOVIS.web.js"></script> -->
|
||||
<script src="baseConfig.js"></script>
|
||||
|
||||
<!-- <link href="GV/thirdParty/CesiumManager/Widgets/widgets.css" /> -->
|
||||
<script src="js/Cesium/Cesium.js"></script>
|
||||
<link rel="stylesheet" href="js/Cesium/Widgets/widgets.css" />
|
||||
|
||||
<script src="js/cesium-sensor-volumes.js"></script>
|
||||
|
||||
<title>Vite App</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
</html>
|
18716
package-lock.json
generated
Normal file
65
package.json
Normal file
@ -0,0 +1,65 @@
|
||||
{
|
||||
"name": "page_customize",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "run-p type-check build-only",
|
||||
"preview": "vite preview",
|
||||
"build-only": "vite build",
|
||||
"type-check": "vue-tsc --noEmit",
|
||||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
|
||||
},
|
||||
"dependencies": {
|
||||
"@cesium-extends/drawer": "^1.3.6",
|
||||
"@cesium-extends/heat": "^1.0.3",
|
||||
"@cesium-extends/subscriber": "^1.1.0",
|
||||
"@turf/turf": "^7.1.0",
|
||||
"@vueuse/core": "^9.9.0",
|
||||
"@wenrenfangge/cesium-draw": "^1.0.4",
|
||||
"axios": "^1.2.1",
|
||||
"cesium": "^1.123.0",
|
||||
"chroma-js": "^3.1.2",
|
||||
"dayjs": "^1.11.13",
|
||||
"echarts": "^5.5.1",
|
||||
"lodash": "^4.17.21",
|
||||
"normalize.css": "^8.0.1",
|
||||
"pinia": "^2.0.28",
|
||||
"satellite.js": "^5.0.0",
|
||||
"seemly": "^0.3.9",
|
||||
"v-viewer": "^3.0.21",
|
||||
"viewerjs": "^1.11.7",
|
||||
"vue": "^3.2.45",
|
||||
"vue-draggable-plus": "^0.5.6",
|
||||
"vue-router": "^4.1.6",
|
||||
"vue3-seamless-scroll": "^2.0.1",
|
||||
"wkt-parser-helper": "^4.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rushstack/eslint-patch": "^1.1.4",
|
||||
"@types/node": "^18.11.12",
|
||||
"@vicons/ionicons5": "^0.12.0",
|
||||
"@vicons/tabler": "^0.12.0",
|
||||
"@vitejs/plugin-legacy": "^4.0.1",
|
||||
"@vitejs/plugin-vue": "^4.0.0",
|
||||
"@vue/eslint-config-prettier": "^7.0.0",
|
||||
"@vue/eslint-config-typescript": "^11.0.0",
|
||||
"@vue/tsconfig": "^0.1.3",
|
||||
"autoprefixer": "^10.4.13",
|
||||
"eslint": "^8.22.0",
|
||||
"eslint-plugin-vue": "^9.3.0",
|
||||
"naive-ui": "^2.34.3",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"postcss": "^8.4.21",
|
||||
"prettier": "^2.8.4",
|
||||
"prettier-plugin-tailwindcss": "^0.2.3",
|
||||
"sass": "^1.57.1",
|
||||
"tailwindcss": "^3.2.7",
|
||||
"typescript": "~4.7.4",
|
||||
"unplugin-auto-import": "^0.12.1",
|
||||
"unplugin-vue-components": "^0.22.12",
|
||||
"vite": "^4.0.0",
|
||||
"vite-plugin-windicss": "^1.8.10",
|
||||
"vue-tsc": "^1.0.12"
|
||||
}
|
||||
}
|
6
postcss.config.js
Normal file
@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
autoprefixer: {},
|
||||
},
|
||||
}
|
25661
public/GV/GEOVIS.d.ts
vendored
Normal file
1
public/GV/GEOVIS.web.js
Normal file
9095
public/GV/cesium.d.ts
vendored
Normal file
3
public/GV/config/analysisUrl.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"serverUrl": "http://192.168.20.207:8251/spatialanalysis/"
|
||||
}
|
25
public/GV/config/jbconfig.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"baseUrl": "http://localhost:8202/api/jb/",
|
||||
"offset": {
|
||||
"10-2800-0": {
|
||||
"x": 178.5,
|
||||
"y": -217
|
||||
},
|
||||
"10-2802-0": {
|
||||
"x": 178.5,
|
||||
"y": -217.5
|
||||
},
|
||||
"10-2803-0": {
|
||||
"x": 140.5,
|
||||
"y": -200.5
|
||||
},
|
||||
"10-300-0": {
|
||||
"x": 0,
|
||||
"y": 72.5
|
||||
},
|
||||
"10-800-0": {
|
||||
"x": 0,
|
||||
"y": -180.5
|
||||
}
|
||||
}
|
||||
}
|
3368
public/GV/config/placenameStyle.json
Normal file
5
public/GV/config/register.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"url": "http://192.168.10.208:8610/api/v1/licence/status2?productName=iexplorer_112&moduleName=sdk",
|
||||
"socketUrl": "ws://192.168.10.208:8610/verify/iexplorer/sdk",
|
||||
"betaIdentity": "buildiesdkfortestkey"
|
||||
}
|
BIN
public/GV/resources/clounds/1.png
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
public/GV/resources/clounds/5.png
Normal file
After Width: | Height: | Size: 114 KiB |
BIN
public/GV/resources/clounds/6.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
public/GV/resources/clounds/cumuloniumbus.png
Normal file
After Width: | Height: | Size: 8.9 KiB |
BIN
public/GV/resources/image/Height.png
Normal file
After Width: | Height: | Size: 359 B |
BIN
public/GV/resources/image/JPlace/capital.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
public/GV/resources/image/JPlace/chengzhen.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
public/GV/resources/image/JPlace/shenghui.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
public/GV/resources/image/MoonBackGroundImg.jpg
Normal file
After Width: | Height: | Size: 314 KiB |
BIN
public/GV/resources/image/Move.png
Normal file
After Width: | Height: | Size: 618 B |
BIN
public/GV/resources/image/RotateX.png
Normal file
After Width: | Height: | Size: 530 B |
BIN
public/GV/resources/image/RotateY.png
Normal file
After Width: | Height: | Size: 556 B |
BIN
public/GV/resources/image/RotateZ.png
Normal file
After Width: | Height: | Size: 594 B |
BIN
public/GV/resources/image/Scale.png
Normal file
After Width: | Height: | Size: 710 B |
BIN
public/GV/resources/image/arrow-down.png
Normal file
After Width: | Height: | Size: 310 B |
BIN
public/GV/resources/image/arrow-left.png
Normal file
After Width: | Height: | Size: 260 B |
BIN
public/GV/resources/image/arrow-right.png
Normal file
After Width: | Height: | Size: 300 B |
BIN
public/GV/resources/image/arrow-up.png
Normal file
After Width: | Height: | Size: 325 B |
BIN
public/GV/resources/image/arrow.png
Normal file
After Width: | Height: | Size: 678 B |
BIN
public/GV/resources/image/circular_particle.png
Normal file
After Width: | Height: | Size: 975 B |
1
public/GV/resources/image/cluster.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 114.65 113.55"><defs><style>.cls-1{fill:#4091ff;}.cls-10,.cls-11,.cls-12,.cls-2,.cls-3,.cls-4,.cls-6,.cls-7,.cls-8{fill:none;stroke-miterlimit:10;}.cls-2,.cls-3,.cls-4{stroke-width:5.29px;}.cls-2{stroke:url(#未命名的渐变_72);}.cls-3{stroke:url(#未命名的渐变_72-2);}.cls-4{stroke:url(#未命名的渐变_72-3);}.cls-5{opacity:0.2;}.cls-6,.cls-7,.cls-8{stroke-width:11.59px;}.cls-6{stroke:url(#未命名的渐变_71);}.cls-7{stroke:url(#未命名的渐变_71-2);}.cls-8{stroke:url(#未命名的渐变_71-3);}.cls-9{opacity:0.61;}.cls-10,.cls-11,.cls-12{stroke-width:7.16px;}.cls-10{stroke:url(#未命名的渐变_38);}.cls-11{stroke:url(#未命名的渐变_38-2);}.cls-12{stroke:url(#未命名的渐变_38-3);}.cls-13{font-size:24px;fill:#fff;font-family:MicrosoftYaHei, Microsoft YaHei;}</style><radialGradient id="未命名的渐变_72" cx="75.68" cy="69.53" r="16.09" gradientTransform="translate(0 -69.53) scale(1 2)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#4091ff"/><stop offset="1" stop-color="#187fc4" stop-opacity="0.1"/></radialGradient><radialGradient id="未命名的渐变_72-2" cx="56.81" cy="32.44" r="16.8" gradientTransform="translate(0 -32.44) scale(1 2)" xlink:href="#未命名的渐变_72"/><radialGradient id="未命名的渐变_72-3" cx="38.04" cy="68.73" r="15.88" gradientTransform="translate(0 -68.73) scale(1 2)" xlink:href="#未命名的渐变_72"/><radialGradient id="未命名的渐变_71" cx="90.47" cy="79.89" r="29.31" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#4091ff"/><stop offset="0.9" stop-color="#187fc4" stop-opacity="0"/><stop offset="1" stop-color="#197fc5" stop-opacity="0"/></radialGradient><radialGradient id="未命名的渐变_71-2" cx="56.38" cy="13.2" r="30.65" xlink:href="#未命名的渐变_71"/><radialGradient id="未命名的渐变_71-3" cx="22.56" cy="78.43" r="28.95" xlink:href="#未命名的渐变_71"/><radialGradient id="未命名的渐变_38" cx="82.2" cy="74.05" r="21.81" gradientTransform="translate(0 -74.05) scale(1 2)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#4091ff"/><stop offset="0.9" stop-color="#187fc4" stop-opacity="0"/></radialGradient><radialGradient id="未命名的渐变_38-2" cx="56.62" cy="23.78" r="22.76" gradientTransform="translate(0 -23.78) scale(1 2)" xlink:href="#未命名的渐变_38"/><radialGradient id="未命名的渐变_38-3" cx="31.19" cy="72.95" r="21.53" gradientTransform="translate(0 -72.95) scale(1 2)" xlink:href="#未命名的渐变_38"/></defs><title>24资源 3</title><g id="图层_2" data-name="图层 2"><g id="图层_1-2" data-name="图层 1"><circle class="cls-1" cx="57.32" cy="56.83" r="21.94"/><path class="cls-2" d="M85.7,51.51A29,29,0,0,1,63,85.47"/><path class="cls-3" d="M36,37.55a28.93,28.93,0,0,1,41.66-1"/><path class="cls-4" d="M49.62,85A28.93,28.93,0,0,1,29.16,50.52"/><g class="cls-5"><path class="cls-6" d="M107.89,47.35a51.57,51.57,0,0,1-40.48,60.52"/><path class="cls-7" d="M19.37,22.47a51.53,51.53,0,0,1,74.22-1.76"/><path class="cls-8" d="M43.59,107A51.58,51.58,0,0,1,7.14,45.58"/></g><g class="cls-9"><path class="cls-10" d="M95.79,49.62A39.27,39.27,0,0,1,65,95.65"/><path class="cls-11" d="M28.45,30.7a39.2,39.2,0,0,1,56.46-1.34"/><path class="cls-12" d="M46.88,95A39.26,39.26,0,0,1,19.15,48.27"/></g><text class="cls-13" transform="translate(36.21 64.06)">100</text></g></g></svg>
|
After Width: | Height: | Size: 3.4 KiB |
BIN
public/GV/resources/image/dash.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
public/GV/resources/image/defenseEllipsoid.jpg
Normal file
After Width: | Height: | Size: 9.7 KiB |
BIN
public/GV/resources/image/excavate_bottom_min.jpg
Normal file
After Width: | Height: | Size: 464 KiB |
BIN
public/GV/resources/image/excavate_side_min.jpg
Normal file
After Width: | Height: | Size: 86 KiB |
BIN
public/GV/resources/image/eye.png
Normal file
After Width: | Height: | Size: 105 KiB |
BIN
public/GV/resources/image/facility.gif
Normal file
After Width: | Height: | Size: 179 B |
BIN
public/GV/resources/image/fire.png
Normal file
After Width: | Height: | Size: 756 KiB |
BIN
public/GV/resources/image/globe.jpg
Normal file
After Width: | Height: | Size: 172 KiB |
BIN
public/GV/resources/image/noise.jpg
Normal file
After Width: | Height: | Size: 388 KiB |
BIN
public/GV/resources/image/remove.png
Normal file
After Width: | Height: | Size: 292 B |
BIN
public/GV/resources/image/scan.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
public/GV/resources/image/smoke.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
BIN
public/GV/resources/image/specialLine/ArrowOpacity.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
public/GV/resources/image/specialLine/ArrowTransparent.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
public/GV/resources/image/specialLine/DataTransLine.png
Normal file
After Width: | Height: | Size: 65 KiB |
BIN
public/GV/resources/image/specialLine/DotTransparent.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
public/GV/resources/image/specialLine/LinkPulse.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
public/GV/resources/image/specialLine/LinkPulse_副本.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
public/GV/resources/image/specialLine/LinkTrail.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
public/GV/resources/image/specialLine/Trail.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
public/GV/resources/image/specialLine/Trail1.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
public/GV/resources/image/specialLine/alpha.png
Normal file
After Width: | Height: | Size: 403 B |
BIN
public/GV/resources/image/specialLine/ironbar.png
Normal file
After Width: | Height: | Size: 626 B |
BIN
public/GV/resources/image/specialLine/wirenetting.png
Normal file
After Width: | Height: | Size: 787 B |
BIN
public/GV/resources/image/tuodong.png
Normal file
After Width: | Height: | Size: 527 B |
BIN
public/GV/resources/image/旋转.png
Normal file
After Width: | Height: | Size: 954 B |
BIN
public/GV/resources/localscene/1.jpg
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
public/GV/resources/localscene/1.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
public/GV/resources/localscene/MarkParticle.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
public/GV/resources/localscene/WaterN_Thing2.jpg
Normal file
After Width: | Height: | Size: 428 KiB |
BIN
public/GV/resources/localscene/Water_1_M_Normal.jpg
Normal file
After Width: | Height: | Size: 397 KiB |
BIN
public/GV/resources/localscene/Water_2_M_Normal.jpg
Normal file
After Width: | Height: | Size: 428 KiB |
BIN
public/GV/resources/localscene/base2Particle.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
public/GV/resources/localscene/continuity_yellow_01.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
public/GV/resources/localscene/earthspec1k.jpg
Normal file
After Width: | Height: | Size: 114 KiB |
BIN
public/GV/resources/localscene/g_1_t_0.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
public/GV/resources/localscene/g_1_w_1.png
Normal file
After Width: | Height: | Size: 70 KiB |
BIN
public/GV/resources/localscene/g_1_w_8.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
public/GV/resources/localscene/gradual_change_red.png
Normal file
After Width: | Height: | Size: 745 B |
BIN
public/GV/resources/localscene/grasslight-big.jpg
Normal file
After Width: | Height: | Size: 2.5 MiB |
BIN
public/GV/resources/localscene/icon.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
public/GV/resources/localscene/lightFlow_strip.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
public/GV/resources/localscene/lightFlow_strip07.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
public/GV/resources/localscene/lightray.jpg
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
public/GV/resources/localscene/lightray_yellow.jpg
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
public/GV/resources/localscene/mesh.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
public/GV/resources/localscene/particles.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
public/GV/resources/localscene/raindrop2flip.png
Normal file
After Width: | Height: | Size: 667 B |
BIN
public/GV/resources/localscene/refraction.jpg
Normal file
After Width: | Height: | Size: 220 KiB |
BIN
public/GV/resources/localscene/smokeparticle.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
public/GV/resources/localscene/snowflake.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
public/GV/resources/localscene/spark.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
public/GV/resources/localscene/spikey.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
public/GV/resources/localscene/star.png
Normal file
After Width: | Height: | Size: 380 B |
BIN
public/GV/resources/localscene/top.jpg
Normal file
After Width: | Height: | Size: 75 KiB |
BIN
public/GV/resources/localscene/track.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
public/GV/resources/localscene/waterN_Thing.jpg
Normal file
After Width: | Height: | Size: 243 KiB |
BIN
public/GV/resources/localscene/waternormals.jpg
Normal file
After Width: | Height: | Size: 243 KiB |