neo.mjs 6.19.1 → 6.19.2
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/.github/CONCEPT.md +2 -2
- package/.github/NEOMJS_HISTORY.md +1 -1
- package/README.md +2 -2
- package/apps/ServiceWorker.mjs +2 -2
- package/apps/covid/Util.mjs +2 -2
- package/apps/covid/view/HeaderContainer.mjs +1 -1
- package/apps/covid/view/MainContainerController.mjs +1 -1
- package/apps/portal/view/blog/List.mjs +2 -2
- package/apps/route/view/HeaderContainer.mjs +1 -1
- package/apps/sharedcovid/Util.mjs +2 -2
- package/apps/sharedcovid/view/HeaderContainer.mjs +1 -1
- package/apps/sharedcovid/view/MainContainerController.mjs +1 -1
- package/apps/website/view/blog/List.mjs +2 -2
- package/apps/website/view/examples/List.mjs +2 -2
- package/examples/ServiceWorker.mjs +2 -2
- package/examples/component/coronaGallery/CountryGallery.mjs +1 -1
- package/examples/component/coronaHelix/CountryHelix.mjs +1 -1
- package/examples/grid/covid/Util.mjs +1 -1
- package/examples/preloadingAssets/view/MainContainer.mjs +2 -2
- package/examples/preloadingAssets/view/MainContainerController.mjs +1 -1
- package/examples/table/covid/Util.mjs +1 -1
- package/package.json +1 -1
- package/resources/data/deck/learnneo/pages/2023-10-14T19-25-08-153Z.md +3 -3
- package/src/DefaultConfig.mjs +2 -2
- package/src/main/addon/AmCharts.mjs +2 -2
package/.github/CONCEPT.md
CHANGED
@@ -24,7 +24,7 @@ The best way to get a feeling for workers is using the Google Chrome Dev Tools (
|
|
24
24
|
In case you open the <a href="https://neomjs.github.io/pages/node_modules/neo.mjs/dist/production/docs/index.html">neo.mjs Docs App</a>
|
25
25
|
(or any other neo.mjs app), you will get a dropdown menu where you can pick the console scope:
|
26
26
|
|
27
|
-
<img src="https://raw.githubusercontent.com/neomjs/pages/main/
|
27
|
+
<img src="https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/concept/worker_scope.png">
|
28
28
|
|
29
29
|
The default scope (top) will show the (console) logs inside all threads.
|
30
30
|
|
@@ -162,7 +162,7 @@ class Gallery extends Component {
|
|
162
162
|
<a href="https://github.com/neomjs/neo/blob/dev/src/component/Gallery.mjs">Full component.Gallery Source Code</a>
|
163
163
|
|
164
164
|
Now let us take a look at the source code inside the browser:
|
165
|
-
<img src="https://raw.githubusercontent.com/neomjs/pages/main/
|
165
|
+
<img src="https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/concept/gallery_workers.png">
|
166
166
|
|
167
167
|
Expand the image and take a close look at the Chrome Dev Tools:
|
168
168
|
1. The source code is 1:1 the same
|
@@ -17,7 +17,7 @@ Just to make a point on how much time & effort has already been spent on neo.mjs
|
|
17
17
|
|
18
18
|
1 commits Nils Dehl
|
19
19
|
|
20
|
-
<img alt="neo.mjs commit history" src="https://raw.githubusercontent.com/neomjs/pages/main/
|
20
|
+
<img alt="neo.mjs commit history" src="https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/neomjs-commit-history.png">
|
21
21
|
|
22
22
|
I would also like to add a ***big thank you*** to everyone who provided feedback prior to the public release!
|
23
23
|
|
package/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<p align="center">
|
2
|
-
<img height="100"src="https://raw.githubusercontent.com/neomjs/pages/main/
|
2
|
+
<img height="100"src="https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/logo/neo_logo_text_primary.svg">
|
3
3
|
</p>
|
4
4
|
</br>
|
5
5
|
<p align="center">
|
@@ -36,7 +36,7 @@ Neo.mjs also provides sharing state across multiple Browser-Windows.
|
|
36
36
|
So far, it is the only Framework which enables us to build complex multi-Window Apps
|
37
37
|
without the need for a native shell.
|
38
38
|
|
39
|
-
<img src="https://raw.githubusercontent.com/neomjs/pages/main/
|
39
|
+
<img src="https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/workers-setup-v4.png">
|
40
40
|
|
41
41
|
Potential Use-Cases:
|
42
42
|
1. Finance (Banking & Trading Apps)
|
package/apps/ServiceWorker.mjs
CHANGED
package/apps/covid/Util.mjs
CHANGED
@@ -133,7 +133,7 @@ class Util extends Base {
|
|
133
133
|
imageName = map[imageName] || imageName;
|
134
134
|
|
135
135
|
if (Neo.config.isGitHubPages) {
|
136
|
-
let path = `../../../../
|
136
|
+
let path = `../../../../resources_pub/images/flaticon/country_flags/png/${imageName}.png`;
|
137
137
|
|
138
138
|
if (Neo.config.environment !== 'development') {
|
139
139
|
path = `../../${path}`;
|
@@ -142,7 +142,7 @@ class Util extends Base {
|
|
142
142
|
return path;
|
143
143
|
}
|
144
144
|
|
145
|
-
return `https://raw.githubusercontent.com/neomjs/pages/main/
|
145
|
+
return `https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/flaticon/country_flags/png/${imageName}.png`;
|
146
146
|
}
|
147
147
|
|
148
148
|
/**
|
@@ -37,7 +37,7 @@ class HeaderContainer extends Container {
|
|
37
37
|
|
38
38
|
vdom: {
|
39
39
|
tag: 'img',
|
40
|
-
src: 'https://raw.githubusercontent.com/neomjs/pages/main/
|
40
|
+
src: 'https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/apps/covid/covid_logo_dark.jpg'
|
41
41
|
}
|
42
42
|
}, {
|
43
43
|
ntype : 'container',
|
@@ -368,7 +368,7 @@ class MainContainerController extends ComponentController {
|
|
368
368
|
button = data.component,
|
369
369
|
component = me.component,
|
370
370
|
logo = me.getReference('logo'),
|
371
|
-
logoPath = 'https://raw.githubusercontent.com/neomjs/pages/main/
|
371
|
+
logoPath = 'https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/apps/covid/',
|
372
372
|
mapView = me.getReference('mapboxglmap'),
|
373
373
|
themeLight = button.text === 'Theme Light',
|
374
374
|
buttonText, cls, href, iconCls, mapViewStyle, theme;
|
@@ -62,13 +62,13 @@ class List extends BaseList {
|
|
62
62
|
let basePath;
|
63
63
|
|
64
64
|
if (Neo.config.isGitHubPages) {
|
65
|
-
basePath = '../../../../
|
65
|
+
basePath = '../../../../resources_pub/website';
|
66
66
|
|
67
67
|
if (Neo.config.environment !== 'development') {
|
68
68
|
basePath = '../../' + basePath
|
69
69
|
}
|
70
70
|
} else {
|
71
|
-
basePath = 'https://raw.githubusercontent.com/neomjs/pages/main/
|
71
|
+
basePath = 'https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/website'
|
72
72
|
}
|
73
73
|
|
74
74
|
const vdomCn = [
|
@@ -28,7 +28,7 @@ class HeaderContainer extends Container {
|
|
28
28
|
cls: ['center'],
|
29
29
|
vdom: {
|
30
30
|
tag: 'img',
|
31
|
-
src: 'https://raw.githubusercontent.com/neomjs/pages/main/
|
31
|
+
src: 'https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/logo_rounded.svg'
|
32
32
|
}
|
33
33
|
},
|
34
34
|
{
|
@@ -133,7 +133,7 @@ class Util extends Base {
|
|
133
133
|
imageName = map[imageName] || imageName;
|
134
134
|
|
135
135
|
if (Neo.config.isGitHubPages) {
|
136
|
-
let path = `../../../../
|
136
|
+
let path = `../../../../resources_pub/images/flaticon/country_flags/png/${imageName}.png`;
|
137
137
|
|
138
138
|
if (Neo.config.environment !== 'development') {
|
139
139
|
path = `../../${path}`;
|
@@ -142,7 +142,7 @@ class Util extends Base {
|
|
142
142
|
return path;
|
143
143
|
}
|
144
144
|
|
145
|
-
return `https://raw.githubusercontent.com/neomjs/pages/main/
|
145
|
+
return `https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/flaticon/country_flags/png/${imageName}.png`;
|
146
146
|
}
|
147
147
|
|
148
148
|
/**
|
@@ -37,7 +37,7 @@ class HeaderContainer extends Container {
|
|
37
37
|
|
38
38
|
vdom: {
|
39
39
|
tag: 'img',
|
40
|
-
src: 'https://raw.githubusercontent.com/neomjs/pages/main/
|
40
|
+
src: 'https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/apps/covid/covid_logo_dark.jpg'
|
41
41
|
}
|
42
42
|
}, {
|
43
43
|
ntype : 'container',
|
@@ -553,7 +553,7 @@ class MainContainerController extends ComponentController {
|
|
553
553
|
button = data.component,
|
554
554
|
component = me.component,
|
555
555
|
logo = me.getReference('logo'),
|
556
|
-
logoPath = 'https://raw.githubusercontent.com/neomjs/pages/main/
|
556
|
+
logoPath = 'https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/apps/covid/',
|
557
557
|
themeLight = button.text === 'Theme Light',
|
558
558
|
buttonText, cls, href, iconCls, mapView, mapViewStyle, theme;
|
559
559
|
|
@@ -62,13 +62,13 @@ class List extends BaseList {
|
|
62
62
|
let basePath;
|
63
63
|
|
64
64
|
if (Neo.config.isGitHubPages) {
|
65
|
-
basePath = '../../../../
|
65
|
+
basePath = '../../../../resources_pub/website';
|
66
66
|
|
67
67
|
if (Neo.config.environment !== 'development') {
|
68
68
|
basePath = '../../' + basePath
|
69
69
|
}
|
70
70
|
} else {
|
71
|
-
basePath = 'https://raw.githubusercontent.com/neomjs/pages/main/
|
71
|
+
basePath = 'https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/website'
|
72
72
|
}
|
73
73
|
|
74
74
|
const vdomCn = [
|
@@ -74,13 +74,13 @@ class List extends BaseList {
|
|
74
74
|
let basePath;
|
75
75
|
|
76
76
|
if (Neo.config.isGitHubPages) {
|
77
|
-
basePath = '../../../../
|
77
|
+
basePath = '../../../../resources_pub/website/examples';
|
78
78
|
|
79
79
|
if (Neo.config.environment !== 'development') {
|
80
80
|
basePath = '../../' + basePath
|
81
81
|
}
|
82
82
|
} else {
|
83
|
-
basePath = 'https://raw.githubusercontent.com/neomjs/pages/main/
|
83
|
+
basePath = 'https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/website/examples'
|
84
84
|
}
|
85
85
|
|
86
86
|
return [
|
@@ -159,7 +159,7 @@ class CountryGallery extends Gallery {
|
|
159
159
|
|
160
160
|
imageName = map[imageName] || imageName;
|
161
161
|
|
162
|
-
return `https://raw.githubusercontent.com/neomjs/pages/main/
|
162
|
+
return `https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/flaticon/country_flags/png/${imageName}.png`;
|
163
163
|
}
|
164
164
|
|
165
165
|
/**
|
@@ -191,7 +191,7 @@ class CountryHelix extends Helix {
|
|
191
191
|
|
192
192
|
imageName = map[imageName] || imageName;
|
193
193
|
|
194
|
-
return 'https://raw.githubusercontent.com/neomjs/pages/main/
|
194
|
+
return 'https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/flaticon/country_flags/png/' + imageName + '.png'
|
195
195
|
}
|
196
196
|
/**
|
197
197
|
* @returns {String}
|
@@ -142,7 +142,7 @@ class Util extends Base {
|
|
142
142
|
return path;
|
143
143
|
}
|
144
144
|
|
145
|
-
return `https://raw.githubusercontent.com/neomjs/pages/main/
|
145
|
+
return `https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/flaticon/country_flags/png/${imageName}.png`;
|
146
146
|
}
|
147
147
|
|
148
148
|
/**
|
@@ -44,7 +44,7 @@ class MainContainer extends Viewport {
|
|
44
44
|
|
45
45
|
vdom: {
|
46
46
|
tag: 'img',
|
47
|
-
src: 'https://raw.githubusercontent.com/neomjs/pages/main/
|
47
|
+
src: 'https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/examples/ai_images/000150.jpg'
|
48
48
|
}
|
49
49
|
}, {
|
50
50
|
tabButtonConfig: {
|
@@ -54,7 +54,7 @@ class MainContainer extends Viewport {
|
|
54
54
|
|
55
55
|
vdom: {
|
56
56
|
tag: 'img',
|
57
|
-
src: 'https://raw.githubusercontent.com/neomjs/pages/main/
|
57
|
+
src: 'https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/examples/ai_images/000074.jpg'
|
58
58
|
}
|
59
59
|
}],
|
60
60
|
/**
|
@@ -28,7 +28,7 @@ class MainContainerController extends Component {
|
|
28
28
|
|
29
29
|
setTimeout(() => {
|
30
30
|
Neo.ServiceWorker.preloadAssets({
|
31
|
-
files: ['https://raw.githubusercontent.com/neomjs/pages/main/
|
31
|
+
files: ['https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/examples/ai_images/000074.jpg']
|
32
32
|
}).then(data => {
|
33
33
|
console.log(data);
|
34
34
|
});
|
@@ -142,7 +142,7 @@ class Util extends Base {
|
|
142
142
|
return path;
|
143
143
|
}
|
144
144
|
|
145
|
-
return `https://raw.githubusercontent.com/neomjs/pages/main/
|
145
|
+
return `https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/flaticon/country_flags/png/${imageName}.png`;
|
146
146
|
}
|
147
147
|
|
148
148
|
/**
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@ and the structure of an application.
|
|
3
3
|
|
4
4
|
If you wish, you can create a workspace by following the directions in the previous topic, _Setup_.
|
5
5
|
|
6
|
-
<img src="https://raw.githubusercontent.com/neomjs/pages/main/
|
6
|
+
<img src="https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/apps/learnneo/NeoWorkspace.png" style="height: 400px;">
|
7
7
|
|
8
8
|
As you can see, a Neo.mjs workspace is a conventional npm package.
|
9
9
|
|
@@ -14,7 +14,7 @@ If you run
|
|
14
14
|
the script `npm run server-start` from the workspace, Neo.mjs launches a web
|
15
15
|
server whose doc root is the workspace.
|
16
16
|
|
17
|
-
<img src="https://raw.githubusercontent.com/neomjs/pages/main/
|
17
|
+
<img src="https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/apps/learnneo/ServerRoot.png" style="height: 400px;">
|
18
18
|
|
19
19
|
If you drill down into the `src` directory you'll see your applications.
|
20
20
|
The `docs` directory holds the Neo.mjs API docs.
|
@@ -30,7 +30,7 @@ application settings.
|
|
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.
|
32
32
|
|
33
|
-
<img src="https://raw.githubusercontent.com/neomjs/pages/main/
|
33
|
+
<img src="https://raw.githubusercontent.com/neomjs/pages/main/resources_pub/images/apps/learnneo/FooFolder.png" style="height: 400px;">
|
34
34
|
|
35
35
|
These files are part of the typical structure of a Neo.mjs application. The files `index.html`, `app.mjs`, `neo-config.json`, `view/Viewport.mjs` are rarely modified.
|
36
36
|
You will, however, edit the main container, and its associated "controller" and "model",
|
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.19.
|
263
|
+
* @default '6.19.2'
|
264
264
|
* @memberOf! module:Neo
|
265
265
|
* @name config.version
|
266
266
|
* @type String
|
267
267
|
*/
|
268
|
-
version: '6.19.
|
268
|
+
version: '6.19.2'
|
269
269
|
};
|
270
270
|
|
271
271
|
Object.assign(DefaultConfig, {
|
@@ -39,10 +39,10 @@ class AmCharts extends Base {
|
|
39
39
|
*/
|
40
40
|
downloadPath: 'https://www.amcharts.com/lib/4/',
|
41
41
|
/**
|
42
|
-
* @member {String} fallbackPath='https://neomjs.github.io/pages/
|
42
|
+
* @member {String} fallbackPath='https://neomjs.github.io/pages/resources_pub/amCharts/'
|
43
43
|
* @protected
|
44
44
|
*/
|
45
|
-
fallbackPath: 'https://neomjs.github.io/pages/
|
45
|
+
fallbackPath: 'https://neomjs.github.io/pages/resources_pub/amCharts/',
|
46
46
|
/**
|
47
47
|
* Remote method access for other workers
|
48
48
|
* @member {Object} remote={app: [//...]}
|