Date: Mon, 1 Aug 2022 15:10:56 +0800
Subject: [PATCH 3/8] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4bootstrap?=
=?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package-lock.json | 5 -----
package.json | 1 -
.../elements/left-bar/left-bar.component.scss | 5 +++--
src/app/elements/nav/nav.component.css | 6 ++++++
src/app/elements/nav/nav.component.ts | 19 -------------------
src/sass/style.scss | 1 -
src/styles.css | 4 ++++
7 files changed, 13 insertions(+), 28 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 4b2d1062..7a62fba5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -4207,11 +4207,6 @@
"multicast-dns-service-types": "^1.1.0"
}
},
- "bootstrap": {
- "version": "4.3.1",
- "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.3.1.tgz",
- "integrity": "sha512-rXqOmH1VilAt2DyPzluTi2blhk17bO7ef+zLLPlWvG494pDxcM234pJ8wTc/6R40UWizAIIMgxjvxZg5kmsbag=="
- },
"boxen": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz",
diff --git a/package.json b/package.json
index e47e0832..d410f1e3 100644
--- a/package.json
+++ b/package.json
@@ -58,7 +58,6 @@
"ajv": "^6.12.3",
"angular-split": "^4.0.0",
"animate.css": "^3.6.1",
- "bootstrap": "^4.3.1",
"buffer": "^4.9.2",
"codemirror": "^5.42.0",
"core-js": "^2.5.4",
diff --git a/src/app/elements/left-bar/left-bar.component.scss b/src/app/elements/left-bar/left-bar.component.scss
index fea110f0..b79f9700 100644
--- a/src/app/elements/left-bar/left-bar.component.scss
+++ b/src/app/elements/left-bar/left-bar.component.scss
@@ -27,7 +27,8 @@ label {
font-size: 9pt;
left: 0;
width: 100%;
- padding: 1px 20px 0 0;
+ line-height: 30px;
+ padding: 0 20px 0 0;
border-top: 1px solid #948b8b;
bottom: 0;
height: 30px;
@@ -56,9 +57,9 @@ label {
display: inline-block;
height: 8px;
font-size: 13px;
- padding-top: 2px;
padding-bottom: 2px;
color: #d6cbcb;
+ margin: 0;
}
.ngx-scroll-overlay {
diff --git a/src/app/elements/nav/nav.component.css b/src/app/elements/nav/nav.component.css
index 19f6a4c0..8786fe9d 100644
--- a/src/app/elements/nav/nav.component.css
+++ b/src/app/elements/nav/nav.component.css
@@ -40,6 +40,7 @@
.dropdown {
position: relative;
+ top: -6px;
display: inline-block;
}
@@ -73,6 +74,7 @@
.nav .dropdown-content li {
/*float: left;*/
display: flex;
+ line-height: 30px;
}
.nav .dropdown-content a {
@@ -97,6 +99,10 @@
width: 100%;
}
+.disabled {
+ display: none;
+}
+
.dropdown-content li.disabled:hover {
background-color: black;
}
diff --git a/src/app/elements/nav/nav.component.ts b/src/app/elements/nav/nav.component.ts
index 635d5706..d4e5116e 100644
--- a/src/app/elements/nav/nav.component.ts
+++ b/src/app/elements/nav/nav.component.ts
@@ -2,7 +2,6 @@ import {Component, Inject, OnInit} from '@angular/core';
import {HttpService, NavService, LogService, ViewService, SettingService} from '@app/services';
import {DataStore} from '@app/globals';
import {CookieService} from 'ngx-cookie-service';
-import {ElementLeftBarComponent} from '@app/elements/left-bar/left-bar.component';
import {ElementSettingComponent} from '@app/elements/setting/setting.component';
import {MAT_DIALOG_DATA, MatDialog, MatDialogRef} from '@angular/material';
import {Nav, View} from '@app/model';
@@ -58,24 +57,6 @@ export class ElementNavComponent implements OnInit {
id: 'View',
name: 'View',
children: [
- {
- id: 'HideLeftManager',
- click: () => {
- ElementLeftBarComponent.Hide();
- this.refreshNav();
- },
- name: 'Hide left manager',
- hide: !DataStore.showLeftBar
- },
- {
- id: 'ShowLeftManager',
- click: () => {
- ElementLeftBarComponent.Show();
- this.refreshNav();
- },
- name: 'Show left manager',
- hide: DataStore.showLeftBar
- },
{
id: 'SplitVertical',
href: '',
diff --git a/src/sass/style.scss b/src/sass/style.scss
index eaa171c5..faa96089 100644
--- a/src/sass/style.scss
+++ b/src/sass/style.scss
@@ -7,7 +7,6 @@ $asset-path: '../static/imgs/inspinia';
//@import '~@swimlane/ngx-datatable/release/index.css';
//@import '~@swimlane/ngx-datatable/release/themes/material.css';
//@import '~@swimlane/ngx-datatable/release/assets/icons.css';
-@import '~bootstrap/scss/bootstrap';
@import './material.css';
@import '~material-design-icons/iconfont/material-icons.css';
diff --git a/src/styles.css b/src/styles.css
index 0cc13855..7a240a4c 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -13,6 +13,10 @@ body {
margin: 0;
}
+*, ::after, ::before {
+ box-sizing: border-box;
+}
+
app-root {
height: 100%;
}
From 00c48d56c4babb5e54b5052fabe128a803e3c995 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com>
Date: Mon, 1 Aug 2022 17:38:39 +0800
Subject: [PATCH 4/8] =?UTF-8?q?feat:=20=E5=BC=95=E7=94=A8ztree=E5=8C=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
angular.json | 12 +-
package-lock.json | 8 +
package.json | 1 +
src/assets/ztree/awesomeStyle/awesome.less | 154 ------
src/assets/ztree/awesomeStyle/fa.css | 0
src/assets/ztree/awesomeStyle/fa.less | 480 ------------------
src/assets/ztree/demo.css | 33 --
src/assets/ztree/jquery.ztree.all.min.js | 3 -
src/assets/ztree/jquery.ztree.exhide.min.js | 1 -
src/assets/ztree/metroStyle/img/line_conn.png | Bin 933 -> 0 bytes
src/assets/ztree/metroStyle/img/loading.gif | Bin 381 -> 0 bytes
src/assets/ztree/metroStyle/img/metro.gif | Bin 4679 -> 0 bytes
src/assets/ztree/metroStyle/img/metro.png | Bin 5283 -> 0 bytes
src/assets/ztree/metroStyle/metroStyle.css | 96 ----
.../ztree/ztreestyle/img/diy/1_close.png | Bin 601 -> 0 bytes
.../ztree/ztreestyle/img/diy/1_open.png | Bin 580 -> 0 bytes
src/assets/ztree/ztreestyle/img/diy/2.png | Bin 570 -> 0 bytes
src/assets/ztree/ztreestyle/img/diy/3.png | Bin 762 -> 0 bytes
src/assets/ztree/ztreestyle/img/diy/4.png | Bin 399 -> 0 bytes
src/assets/ztree/ztreestyle/img/diy/5.png | Bin 710 -> 0 bytes
src/assets/ztree/ztreestyle/img/diy/6.png | Bin 432 -> 0 bytes
src/assets/ztree/ztreestyle/img/diy/7.png | Bin 534 -> 0 bytes
src/assets/ztree/ztreestyle/img/diy/8.png | Bin 529 -> 0 bytes
src/assets/ztree/ztreestyle/img/diy/9.png | Bin 467 -> 0 bytes
src/assets/ztree/ztreestyle/img/line_conn.gif | Bin 45 -> 0 bytes
src/assets/ztree/ztreestyle/img/loading.gif | Bin 381 -> 0 bytes
.../ztree/ztreestyle/img/zTreeStandard.gif | Bin 5564 -> 0 bytes
.../ztree/ztreestyle/img/zTreeStandard.png | Bin 11173 -> 0 bytes
src/assets/ztree/ztreestyle/ztreestyle.css | 97 ----
.../awesomeStyle/img => sass}/loading.gif | Bin
src/sass/style.scss | 1 +
.../awesome.css => sass/ztree.css} | 2 +-
32 files changed, 16 insertions(+), 872 deletions(-)
delete mode 100644 src/assets/ztree/awesomeStyle/awesome.less
delete mode 100644 src/assets/ztree/awesomeStyle/fa.css
delete mode 100644 src/assets/ztree/awesomeStyle/fa.less
delete mode 100644 src/assets/ztree/demo.css
delete mode 100644 src/assets/ztree/jquery.ztree.all.min.js
delete mode 100644 src/assets/ztree/jquery.ztree.exhide.min.js
delete mode 100644 src/assets/ztree/metroStyle/img/line_conn.png
delete mode 100644 src/assets/ztree/metroStyle/img/loading.gif
delete mode 100644 src/assets/ztree/metroStyle/img/metro.gif
delete mode 100644 src/assets/ztree/metroStyle/img/metro.png
delete mode 100644 src/assets/ztree/metroStyle/metroStyle.css
delete mode 100644 src/assets/ztree/ztreestyle/img/diy/1_close.png
delete mode 100644 src/assets/ztree/ztreestyle/img/diy/1_open.png
delete mode 100644 src/assets/ztree/ztreestyle/img/diy/2.png
delete mode 100644 src/assets/ztree/ztreestyle/img/diy/3.png
delete mode 100644 src/assets/ztree/ztreestyle/img/diy/4.png
delete mode 100644 src/assets/ztree/ztreestyle/img/diy/5.png
delete mode 100644 src/assets/ztree/ztreestyle/img/diy/6.png
delete mode 100644 src/assets/ztree/ztreestyle/img/diy/7.png
delete mode 100644 src/assets/ztree/ztreestyle/img/diy/8.png
delete mode 100644 src/assets/ztree/ztreestyle/img/diy/9.png
delete mode 100644 src/assets/ztree/ztreestyle/img/line_conn.gif
delete mode 100644 src/assets/ztree/ztreestyle/img/loading.gif
delete mode 100644 src/assets/ztree/ztreestyle/img/zTreeStandard.gif
delete mode 100644 src/assets/ztree/ztreestyle/img/zTreeStandard.png
delete mode 100644 src/assets/ztree/ztreestyle/ztreestyle.css
rename src/{assets/ztree/awesomeStyle/img => sass}/loading.gif (100%)
rename src/{assets/ztree/awesomeStyle/awesome.css => sass/ztree.css} (99%)
diff --git a/angular.json b/angular.json
index 69c0a4b3..4dc5412f 100644
--- a/angular.json
+++ b/angular.json
@@ -28,14 +28,13 @@
"src/sass/style.scss",
"src/styles.css",
"src/theme.scss",
- "src/assets/ztree/awesomeStyle/awesome.css",
"node_modules/asciinema-player/resources/public/css/asciinema-player.css"
],
"scripts": [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/xterm/dist/xterm.js",
- "src/assets/ztree/jquery.ztree.all.min.js",
- "src/assets/ztree/jquery.ztree.exhide.min.js",
+ "node_modules/@ztree/ztree_v3/js/jquery.ztree.all.min.js",
+ "node_modules/@ztree/ztree_v3/js/jquery.ztree.exhide.min.js",
"node_modules/asciinema-player/resources/public/js/asciinema-player.js"
]
},
@@ -86,15 +85,14 @@
"scripts": [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/xterm/dist/xterm.js",
- "src/assets/ztree/jquery.ztree.all.min.js",
- "src/assets/ztree/jquery.ztree.exhide.min.js"
+ "node_modules/@ztree/ztree_v3/js/jquery.ztree.all.min.js",
+ "node_modules/@ztree/ztree_v3/js/jquery.ztree.exhide.min.js"
],
"styles": [
"node_modules/animate.css/animate.min.css",
"node_modules/xterm/dist/xterm.css",
"src/sass/style.scss",
- "src/styles.css",
- "src/assets/ztree/awesomeStyle/awesome.css"
+ "src/styles.css"
],
"assets": [
"src/assets",
diff --git a/package-lock.json b/package-lock.json
index 7a62fba5..74c8e0d9 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3459,6 +3459,14 @@
"integrity": "sha1-53qX+9NFt22DJF7c0X05OxtB+zE=",
"dev": true
},
+ "@ztree/ztree_v3": {
+ "version": "3.5.48",
+ "resolved": "https://registry.npmmirror.com/@ztree/ztree_v3/-/ztree_v3-3.5.48.tgz",
+ "integrity": "sha512-4dSA1g26T3j/O3I89+r/Palg+a+xwMGRS1etZoggnCGBPoOrwW8VGA3zitJCK/Yd7eEMX+LfKTRJjEGiWpoN3w==",
+ "requires": {
+ "jquery": ">=1.4.4"
+ }
+ },
"JSONStream": {
"version": "1.3.5",
"resolved": "https://registry.npm.taobao.org/JSONStream/download/JSONStream-1.3.5.tgz",
diff --git a/package.json b/package.json
index d410f1e3..026b43a5 100644
--- a/package.json
+++ b/package.json
@@ -55,6 +55,7 @@
"@ngx-translate/http-loader": "~4.0.0",
"@types/jquery": "^3.3.6",
"@types/neffos.js": "^0.1.1",
+ "@ztree/ztree_v3": "^3.5.48",
"ajv": "^6.12.3",
"angular-split": "^4.0.0",
"animate.css": "^3.6.1",
diff --git a/src/assets/ztree/awesomeStyle/awesome.less b/src/assets/ztree/awesomeStyle/awesome.less
deleted file mode 100644
index 3d161027..00000000
--- a/src/assets/ztree/awesomeStyle/awesome.less
+++ /dev/null
@@ -1,154 +0,0 @@
-/*-------------------------------------
-zTree Style using fontawesome instead of images
-
-version: 1.1
-author: Mike King
-email: mikkelking @ hotmail . com
-website: http://code.google.com/p/jquerytree/
-
--------------------------------------*/
-
-/* Definitions ----------------------*/
-@font-size: 12px;
-// Regular icon and text color is white, which suits any medium -> dark background
-@color-normal: #676a6c;
-// Background color
-@color-bg: #f3f3f3;
-// Highlight color
-@color-highlight: #676a6c;
-// Partially selected (checkboxes, radio buttons)
-@color-partial: #aaaaaa;
-// Partially selected and focused (checkboxes, radio buttons)
-@color-partfocus: #cad96c;
-// Disabled altogether
-@color-disabled: #808080;
-// Editing color
-@color-edit: yellow;
-@w: 18px;
-@h: 20px;
-@pad-left: 2px;
-@pad-top: 10px;
-/* End of Definitions ---------------*/
-
-/* Imports -------------------------*/
-@import "fa.less";
-/* End of Imports ------------------*/
-
-.ztree * {padding:0; margin:0; font-size:@font-size; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif; background-color: @color-bg;}
-.ztree {
- margin:0; padding:5px; color:@color-normal; background-color: @color-bg;
- li {
- padding:0; margin:0; list-style:none; line-height:17px; text-align:left; white-space:nowrap; outline:0;
- ul {
- margin: 0px; padding:0 0 0 18px;
- }
- ul.line { }
- a {padding-right:3px; margin:0; cursor:pointer; height:@h; color:@color-normal; background-color: transparent;
- text-decoration:none; vertical-align:top; display: inline-block;
- input.rename {height:14px; width:80px; padding:0; margin:0;
- color: @color-bg; background-color: @color-normal;
- font-size:@font-size; border:1px #585956 solid; *border:0px}
- }
- a:hover {
- background: #e7f4f9;
- border-radius: 2px;
- box-shadow: inset 0 0 1px #cccccc;
- }
- a.curSelectedNode {padding-top:0px; background-color:#beebff; color:@color-highlight; height:@h; opacity:0.8;}
- a.curSelectedNode_Edit {padding-top:0px; background-color:#f3f3f3; color:red; height:@h; border:1px #676a6c solid; opacity:0.8;}
- a.tmpTargetNode_inner {padding-top:0px; background-color:#f3f3f3; color:@color-highlight; height:@h; border:1px #666 solid;
- opacity:0.8; filter:alpha(opacity=80)}
- a.tmpTargetNode_prev {}
- a.tmpTargetNode_next {}
- span {line-height:@h; margin-right:2px; background-color:transparent;}
- span.button {line-height:0; margin:0; padding: 0; width:@w; height:@h; display: inline-block; vertical-align:top;
- border:0px solid; cursor: pointer;outline:none;
- background-color:transparent; background-repeat:no-repeat; background-attachment: scroll;
-
- &::before{color: @color-normal; font-family: FontAwesome; padding-top:@pad-top;}
- &.chk { margin:0px; cursor: auto; width: 12px;
- display: inline-block;padding-top:@pad-top;padding-left:@pad-left;
-
- &.checkbox_false_full::before {content: @fa-square-o;}
- &.checkbox_false_full_focus::before {content: @fa-square-o; color:@color-highlight;}
- &.checkbox_false_part::before {content: @fa-square-o;color: @color-partial;}
- &.checkbox_false_part_focus::before {content: @fa-square-o; color:@color-partfocus;}
- &.checkbox_false_disable::before {content: @fa-square-o; color:@color-disabled;}
- &.checkbox_true_full::before {content: @fa-check-square-o;}
- &.checkbox_true_full_focus::before {content: @fa-check-square-o;}
- &.checkbox_true_part::before {content: @fa-check-square;}
- &.checkbox_true_part_focus::before {content: @fa-check-square; color: @color-highlight}
- &.checkbox_true_full_focus::before {content: @fa-check-square-o; color: @color-highlight}
- &.checkbox_true_part::before {content: @fa-check-square-o;color: @color-partial}
- &.checkbox_true_part_focus::before {content: @fa-check-square-o;color: @color-partfocus;}
- &.checkbox_true_disable::before {content: @fa-check-square-o;color: @color-disabled}
-
- &.radio_false_full::before {content: @fa-circle-o;}
- &.radio_false_full_focus::before {content: @fa-circle-o;color: @color-highlight}
- &.radio_false_part::before {content: @fa-circle-o;color: @color-partial}
- &.radio_false_part_focus::before {content: @fa-circle-o;color: @color-highlight}
- &.radio_false_disable::before {content: @fa-circle-thin;color: @color-disabled}
- &.radio_true_full::before {content: @fa-dot-circle-o;}
- &.radio_true_full_focus::before {content: @fa-dot-circle-o;color: @color-highlight}
- &.radio_true_part::before {content: @fa-dot-circle-o;color: @color-partial}
- &.radio_true_part_focus::before {content: @fa-dot-circle-o;color: @color-partial;}
- &.radio_true_disable::before {content: @fa-circle-thin;color: @color-disabled}
-
- }
- &.switch {width:@w; height:@h}
- &.root_open::before{content: @fa-angle-down;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;}
- &.root_close::before{content: @fa-angle-right;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;}
- &.roots_open::before{content: @fa-angle-down;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;}
- &.roots_close::before{content: @fa-angle-right;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;}
- &.center_open::before{content: @fa-angle-down;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;}
- &.center_close::before{content: @fa-angle-right;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;}
- &.bottom_open::before{content: @fa-angle-down;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;}
- &.bottom_close::before{content: @fa-angle-right;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;}
- &.noline_open{}
- &.noline_close{}
- &.root_docu{ background:none;}
- &.roots_docu::before{content: @fa-folder-o;padding-left:@pad-left;display: inline-block;color:@color-normal;}
- &.center_docu::before{padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;}
- &.bottom_docu::before{padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;}
- &.noline_docu{ background:none;}
-
- &.ico_open::before {content: @fa-folder-open;font-family: FontAwesome;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;}
- &.ico_close::before {content: @fa-folder;font-family: FontAwesome;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;}
- &.ico_docu::before{content: @fa-folder;font-family: FontAwesome;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;}
-
- &.file_ico_docu::before{content: @fa-list-alt;font-family: FontAwesome;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;}
- &.linux_ico_docu::before{content: @fa-linux;font-family: FontAwesome;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;}
- &.windows_ico_docu::before{content: @fa-windows;font-family: FontAwesome;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;}
-
- &.edit {margin-left:4px; margin-right: -1px; vertical-align:top; *vertical-align:middle;padding-top:@pad-top;}
- &.edit::before{content: @fa-pencil-square-o;font-family: FontAwesome;}
-
- &.remove {margin-left:4px; margin-right: -1px; vertical-align:top; *vertical-align:middle;padding-top:@pad-top;}
- &.remove::before{content: @fa-trash;font-family: FontAwesome;}
-
-
- &.add {margin-left:4px; margin-right: -1px; vertical-align:top; *vertical-align:middle;padding-top:@pad-top;}
- &.add::before{content: @fa-plus;font-family: FontAwesome;}
-
- &.ico_loading{margin-right:2px; background:url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
- }
-
- }
-}
-
-
-ul.tmpTargetzTree {background-color:#FFE6B0; opacity:0.8; filter:alpha(opacity=80)}
-
-// this is the arrow that moves
-span.tmpzTreeMove_arrow{width:16px; height:@h; display: inline-block;
- padding:0; margin:2px 0 0 1px; border:0 none; position:absolute;
- background-color:transparent; background-attachment: scroll;
- }
-span.tmpzTreeMove_arrow::before{content: @fa-play;font-family: FontAwesome;color: @color-highlight;
- }
-// outline
-
-ul.ztree.zTreeDragUL {margin:0; padding:0; position:absolute; width:auto; height:auto;overflow:hidden;
- background-color:#cfcfcf; border:1px @color-highlight dotted; opacity:0.8; filter:alpha(opacity=80)}
-.ztreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute}
-
diff --git a/src/assets/ztree/awesomeStyle/fa.css b/src/assets/ztree/awesomeStyle/fa.css
deleted file mode 100644
index e69de29b..00000000
diff --git a/src/assets/ztree/awesomeStyle/fa.less b/src/assets/ztree/awesomeStyle/fa.less
deleted file mode 100644
index 3714884a..00000000
--- a/src/assets/ztree/awesomeStyle/fa.less
+++ /dev/null
@@ -1,480 +0,0 @@
-@fa-glass: "\f000";
-@fa-music: "\f001";
-@fa-search: "\f002";
-@fa-envelope-o: "\f003";
-@fa-heart: "\f004";
-@fa-star: "\f005";
-@fa-star-o: "\f006";
-@fa-user: "\f007";
-@fa-film: "\f008";
-@fa-th-large: "\f009";
-@fa-th: "\f00a";
-@fa-th-list: "\f00b";
-@fa-check: "\f00c";
-@fa-times: "\f00d";
-@fa-search-plus: "\f00e";
-@fa-search-minus: "\f010";
-@fa-power-off: "\f011";
-@fa-signal: "\f012";
-@fa-cog: "\f013";
-@fa-trash-o: "\f014";
-@fa-home: "\f015";
-@fa-file-o: "\f016";
-@fa-clock-o: "\f017";
-@fa-road: "\f018";
-@fa-download: "\f019";
-@fa-arrow-circle-o-down: "\f01a";
-@fa-arrow-circle-o-up: "\f01b";
-@fa-inbox: "\f01c";
-@fa-play-circle-o: "\f01d";
-@fa-repeat: "\f01e";
-@fa-refresh: "\f021";
-@fa-list-alt: "\f022";
-@fa-lock: "\f023";
-@fa-flag: "\f024";
-@fa-headphones: "\f025";
-@fa-volume-off: "\f026";
-@fa-volume-down: "\f027";
-@fa-volume-up: "\f028";
-@fa-qrcode: "\f029";
-@fa-barcode: "\f02a";
-@fa-tag: "\f02b";
-@fa-tags: "\f02c";
-@fa-book: "\f02d";
-@fa-bookmark: "\f02e";
-@fa-print: "\f02f";
-@fa-camera: "\f030";
-@fa-font: "\f031";
-@fa-bold: "\f032";
-@fa-italic: "\f033";
-@fa-text-height: "\f034";
-@fa-text-width: "\f035";
-@fa-align-left: "\f036";
-@fa-align-center: "\f037";
-@fa-align-right: "\f038";
-@fa-align-justify: "\f039";
-@fa-list: "\f03a";
-@fa-outdent: "\f03b";
-@fa-indent: "\f03c";
-@fa-video-camera: "\f03d";
-@fa-picture-o: "\f03e";
-@fa-pencil: "\f040";
-@fa-map-marker: "\f041";
-@fa-adjust: "\f042";
-@fa-tint: "\f043";
-@fa-pencil-square-o: "\f044";
-@fa-share-square-o: "\f045";
-@fa-check-square-o: "\f046";
-@fa-arrows: "\f047";
-@fa-step-backward: "\f048";
-@fa-fast-backward: "\f049";
-@fa-backward: "\f04a";
-@fa-play: "\f04b";
-@fa-pause: "\f04c";
-@fa-stop: "\f04d";
-@fa-forward: "\f04e";
-@fa-fast-forward: "\f050";
-@fa-step-forward: "\f051";
-@fa-eject: "\f052";
-@fa-chevron-left: "\f053";
-@fa-chevron-right: "\f054";
-@fa-plus-circle: "\f055";
-@fa-minus-circle: "\f056";
-@fa-times-circle: "\f057";
-@fa-check-circle: "\f058";
-@fa-question-circle: "\f059";
-@fa-info-circle: "\f05a";
-@fa-crosshairs: "\f05b";
-@fa-times-circle-o: "\f05c";
-@fa-check-circle-o: "\f05d";
-@fa-ban: "\f05e";
-@fa-arrow-left: "\f060";
-@fa-arrow-right: "\f061";
-@fa-arrow-up: "\f062";
-@fa-arrow-down: "\f063";
-@fa-share: "\f064";
-@fa-expand: "\f065";
-@fa-compress: "\f066";
-@fa-plus: "\f067";
-@fa-minus: "\f068";
-@fa-asterisk: "\f069";
-@fa-exclamation-circle: "\f06a";
-@fa-gift: "\f06b";
-@fa-leaf: "\f06c";
-@fa-fire: "\f06d";
-@fa-eye: "\f06e";
-@fa-eye-slash: "\f070";
-@fa-exclamation-triangle: "\f071";
-@fa-plane: "\f072";
-@fa-calendar: "\f073";
-@fa-random: "\f074";
-@fa-comment: "\f075";
-@fa-magnet: "\f076";
-@fa-chevron-up: "\f077";
-@fa-chevron-down: "\f078";
-@fa-retweet: "\f079";
-@fa-shopping-cart: "\f07a";
-@fa-folder: "\f07b";
-@fa-folder-open: "\f07c";
-@fa-arrows-v: "\f07d";
-@fa-arrows-h: "\f07e";
-@fa-bar-chart: "\f080";
-@fa-twitter-square: "\f081";
-@fa-facebook-square: "\f082";
-@fa-camera-retro: "\f083";
-@fa-key: "\f084";
-@fa-cogs: "\f085";
-@fa-comments: "\f086";
-@fa-thumbs-o-up: "\f087";
-@fa-thumbs-o-down: "\f088";
-@fa-star-half: "\f089";
-@fa-heart-o: "\f08a";
-@fa-sign-out: "\f08b";
-@fa-linkedin-square: "\f08c";
-@fa-thumb-tack: "\f08d";
-@fa-external-link: "\f08e";
-@fa-sign-in: "\f090";
-@fa-trophy: "\f091";
-@fa-github-square: "\f092";
-@fa-upload: "\f093";
-@fa-lemon-o: "\f094";
-@fa-phone: "\f095";
-@fa-square-o: "\f096";
-@fa-bookmark-o: "\f097";
-@fa-phone-square: "\f098";
-@fa-twitter: "\f099";
-@fa-facebook: "\f09a";
-@fa-github: "\f09b";
-@fa-unlock: "\f09c";
-@fa-credit-card: "\f09d";
-@fa-rss: "\f09e";
-@fa-hdd-o: "\f0a0";
-@fa-bullhorn: "\f0a1";
-@fa-bell: "\f0f3";
-@fa-certificate: "\f0a3";
-@fa-hand-o-right: "\f0a4";
-@fa-hand-o-left: "\f0a5";
-@fa-hand-o-up: "\f0a6";
-@fa-hand-o-down: "\f0a7";
-@fa-arrow-circle-left: "\f0a8";
-@fa-arrow-circle-right: "\f0a9";
-@fa-arrow-circle-up: "\f0aa";
-@fa-arrow-circle-down: "\f0ab";
-@fa-globe: "\f0ac";
-@fa-wrench: "\f0ad";
-@fa-tasks: "\f0ae";
-@fa-filter: "\f0b0";
-@fa-briefcase: "\f0b1";
-@fa-arrows-alt: "\f0b2";
-@fa-users: "\f0c0";
-@fa-link: "\f0c1";
-@fa-cloud: "\f0c2";
-@fa-flask: "\f0c3";
-@fa-scissors: "\f0c4";
-@fa-files-o: "\f0c5";
-@fa-paperclip: "\f0c6";
-@fa-floppy-o: "\f0c7";
-@fa-square: "\f0c8";
-@fa-bars: "\f0c9";
-@fa-list-ul: "\f0ca";
-@fa-list-ol: "\f0cb";
-@fa-strikethrough: "\f0cc";
-@fa-underline: "\f0cd";
-@fa-table: "\f0ce";
-@fa-magic: "\f0d0";
-@fa-truck: "\f0d1";
-@fa-pinterest: "\f0d2";
-@fa-pinterest-square: "\f0d3";
-@fa-google-plus-square: "\f0d4";
-@fa-google-plus: "\f0d5";
-@fa-money: "\f0d6";
-@fa-caret-down: "\f0d7";
-@fa-caret-up: "\f0d8";
-@fa-caret-left: "\f0d9";
-@fa-caret-right: "\f0da";
-@fa-columns: "\f0db";
-@fa-sort: "\f0dc";
-@fa-sort-desc: "\f0dd";
-@fa-sort-asc: "\f0de";
-@fa-envelope: "\f0e0";
-@fa-linkedin: "\f0e1";
-@fa-undo: "\f0e2";
-@fa-gavel: "\f0e3";
-@fa-tachometer: "\f0e4";
-@fa-comment-o: "\f0e5";
-@fa-comments-o: "\f0e6";
-@fa-bolt: "\f0e7";
-@fa-sitemap: "\f0e8";
-@fa-umbrella: "\f0e9";
-@fa-clipboard: "\f0ea";
-@fa-lightbulb-o: "\f0eb";
-@fa-exchange: "\f0ec";
-@fa-cloud-download: "\f0ed";
-@fa-cloud-upload: "\f0ee";
-@fa-user-md: "\f0f0";
-@fa-stethoscope: "\f0f1";
-@fa-suitcase: "\f0f2";
-@fa-bell-o: "\f0a2";
-@fa-coffee: "\f0f4";
-@fa-cutlery: "\f0f5";
-@fa-file-text-o: "\f0f6";
-@fa-building-o: "\f0f7";
-@fa-hospital-o: "\f0f8";
-@fa-ambulance: "\f0f9";
-@fa-medkit: "\f0fa";
-@fa-fighter-jet: "\f0fb";
-@fa-beer: "\f0fc";
-@fa-h-square: "\f0fd";
-@fa-plus-square: "\f0fe";
-@fa-angle-double-left: "\f100";
-@fa-angle-double-right: "\f101";
-@fa-angle-double-up: "\f102";
-@fa-angle-double-down: "\f103";
-@fa-angle-left: "\f104";
-@fa-angle-right: "\f105";
-@fa-angle-up: "\f106";
-@fa-angle-down: "\f107";
-@fa-desktop: "\f108";
-@fa-laptop: "\f109";
-@fa-tablet: "\f10a";
-@fa-mobile: "\f10b";
-@fa-circle-o: "\f10c";
-@fa-quote-left: "\f10d";
-@fa-quote-right: "\f10e";
-@fa-spinner: "\f110";
-@fa-circle: "\f111";
-@fa-reply: "\f112";
-@fa-github-alt: "\f113";
-@fa-folder-o: "\f114";
-@fa-folder-open-o: "\f115";
-@fa-smile-o: "\f118";
-@fa-frown-o: "\f119";
-@fa-meh-o: "\f11a";
-@fa-gamepad: "\f11b";
-@fa-keyboard-o: "\f11c";
-@fa-flag-o: "\f11d";
-@fa-flag-checkered: "\f11e";
-@fa-terminal: "\f120";
-@fa-code: "\f121";
-@fa-reply-all: "\f122";
-@fa-star-half-o: "\f123";
-@fa-location-arrow: "\f124";
-@fa-crop: "\f125";
-@fa-code-fork: "\f126";
-@fa-chain-broken: "\f127";
-@fa-question: "\f128";
-@fa-info: "\f129";
-@fa-exclamation: "\f12a";
-@fa-superscript: "\f12b";
-@fa-subscript: "\f12c";
-@fa-eraser: "\f12d";
-@fa-puzzle-piece: "\f12e";
-@fa-microphone: "\f130";
-@fa-microphone-slash: "\f131";
-@fa-shield: "\f132";
-@fa-calendar-o: "\f133";
-@fa-fire-extinguisher: "\f134";
-@fa-rocket: "\f135";
-@fa-maxcdn: "\f136";
-@fa-chevron-circle-left: "\f137";
-@fa-chevron-circle-right: "\f138";
-@fa-chevron-circle-up: "\f139";
-@fa-chevron-circle-down: "\f13a";
-@fa-html5: "\f13b";
-@fa-css3: "\f13c";
-@fa-anchor: "\f13d";
-@fa-unlock-alt: "\f13e";
-@fa-bullseye: "\f140";
-@fa-ellipsis-h: "\f141";
-@fa-ellipsis-v: "\f142";
-@fa-rss-square: "\f143";
-@fa-play-circle: "\f144";
-@fa-ticket: "\f145";
-@fa-minus-square: "\f146";
-@fa-minus-square-o: "\f147";
-@fa-level-up: "\f148";
-@fa-level-down: "\f149";
-@fa-check-square: "\f14a";
-@fa-pencil-square: "\f14b";
-@fa-external-link-square: "\f14c";
-@fa-share-square: "\f14d";
-@fa-compass: "\f14e";
-@fa-caret-square-o-down: "\f150";
-@fa-caret-square-o-up: "\f151";
-@fa-caret-square-o-right: "\f152";
-@fa-eur: "\f153";
-@fa-gbp: "\f154";
-@fa-usd: "\f155";
-@fa-inr: "\f156";
-@fa-jpy: "\f157";
-@fa-rub: "\f158";
-@fa-krw: "\f159";
-@fa-btc: "\f15a";
-@fa-file: "\f15b";
-@fa-file-text: "\f15c";
-@fa-sort-alpha-asc: "\f15d";
-@fa-sort-alpha-desc: "\f15e";
-@fa-sort-amount-asc: "\f160";
-@fa-sort-amount-desc: "\f161";
-@fa-sort-numeric-asc: "\f162";
-@fa-sort-numeric-desc: "\f163";
-@fa-thumbs-up: "\f164";
-@fa-thumbs-down: "\f165";
-@fa-youtube-square: "\f166";
-@fa-youtube: "\f167";
-@fa-xing: "\f168";
-@fa-xing-square: "\f169";
-@fa-youtube-play: "\f16a";
-@fa-dropbox: "\f16b";
-@fa-stack-overflow: "\f16c";
-@fa-instagram: "\f16d";
-@fa-flickr: "\f16e";
-@fa-adn: "\f170";
-@fa-bitbucket: "\f171";
-@fa-bitbucket-square: "\f172";
-@fa-tumblr: "\f173";
-@fa-tumblr-square: "\f174";
-@fa-long-arrow-down: "\f175";
-@fa-long-arrow-up: "\f176";
-@fa-long-arrow-left: "\f177";
-@fa-long-arrow-right: "\f178";
-@fa-apple: "\f179";
-@fa-windows: "\f17a";
-@fa-android: "\f17b";
-@fa-linux: "\f17c";
-@fa-dribbble: "\f17d";
-@fa-skype: "\f17e";
-@fa-foursquare: "\f180";
-@fa-trello: "\f181";
-@fa-female: "\f182";
-@fa-male: "\f183";
-@fa-gittip: "\f184";
-@fa-sun-o: "\f185";
-@fa-moon-o: "\f186";
-@fa-archive: "\f187";
-@fa-bug: "\f188";
-@fa-vk: "\f189";
-@fa-weibo: "\f18a";
-@fa-renren: "\f18b";
-@fa-pagelines: "\f18c";
-@fa-stack-exchange: "\f18d";
-@fa-arrow-circle-o-right: "\f18e";
-@fa-arrow-circle-o-left: "\f190";
-@fa-caret-square-o-left: "\f191";
-@fa-dot-circle-o: "\f192";
-@fa-wheelchair: "\f193";
-@fa-vimeo-square: "\f194";
-@fa-try: "\f195";
-@fa-plus-square-o: "\f196";
-@fa-space-shuttle: "\f197";
-@fa-slack: "\f198";
-@fa-envelope-square: "\f199";
-@fa-wordpress: "\f19a";
-@fa-openid: "\f19b";
-@fa-university: "\f19c";
-@fa-graduation-cap: "\f19d";
-@fa-yahoo: "\f19e";
-@fa-google: "\f1a0";
-@fa-reddit: "\f1a1";
-@fa-reddit-square: "\f1a2";
-@fa-stumbleupon-circle: "\f1a3";
-@fa-stumbleupon: "\f1a4";
-@fa-delicious: "\f1a5";
-@fa-digg: "\f1a6";
-@fa-pied-piper: "\f1a7";
-@fa-pied-piper-alt: "\f1a8";
-@fa-drupal: "\f1a9";
-@fa-joomla: "\f1aa";
-@fa-language: "\f1ab";
-@fa-fax: "\f1ac";
-@fa-building: "\f1ad";
-@fa-child: "\f1ae";
-@fa-paw: "\f1b0";
-@fa-spoon: "\f1b1";
-@fa-cube: "\f1b2";
-@fa-cubes: "\f1b3";
-@fa-behance: "\f1b4";
-@fa-behance-square: "\f1b5";
-@fa-steam: "\f1b6";
-@fa-steam-square: "\f1b7";
-@fa-recycle: "\f1b8";
-@fa-car: "\f1b9";
-@fa-taxi: "\f1ba";
-@fa-tree: "\f1bb";
-@fa-spotify: "\f1bc";
-@fa-deviantart: "\f1bd";
-@fa-soundcloud: "\f1be";
-@fa-database: "\f1c0";
-@fa-file-pdf-o: "\f1c1";
-@fa-file-word-o: "\f1c2";
-@fa-file-excel-o: "\f1c3";
-@fa-file-powerpoint-o: "\f1c4";
-@fa-file-image-o: "\f1c5";
-@fa-file-archive-o: "\f1c6";
-@fa-file-audio-o: "\f1c7";
-@fa-file-video-o: "\f1c8";
-@fa-file-code-o: "\f1c9";
-@fa-vine: "\f1ca";
-@fa-codepen: "\f1cb";
-@fa-jsfiddle: "\f1cc";
-@fa-life-ring: "\f1cd";
-@fa-circle-o-notch: "\f1ce";
-@fa-rebel: "\f1d0";
-@fa-empire: "\f1d1";
-@fa-git-square: "\f1d2";
-@fa-git: "\f1d3";
-@fa-hacker-news: "\f1d4";
-@fa-tencent-weibo: "\f1d5";
-@fa-qq: "\f1d6";
-@fa-weixin: "\f1d7";
-@fa-paper-plane: "\f1d8";
-@fa-paper-plane-o: "\f1d9";
-@fa-history: "\f1da";
-@fa-circle-thin: "\f1db";
-@fa-header: "\f1dc";
-@fa-paragraph: "\f1dd";
-@fa-sliders: "\f1de";
-@fa-share-alt: "\f1e0";
-@fa-share-alt-square: "\f1e1";
-@fa-bomb: "\f1e2";
-@fa-futbol-o: "\f1e3";
-@fa-tty: "\f1e4";
-@fa-binoculars: "\f1e5";
-@fa-plug: "\f1e6";
-@fa-slideshare: "\f1e7";
-@fa-twitch: "\f1e8";
-@fa-yelp: "\f1e9";
-@fa-newspaper-o: "\f1ea";
-@fa-wifi: "\f1eb";
-@fa-calculator: "\f1ec";
-@fa-paypal: "\f1ed";
-@fa-google-wallet: "\f1ee";
-@fa-cc-visa: "\f1f0";
-@fa-cc-mastercard: "\f1f1";
-@fa-cc-discover: "\f1f2";
-@fa-cc-amex: "\f1f3";
-@fa-cc-paypal: "\f1f4";
-@fa-cc-stripe: "\f1f5";
-@fa-bell-slash: "\f1f6";
-@fa-bell-slash-o: "\f1f7";
-@fa-trash: "\f1f8";
-@fa-copyright: "\f1f9";
-@fa-at: "\f1fa";
-@fa-eyedropper: "\f1fb";
-@fa-paint-brush: "\f1fc";
-@fa-birthday-cake: "\f1fd";
-@fa-area-chart: "\f1fe";
-@fa-pie-chart: "\f200";
-@fa-line-chart: "\f201";
-@fa-lastfm: "\f202";
-@fa-lastfm-square: "\f203";
-@fa-toggle-off: "\f204";
-@fa-toggle-on: "\f205";
-@fa-bicycle: "\f206";
-@fa-bus: "\f207";
-@fa-ioxhost: "\f208";
-@fa-angellist: "\f209";
-@fa-cc: "\f20a";
-@fa-ils: "\f20b";
-@fa-meanpath: "\f20c";
-
diff --git a/src/assets/ztree/demo.css b/src/assets/ztree/demo.css
deleted file mode 100644
index f6dba0de..00000000
--- a/src/assets/ztree/demo.css
+++ /dev/null
@@ -1,33 +0,0 @@
-html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
- margin: 0;padding: 0;border: 0;outline: 0;font-weight: inherit;font-style: inherit;font-size: 100%;font-family: inherit;vertical-align: baseline;}
-body {color: #2f332a;font: 15px/21px Arial, Helvetica, simsun, sans-serif;background: #f0f6e4 \9;}
-h1, h2, h3, h4, h5, h6 {color: #2f332a;font-weight: bold;font-family: Helvetica, Arial, sans-serif;padding-bottom: 5px;}
-h1 {font-size: 24px;line-height: 34px;text-align: center;}
-h2 {font-size: 14px;line-height: 24px;padding-top: 5px;}
-h6 {font-weight: normal;font-size: 12px;letter-spacing: 1px;line-height: 24px;text-align: center;}
-a {color:#3C6E31;text-decoration: underline;}
-a:hover {background-color:#3C6E31;color:white;}
-input.radio {margin: 0 2px 0 8px;}
-input.radio.first {margin-left:0;}
-input.empty {color: lightgray;}
-code {color: #2f332a;}
-.highlight_red {color:#A60000;}
-.highlight_green {color:#A7F43D;}
-li {list-style: circle;font-size: 12px;}
-li.title {list-style: none;}
-ul.list {margin-left: 17px;}
-
-div.content_wrap {width: 600px;height:380px;}
-div.content_wrap div.left{float: left;width: 250px;}
-div.content_wrap div.right{float: right;width: 340px;}
-div.zTreeDemoBackground {width:250px;height:362px;text-align:left;}
-
-ul.ztree {margin-top: 10px;border: 1px solid #617775;background: #f0f6e4;width:220px;height:360px;overflow-y:scroll;overflow-x:auto;}
-ul.log {border: 1px solid #617775;background: #f0f6e4;width:300px;height:170px;overflow: hidden;}
-ul.log.small {height:45px;}
-ul.log li {color: #666666;list-style: none;padding-left: 10px;}
-ul.log li.dark {background-color: #E3E3E3;}
-
-/* ruler */
-div.ruler {height:20px; width:220px; background-color:#f0f6e4;border: 1px solid #333; margin-bottom: 5px; cursor: pointer}
-div.ruler div.cursor {height:20px; width:30px; background-color:#3C6E31; color:white; text-align: right; padding-right: 5px; cursor: pointer}
\ No newline at end of file
diff --git a/src/assets/ztree/jquery.ztree.all.min.js b/src/assets/ztree/jquery.ztree.all.min.js
deleted file mode 100644
index d73384ef..00000000
--- a/src/assets/ztree/jquery.ztree.all.min.js
+++ /dev/null
@@ -1,3 +0,0 @@
-!function($){var settings={},roots={},caches={},_consts={className:{BUTTON:"button",LEVEL:"level",ICO_LOADING:"ico_loading",SWITCH:"switch",NAME:"node_name"},event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error",REMOVE:"ztree_remove",SELECTED:"ztree_selected",UNSELECTED:"ztree_unselected"},id:{A:"_a",ICON:"_ico",SPAN:"_span",SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_setting={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nodeClasses:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0,txtSelectedEnable:!1},data:{key:{isParent:"isParent",children:"children",name:"name",title:"",url:"url",icon:"icon"},render:{name:null,title:null},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},async:{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post",dataType:"text",headers:{},xhrFields:{},url:"",autoParam:[],otherParam:[],dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},_initRoot=function(e){var t=data.getRoot(e);t||(t={},data.setRoot(e,t)),data.nodeChildren(e,t,[]),t.expandTriggerFlag=!1,t.curSelectedList=[],t.noSelection=!0,t.createdNodes=[],t.zId=0,t._ver=(new Date).getTime()},_initCache=function(e){var t=data.getCache(e);t||(t={},data.setCache(e,t)),t.nodes=[],t.doms=[]},_bindEvent=function(d){var e=d.treeObj,t=consts.event;e.bind(t.NODECREATED,function(e,t,n){tools.apply(d.callback.onNodeCreated,[e,t,n])}),e.bind(t.CLICK,function(e,t,n,o,a){tools.apply(d.callback.onClick,[t,n,o,a])}),e.bind(t.EXPAND,function(e,t,n){tools.apply(d.callback.onExpand,[e,t,n])}),e.bind(t.COLLAPSE,function(e,t,n){tools.apply(d.callback.onCollapse,[e,t,n])}),e.bind(t.ASYNC_SUCCESS,function(e,t,n,o){tools.apply(d.callback.onAsyncSuccess,[e,t,n,o])}),e.bind(t.ASYNC_ERROR,function(e,t,n,o,a,r){tools.apply(d.callback.onAsyncError,[e,t,n,o,a,r])}),e.bind(t.REMOVE,function(e,t,n){tools.apply(d.callback.onRemove,[e,t,n])}),e.bind(t.SELECTED,function(e,t,n){tools.apply(d.callback.onSelected,[t,n])}),e.bind(t.UNSELECTED,function(e,t,n){tools.apply(d.callback.onUnSelected,[t,n])})},_unbindEvent=function(e){var t=e.treeObj,n=consts.event;t.unbind(n.NODECREATED).unbind(n.CLICK).unbind(n.EXPAND).unbind(n.COLLAPSE).unbind(n.ASYNC_SUCCESS).unbind(n.ASYNC_ERROR).unbind(n.REMOVE).unbind(n.SELECTED).unbind(n.UNSELECTED)},_eventProxy=function(e){var t=e.target,n=data.getSetting(e.data.treeId),o="",a=null,r="",d="",i=null,s=null,l=null;if(tools.eqs(e.type,"mousedown")?d="mousedown":tools.eqs(e.type,"mouseup")?d="mouseup":tools.eqs(e.type,"contextmenu")?d="contextmenu":tools.eqs(e.type,"click")?tools.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+consts.id.SWITCH)?(o=tools.getNodeMainDom(t).id,r="switchNode"):(l=tools.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+consts.id.A}]))&&(o=tools.getNodeMainDom(l).id,r="clickNode"):tools.eqs(e.type,"dblclick")&&(d="dblclick",(l=tools.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+consts.id.A}]))&&(o=tools.getNodeMainDom(l).id,r="switchNode")),0=r.length&&(n=-1):(r=data.nodeChildren(e,t,[]),n=-1),0=u.length-n.length)&&(a=-1);for(var p=0,f=n.length;p/g,">");e.push("",a,"")},makeDOMNodeLine:function(e,t,n){e.push("")},makeDOMNodeMainAfter:function(e,t,n){e.push("")},makeDOMNodeMainBefore:function(e,t,n){e.push("")},makeDOMNodeNameAfter:function(e,t,n){e.push("")},makeDOMNodeNameBefore:function(e,t,n){var o=data.nodeTitle(t,n),a=view.makeNodeUrl(t,n),r=view.makeNodeFontCss(t,n),d=view.makeNodeClasses(t,n),i=[];for(var s in r)i.push(s,":",r[s],";");e.push("/g,">"),"'"),e.push(">")},makeNodeFontCss:function(e,t){var n=tools.apply(e.view.fontCss,[e.treeId,t],e.view.fontCss);return n&&"function"!=typeof n?n:{}},makeNodeClasses:function(e,t){var n=tools.apply(e.view.nodeClasses,[e.treeId,t],e.view.nodeClasses);return n&&"function"!=typeof n?n:{add:[],remove:[]}},makeNodeIcoClass:function(e,t){var n=["ico"];if(!t.isAjaxing){var o=data.nodeIsParent(e,t);n[0]=(t.iconSkin?t.iconSkin+"_":"")+n[0],o?n.push(t.open?consts.folder.OPEN:consts.folder.CLOSE):n.push(consts.folder.DOCU)}return consts.className.BUTTON+" "+n.join("_")},makeNodeIcoStyle:function(e,t){var n=[];if(!t.isAjaxing){var o=data.nodeIsParent(e,t)&&t.iconOpen&&t.iconClose?t.open?t.iconOpen:t.iconClose:t[e.data.key.icon];o&&n.push("background:url(",o,") 0 0 no-repeat;"),0!=e.view.showIcon&&tools.apply(e.view.showIcon,[e.treeId,t],!0)||n.push("display:none;")}return n.join("")},makeNodeLineClass:function(e,t){var n=[];return e.view.showLine?0==t.level&&t.isFirstNode&&t.isLastNode?n.push(consts.line.ROOT):0==t.level&&t.isFirstNode?n.push(consts.line.ROOTS):t.isLastNode?n.push(consts.line.BOTTOM):n.push(consts.line.CENTER):n.push(consts.line.NOLINE),data.nodeIsParent(e,t)?n.push(t.open?consts.folder.OPEN:consts.folder.CLOSE):n.push(consts.folder.DOCU),view.makeNodeLineClassEx(t)+n.join("_")},makeNodeLineClassEx:function(e){return consts.className.BUTTON+" "+consts.className.LEVEL+e.level+" "+consts.className.SWITCH+" "},makeNodeTarget:function(e){return e.target||"_blank"},makeNodeUrl:function(e,t){var n=e.data.key.url;return t[n]?t[n]:null},makeUlHtml:function(e,t,n,o){n.push("")},makeUlLineClass:function(e,t){return e.view.showLine&&!t.isLastNode?consts.line.LINE:""},removeChildNodes:function(e,t){if(t){var n=data.nodeChildren(e,t);if(n){for(var o=0,a=n.length;on.bottom||o.right>n.right||o.left"))}),C.addZTreeTools(function(i,h){h.checkNode=function(e,t,c,h){var a=C.nodeChecked(i,e);if(!0!==e.chkDisabled&&(!0!==t&&!1!==t&&(t=!a),h=!!h,(a!==t||c)&&(!h||0!=o.apply(this.setting.callback.beforeCheck,[this.setting.treeId,e],!0))&&o.uCanDo(this.setting)&&this.setting.check.enable&&!0!==e.nocheck)){C.nodeChecked(i,e,t);var n=f(e,s.id.CHECK,this.setting);!c&&this.setting.check.chkStyle!==s.radio.STYLE||l.checkNodeRelation(this.setting,e),l.setChkClass(this.setting,n,e),l.repairParentChkClassWithSelf(this.setting,e),h&&this.setting.treeObj.trigger(s.event.CHECK,[null,this.setting.treeId,e])}},h.checkAllNodes=function(e){l.repairAllChk(this.setting,!!e)},h.getCheckedNodes=function(e){e=!1!==e;var t=C.nodeChildren(i,C.getRoot(this.setting));return C.getTreeCheckedNodes(this.setting,t,e)},h.getChangeCheckedNodes=function(){var e=C.nodeChildren(i,C.getRoot(this.setting));return C.getTreeChangeCheckedNodes(this.setting,e)},h.setChkDisabled=function(e,t,c,h){t=!!t,c=!!c,h=!!h,l.repairSonChkDisabled(this.setting,e,t,h),l.repairParentChkDisabled(this.setting,e.getParentNode(),t,c)};var a=h.updateNode;h.updateNode=function(e,t){if((a&&a.apply(h,arguments),e&&this.setting.check.enable)&&(f(e,this.setting).get(0)&&o.uCanDo(this.setting))){var c=f(e,s.id.CHECK,this.setting);1!=t&&this.setting.check.chkStyle!==s.radio.STYLE||l.checkNodeRelation(this.setting,e),l.setChkClass(this.setting,c,e),l.repairParentChkClassWithSelf(this.setting,e)}}});var n=l.createNodes;l.createNodes=function(e,t,c,h,a){n&&n.apply(l,arguments),c&&l.repairParentChkClassWithSelf(e,h)};var i=l.removeNode;l.removeNode=function(e,t){var c=t.getParentNode();i&&i.apply(l,arguments),t&&c&&(l.repairChkClass(e,c),l.repairParentChkClass(e,c))};var d=l.appendNodes;l.appendNodes=function(e,t,c,h,a,n,i){var r="";return d&&(r=d.apply(l,arguments)),h&&C.makeChkFlag(e,h),r}}(jQuery);
-!function(fe){var Ee={event:{DRAG:"ztree_drag",DROP:"ztree_drop",RENAME:"ztree_rename",DRAGMOVE:"ztree_dragmove"},id:{EDIT:"_edit",INPUT:"_input",REMOVE:"_remove"},move:{TYPE_INNER:"inner",TYPE_PREV:"prev",TYPE_NEXT:"next"},node:{CURSELECTED_EDIT:"curSelectedNode_Edit",TMPTARGET_TREE:"tmpTargetzTree",TMPTARGET_NODE:"tmpTargetNode"}},s={onHoverOverNode:function(e,t){var o=Re.getSetting(e.data.treeId),d=Re.getRoot(o);d.curHoverNode!=t&&s.onHoverOutNode(e),d.curHoverNode=t,be.addHoverDom(o,t)},onHoverOutNode:function(e,t){var o=Re.getSetting(e.data.treeId),d=Re.getRoot(o);d.curHoverNode&&!Re.isSelectedNode(o,d.curHoverNode)&&(be.removeTreeDom(o,d.curHoverNode),d.curHoverNode=null)},onMousedownNode:function(e,t){var o,d,Z=Re.getSetting(e.data.treeId),$=Re.getRoot(Z),J=Re.getRoots();if(2==e.button||!Z.edit.enable||!Z.edit.drag.isCopy&&!Z.edit.drag.isMove)return!0;var r=e.target,n=Re.getRoot(Z).curSelectedList,ee=[];if(Re.isSelectedNode(Z,t))for(o=0,d=n.length;o
",Z),t=0,o=ee.length;tZ.edit.drag.maxShowNodeNum-1||((r=Pe("",Z)).append(Pe(d,he.id.A,Z).clone()),r.css("padding","0"),r.children("#"+d.tId+he.id.A).removeClass(he.node.CURSELECTED),te.append(r),t==Z.edit.drag.maxShowNodeNum-1&&(r=Pe(" ... ",Z),te.append(r)));te.attr("id",ee[0].tId+he.id.UL+"_tmp"),te.addClass(Z.treeObj.attr("class")),te.appendTo(ie),(oe=Pe("",Z)).attr("id","zTreeMove_arrow_tmp"),oe.appendTo(ie),Z.treeObj.trigger(he.event.DRAG,[e,Z.treeId,ee])}if(1==$.dragFlag){if(de&&oe.attr("id")==e.target.id&&ue&&e.clientX+ae.scrollLeft()+2>fe("#"+ue+he.id.A,de).offset().left){var s=fe("#"+ue+he.id.A,de);e.target=0Z.edit.drag.borderMin,b=fZ.edit.drag.borderMin,R=EZ.edit.drag.borderMin,P=IZ.edit.drag.borderMin,C=T>Z.edit.drag.borderMin&&f>Z.edit.drag.borderMin&&E>Z.edit.drag.borderMin&&I>Z.edit.drag.borderMin,w=h&&se.treeObj.scrollTop()<=0,M=b&&se.treeObj.scrollTop()+se.treeObj.height()+10>=m,_=R&&se.treeObj.scrollLeft()<=0,O=P&&se.treeObj.scrollLeft()+se.treeObj.width()+10>=p;if(e.target&&Ie.isChildOrSelf(e.target,se.treeId)){for(var D=e.target;D&&D.tagName&&!Ie.eqs(D.tagName,"li")&&D.id!=se.treeId;)D=D.parentNode;var y=!0;for(t=0,o=ee.length;tse.edit.drag.autoOpenTime&&Ie.apply(se.callback.beforeDragOpen,[se.treeId,L],!0)&&(be.switchNode(se,L),se.edit.drag.autoExpandTrigger&&se.treeObj.trigger(he.event.EXPAND,[se.treeId,L]))},se.edit.drag.autoOpenTime+50),window.zTreeMoveTargetNodeTId=L.tId)}}else F()}else ve=he.move.TYPE_INNER,de&&Ie.apply(se.edit.drag.inner,[se.treeId,ee,null],!!se.edit.drag.inner)?de.addClass(he.node.TMPTARGET_TREE):de=null,oe.css({display:"none"}),window.zTreeMoveTimer&&(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null);ce=ue,Ne=ve,Z.treeObj.trigger(he.event.DRAGMOVE,[e,Z.treeId,ee])}return!1}function Te(d){if(window.zTreeMoveTimer&&(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null),Ne=ce=null,ae.unbind("mousemove",s),ae.unbind("mouseup",Te),ae.unbind("selectstart",c),ie.css("cursor",""),de&&(de.removeClass(he.node.TMPTARGET_TREE),ue&&fe("#"+ue+he.id.A,de).removeClass(he.node.TMPTARGET_NODE+"_"+he.move.TYPE_PREV).removeClass(he.node.TMPTARGET_NODE+"_"+Ee.move.TYPE_NEXT).removeClass(he.node.TMPTARGET_NODE+"_"+Ee.move.TYPE_INNER)),Ie.showIfameMask(Z,!1),J.showHoverDom=!0,0!=$.dragFlag){var e,t,o;for(e=$.dragFlag=0,t=ee.length;e ",e);l.appendTo(Pe("body",e)),o.dragMaskList.push(l)}}},view:{addEditBtn:function(e,t){if(!(t.editNameFlag||0