Unverified Commit 363fe2e1 authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #64 from jumpserver/dev

Dev
parents 4b7f4055 2f5c7de0
* dist
!dist node_modules
!nginx.conf
!i18n
FROM node:10 as stage-build
WORKDIR /data
ADD ./package.json /data/package.json
ADD ./package-lock.json /data/package-lock.json
RUN npm i
ADD . /data
RUN npm run-script build
FROM nginx:alpine FROM nginx:alpine
COPY ./dist /opt/luna/ COPY --from=stage-build /data/dist /opt/luna/
COPY ./i18n /opt/luna/i18n/ COPY i18n /opt/luna/i18n
COPY nginx.conf /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/conf.d/default.conf
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
"tslib": "^1.9.0", "tslib": "^1.9.0",
"utf-8-validate": "^5.0.2", "utf-8-validate": "^5.0.2",
"uuid-js": "^0.7.5", "uuid-js": "^0.7.5",
"xterm": "^3.3.0", "xterm": "3.3.0",
"zone.js": "0.8.20" "zone.js": "0.8.20"
}, },
"devDependencies": { "devDependencies": {
...@@ -94,6 +94,6 @@ ...@@ -94,6 +94,6 @@
"protractor": "^5.4.2", "protractor": "^5.4.2",
"ts-node": "3.3.0", "ts-node": "3.3.0",
"tslint": "5.9.1", "tslint": "5.9.1",
"typescript": "2.4.2" "typescript": "2.6.2"
} }
} }
...@@ -268,7 +268,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges { ...@@ -268,7 +268,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
if (!zTreeObj) { if (!zTreeObj) {
return null; return null;
} }
const _keywords = this.query; const _keywords = this.query.toLowerCase();
const nodes = zTreeObj.transformToArray(zTreeObj.getNodes()); const nodes = zTreeObj.transformToArray(zTreeObj.getNodes());
if (!_keywords) { if (!_keywords) {
if (this.hiddenNodes) { if (this.hiddenNodes) {
...@@ -289,9 +289,9 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges { ...@@ -289,9 +289,9 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
const matchedNodes = zTreeObj.getNodesByFilter(function(node) { const matchedNodes = zTreeObj.getNodesByFilter(function(node) {
if (node.meta.type === 'asset') { if (node.meta.type === 'asset') {
const host = node.meta.asset; const host = node.meta.asset;
return host.hostname.indexOf(_keywords) !== -1 || host.ip.indexOf(_keywords) !== -1; return host.hostname.toLowerCase().indexOf(_keywords) !== -1 || host.ip.indexOf(_keywords) !== -1;
} else { } else {
return node.name.indexOf(_keywords) !== -1; return node.name.toLowerCase().indexOf(_keywords) !== -1;
} }
}); });
matchedNodes.forEach((node) => { matchedNodes.forEach((node) => {
......
...@@ -2,5 +2,5 @@ export const environment = { ...@@ -2,5 +2,5 @@ export const environment = {
production: true production: true
}; };
// export const version = '1.3.0-{{BUILD_NUMBER}} GPLv2.'; // export const version = '1.3.0-{{BUILD_NUMBER}} GPLv2.';
export const version = '1.4.9-101 GPLv2.'; export const version = '1.4.10-101 GPLv2.';
// export const version = '1.4.1-{{BUILD_NUMBER}} GPLv2.'; // export const version = '1.4.1-{{BUILD_NUMBER}} GPLv2.';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment