neo.mjs 6.15.10 → 6.15.11
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/apps/ServiceWorker.mjs +2 -2
- package/apps/portal/view/home/MainContainer.mjs +2 -12
- package/examples/ServiceWorker.mjs +2 -2
- package/package.json +1 -1
- package/resources/data/deck/learnneo/pages/2023-10-14T19-25-08-153Z.md +2 -2
- package/resources/data/deck/learnneo/pages/Earthquakes.md +3 -3
- package/resources/data/deck/learnneo/pages/Setup.md +1 -1
- package/resources/data/deck/learnneo/pages/WhyNeo-Speed.md +1 -1
- package/resources/data/deck/learnneo/tree.json +1 -1
- package/src/DefaultConfig.mjs +2 -2
- package/src/data/RecordFactory.mjs +3 -0
package/apps/ServiceWorker.mjs
CHANGED
@@ -56,11 +56,11 @@ class Viewport extends Container {
|
|
56
56
|
|
57
57
|
items: [{
|
58
58
|
module: ContentBox,
|
59
|
-
header: '
|
59
|
+
header: 'Next-Generation Runtime',
|
60
60
|
route : '#/learn/WhyNeo-Quick',
|
61
61
|
|
62
62
|
content: [
|
63
|
-
'
|
63
|
+
'Multi-threaded',
|
64
64
|
'Elegant state management',
|
65
65
|
'Simple and powerful debugging'
|
66
66
|
]
|
@@ -74,16 +74,6 @@ class Viewport extends Container {
|
|
74
74
|
'Over 40,000 delta updates per second',
|
75
75
|
'Item 3'
|
76
76
|
]
|
77
|
-
}, {
|
78
|
-
module: ContentBox,
|
79
|
-
header: 'Multi Window Apps',
|
80
|
-
route : '#/learn/WhyNeo-Multi-Window',
|
81
|
-
|
82
|
-
content: [
|
83
|
-
'Item 1',
|
84
|
-
'Item 2',
|
85
|
-
'Item 3'
|
86
|
-
]
|
87
77
|
}]
|
88
78
|
}]
|
89
79
|
}
|
package/package.json
CHANGED
@@ -22,10 +22,10 @@ The `docs` directory holds the Neo.mjs API docs.
|
|
22
22
|
## The structure of a simple app
|
23
23
|
|
24
24
|
In order to discuss the structure of an app, we'll create a simple starter
|
25
|
-
app
|
25
|
+
app via this script, run from the workspace. The script prompts for various
|
26
26
|
application settings.
|
27
27
|
|
28
|
-
`npm run create-app-
|
28
|
+
`npm run create-app-minimal`
|
29
29
|
|
30
30
|
At the first prompt, we'll name the app `Foo`, and accept the default for everything else.
|
31
31
|
The script creates an application structured as follows.
|
@@ -41,7 +41,7 @@ In this lab, you'll generate a Neo.mjs workspace and run the starter app.
|
|
41
41
|
|
42
42
|
<details>
|
43
43
|
<summary>Wait!</summary>
|
44
|
-
You may already have a workspace! If so, you can skip this lab. For example, if you followed the
|
44
|
+
You may already have a workspace! If so, you can skip this lab. For example, if you followed the <a href="#/learn/Setup">Getting Started > Setup</a> topic, above, you should already have a workspace.
|
45
45
|
|
46
46
|
If you don't have a workspace, then continue on to the next step.
|
47
47
|
</details>
|
@@ -125,7 +125,7 @@ Parallel processing — along wih the efficient way the vdom worker applies
|
|
125
125
|
If you look in the `package.json` script block you'll see several scripts used for generating applications
|
126
126
|
and classes, doing builds, and starting a server. We'll use several of them throughout the tutorials.
|
127
127
|
|
128
|
-
-
|
128
|
+
- — creates a simple demo app
|
129
129
|
- create-app-minimal — creates a application shell with no content
|
130
130
|
- server-start — starts a server with webroot set to the workspace
|
131
131
|
- build-all — builds minimized versions of your apps
|
@@ -146,7 +146,7 @@ In this lab you'll create a starter app and add a single component.
|
|
146
146
|
Use a terminal window to navigate to the workspace and run the following script. Use "Earthquakes"
|
147
147
|
as the app name, and defaults for everything else.
|
148
148
|
|
149
|
-
npm run
|
149
|
+
npm run create-app-minimal
|
150
150
|
|
151
151
|
After the script runs yous should see these files in the `app/earthquakes` directory.
|
152
152
|
|
@@ -22,4 +22,4 @@ Then run the following command, choosing the defaults for each prompt.
|
|
22
22
|
|
23
23
|
When you're finished you should have a Neo.mjs workspace, as described in the _Workspaces and Applications_ topic, which follows.
|
24
24
|
|
25
|
-
|
25
|
+
It's probably a good idea to do an `npm install` in the workspace as soon as you've created it.
|
@@ -20,7 +20,7 @@ Click on Preview, then use your mouse or trackpad to pan and zoom — the he
|
|
20
20
|
If you move quickly, you might reach 20,000 or 30,000 delta updates per second. We've seen some examples that go over 40,000 updates per
|
21
21
|
second — but we've never actually hit the limit.
|
22
22
|
|
23
|
-
<pre data-neo>
|
23
|
+
<pre data-neo data-read-only>
|
24
24
|
import Base from '../../../../src/container/Base.mjs';
|
25
25
|
import Helix from '../../../../src/component/Helix.mjs';
|
26
26
|
class Foo extends Base {
|
@@ -41,7 +41,7 @@
|
|
41
41
|
{"name": "Other JavaScript Class Features", "parentId": "JavaScriptClasses", "isLeaf": true, "id": "2023-10-08T20-20-37-336Z"},
|
42
42
|
{"name": "Super", "parentId": "JavaScriptClasses", "isLeaf": true, "id": "2023-10-08T21-58-25-809Z"},
|
43
43
|
{"name": "New Node", "parentId": "JavaScriptClasses", "isLeaf": true, "id": "2023-10-31T13-59-37-550Z"},
|
44
|
-
{"name": "Appendix", "parentId": null, "id": "appendix", "collapsed": true},
|
44
|
+
{"name": "Appendix", "parentId": null, "id": "appendix", "hidden": true, "collapsed": true},
|
45
45
|
{"name": "Stylesheet", "parentId": "appendix", "isLeaf": true, "id": "stylesheet"},
|
46
46
|
{"name": "Test", "parentId": "appendix", "isLeaf": true, "id": "TestLivePreview"}
|
47
47
|
]}
|
package/src/DefaultConfig.mjs
CHANGED
@@ -260,12 +260,12 @@ const DefaultConfig = {
|
|
260
260
|
useVdomWorker: true,
|
261
261
|
/**
|
262
262
|
* buildScripts/injectPackageVersion.mjs will update this value
|
263
|
-
* @default '6.15.
|
263
|
+
* @default '6.15.11'
|
264
264
|
* @memberOf! module:Neo
|
265
265
|
* @name config.version
|
266
266
|
* @type String
|
267
267
|
*/
|
268
|
-
version: '6.15.
|
268
|
+
version: '6.15.11'
|
269
269
|
};
|
270
270
|
|
271
271
|
Object.assign(DefaultConfig, {
|
@@ -63,6 +63,9 @@ class RecordFactory extends Base {
|
|
63
63
|
key = nsArray.pop();
|
64
64
|
ns = Neo.ns(nsArray, true);
|
65
65
|
cls = ns[key] = class Record {
|
66
|
+
// We do not want to minify the ctor class name in dist/production
|
67
|
+
static name = 'Record'
|
68
|
+
|
66
69
|
constructor(config) {
|
67
70
|
let me = this,
|
68
71
|
properties;
|