not-node 6.3.91 → 6.3.92
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.
package/package.json
CHANGED
|
@@ -12,9 +12,21 @@ const LABELS = {
|
|
|
12
12
|
single: `${MODULE_NAME}:${MODEL_NAME}_label_single`,
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
+
Object.freeze(LABELS);
|
|
16
|
+
|
|
15
17
|
class nc<%- ModelName %>Common extends notCRUD {
|
|
16
|
-
static
|
|
17
|
-
|
|
18
|
+
static get MODULE_NAME(){
|
|
19
|
+
return MODULE_NAME;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static get MODEL_NAME(){
|
|
23
|
+
return MODEL_NAME;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static get LABELS(){
|
|
27
|
+
return LABELS;
|
|
28
|
+
}
|
|
29
|
+
|
|
18
30
|
constructor(app, params) {
|
|
19
31
|
super(app, `${MODULE_NAME}.${MODEL_NAME}`);
|
|
20
32
|
this.setModuleName(MODULE_NAME);
|
|
@@ -71,6 +83,11 @@ class nc<%- ModelName %>Common extends notCRUD {
|
|
|
71
83
|
});
|
|
72
84
|
return newRecord;
|
|
73
85
|
}
|
|
86
|
+
|
|
87
|
+
static getMenu(){
|
|
88
|
+
return notCRUD.getCommonMenu(nc<%- ModelName %>Common);
|
|
89
|
+
}
|
|
90
|
+
|
|
74
91
|
}
|
|
75
92
|
|
|
76
93
|
export default nc<%- ModelName %>Common;
|
|
@@ -20,8 +20,17 @@ let manifest = {
|
|
|
20
20
|
items: [],
|
|
21
21
|
},
|
|
22
22
|
side: {
|
|
23
|
-
sections: [
|
|
24
|
-
|
|
23
|
+
sections: [
|
|
24
|
+
{
|
|
25
|
+
id: '<%- moduleName %>',
|
|
26
|
+
title: '<%- moduleName %>:menu_section_title',
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
items: [
|
|
30
|
+
<% for (let {ModelName} of entities){ %>
|
|
31
|
+
...nc<%- ModelName %>.getMenu(),
|
|
32
|
+
<% } %>
|
|
33
|
+
],
|
|
25
34
|
},
|
|
26
35
|
},
|
|
27
36
|
};
|