isite 2022.9.25 → 2023.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -985,7 +985,7 @@ app.directive('iTreeview', [
|
|
|
985
985
|
$scope.v_nodes = [];
|
|
986
986
|
if (nodes) {
|
|
987
987
|
nodes.forEach((node) => {
|
|
988
|
-
node.$parent_id = node.parent_id || 0;
|
|
988
|
+
node.$parent_id = node.parent_id || node.parentId || 0;
|
|
989
989
|
node.v_display = node.v_display || '';
|
|
990
990
|
node.v_display += node[attrs.display];
|
|
991
991
|
if (node.$parent_id == 0) {
|
|
@@ -1005,7 +1005,7 @@ app.directive('iTreeview', [
|
|
|
1005
1005
|
v_node.nodes = v_node.nodes || [];
|
|
1006
1006
|
|
|
1007
1007
|
nodes.forEach((node) => {
|
|
1008
|
-
node.$parent_id = node.parent_id || 0;
|
|
1008
|
+
node.$parent_id = node.parent_id || node.parentId ||0;
|
|
1009
1009
|
if (node.$parent_id == v_node.id) {
|
|
1010
1010
|
node.v_display = node.v_display || '';
|
|
1011
1011
|
node.v_display += node[attrs.display];
|
package/index.js
CHANGED
|
@@ -26,6 +26,14 @@ module.exports = function init(options) {
|
|
|
26
26
|
____0.child_process = require('child_process');
|
|
27
27
|
____0.cwd = process.cwd();
|
|
28
28
|
____0.setting = {};
|
|
29
|
+
____0.apps = [];
|
|
30
|
+
____0.appList = [];
|
|
31
|
+
____0.addApp = function (app) {
|
|
32
|
+
____0.appList.push(app);
|
|
33
|
+
};
|
|
34
|
+
____0.getApp = function (name) {
|
|
35
|
+
return ____0.appList.find((a) => a.name === name);
|
|
36
|
+
};
|
|
29
37
|
|
|
30
38
|
____0.require = function (file_path) {
|
|
31
39
|
return require(file_path)(____0);
|
|
@@ -221,7 +229,6 @@ module.exports = function init(options) {
|
|
|
221
229
|
____0.dashboard = require(__dirname + '/lib/dashboard.js');
|
|
222
230
|
____0.dashboard(____0);
|
|
223
231
|
|
|
224
|
-
____0.apps = [];
|
|
225
232
|
____0.importApps = function (app_dir) {
|
|
226
233
|
if (____0.isFileExistsSync(app_dir) && ____0.fs.lstatSync(app_dir).isDirectory()) {
|
|
227
234
|
____0.fs.readdir(app_dir, (err, files) => {
|
|
@@ -239,7 +246,7 @@ module.exports = function init(options) {
|
|
|
239
246
|
____0.importApp = function (app_path, name2) {
|
|
240
247
|
____0.log('=== Importing App : ' + app_path);
|
|
241
248
|
if (____0.isFileExistsSync(app_path + '/site_files/json/words.json')) {
|
|
242
|
-
____0.words.
|
|
249
|
+
____0.words.addPath(app_path);
|
|
243
250
|
}
|
|
244
251
|
|
|
245
252
|
if (____0.isFileExistsSync(app_path + '/site_files/json/vars.json')) {
|
package/lib/words.js
CHANGED