jsgui3-server 0.0.92 → 0.0.94
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.
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
const jsgui = require('./square_box_client');
|
|
2
2
|
|
|
3
3
|
const {Demo_UI, Square_Box} = jsgui.controls;
|
|
4
|
-
const Server = require('
|
|
4
|
+
const Server = require('../../server');
|
|
5
5
|
|
|
6
6
|
// Want to exclude this from the client bundle.
|
|
7
7
|
// Some kind of marking to say that it's server-side only?
|
|
8
8
|
|
|
9
9
|
if (require.main === module) {
|
|
10
|
-
|
|
11
10
|
const server = new Server({
|
|
12
11
|
Ctrl: Demo_UI,
|
|
13
12
|
// Giving it the Ctrl and disk path client js should enable to server to get the JS-bundled CSS from the file(s).
|
|
@@ -18,7 +17,6 @@ if (require.main === module) {
|
|
|
18
17
|
'disk_path_client_js': require.resolve('./square_box_client.js')
|
|
19
18
|
//js_client: require.resolve('./square_box.js')
|
|
20
19
|
});
|
|
21
|
-
|
|
22
20
|
// A callback or event for when the bundling has been completed
|
|
23
21
|
// a 'ready' event.
|
|
24
22
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const jsgui = require('jsgui3-client');
|
|
1
|
+
const jsgui = require('jsgui3-client');
|
|
2
2
|
const {controls, Control, mixins} = jsgui;
|
|
3
3
|
const {dragable} = mixins;
|
|
4
4
|
|
|
@@ -73,6 +73,9 @@ class Square_Box extends Control {
|
|
|
73
73
|
|
|
74
74
|
this.on('dragend', e => {
|
|
75
75
|
console.log('square box dragend e', e);
|
|
76
|
+
//this.background.color = '#FF4444';
|
|
77
|
+
//this.color = '#FF4444';
|
|
78
|
+
this.dom.el.style.backgroundColor = '#FF4444';
|
|
76
79
|
});
|
|
77
80
|
|
|
78
81
|
}
|
|
@@ -62,8 +62,10 @@ class Demo_UI extends Control {
|
|
|
62
62
|
// or even box2.color = ... and it would know which color was meant
|
|
63
63
|
// or be able to access the .color reference / property name when asked for.
|
|
64
64
|
|
|
65
|
+
box2.background.color = '#6655CC';
|
|
65
66
|
|
|
66
|
-
|
|
67
|
+
|
|
68
|
+
//box2.dom.attributes.style['background-color'] = '#6655CC';
|
|
67
69
|
this.add(box2);
|
|
68
70
|
|
|
69
71
|
const box3 = new Square_Box({
|
|
@@ -108,13 +110,10 @@ Demo_UI.css = `
|
|
|
108
110
|
|
|
109
111
|
// then if running on the client...?
|
|
110
112
|
|
|
111
|
-
|
|
112
|
-
|
|
113
113
|
//controls.Square_Box = Square_Box;
|
|
114
114
|
// could export jsgui with the updated controls....
|
|
115
115
|
// so that they are in the correct Page Context.?
|
|
116
116
|
|
|
117
|
-
|
|
118
117
|
controls.Demo_UI = Demo_UI;
|
|
119
118
|
controls.Square_Box = Square_Box;
|
|
120
119
|
|
package/module.js
CHANGED
|
@@ -9,13 +9,13 @@ jsgui.Server_Page_Context = Server_Page_Context;
|
|
|
9
9
|
// Login = require('../resource/login'),
|
|
10
10
|
//var Server = {};
|
|
11
11
|
|
|
12
|
-
const Resource_Publisher = require('./publishing/resource-publisher');
|
|
12
|
+
const Resource_Publisher = require('./publishing/http-resource-publisher');
|
|
13
13
|
jsgui.Resource_Publisher = Resource_Publisher;
|
|
14
14
|
jsgui.Server = require('./server');
|
|
15
15
|
jsgui.fs2 = require('./fs2');
|
|
16
16
|
//jsgui.Resource = Resource;
|
|
17
17
|
//console.log('pre scs');
|
|
18
|
-
jsgui.Single_Control_Server = require('./single-control-server');
|
|
18
|
+
//jsgui.Single_Control_Server = require('./single-control-server');
|
|
19
19
|
//console.log('3)jsgui', jsgui);
|
|
20
20
|
|
|
21
21
|
// Make the Resource_Publisher available?
|
package/package.json
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
"main": "module.js",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@babel/core": "^7.
|
|
7
|
-
"@babel/generator": "^7.
|
|
8
|
-
"@babel/parser": "7.
|
|
6
|
+
"@babel/core": "^7.20.5",
|
|
7
|
+
"@babel/generator": "^7.20.5",
|
|
8
|
+
"@babel/parser": "7.20.5",
|
|
9
9
|
"babel-plugin-transform-runtime": "^6.23.0",
|
|
10
10
|
"babel-preset-minify": "^0.5.2",
|
|
11
11
|
"browserify": "17.0.0",
|
|
12
12
|
"child-process": "^1.0.2",
|
|
13
13
|
"cookies": "^0.8.0",
|
|
14
|
-
"fnl": "^0.0.
|
|
15
|
-
"fnlfs": "^0.0.
|
|
14
|
+
"fnl": "^0.0.23",
|
|
15
|
+
"fnlfs": "^0.0.27",
|
|
16
16
|
"jsgui3-client": "^0.0.73",
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
"multiparty": "^4.2.3",
|
|
19
19
|
"ncp": "^2.0.0",
|
|
20
20
|
"obext": "0.0.24",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"url-parse": "^1.5.10"
|
|
24
24
|
},
|
|
25
25
|
"commentDeps": {
|
|
26
|
+
"jsgui3-html": "0.0.102",
|
|
26
27
|
"babel-plugin-minify-dead-code-elimination": "^0.5.0",
|
|
27
28
|
"babel-plugin-remove-comments": "^2.0.0",
|
|
28
29
|
"babel-plugin-transform-class": "^0.3.0",
|
|
@@ -40,5 +41,5 @@
|
|
|
40
41
|
"type": "git",
|
|
41
42
|
"url": "https://github.com/metabench/jsgui3-server.git"
|
|
42
43
|
},
|
|
43
|
-
"version": "0.0.
|
|
44
|
+
"version": "0.0.94"
|
|
44
45
|
}
|