jsgui3-server 0.0.86 → 0.0.87
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/bundler/js-bundler.js
CHANGED
|
@@ -167,6 +167,8 @@ const bundle_web_page = (webpage, options = {}) => {
|
|
|
167
167
|
// So when it finds CSS, it can output that.
|
|
168
168
|
// A Control's CSS property, within the JS definition.
|
|
169
169
|
// That can be output to a CSS file, copied or removed from the JS file.
|
|
170
|
+
|
|
171
|
+
// js_mode debug
|
|
170
172
|
|
|
171
173
|
res_bundle_js = await bundle_js(diskpath_js_client, {
|
|
172
174
|
'js_mode': 'mini',
|
|
@@ -317,10 +319,12 @@ const bundle_web_page = (webpage, options = {}) => {
|
|
|
317
319
|
|
|
318
320
|
//const diskpath_js_client = require.resolve('./../controls/page/admin.js');
|
|
319
321
|
|
|
322
|
+
// debug mode
|
|
323
|
+
|
|
320
324
|
|
|
321
325
|
const obs_bundle = bundle_js(diskpath_js_client, {
|
|
322
|
-
'js_mode': '
|
|
323
|
-
'babel': '
|
|
326
|
+
'js_mode': 'debug',
|
|
327
|
+
'babel': 'debug'
|
|
324
328
|
});
|
|
325
329
|
|
|
326
330
|
|
package/examples/square_box.js
CHANGED
|
@@ -85,9 +85,29 @@ Square_Box.css = `
|
|
|
85
85
|
height: 220px;
|
|
86
86
|
}
|
|
87
87
|
`;
|
|
88
|
+
|
|
89
|
+
// then if running on the client...?
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
88
93
|
//controls.Square_Box = Square_Box;
|
|
94
|
+
// could export jsgui with the updated controls....
|
|
95
|
+
// so that they are in the correct Page Context.?
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
controls.Demo_UI = Demo_UI;
|
|
99
|
+
controls.Square_Box = Square_Box;
|
|
89
100
|
|
|
101
|
+
module.exports = jsgui;
|
|
102
|
+
|
|
103
|
+
/*
|
|
90
104
|
module.exports = {
|
|
91
105
|
Square_Box: Square_Box,
|
|
92
106
|
Demo_UI: Demo_UI
|
|
93
|
-
}
|
|
107
|
+
}
|
|
108
|
+
*/
|
|
109
|
+
|
|
110
|
+
// Then if window...?
|
|
111
|
+
|
|
112
|
+
// Need to add the Square_Box control to the context or original map of controls...
|
|
113
|
+
|
package/old/square_box.js
CHANGED
|
@@ -47,6 +47,8 @@ Demo_UI.css = `
|
|
|
47
47
|
}
|
|
48
48
|
`;
|
|
49
49
|
|
|
50
|
+
|
|
51
|
+
|
|
50
52
|
class Square_Box extends Control {
|
|
51
53
|
constructor(spec) {
|
|
52
54
|
spec.__type_name = spec.__type_name || 'square_box';
|
|
@@ -82,6 +84,8 @@ Square_Box.css = `
|
|
|
82
84
|
`;
|
|
83
85
|
controls.Square_Box = Square_Box;
|
|
84
86
|
|
|
87
|
+
// need records in the map of controls by name
|
|
88
|
+
|
|
85
89
|
if (require.main === module) {
|
|
86
90
|
const SCS = require('../../single-control-server');
|
|
87
91
|
const server = new SCS({
|
package/package.json
CHANGED
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"cookies": "^0.8.0",
|
|
14
14
|
"fnl": "^0.0.21",
|
|
15
15
|
"fnlfs": "^0.0.24",
|
|
16
|
-
"jsgui3-client": "^0.0.
|
|
17
|
-
"jsgui3-html": "0.0.
|
|
16
|
+
"jsgui3-client": "^0.0.70",
|
|
17
|
+
"jsgui3-html": "0.0.97",
|
|
18
18
|
"multiparty": "^4.2.3",
|
|
19
19
|
"ncp": "^2.0.0",
|
|
20
|
-
"obext": "0.0.
|
|
20
|
+
"obext": "0.0.24",
|
|
21
21
|
"rimraf": "^3.0.2",
|
|
22
22
|
"stream-to-array": "^2.3.0",
|
|
23
23
|
"url-parse": "^1.5.10"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"type": "git",
|
|
41
41
|
"url": "https://github.com/metabench/jsgui3-server.git"
|
|
42
42
|
},
|
|
43
|
-
"version": "0.0.
|
|
43
|
+
"version": "0.0.87"
|
|
44
44
|
}
|