zet-lib 1.0.24 → 1.0.26
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/lib/zGeneratorRouter.js +6 -6
- package/package.json +1 -1
package/lib/zGeneratorRouter.js
CHANGED
|
@@ -11,9 +11,10 @@ const zRoute = require('./zRoute');
|
|
|
11
11
|
const connection = require('./connection');
|
|
12
12
|
const Util = require('./Util');
|
|
13
13
|
const moduleLib = require('./moduleLib');
|
|
14
|
+
const myCache = require('./cache');
|
|
14
15
|
|
|
15
16
|
const nots = ['index','uploads','js','css','log','generator','zmenu','zgenerator','zfields','zrole','zfunction','zgrid','zgrid_default', 'zuser','zreport','zpage','zlayout','zerror','zuser_company','zconfig'];
|
|
16
|
-
const nots = [];
|
|
17
|
+
//const nots = [];
|
|
17
18
|
const generatorUrl = 'https://appmaker.monster';
|
|
18
19
|
//const generatorUrl = 'http://localhost:3000';
|
|
19
20
|
|
|
@@ -72,14 +73,13 @@ router.get('/', csrfProtection, async (req, res) => {
|
|
|
72
73
|
sorting: sorting,
|
|
73
74
|
lock: lock,
|
|
74
75
|
routeName:res.locals.routeName,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
//renderEnd: "zgenerator/indexjs.ejs"
|
|
76
|
+
//endHTML : Util.readFile(`./views/generatorjs.ejs`)
|
|
77
|
+
renderBody: "zgenerator/index.ejs",
|
|
78
|
+
renderEnd: "zgenerator/indexjs.ejs"
|
|
79
79
|
};
|
|
80
80
|
let dataRender = zRoute.renderHTML(renderData);
|
|
81
81
|
|
|
82
|
-
res.render('
|
|
82
|
+
res.render('layouts/generator',dataRender);
|
|
83
83
|
});
|
|
84
84
|
|
|
85
85
|
router.post('/fields', async (req, res) => {
|