@ -1,19 +0,0 @@ |
|||
{ |
|||
"presets": [ |
|||
"@babel/preset-react", |
|||
"@babel/preset-env" |
|||
|
|||
], |
|||
"plugins": [ |
|||
"@babel/plugin-proposal-class-properties", |
|||
"@babel/plugin-proposal-object-rest-spread", |
|||
["import", { |
|||
"libraryName": "antd", |
|||
"libraryDirectory": "es" |
|||
|
|||
}] |
|||
], |
|||
"env": { |
|||
"development": {} |
|||
} |
|||
} |
@ -1,3 +0,0 @@ |
|||
**/.vscode |
|||
**/.svn |
|||
**/.git |
@ -1,38 +0,0 @@ |
|||
module.exports = { |
|||
env: { |
|||
browser: true, |
|||
es2021: true, |
|||
node: true, |
|||
}, |
|||
extends: [ |
|||
'eslint:recommended', |
|||
'plugin:react/recommended', |
|||
'airbnb', |
|||
'airbnb/hooks', |
|||
], |
|||
parserOptions: { |
|||
ecmaFeatures: { |
|||
jsx: true, |
|||
}, |
|||
ecmaVersion: 13, |
|||
sourceType: 'module', |
|||
}, |
|||
plugins: [ |
|||
'react', |
|||
], |
|||
settings: { |
|||
'import/resolver': 'webpack', |
|||
}, |
|||
rules: { |
|||
'no-console': 'off', |
|||
'linebreak-style': [0, 'error', 'windows'], |
|||
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }], |
|||
'no-unused-expressions': [1, { |
|||
allowShortCircuit: true, |
|||
allowTernary: true, |
|||
}], |
|||
'max-len': [1, { code: 300 }], |
|||
'react/prop-types': 0, |
|||
'class-methods-use-this': 'off', |
|||
}, |
|||
}; |
@ -1,26 +0,0 @@ |
|||
{ |
|||
"version": "0.2.0", |
|||
"configurations": [ |
|||
{ |
|||
"name": "Server", |
|||
"type": "node", |
|||
"request": "launch", |
|||
"program": "${workspaceRoot}/server.js", |
|||
"args": [ |
|||
"-p", |
|||
"5002", |
|||
"-u", |
|||
// "http://127.0.0.1:4100", |
|||
"http://10.8.30.84:30851", |
|||
// "http://113.128.195.2:30892", |
|||
"-f", |
|||
// "http://113.128.195.2:30892" |
|||
"http://10.8.30.84:30851" |
|||
], |
|||
"outputCapture": "std", |
|||
"env": { |
|||
"NODE_ENV": "development" |
|||
} |
|||
} |
|||
] |
|||
} |
@ -1,24 +0,0 @@ |
|||
// 将设置放入此文件中以覆盖默认值和用户设置。 |
|||
{ |
|||
"editor.fontSize": 16, |
|||
"editor.codeActionsOnSave": { |
|||
"source.fixAll.eslint": true |
|||
}, |
|||
"eslint.validate": [ |
|||
"javascript", |
|||
"javascriptreact", |
|||
"vue" |
|||
], |
|||
"files.autoSave": "afterDelay", |
|||
"editor.formatOnType": true, |
|||
"editor.formatOnSave": true, |
|||
"files.associations": { |
|||
"*.js": "javascriptreact" |
|||
}, |
|||
"emmet.triggerExpansionOnTab": true, |
|||
"vsicons.projectDetection.disableDetect": true, |
|||
"editor.tabSize": 2, |
|||
"[json]": { |
|||
"editor.defaultFormatter": "vscode.json-language-features" |
|||
}, |
|||
} |
@ -1,22 +0,0 @@ |
|||
FROM repository.anxinyun.cn/base-images/nodejs12:20.10.12.2 as builder |
|||
|
|||
COPY . /var/app |
|||
|
|||
WORKDIR /var/app |
|||
|
|||
EXPOSE 8080 |
|||
|
|||
|
|||
RUN npm cache clean -f |
|||
RUN rm -rf package-lock.json |
|||
RUN npm install --registry https://nexus.ngaiot.com/repository/fs-npm/ --legacy-peer-deps |
|||
RUN export NODE_OPTIONS=--max_old_space_size=4096&&npm run build |
|||
|
|||
RUN rm -rf client/src |
|||
RUN rm -rf node_modules |
|||
|
|||
RUN npm install --production --registry https://nexus.ngaiot.com/repository/fs-npm/ --legacy-peer-deps |
|||
|
|||
CMD ["-u", "http://localhost:8088"] |
|||
|
|||
ENTRYPOINT [ "node", "server.js" ] |
@ -1,21 +0,0 @@ |
|||
FROM repository.anxinyun.cn/base-images/nodejs12:20.10.12.2 |
|||
|
|||
COPY . /var/app |
|||
|
|||
WORKDIR /var/app |
|||
|
|||
EXPOSE 8080 |
|||
|
|||
RUN npm cache clean -f |
|||
RUN rm -rf package-lock.json |
|||
RUN npm install --registry http://10.8.30.22:7000 --legacy-peer-deps |
|||
RUN npm run build |
|||
RUN rm -rf client/src |
|||
RUN rm -rf node_modules |
|||
|
|||
RUN npm install --production --registry http://10.8.30.22:7000 |
|||
#RUN npm cache clean -f && npm install --production --force --registry http://10.8.30.22:7000 |
|||
|
|||
CMD ["-u", "http://localhost:8088"] |
|||
|
|||
ENTRYPOINT [ "node", "server.js" ] |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 202 KiB |
Before Width: | Height: | Size: 495 B |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 1004 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 991 B |
Before Width: | Height: | Size: 997 B |
Before Width: | Height: | Size: 1003 B |
Before Width: | Height: | Size: 1016 B |
Before Width: | Height: | Size: 997 B |
Before Width: | Height: | Size: 972 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |