├── .eslintignore
├── .browserslistrc
├── public
├── favicon.ico
└── index.html
├── src
├── assets
│ └── logo.png
├── main.js
├── App.vue
└── components
│ ├── Modal.vue
│ └── EditorCom.vue
├── babel.config.js
├── .editorconfig
├── vue.config.js
├── .gitignore
├── .eslintrc.js
├── .github
└── workflows
│ └── buildAndDeploy.yml
├── README.md
└── package.json
/.eslintignore:
--------------------------------------------------------------------------------
1 | src/components/*
--------------------------------------------------------------------------------
/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not dead
4 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fastTofast/antV-X6-demo/HEAD/public/favicon.ico
--------------------------------------------------------------------------------
/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fastTofast/antV-X6-demo/HEAD/src/assets/logo.png
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | [*.{js,jsx,ts,tsx,vue}]
2 | indent_style = space
3 | indent_size = 2
4 | trim_trailing_whitespace = true
5 | insert_final_newline = true
6 |
--------------------------------------------------------------------------------
/vue.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | outputDir: 'dist',
3 | publicPath: process.env.NODE_ENV === 'production'
4 | ? '/antV-X6-demo/'
5 | : '/'
6 | }
7 |
--------------------------------------------------------------------------------
/src/main.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import App from './App.vue'
3 |
4 | import ElementUI from 'element-ui'
5 | import 'element-ui/lib/theme-chalk/index.css'
6 | Vue.use(ElementUI)
7 | Vue.config.productionTip = false
8 |
9 | new Vue({
10 | render: h => h(App)
11 | }).$mount('#app')
12 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 | .history
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 |
15 | # Editor directories and files
16 | .idea
17 | .vscode
18 | *.suo
19 | *.ntvs*
20 | *.njsproj
21 | *.sln
22 | *.sw?
23 |
--------------------------------------------------------------------------------
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | env: {
4 | node: true
5 | },
6 | extends: [
7 | 'plugin:vue/essential',
8 | '@vue/standard'
9 | ],
10 | parserOptions: {
11 | parser: 'babel-eslint'
12 | },
13 | rules: {
14 | 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
15 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/.github/workflows/buildAndDeploy.yml:
--------------------------------------------------------------------------------
1 | name: buildAndDeploy
2 | on:
3 | push
4 | jobs:
5 | build-and-deploy:
6 | runs-on: ubuntu-latest # 我们选择使用最新的ubuntu系统
7 | steps:
8 | - name: checkout
9 | uses: actions/checkout@master # 将代码拷贝到虚机中
10 |
11 | - name: buildAndDeploy
12 | uses: JamesIves/github-pages-deploy-action@master
13 | env:
14 | ACCESS_TOKEN: ${{ secrets.ACTION_TOKEN }} # 使用刚新建的secret
15 | BRANCH: gh-pages # 存放产物的分支名称
16 | FOLDER: dist # 存放build后产物的目录
17 | BUILD_SCRIPT: npm install && npm run build # 执行的命令
18 |
--------------------------------------------------------------------------------
/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |