Skip to content

Commit 7819d46

Browse files
committed
initial commit
1 parent 45b19fb commit 7819d46

File tree

12 files changed

+273
-0
lines changed

12 files changed

+273
-0
lines changed

.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not ie <= 8

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[*]
2+
charset = utf-8
3+
indent_style = space
4+
5+
[*.{js,jsx,ts,tsx,vue}]
6+
indent_style = space
7+
indent_size = 2
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
VUE_APP_HOST=
2+
VUE_APP_MN_CONFIG_PREFIX=/api/rest_j/v1/
3+
VUE_APP_MN_CONFIG_SOCKET=/ws/api/entrance/connect

.eslintrc.js

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
'extends': [
7+
'plugin:vue/essential',
8+
'@vue/standard'
9+
],
10+
rules: {
11+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
12+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
13+
'key-spacing': ['error'],
14+
'keyword-spacing': ['error'],
15+
'standard/no-callback-literal': 0,
16+
'handle-callback-err': 0,
17+
'no-return-assign': 0,
18+
'eqeqeq': 0,
19+
'comma-dangle': 0,
20+
'semi': 0,
21+
'space-before-function-paren': 0,
22+
'keyword-spacing': 0,
23+
'no-useless-escape': 0,
24+
'no-invalid-this': 0,
25+
'operator-linebreak': 0,
26+
'indent': [
27+
'error',
28+
4,
29+
{
30+
'SwitchCase': 1
31+
}
32+
],
33+
'no-const-assign': 'warn',
34+
'no-this-before-super': 'warn',
35+
'no-undef': 2,
36+
'no-unreachable': 'warn',
37+
'no-unused-vars': 'warn',
38+
'constructor-super': 'warn',
39+
'valid-typeof': 'warn',
40+
'one-var': 'warn',
41+
'max-len': 'off',
42+
'no-trailing-spaces': 'off',
43+
'require-jsdoc': 'warn',
44+
'camelcase': 'warn',
45+
'no-invalid-this': 'warn',
46+
'linebreak-style': 0,
47+
'vue/no-parsing-error': [2, {
48+
'x-invalid-end-tag': false,
49+
'invalid-first-character-of-tag-name': false
50+
}],
51+
'no-tabs': 0,
52+
'vue/html-indent': [2, 2, {
53+
'attribute': 1,
54+
'closeBracket': 0,
55+
'alignAttributesVertically': false
56+
}],
57+
'vue/require-default-prop': 0,
58+
'vue/component-name-in-template-casing': 0,
59+
'vue/html-closing-bracket-spacing': 0,
60+
'vue/html-closing-bracket-newline': 0,
61+
'vue/singleline-html-element-content-newline': 0,
62+
'vue/multiline-html-element-content-newline': 0,
63+
'vue/attributes-order': 0,
64+
'vue/html-self-closing': 0
65+
},
66+
parserOptions: {
67+
parser: 'babel-eslint'
68+
}
69+
}

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* text=auto
2+
* text eol=lf
3+
*.png binary
4+
*.gif binary

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.DS_Store
2+
.vscode
3+
.cache
4+
.idea/
5+
6+
node_modules/
7+
dist/
8+
9+
.package-lock.json
10+
.env.development

babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/app'
4+
]
5+
}

mock.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module.exports = function (app, Mock) {
2+
}

package.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "dws",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build",
8+
"lint": "vue-cli-service lint",
9+
"fix": "eslint --ext .js,.vue src --fix"
10+
},
11+
"dependencies": {
12+
"axios": "^0.16.2",
13+
"babel-polyfill": "^6.26.0",
14+
"core-js": "^2.6.5",
15+
"dexie": "^2.0.4",
16+
"dt-sql-parser": "^1.1.10",
17+
"highlight.js": "^9.12.0",
18+
"iview": "^3.4.1",
19+
"lodash": "^4.17.10",
20+
"md5": "^2.2.1",
21+
"mitt": "^1.1.3",
22+
"moment": "^2.22.2",
23+
"monaco-editor": "^0.15.1",
24+
"reconnecting-websocket": "^4.1.10",
25+
"sql-formatter": "^2.1.0",
26+
"vue": "^2.6.6",
27+
"vue-router": "^3.0.1",
28+
"vuescroll": "^4.10.5"
29+
},
30+
"devDependencies": {
31+
"@vue/cli-plugin-babel": "^3.8.0",
32+
"@vue/cli-plugin-eslint": "^3.8.0",
33+
"@vue/cli-service": "^3.8.0",
34+
"@vue/eslint-config-standard": "^4.0.0",
35+
"babel-eslint": "^10.0.1",
36+
"copy-webpack-plugin": "^4.5.2",
37+
"eslint": "^5.16.0",
38+
"eslint-config-google": "^0.13.0",
39+
"eslint-plugin-prettier": "^3.1.0",
40+
"eslint-plugin-vue": "^5.0.0",
41+
"monaco-editor-webpack-plugin": "^1.7.0",
42+
"node-sass": "^4.9.0",
43+
"sass-loader": "^7.1.0",
44+
"vue-cli-plugin-mockjs": "^0.1.3",
45+
"vue-template-compiler": "^2.6.10"
46+
}
47+
}

postcss.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
plugins: {
3+
autoprefixer: {}
4+
}
5+
}

0 commit comments

Comments
 (0)