lanjianrong 4 rokov pred
rodič
commit
6ad29edc7b

+ 15 - 0
deploy.config.js

@@ -0,0 +1,15 @@
+module.exports = {
+  win: {
+    script: 'npm run build',
+    host: '192.168.1.76',
+    port: 22,
+    username: 'zongheng',
+    password: 'SmartCost#*%)888',
+    localPath: 'dist',
+    remotePath: '/mnt/html/cld2/console',
+    needEmail: false,
+    addressee: '',
+    title: '',
+    content: ''
+  }
+}

+ 2 - 0
package.json

@@ -94,6 +94,8 @@
     "enzyme": "^3.11.0",
     "enzyme": "^3.11.0",
     "eslint": "^7.1.0",
     "eslint": "^7.1.0",
     "eslint-plugin-javascript": "^1.3.4",
     "eslint-plugin-javascript": "^1.3.4",
+    "eslint-plugin-jsx": "^0.1.0",
+    "eslint-plugin-typescript": "^0.14.0",
     "express": "^4.17.1",
     "express": "^4.17.1",
     "gh-pages": "^3.0.0",
     "gh-pages": "^3.0.0",
     "jsdom-global": "^3.0.2",
     "jsdom-global": "^3.0.2",

+ 0 - 0
src/services/index.ts


+ 9 - 0
src/services/typings.d.ts

@@ -0,0 +1,9 @@
+// @ts-ignore
+/* eslint-disable */
+
+declare namespace API {
+  type User = {
+    username: string
+    account: string
+  }
+}

+ 0 - 0
src/services/user.ts