Skip to content

Commit 142aa29

Browse files
committed
complete product change page
0 parents  commit 142aa29

File tree

116 files changed

+17447
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+17447
-0
lines changed

.browserslistrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not dead

.editorconfig

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# http://editorconfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
# Indentation override for js(x), ts(x) and vue files
14+
[*.{js,jsx,ts,tsx,vue}]
15+
indent_size = 2
16+
indent_style = space
17+
18+
# Indentation override for css related files
19+
[*.{css,styl,scss,less,sass}]
20+
indent_size = 2
21+
indent_style = space
22+
23+
# Indentation override for html files
24+
[*.html]
25+
indent_size = 2
26+
indent_style = space
27+
28+
# Trailing space override for markdown file
29+
[*.md]
30+
trim_trailing_whitespace = false
31+
32+
# Indentation override for config files
33+
[*.{json,yml}]
34+
indent_size = 2
35+
indent_style = space

.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VUE_APP_BASE_API = 'https://vue-typescript-admin-mock-server-armour.vercel.app/mock-api/v1/'

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist/*.js
2+
src/assets
3+
tests/unit/coverage

.eslintrc.js

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
extends: [
7+
'plugin:vue/essential',
8+
'@vue/standard',
9+
'@vue/typescript/recommended'
10+
],
11+
parserOptions: {
12+
ecmaVersion: 2020
13+
},
14+
rules: {
15+
'@typescript-eslint/ban-types': 'off',
16+
'@typescript-eslint/explicit-module-boundary-types': 'off',
17+
'@typescript-eslint/member-delimiter-style': ['error',
18+
{
19+
multiline: {
20+
delimiter: 'none'
21+
},
22+
singleline: {
23+
delimiter: 'comma'
24+
}
25+
}],
26+
'@typescript-eslint/no-explicit-any': 'off',
27+
'@typescript-eslint/no-var-requires': 'off',
28+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
29+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
30+
'space-before-function-paren': ['error', 'never'],
31+
'vue/array-bracket-spacing': 'error',
32+
'vue/arrow-spacing': 'error',
33+
'vue/block-spacing': 'error',
34+
'vue/brace-style': 'error',
35+
'vue/camelcase': 'error',
36+
'vue/comma-dangle': 'error',
37+
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
38+
'vue/eqeqeq': 'error',
39+
'vue/key-spacing': 'error',
40+
'vue/match-component-file-name': 'error',
41+
'vue/object-curly-spacing': 'error'
42+
},
43+
overrides: [
44+
{
45+
files: [
46+
'**/__tests__/*.{j,t}s?(x)',
47+
'**/tests/unit/**/*.spec.{j,t}s?(x)'
48+
],
49+
env: {
50+
jest: true
51+
}
52+
}
53+
]
54+
}

.gitignore

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
/tests/e2e/videos/
6+
/tests/e2e/screenshots/
7+
/tests/**/coverage/
8+
9+
# local env files
10+
.env.local
11+
.env.*.local
12+
13+
# Log files
14+
npm-debug.log*
15+
yarn-debug.log*
16+
yarn-error.log*
17+
pnpm-debug.log*
18+
19+
# Editor directories and files
20+
.idea
21+
.vscode
22+
.history
23+
.ionide
24+
*.suo
25+
*.ntvs*
26+
*.njsproj
27+
*.sln
28+
*.sw?

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Chong Guo
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

babel.config.js

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

cypress.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"pluginsFile": "tests/e2e/plugins/index.js"
3+
}

jest.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel',
3+
transform: {
4+
'^.+\\.vue$': 'vue-jest'
5+
}
6+
}

