diff --git a/.eslintrc.js b/.eslintrc.js
index c97750547..64de64cac 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -7,24 +7,24 @@ module.exports = {
env: {
browser: true,
node: true,
- es6: true,
+ es6: true
},
extends: ['plugin:vue/recommended', 'eslint:recommended'],
// add your custom rules here
- //it is base on https://github.com/vuejs/eslint-config-vue
+ // it is base on https://github.com/vuejs/eslint-config-vue
rules: {
- "vue/max-attributes-per-line": [2, {
- "singleline": 10,
- "multiline": {
- "max": 1,
- "allowFirstLine": false
+ 'vue/max-attributes-per-line': [2, {
+ 'singleline': 10,
+ 'multiline': {
+ 'max': 1,
+ 'allowFirstLine': false
}
}],
- "vue/singleline-html-element-content-newline": "off",
- "vue/multiline-html-element-content-newline":"off",
- "vue/name-property-casing": ["error", "PascalCase"],
- "vue/no-v-html": "off",
+ 'vue/singleline-html-element-content-newline': 'off',
+ 'vue/multiline-html-element-content-newline': 'off',
+ 'vue/name-property-casing': ['error', 'PascalCase'],
+ 'vue/no-v-html': 'off',
'accessor-pairs': 2,
'arrow-spacing': [2, {
'before': true,
@@ -47,7 +47,7 @@ module.exports = {
'curly': [2, 'multi-line'],
'dot-location': [2, 'property'],
'eol-last': 2,
- 'eqeqeq': ["error", "always", {"null": "ignore"}],
+ 'eqeqeq': ['error', 'always', { 'null': 'ignore' }],
'generator-star-spacing': [2, {
'before': true,
'after': true
diff --git a/package.json b/package.json
index 30f435f27..44c6d92b2 100644
--- a/package.json
+++ b/package.json
@@ -17,6 +17,7 @@
"dependencies": {
"axios": "0.18.1",
"element-ui": "2.13.0",
+ "eslint-plugin-html": "^6.0.0",
"js-cookie": "2.2.0",
"normalize.css": "7.0.0",
"nprogress": "0.2.0",
@@ -24,7 +25,9 @@
"vue": "2.6.10",
"vue-i18n": "^8.15.5",
"vue-router": "3.0.6",
- "vuex": "3.1.0"
+ "vuex": "3.1.0",
+ "less": "^3.10.3",
+ "less-loader": "^5.0.0"
},
"devDependencies": {
"@babel/core": "7.0.0",
@@ -43,6 +46,7 @@
"eslint": "5.15.3",
"eslint-plugin-vue": "5.2.2",
"html-webpack-plugin": "3.2.0",
+ "less-loader": "^5.0.0",
"mockjs": "1.0.1-beta3",
"node-sass": "^4.9.0",
"runjs": "^4.3.2",
diff --git a/src/assets/img/admin.png b/src/assets/img/admin.png
new file mode 100644
index 000000000..d81e793b2
Binary files /dev/null and b/src/assets/img/admin.png differ
diff --git a/src/assets/img/jumpserver-menu-logo.png b/src/assets/img/jumpserver-menu-logo.png
new file mode 100644
index 000000000..7471c24d5
Binary files /dev/null and b/src/assets/img/jumpserver-menu-logo.png differ
diff --git a/src/assets/img/login-logo.png b/src/assets/img/login-logo.png
new file mode 100644
index 000000000..f3cf2d261
Binary files /dev/null and b/src/assets/img/login-logo.png differ
diff --git a/src/layout/components/BackPlayground.vue b/src/layout/components/BackPlayground.vue
new file mode 100644
index 000000000..92dca56af
--- /dev/null
+++ b/src/layout/components/BackPlayground.vue
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/layout/components/Footer.vue b/src/layout/components/Footer.vue
new file mode 100644
index 000000000..a9e4c7372
--- /dev/null
+++ b/src/layout/components/Footer.vue
@@ -0,0 +1,41 @@
+
+
+
+
+
diff --git a/src/layout/components/ListTables/index.vue b/src/layout/components/ListTables/index.vue
new file mode 100644
index 000000000..c069c1e35
--- /dev/null
+++ b/src/layout/components/ListTables/index.vue
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 0ca5cf6a0..c562a347e 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -1,33 +1,32 @@
-
-
-
-
-
+
@@ -54,10 +53,45 @@ export default {
async logout() {
await this.$store.dispatch('user/logout')
this.$router.push(`/login?redirect=${this.$route.fullPath}`)
+ },
+ changeLangToZH() {
+ this.$i18n.locale = 'cn'
+ },
+ changeLangToEnglish() {
+ this.$i18n.locale = 'en'
}
}
}
+