jsgui3-server 0.0.123 → 0.0.124

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.
Files changed (24) hide show
  1. package/examples/box/1) square box/server.js +2 -2
  2. package/examples/box/3) twenty selectable square boxes/css flex wrap/client.js +1 -26
  3. package/examples/box/4) twenty composition selectable square boxes/css flex wrap/client.js +151 -0
  4. package/examples/box/4) twenty composition selectable square boxes/css flex wrap/server.js +39 -0
  5. package/examples/box/5) square box compositional dragable/client.js +204 -0
  6. package/examples/box/5) square box compositional dragable/server.js +113 -0
  7. package/examples/boxes/square_boxes.js +1 -1
  8. package/examples/color_palette.js +1 -1
  9. package/examples/controls/1) window/server.js +1 -1
  10. package/examples/controls/11b) window, shared Data_Object model mirrored text fields/server.js +1 -1
  11. package/examples/controls/11c) window, shared Data_Value model mirrored text fields/server.js +1 -1
  12. package/examples/controls/11d) window, shared model mirrored integer text fields/server.js +1 -1
  13. package/examples/controls/13) window, Dropdown_Menu control/client.js +1 -1
  14. package/examples/controls/13) window, Dropdown_Menu control/server.js +1 -0
  15. package/examples/controls/2) two windows/server.js +1 -1
  16. package/examples/controls/3) five windows/server.js +1 -1
  17. package/examples/controls/7) window, month_view/client.js +19 -12
  18. package/examples/controls/8) window, checkbox/server.js +1 -1
  19. package/examples/controls/9b) window, shared data.model mirrored date pickers/server.js +1 -1
  20. package/examples/grids/grid_1.js +1 -1
  21. package/examples/introducing jsgui3/server.js +1 -1
  22. package/examples/mx_display/mx_display_1.js +1 -1
  23. package/package.json +8 -8
  24. package/page-context.js +1 -0
@@ -1,6 +1,6 @@
1
1
  const jsgui = require('./client');
2
2
 
3
- const {Demo_UI, Square_Box} = jsgui.controls;
3
+ const {Demo_UI} = jsgui.controls;
4
4
  const Server = require('../../../server');
5
5
 
6
6
 