package.json

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"name": "vue-typescript-admin-template",
3+
"version": "1.0.0",
4+
"private": true,
5+
"author": "Chong Guo <[email protected]>",
6+
"scripts": {
7+
"serve": "vue-cli-service serve",
8+
"build": "vue-cli-service build",
9+
"lint": "vue-cli-service lint",
10+
"svg": "vsvg -s ./src/icons/svg -t ./src/icons/components --ext ts --es6",
11+
"test:unit": "jest --clearCache && vue-cli-service test:unit"
12+
},
13+
"dependencies": {
14+
"axios": "^0.21.1",
15+
"element-ui": "^2.15.1",
16+
"js-cookie": "^2.2.1",
17+
"normalize.css": "^8.0.1",
18+
"nprogress": "^0.2.0",
19+
"path-to-regexp": "^6.2.0",
20+
"register-service-worker": "^1.7.2",
21+
"vue": "^2.6.12",
22+
"vue-class-component": "^7.2.6",
23+
"vue-property-decorator": "^9.1.2",
24+
"vue-router": "^3.5.1",
25+
"vue-svgicon": "^3.2.9",
26+
"vuex": "^3.6.2",
27+
"vuex-module-decorators": "^1.0.1"
28+
},
29+
"devDependencies": {
30+
"@types/jest": "^26.0.22",
31+
"@types/js-cookie": "^2.2.6",
32+
"@types/node": "^14.14.41",
33+
"@types/nprogress": "^0.2.0",
34+
"@types/webpack-env": "^1.16.0",
35+
"@typescript-eslint/eslint-plugin": "^4.22.0",
36+
"@typescript-eslint/parser": "^4.22.0",
37+
"@vue/cli-plugin-babel": "^4.5.12",
38+
"@vue/cli-plugin-eslint": "^4.5.12",
39+
"@vue/cli-plugin-pwa": "^4.5.12",
40+
"@vue/cli-plugin-router": "^4.5.12",
41+
"@vue/cli-plugin-typescript": "^4.5.12",
42+
"@vue/cli-plugin-unit-jest": "^4.5.12",
43+
"@vue/cli-plugin-vuex": "^4.5.12",
44+
"@vue/cli-service": "^4.5.12",
45+
"@vue/eslint-config-standard": "^6.0.0",
46+
"@vue/eslint-config-typescript": "^7.0.0",
47+
"@vue/test-utils": "^1.1.4",
48+
"babel-core": "^7.0.0-bridge.0",
49+
"babel-eslint": "^10.1.0",
50+
"babel-loader": "^8.2.2",
51+
"eslint": "^7.24.0",
52+
"eslint-plugin-import": "^2.22.1",
53+
"eslint-plugin-node": "^11.1.0",
54+
"eslint-plugin-promise": "^5.1.0",
55+
"eslint-plugin-vue": "^7.9.0",
56+
"fibers": "^5.0.0",
57+
"jest": "^26.6.3",
58+
"sass": "^1.32.11",
59+
"sass-loader": "^10.1.1",
60+
"style-resources-loader": "^1.4.1",
61+
"ts-jest": "^26.5.5",
62+
"typescript": "^4.2.4",
63+
"vue-cli-plugin-element": "^1.0.1",
64+
"vue-cli-plugin-style-resources-loader": "^0.1.5",
65+
"vue-template-compiler": "^2.6.12",
66+
"webpack": "^5.35.0"
67+
}
68+
}

postcss.config.js

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

public/favicon.ico

66.1 KB
Binary file not shown.
2.43 KB
Loading
7 KB
Loading
1.5 KB
Loading
1.88 KB
Loading
1.97 KB
Loading
803 Bytes
Loading
964 Bytes
Loading

public/img/icons/apple-touch-icon.png

1.97 KB
Loading

public/img/icons/favicon-16x16.png

480 Bytes
Loading

public/img/icons/favicon-32x32.png

645 Bytes
Loading
Loading

public/img/icons/mstile-150x150.png

1.74 KB
Loading
+112
Loading

public/index.html

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
8+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
9+
<title>
10+
<%= htmlWebpackPlugin.options.title %>
11+
</title>
12+
</head>
13+
14+
<body>
15+
<noscript>
16+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
17+
Please enable it to continue.</strong>
18+
</noscript>
19+
<div id="app"></div>
20+
<!-- built files will be auto injected -->
21+
</body>
22+
23+
</html>

0 commit comments

Comments
 (0)