@@ -97,7 +97,7 @@ if (require.main === module) {
97
97
 
98
98
  // server start will change to observable?
99
99
 
100
- server.start(8080, function (err, cb_start) {
100
+ server.start(52000, function (err, cb_start) {
101
101
  if (err) {
102
102
  throw err;
103
103
  } else {
@@ -76,37 +76,12 @@ class Square_Box extends Control {
76
76
  */
77
77
 
78
78
  selectable(this);
79
- console.log('selectable mixin applied to square box');
79
+ console.log('selectable mixin applied to square box on activation');
80
80
  this.selectable = true;
81
81
  // Maybe should turn on selectable by default?
82
82
  // Though mixins may be best to add functionality rather than add and enable it always.
83
83
 
84
- //this.selectable = true;
85
84
 
86
-
87
-
88
- //console.log('this.dragable = true;');
89
-
90
- this.on('dragend', e => {
91
- this.background.color = '#44FF44';
92
- const bcr = this.bcr();
93
- const absolutise_position = () => {
94
- const style = this.dom.attributes.style;
95
- // but need to move it to the body....
96
- // But then when it's in absolute position the dragable mixin needs to support it and not mess up...
97
-
98
- style.position = 'absolute';
99
- style.left = bcr[0][0];
100
- style.top = bcr[0][1];
101
- style.transform = 'none';
102
- // Much better if these lines were not needed. Should be able to set these ta translate x and y values once the
103
- // style transform gets set.
104
- this.ta[6] = 0; // This ta system may be a good and fast way to set translations, should not need to
105
- // use it when using a higher level api though.
106
- this.ta[7] = 0;
107
- }
108
- absolutise_position();
109
- });
110
85
  }
111
86
  }
112
87
  }
@@ -0,0 +1,151 @@
1
+ const jsgui = require('jsgui3-client');
2
+ const {controls, Control, mixins} = jsgui;
3
+ const {dragable, selectable} = mixins;
4
+
5
+ const Active_HTML_Document = require('../../../../controls/Active_HTML_Document');
6
+
7
+ class Demo_UI extends Active_HTML_Document {
8
+ constructor(spec = {}) {
9
+ spec.__type_name = spec.__type_name || 'demo_ui';
10
+ super(spec);
11
+ const {context} = this;
12
+ if (typeof this.body.add_class === 'function') {
13
+ this.body.add_class('demo-ui');
14
+ }
15
+
16
+ // Persistant view ui properties.
17
+ // So that may be automated in a MVC+ type way.
18
+
19
+ // so in the compositional phase (including on the server) it will be able to set up the view properties.
20
+
21
+ // Composition to Active persistance.
22
+
23
+ // Make the dom attributes within the view model even?
24
+ // Or not, as they are a layer that carries the view model to the client.
25
+
26
+ // .view.data.model.mixins perhaps.
27
+ // would be a collection of some sort.
28
+
29
+ // view.data.model.mixins.add('selectable');
30
+ // or it's a Data_Object? A Collection makes more sense in some ways.
31
+
32
+
33
+ // And the mixins part of that data model will specifically get persisted (rendered and activated).
34
+
35
+
36
+
37
+
38
+
39
+
40
+ const compose = () => {
41
+ const n = 20;
42
+ for (let c = 0; c < n; c++) {
43
+ const box = new Square_Box({
44
+ context: context
45
+ })
46
+ selectable(box);
47
+ box.selectable = true;
48
+
49
+ // box.view.model.data.mixins
50
+
51
+ // set up .selectable as a persistable field?
52
+ // seems like more in-depth work on persistance of view data model would make most sense here.
53
+ // with selectable ideally being / becoming a property of the view data model.
54
+
55
+ // Will also need to persist mixin data that refers to (other) controls.
56
+ // Should try this next with a dragable mixin that uses another control as a handle.
57
+ //
58
+
59
+ // Though selectable should support a handle as well.
60
+
61
+
62
+
63
+
64
+
65
+ //box.selectable = true;
66
+
67
+
68
+ this.body.add(box);
69
+ }
70
+ }
71
+ if (!spec.el) {
72
+ compose();
73
+ }
74
+ }
75
+ activate() {
76
+ if (!this.__active) {
77
+ super.activate();
78
+ const {context} = this;
79
+
80
+ //console.log('activate Demo_UI');
81
+
82
+ context.on('window-resize', e_resize => {
83
+ //console.log('window-resize', e_resize);
84
+
85
+ });
86
+ }
87
+ }
88
+ }
89
+ Demo_UI.css = `
90
+
91
+ body {
92
+ margin: 0;
93
+ }
94
+
95
+ .demo-ui {
96
+ display: flex;
97
+ flex-wrap: wrap;
98
+ /* flex-direction: column; */
99
+ justify-content: center;
100
+ align-items: center;
101
+ text-align: center;
102
+ min-height: 100vh;
103
+ }
104
+ `;
105
+
106
+ class Square_Box extends Control {
107
+ constructor(spec) {
108
+ spec.__type_name = spec.__type_name || 'square_box';
109
+ super(spec);
110
+ this.add_class('square-box');
111
+ }
112
+ activate() {
113
+ if (!this.__active) {
114
+ super.activate();
115
+ //console.log('Activate square box');
116
+ //console.log('this.selectable', this.selectable);
117
+
118
+
119
+ // Could this have been set up in advance?
120
+ // Seems like deeper work on UI state and property persistance would help with this.
121
+
122
+ // But want to make .selectable persist from composition to the active control.
123
+
124
+ // May be best to set up and automate persistant view.data.model fields.
125
+
126
+
127
+
128
+
129
+
130
+ //this.selectable = true;
131
+
132
+ }
133
+ }
134
+ }
135
+ Square_Box.css = `
136
+ .square-box {
137
+ box-sizing: border-box;
138
+ background-color: #BB3333;
139
+ width: 80px;
140
+ height: 80px;
141
+ }
142
+ .square-box.selected {
143
+ background-color: #3333BB;
144
+ border: 3px solid #000;
145
+ }
146
+ `;
147
+
148
+ controls.Demo_UI = Demo_UI;
149
+ controls.Square_Box = Square_Box;
150
+
151
+ module.exports = jsgui;
@@ -0,0 +1,39 @@
1
+ const jsgui = require('./client');
2
+
3
+ const {Demo_UI, Square_Box} = jsgui.controls;
4
+ const Server = require('../../../../server');
5
+
6
+ if (require.main === module) {
7
+
8
+ const server = new Server({
9
+ Ctrl: Demo_UI,
10
+ debug: true,
11
+
12
+
13
+ //'js_mode': 'debug',
14
+ 'src_path_client_js': require.resolve('./client.js')
15
+ //js_client: require.resolve('./square_box.js')
16
+ });
17
+ // A callback or event for when the bundling has been completed
18
+ // a 'ready' event.
19
+
20
+ // then start the server....
21
+ // be able to choose the port / ports?
22
+ console.log('waiting for server ready event');
23
+ server.on('ready', () => {
24
+ console.log('server ready');
25
+ // server start will change to observable?
26
+ server.start(52000, function (err, cb_start) {
27
+ if (err) {
28
+ throw err;
29
+ } else {
30
+ // Should have build it by now...
31
+
32
+ console.log('server started');
33
+ }
34
+ });
35
+ })
36
+
37
+
38
+
39
+ }
@@ -0,0 +1,204 @@
1
+ const jsgui = require('jsgui3-client');
2
+ const {controls, Control, mixins} = jsgui;
3
+ const {dragable} = mixins;
4
+
5
+ const Active_HTML_Document = require('../../../controls/Active_HTML_Document');
6
+
7
+ // Maybe better to include it within an Active_HTML_Document.
8
+
9
+ // Is currently a decent demo of a small active control running from the server, activated on the client.
10
+ // This square box is really simple, and it demonstrates the principle of the code for the draggable square box not being all that complex
11
+ // compared to a description of it.
12
+
13
+ // A container with reorderable internal draggable items could help.
14
+
15
+ // would be nice to be able to have all code in 1 file...???
16
+ // Though the sever code should be separate.
17
+
18
+
19
+
20
+
21
+
22
+
23
+ // Relies on extracting CSS from JS files.
24
+
25
+ class Demo_UI extends Active_HTML_Document {
26
+ constructor(spec = {}) {
27
+ spec.__type_name = spec.__type_name || 'demo_ui';
28
+ super(spec);
29
+ const {context} = this;
30
+
31
+ // Make sure it requires the correct CSS.
32
+ // Though making that 'effortless' on the server may help more.
33
+
34
+
35
+ // Maybe can't do this here???
36
+
37
+ // Does not have .body (yet) on the client.
38
+ // simple way to get the client to attach the body of the Active_HTML_Document?
39
+ // maybe with jsgui-data-controls?
40
+ // Though automatically having the .body property available on the client without sending extra HTTP
41
+ // plumbing will help.
42
+
43
+ // .body will not be available before activation.
44
+
45
+
46
+ // .body should not be a normal function....?
47
+ // a getter function would be better.
48
+
49
+
50
+
51
+ if (typeof this.body.add_class === 'function') {
52
+ this.body.add_class('demo-ui');
53
+ }
54
+
55
+ //console.log('this.body', this.body);
56
+ //console.log('this.body.add_class', this.body.add_class);
57
+
58
+
59
+ const compose = () => {
60
+ const box = new Square_Box({
61
+ context: context
62
+ });
63
+
64
+
65
+ dragable(box);
66
+ box.dragable = true;
67
+
68
+
69
+ this.body.add(box);
70
+ }
71
+ if (!spec.el) {
72
+ compose();
73
+ }
74
+ }
75
+ activate() {
76
+ if (!this.__active) {
77
+ super.activate();
78
+ const {context} = this;
79
+
80
+ //console.log('activate Demo_UI');
81
+ // listen for the context events regarding frames, changes, resizing.
82
+
83
+ context.on('window-resize', e_resize => {
84
+ //console.log('window-resize', e_resize);
85
+ });
86
+
87
+ }
88
+ }
89
+ }
90
+
91
+ // Include this in bundling.
92
+ // Want CSS bundling so that styles are read out from the JS document and compiled to a stylesheet.
93
+
94
+ //controls.Demo_UI = Demo_UI;
95
+
96
+ // A css file may be an easier way to get started...?
97
+ // Want to support but not require css in js.
98
+
99
+ // But need to set up the serving of the CSS both on the server, and on the client.
100
+ // Ofc setting it up on the server first is important - then can that stage set it up in the doc sent to the client?
101
+
102
+ // Including the CSS from the JS like before.
103
+ // Needs to extract the CSS and serve it as a separate CSS file.
104
+ // Should also have end-to-end regression tests so this does not break again in the future.
105
+ // The code was kind of clunky and got refactored away.
106
+ //
107
+
108
+ // Would need to parse the JS files to extract the CSS.
109
+ // Maybe could do it an easier way???
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+ Demo_UI.css = `
120
+ .demo-ui {
121
+ display: flex;
122
+ flex-direction: column;
123
+ justify-content: center;
124
+ align-items: center;
125
+ text-align: center;
126
+ min-height: 100vh;
127
+ }
128
+ `;
129
+
130
+ class Square_Box extends Control {
131
+ constructor(spec) {
132
+ spec.__type_name = spec.__type_name || 'square_box';
133
+ super(spec);
134
+ this.add_class('square-box');
135
+ }
136
+ activate() {
137
+ if (!this.__active) {
138
+ super.activate();
139
+ console.log('Activate square box');
140
+
141
+
142
+ // Seems like drag mode translate is necessary for the moment.
143
+ // Will want to persist the mixin options when rendering on the server to use on the client.
144
+
145
+ const activation_apply_mx = () => {
146
+ dragable(this, {
147
+ drag_mode: 'translate'
148
+ });
149
+
150
+ console.log('dragable mixin applied to square box on activation');
151
+ this.dragable = true;
152
+ //console.log('this.dragable = true;');
153
+ }
154
+
155
+
156
+
157
+ this.on('dragend', e => {
158
+ console.log('square box dragend e', e);
159
+ //this.background.color = '#FF4444';
160
+ //this.color = '#FF4444';
161
+ this.dom.el.style.backgroundColor = '#FF4444';
162
+
163
+
164
+ // this.background.color perhaps?
165
+ });
166
+
167
+
168
+
169
+ }
170
+ }
171
+ }
172
+ Square_Box.css = `
173
+ .square-box {
174
+ background-color: #BB3333;
175
+ width: 220px;
176
+ height: 220px;
177
+ }
178
+ `;
179
+
180
+ // then if running on the client...?
181
+
182
+
183
+
184
+ //controls.Square_Box = Square_Box;
185
+ // could export jsgui with the updated controls....
186
+ // so that they are in the correct Page Context.?
187
+
188
+
189
+ controls.Demo_UI = Demo_UI;
190
+ controls.Square_Box = Square_Box;
191
+
192
+ module.exports = jsgui;
193
+
194
+ /*
195
+ module.exports = {
196
+ Square_Box: Square_Box,
197
+ Demo_UI: Demo_UI
198
+ }
199
+ */
200
+
201
+ // Then if window...?
202
+
203
+ // Need to add the Square_Box control to the context or original map of controls...
204
+
@@ -0,0 +1,113 @@
1
+ const jsgui = require('./client');
2
+
3
+ const {Demo_UI, Square_Box} = jsgui.controls;
4
+ const Server = require('../../../server');
5
+
6
+
7
+ // what would be the (best?) way to include the whole thing in one JS file?
8
+ // Maybe don't try that right now.
9
+ // maybe standardise on the dir, then client.js and server.js inside.
10
+
11
+
12
+
13
+ // Want to exclude this from the client bundle.
14
+ // Some kind of marking to say that it's server-side only?
15
+
16
+ // Need to include JSGUI3 js within the client document.
17
+ // Seems like an earlier code simplification removed this functionality?
18
+ // Just specifying a Ctrl for the server - and giving it the 'disk_path_client_js'.
19
+ // May as well fix that....
20
+
21
+
22
+
23
+
24
+
25
+ if (require.main === module) {
26
+
27
+ // By default should include the JS and the CSS.
28
+ // By reference, serving them from their respective paths.
29
+
30
+
31
+ // This API is not working right now.
32
+
33
+ // A very simple syntax for running a single control would be great.
34
+
35
+ // Need to in the default (server) configuration build and serve the client-side app.
36
+ // Want to be able to make interactive apps quickly with minimal server side code that needs to be written as boilerplate to
37
+ // get the app running.
38
+
39
+ // Though maybe defining a webpage, that serves the client js, and renders the control on the server, and activates it on the client,
40
+ // would be the right approach.
41
+
42
+ // Want to make the code really explicit, in a simple way.
43
+
44
+
45
+ // eg { '/': Demo_UI }
46
+ // eg { '*': Demo_UI }
47
+ // as at least it explicitly assigns it to the '/' route
48
+
49
+
50
+ // But worth keeping the '/' Ctrl property?
51
+ // Could change it to explicitly setting the route(s).
52
+
53
+ // Do want it to build the client js on start.
54
+
55
+ // Could extract the CSS from the file itself, or maybe better reading it from the classes and objects that are loaded / referenced.
56
+ // All kinds of complex server program structures exist already, so could use Publishers if needed for some things.
57
+ // But need to keep the surface-level API really simple.
58
+
59
+ // Maybe define a Webpage and maybe use / define an HTML_Webpage_Publisher for example too.
60
+ // The clearest code would be really explicit about what it does, but in terms of almost English idioms
61
+ // and on the surface-level not spelling out in great detail what it's doing, but referencing objects and
62
+ // instructions with clear purposes, though details could be obscure at the top level. Eg it's the publisher's responsibility
63
+ // to include the CSS and JS that's needed to get it to run. A publisher is referenced and used, and it does its thing.
64
+
65
+ // The Server could automatically involk the use of a Publisher.
66
+ // May be better to either require or recommend more explicit code, have them in the examples,
67
+ // but also to document some shortcuts, defaults, and abbreviations (though they may omit some essential info, so not recommended for beginners)
68
+
69
+ // Could have a tabbed view for examples for 'explicit' and 'short' notations when there are multiple.
70
+
71
+ // jsgui3-html-suite may be of use, for some more extended controls that are built on top of jsgui3-html, but not specifically
72
+ // client or server.
73
+
74
+
75
+
76
+
77
+
78
+
79
+ const server = new Server({
80
+ Ctrl: Demo_UI,
81
+ // Giving it the Ctrl and disk path client js should enable to server to get the JS-bundled CSS from the file(s).
82
+ // Putting the JS files through proper parsing and into a syntax tree would be best.
83
+
84
+
85
+ //'js_mode': 'debug',
86
+ 'src_path_client_js': require.resolve('./client.js')
87
+ //js_client: require.resolve('./square_box.js')
88
+ });
89
+ // A callback or event for when the bundling has been completed
90
+ // a 'ready' event.
91
+
92
+ // then start the server....
93
+ // be able to choose the port / ports?
94
+ console.log('waiting for server ready event');
95
+ server.on('ready', () => {
96
+ console.log('server ready');
97
+
98
+ // server start will change to observable?
99
+
100
+ server.start(52000, function (err, cb_start) {
101
+ if (err) {
102
+ throw err;
103
+ } else {
104
+ // Should have build it by now...
105
+
106
+ console.log('server started');
107
+ }
108
+ });
109
+ })
110
+
111
+
112
+
113
+ }
@@ -30,7 +30,7 @@ if (require.main === module) {
30
30
 
31
31
  // server start will change to observable?
32
32
 
33
- server.start(8080, function (err, cb_start) {
33
+ server.start(52000, function (err, cb_start) {
34
34
  if (err) {
35
35
  throw err;
36
36
  } else {
@@ -36,7 +36,7 @@ if (require.main === module) {
36
36
 
37
37
  // server start will change to observable?
38
38
 
39
- server.start(8080, function (err, cb_start) {
39
+ server.start(52000, function (err, cb_start) {
40
40
  if (err) {
41
41
  throw err;
42
42
  } else {
@@ -102,7 +102,7 @@ if (require.main === module) {
102
102
 
103
103
  // server start will change to observable?
104
104
 
105
- server.start(8080, function (err, cb_start) {
105
+ server.start(52000, function (err, cb_start) {
106
106
  if (err) {
107
107
  throw err;
108
108
  } else {
@@ -102,7 +102,7 @@ if (require.main === module) {
102
102
 
103
103
  // server start will change to observable?
104
104
 
105
- server.start(8080, function (err, cb_start) {
105
+ server.start(52000, function (err, cb_start) {
106
106
  if (err) {
107
107
  throw err;
108
108
  } else {
@@ -102,7 +102,7 @@ if (require.main === module) {
102
102
 
103
103
  // server start will change to observable?
104
104
 
105
- server.start(8080, function (err, cb_start) {
105
+ server.start(52000, function (err, cb_start) {
106
106
  if (err) {
107
107
  throw err;
108
108
  } else {
@@ -119,7 +119,7 @@ if (require.main === module) {
119
119
 
120
120
  // server start will change to observable?
121
121
 
122
- server.start(8080, function (err, cb_start) {
122
+ server.start(52000, function (err, cb_start) {
123
123
  if (err) {
124
124
  throw err;
125
125
  } else {
@@ -14,7 +14,7 @@ class Demo_UI extends Active_HTML_Document {
14
14
  const compose = () => {
15
15
  const window = new controls.Window({
16
16
  context: context,
17
- title: 'jsgui3-html Select_Options',
17
+ title: 'jsgui3-html Dropdown_Menu',
18
18
  pos: [5, 5]
19
19
  });
20
20
  window.size = [480, 160];
@@ -4,6 +4,7 @@ const Server = require('../../../server');
4
4
  if (require.main === module) {
5
5
  const server = new Server({
6
6
  Ctrl: Demo_UI,
7
+ debug: true,
7
8
  'src_path_client_js': require.resolve('./client.js'),
8
9
  });
9
10
  console.log('waiting for server ready event');
@@ -98,7 +98,7 @@ if (require.main === module) {
98
98
 
99
99
  // server start will change to observable?
100
100
 
101
- server.start(8080, function (err, cb_start) {
101
+ server.start(52000, function (err, cb_start) {
102
102
  if (err) {
103
103
  throw err;
104
104
  } else {
@@ -101,7 +101,7 @@ if (require.main === module) {
101
101
 
102
102
  // server start will change to observable?
103
103
 
104
- server.start(8080, function (err, cb_start) {
104
+ server.start(52000, function (err, cb_start) {
105
105
  if (err) {
106
106
  throw err;
107
107
  } else {
@@ -1,21 +1,17 @@
1
1
  const jsgui = require('jsgui3-client');
2
- const { controls, Control, mixins } = jsgui;
3
- const { dragable } = mixins;
4
- const { Month_View } = controls;
2
+ const {controls, Control, mixins} = jsgui;
3
+ const {dragable} = mixins;
4
+ const {Month_View} = controls;
5
5
  const Active_HTML_Document = require('../../../controls/Active_HTML_Document');
6
6
  class Demo_UI extends Active_HTML_Document {
7
7
  constructor(spec = {}) {
8
8
  spec.__type_name = spec.__type_name || 'demo_ui';
9
9
  super(spec);
10
- const { context } = this;
10
+ const {context} = this;
11
11
  if (typeof this.body.add_class === 'function') { this.body.add_class('demo-ui'); }
12
12
  const compose = () => {
13
- const window = new controls.Window({
14
- context: context,
15
- title: 'jsgui3-html Grid Control',
16
- pos: [10, 10]
17
- });
18
- const month_view = new Month_View({ context });
13
+ const window = new controls.Window({ context: context, title: 'jsgui3-html Grid Control', pos: [10, 10] });
14
+ const month_view = new Month_View({ context, });
19
15
  window.inner.add(month_view);
20
16
  this.body.add(window);
21
17
  }
@@ -27,14 +23,25 @@ Demo_UI.css = `
27
23
  margin: 0;
28
24
  padding: 0;
29
25
  }
26
+
30
27
  body {
31
28
  overflow-x: hidden;
32
29
  overflow-y: hidden;
33
30
  background-color: #E0E0E0;
34
31
  }
32
+
35
33
  .demo-ui {
36
- /* display: flex; flex-wrap: wrap; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 100vh; */
37
- }`;
34
+ /*
35
+ display: flex;
36
+ flex-wrap: wrap;
37
+ flex-direction: column;
38
+ justify-content: center;
39
+ align-items: center;
40
+ text-align: center;
41
+ min-height: 100vh;
42
+ */
43
+ }
44
+ `;
38
45
  controls.Demo_UI = Demo_UI;
39
46
  module.exports = jsgui;
40
47
 
@@ -102,7 +102,7 @@ if (require.main === module) {
102
102
 
103
103
  // server start will change to observable?
104
104
 
105
- server.start(8080, function (err, cb_start) {
105
+ server.start(52000, function (err, cb_start) {
106
106
  if (err) {
107
107
  throw err;
108
108
  } else {
@@ -102,7 +102,7 @@ if (require.main === module) {
102
102
 
103
103
  // server start will change to observable?
104
104
 
105
- server.start(8080, function (err, cb_start) {
105
+ server.start(52000, function (err, cb_start) {
106
106
  if (err) {
107
107
  throw err;
108
108
  } else {
@@ -30,7 +30,7 @@ if (require.main === module) {
30
30
 
31
31
  // server start will change to observable?
32
32
 
33
- server.start(8080, function (err, cb_start) {
33
+ server.start(52000, function (err, cb_start) {
34
34
  if (err) {
35
35
  throw err;
36
36
  } else {
@@ -54,7 +54,7 @@ if (require.main === module) {
54
54
 
55
55
  // server start will change to observable?
56
56
 
57
- server.start(8080, function (err, cb_start) {
57
+ server.start(52000, function (err, cb_start) {
58
58
  if (err) {
59
59
  throw err;
60
60
  } else {
@@ -30,7 +30,7 @@ if (require.main === module) {
30
30
 
31
31
  // server start will change to observable?
32
32
 
33
- server.start(8080, function (err, cb_start) {
33
+ server.start(52000, function (err, cb_start) {
34
34
  if (err) {
35
35
  throw err;
36
36
  } else {
package/package.json CHANGED
@@ -3,18 +3,18 @@
3
3
  "main": "module.js",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
- "@babel/core": "^7.26.9",
7
- "@babel/generator": "^7.26.9",
8
- "@babel/parser": "7.26.9",
6
+ "@babel/core": "^7.26.10",
7
+ "@babel/generator": "^7.26.10",
8
+ "@babel/parser": "7.26.10",
9
9
  "cookies": "^0.9.1",
10
- "esbuild": "^0.25.0",
10
+ "esbuild": "^0.25.1",
11
11
  "fnl": "^0.0.36",
12
12
  "fnlfs": "^0.0.32",
13
- "jsgui3-client": "^0.0.112",
14
- "jsgui3-html": "^0.0.156",
13
+ "jsgui3-client": "^0.0.113",
14
+ "jsgui3-html": "^0.0.159",
15
15
  "jsgui3-webpage": "^0.0.8",
16
16
  "jsgui3-website": "^0.0.8",
17
- "lang-tools": "^0.0.35",
17
+ "lang-tools": "^0.0.36",
18
18
  "multiparty": "^4.2.3",
19
19
  "ncp": "^2.0.0",
20
20
  "obext": "^0.0.31",
@@ -38,5 +38,5 @@
38
38
  "type": "git",
39
39
  "url": "https://github.com/metabench/jsgui3-server.git"
40
40
  },
41
- "version": "0.0.123"
41
+ "version": "0.0.124"
42
42
  }
package/page-context.js CHANGED
@@ -73,6 +73,7 @@ class Server_Page_Context extends jsgui.Page_Context {
73
73
  return res;
74
74
  }
75
75
  this.new_id = _get_new_typed_object_id;
76
+ this.mixins = jsgui.mixins;
76
77
  }
77
78
  'get_dtd'() {
78
79
  if (this.rendering_mode === 'html5') {