neo.mjs 10.0.0-beta.1 → 10.0.0-beta.3
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/ServiceWorker.mjs +2 -2
- package/apps/colors/view/GridContainer.mjs +1 -1
- package/apps/covid/view/AttributionComponent.mjs +1 -1
- package/apps/covid/view/HeaderContainer.mjs +6 -6
- package/apps/covid/view/MainContainerController.mjs +5 -5
- package/apps/covid/view/TableContainerController.mjs +1 -1
- package/apps/covid/view/country/Gallery.mjs +13 -13
- package/apps/covid/view/country/Helix.mjs +13 -13
- package/apps/covid/view/country/HistoricalDataTable.mjs +1 -1
- package/apps/email/view/Viewport.mjs +2 -2
- package/apps/form/view/FormPageContainer.mjs +2 -3
- package/apps/form/view/SideNavList.mjs +1 -1
- package/apps/portal/index.html +1 -1
- package/apps/portal/resources/data/examples_dist_esm.json +1 -1
- package/apps/portal/resources/data/examples_dist_prod.json +2 -2
- package/apps/portal/view/HeaderToolbar.mjs +3 -3
- package/apps/portal/view/about/Container.mjs +2 -2
- package/apps/portal/view/about/MemberContainer.mjs +3 -3
- package/apps/portal/view/blog/List.mjs +7 -7
- package/apps/portal/view/examples/List.mjs +4 -4
- package/apps/portal/view/home/ContentBox.mjs +2 -2
- package/apps/portal/view/home/FeatureSection.mjs +3 -3
- package/apps/portal/view/home/FooterContainer.mjs +7 -7
- package/apps/portal/view/home/parts/AfterMath.mjs +3 -3
- package/apps/portal/view/home/parts/MainNeo.mjs +3 -3
- package/apps/portal/view/home/parts/References.mjs +6 -6
- package/apps/portal/view/learn/ContentComponent.mjs +18 -11
- package/apps/portal/view/learn/PageSectionsContainer.mjs +1 -1
- package/apps/portal/view/learn/PageSectionsList.mjs +2 -2
- package/apps/portal/view/services/Component.mjs +16 -16
- package/apps/realworld/view/FooterComponent.mjs +1 -1
- package/apps/realworld/view/HeaderComponent.mjs +8 -8
- package/apps/realworld/view/HomeComponent.mjs +6 -6
- package/apps/realworld/view/article/CommentComponent.mjs +4 -4
- package/apps/realworld/view/article/Component.mjs +14 -14
- package/apps/realworld/view/article/CreateCommentComponent.mjs +3 -3
- package/apps/realworld/view/article/CreateComponent.mjs +3 -3
- package/apps/realworld/view/article/PreviewComponent.mjs +1 -1
- package/apps/realworld/view/article/TagListComponent.mjs +2 -2
- package/apps/realworld/view/user/ProfileComponent.mjs +8 -8
- package/apps/realworld/view/user/SettingsComponent.mjs +4 -4
- package/apps/realworld/view/user/SignUpComponent.mjs +4 -4
- package/apps/realworld2/view/FooterComponent.mjs +1 -1
- package/apps/realworld2/view/HomeContainer.mjs +3 -3
- package/apps/realworld2/view/article/DetailsContainer.mjs +1 -1
- package/apps/realworld2/view/article/PreviewComponent.mjs +7 -7
- package/apps/realworld2/view/article/TagListComponent.mjs +2 -2
- package/apps/realworld2/view/user/ProfileContainer.mjs +1 -1
- package/apps/route/view/center/CardAdministration.mjs +2 -2
- package/apps/route/view/center/CardAdministrationDenied.mjs +1 -1
- package/apps/route/view/center/CardContact.mjs +2 -2
- package/apps/route/view/center/CardHome.mjs +1 -1
- package/apps/route/view/center/CardSection1.mjs +1 -1
- package/apps/route/view/center/CardSection2.mjs +1 -1
- package/apps/sharedcovid/view/AttributionComponent.mjs +1 -1
- package/apps/sharedcovid/view/HeaderContainer.mjs +6 -6
- package/apps/sharedcovid/view/MainContainerController.mjs +5 -5
- package/apps/sharedcovid/view/TableContainerController.mjs +1 -1
- package/apps/sharedcovid/view/country/Gallery.mjs +13 -13
- package/apps/sharedcovid/view/country/Helix.mjs +13 -13
- package/apps/sharedcovid/view/country/HistoricalDataTable.mjs +1 -1
- package/apps/shareddialog/childapps/shareddialog2/view/MainContainer.mjs +1 -1
- package/apps/shareddialog/view/MainContainer.mjs +1 -1
- package/buildScripts/createApp.mjs +2 -2
- package/learn/Glossary.md +261 -0
- package/learn/README.md +9 -14
- package/learn/benefits/ConfigSystem.md +536 -26
- package/learn/benefits/Effort.md +47 -2
- package/learn/benefits/Features.md +50 -32
- package/learn/benefits/FormsEngine.md +54 -24
- package/learn/benefits/MultiWindow.md +31 -5
- package/learn/benefits/Quick.md +45 -12
- package/learn/benefits/RPCLayer.md +75 -0
- package/learn/benefits/Speed.md +17 -12
- package/learn/guides/Collections.md +436 -0
- package/learn/guides/ConfigSystemDeepDive.md +280 -0
- package/learn/guides/CustomComponents.md +256 -14
- package/learn/guides/DeclarativeComponentTreesVsImperativeVdom.md +17 -17
- package/learn/guides/ExtendingNeoClasses.md +331 -0
- package/learn/guides/Forms.md +449 -1
- package/learn/guides/InstanceLifecycle.md +295 -1
- package/learn/guides/Layouts.md +246 -1
- package/learn/guides/MainThreadAddons.md +475 -0
- package/learn/guides/Records.md +286 -0
- package/learn/guides/WorkingWithVDom.md +14 -14
- package/learn/guides/form_fields/ComboBox.md +241 -0
- package/learn/tree.json +57 -51
- package/package.json +2 -2
- package/resources/scss/src/apps/portal/learn/ContentComponent.scss +9 -0
- package/src/DefaultConfig.mjs +2 -2
- package/src/Main.mjs +8 -7
- package/src/Neo.mjs +16 -2
- package/src/button/Base.mjs +2 -2
- package/src/calendar/view/SettingsContainer.mjs +2 -2
- package/src/calendar/view/YearComponent.mjs +9 -9
- package/src/calendar/view/calendars/ColorsList.mjs +1 -1
- package/src/calendar/view/calendars/List.mjs +1 -1
- package/src/calendar/view/month/Component.mjs +15 -15
- package/src/calendar/view/week/Component.mjs +12 -12
- package/src/calendar/view/week/EventDragZone.mjs +4 -4
- package/src/calendar/view/week/TimeAxisComponent.mjs +3 -3
- package/src/component/Base.mjs +17 -2
- package/src/component/Carousel.mjs +2 -2
- package/src/component/Chip.mjs +3 -3
- package/src/component/Circle.mjs +2 -2
- package/src/component/DateSelector.mjs +8 -8
- package/src/component/Helix.mjs +1 -1
- package/src/component/Label.mjs +3 -18
- package/src/component/Legend.mjs +3 -3
- package/src/component/MagicMoveText.mjs +6 -14
- package/src/component/Process.mjs +3 -3
- package/src/component/Progress.mjs +1 -1
- package/src/component/StatusBadge.mjs +2 -2
- package/src/component/Timer.mjs +2 -2
- package/src/component/Toast.mjs +5 -3
- package/src/container/AccordionItem.mjs +2 -2
- package/src/container/Base.mjs +1 -1
- package/src/core/Base.mjs +18 -2
- package/src/date/DayViewComponent.mjs +2 -2
- package/src/date/SelectorContainer.mjs +1 -1
- package/src/form/field/CheckBox.mjs +4 -4
- package/src/form/field/ComboBox.mjs +6 -1
- package/src/form/field/FileUpload.mjs +25 -39
- package/src/form/field/Range.mjs +1 -1
- package/src/form/field/Text.mjs +3 -3
- package/src/form/field/TextArea.mjs +2 -3
- package/src/grid/Body.mjs +6 -2
- package/src/list/Color.mjs +2 -2
- package/src/main/DeltaUpdates.mjs +157 -98
- package/src/main/addon/AmCharts.mjs +53 -73
- package/src/main/addon/Base.mjs +11 -0
- package/src/main/addon/MonacoEditor.mjs +31 -58
- package/src/manager/ClassHierarchy.mjs +114 -0
- package/src/menu/List.mjs +1 -1
- package/src/plugin/Popover.mjs +2 -2
- package/src/sitemap/Component.mjs +1 -1
- package/src/table/Body.mjs +6 -2
- package/src/tooltip/Base.mjs +1 -6
- package/src/tree/Accordion.mjs +3 -3
- package/src/vdom/Helper.mjs +21 -19
- package/src/worker/App.mjs +1 -2
- package/src/worker/Base.mjs +6 -4
- package/src/worker/Canvas.mjs +2 -3
- package/src/worker/Data.mjs +5 -7
- package/src/worker/Task.mjs +2 -3
- package/src/worker/VDom.mjs +3 -4
- package/src/worker/mixin/RemoteMethodAccess.mjs +4 -1
- package/learn/guides/MainThreadAddonExample.md +0 -15
- package/learn/guides/MainThreadAddonIntro.md +0 -44
package/ServiceWorker.mjs
CHANGED
@@ -21,7 +21,7 @@ class AttributionComponent extends Component {
|
|
21
21
|
*/
|
22
22
|
vdom:
|
23
23
|
{style: {margin: '20px'}, cn: [
|
24
|
-
{tag: 'h2',
|
24
|
+
{tag: 'h2', text: 'Attribution'},
|
25
25
|
{tag: 'ul', cn: [
|
26
26
|
{tag: 'li', html: 'The logos were created by <a target="_blank" href="https://www.driefmeier.com/">Sebastian Driefmeier</a>. Thank you!'},
|
27
27
|
{tag: 'li', html: ['The logos are based on the image from <a target="_blank" href="https://phil.cdc.gov/Details.aspx?pid=23312">CDC Public Health Image Library (PHIL)</a>,</br>',
|
@@ -55,25 +55,25 @@ class HeaderContainer extends Container {
|
|
55
55
|
items: [{
|
56
56
|
cls : ['covid-numberbox'],
|
57
57
|
vdom: {cn: [
|
58
|
-
{cls: ['covid-numberbox-title', 'cases'],
|
58
|
+
{cls: ['covid-numberbox-title', 'cases'], text:'Cases'},
|
59
59
|
{cls: ['covid-numberbox-number', 'cases']}
|
60
60
|
]}
|
61
61
|
}, {
|
62
62
|
cls : ['covid-numberbox'],
|
63
63
|
vdom: {cn: [
|
64
|
-
{cls: ['covid-numberbox-title', 'active'],
|
64
|
+
{cls: ['covid-numberbox-title', 'active'], text:'Active'},
|
65
65
|
{cls: ['covid-numberbox-number', 'active']}
|
66
66
|
]}
|
67
67
|
}, {
|
68
68
|
cls : ['covid-numberbox'],
|
69
69
|
vdom: {cn: [
|
70
|
-
{cls: ['covid-numberbox-title', 'recovered'],
|
70
|
+
{cls: ['covid-numberbox-title', 'recovered'], text:'Recovered'},
|
71
71
|
{cls: ['covid-numberbox-number', 'recovered']}
|
72
72
|
]}
|
73
73
|
}, {
|
74
74
|
cls : ['covid-numberbox'],
|
75
75
|
vdom: {cn: [
|
76
|
-
{cls: ['covid-numberbox-title', 'deaths'],
|
76
|
+
{cls: ['covid-numberbox-title', 'deaths'], text:'Deaths'},
|
77
77
|
{cls: ['covid-numberbox-number', 'deaths']}
|
78
78
|
]}
|
79
79
|
}, {
|
@@ -89,7 +89,7 @@ class HeaderContainer extends Container {
|
|
89
89
|
'data-show-count': 'true',
|
90
90
|
'data-size' : 'large',
|
91
91
|
href : 'https://github.com/neomjs/neo',
|
92
|
-
|
92
|
+
text : 'Star'
|
93
93
|
}]
|
94
94
|
}
|
95
95
|
}, {
|
@@ -103,7 +103,7 @@ class HeaderContainer extends Container {
|
|
103
103
|
'data-icon' : 'octicon-heart',
|
104
104
|
'data-size' : 'large',
|
105
105
|
href : 'https://github.com/sponsors/tobiu',
|
106
|
-
|
106
|
+
text : 'Sponsor'
|
107
107
|
}]
|
108
108
|
}
|
109
109
|
}]
|
@@ -131,10 +131,10 @@ class MainContainerController extends ComponentController {
|
|
131
131
|
|
132
132
|
me.summaryData = data;
|
133
133
|
|
134
|
-
container.items[0].vdom.cn[1].
|
135
|
-
container.items[1].vdom.cn[1].
|
136
|
-
container.items[2].vdom.cn[1].
|
137
|
-
container.items[3].vdom.cn[1].
|
134
|
+
container.items[0].vdom.cn[1].text = Util.formatNumber({value: data.cases});
|
135
|
+
container.items[1].vdom.cn[1].text = Util.formatNumber({value: data.active});
|
136
|
+
container.items[2].vdom.cn[1].text = Util.formatNumber({value: data.recovered});
|
137
|
+
container.items[3].vdom.cn[1].text = Util.formatNumber({value: data.deaths});
|
138
138
|
|
139
139
|
container.updateDepth = 2;
|
140
140
|
container.update();
|
@@ -142,7 +142,7 @@ class MainContainerController extends ComponentController {
|
|
142
142
|
container = me.getReference('last-update');
|
143
143
|
vdom = container.vdom;
|
144
144
|
|
145
|
-
vdom.
|
145
|
+
vdom.text = 'Last Update: ' + new Intl.DateTimeFormat('default', {
|
146
146
|
hour : 'numeric',
|
147
147
|
minute: 'numeric',
|
148
148
|
second: 'numeric'
|
@@ -224,7 +224,7 @@ class TableContainerController extends ComponentController {
|
|
224
224
|
|
225
225
|
me.loadHistoricalData(record?.countryInfo?.iso2 || 'all');
|
226
226
|
|
227
|
-
me.getReference('historical-data-label').
|
227
|
+
me.getReference('historical-data-label').text = 'Historical Data (' + (record?.country || 'World') + ')';
|
228
228
|
}
|
229
229
|
|
230
230
|
/**
|
@@ -45,24 +45,24 @@ class CountryGallery extends Gallery {
|
|
45
45
|
]},
|
46
46
|
{tag: 'table', cls: ['neo-content-table'], cn: [
|
47
47
|
{tag: 'tr', cn: [
|
48
|
-
{tag: 'td',
|
48
|
+
{tag: 'td', text: 'Cases'},
|
49
49
|
{tag: 'td', cls: ['neo-align-right']},
|
50
50
|
{tag: 'td', style: {width: '100%'}},
|
51
|
-
{tag: 'td',
|
51
|
+
{tag: 'td', text: 'Cases today'},
|
52
52
|
{tag: 'td', cls: ['neo-align-right']}
|
53
53
|
]},
|
54
54
|
{tag: 'tr', cn: [
|
55
|
-
{tag: 'td',
|
55
|
+
{tag: 'td', text: 'Deaths'},
|
56
56
|
{tag: 'td', cls: ['neo-align-right', 'neo-content-deaths']},
|
57
57
|
{tag: 'td', style: {width: '100%'}},
|
58
|
-
{tag: 'td',
|
58
|
+
{tag: 'td', text: 'Deaths today'},
|
59
59
|
{tag: 'td', cls: ['neo-align-right', 'neo-content-deaths']}
|
60
60
|
]},
|
61
61
|
{tag: 'tr', cn: [
|
62
|
-
{tag: 'td',
|
62
|
+
{tag: 'td', text: 'Recovered'},
|
63
63
|
{tag: 'td', cls: ['neo-align-right', 'neo-content-recovered']},
|
64
64
|
{tag: 'td', style: {width: '100%'}},
|
65
|
-
{tag: 'td',
|
65
|
+
{tag: 'td', text: 'Critical'},
|
66
66
|
{tag: 'td', cls: ['neo-align-right', 'neo-content-critical']}
|
67
67
|
]}
|
68
68
|
]}
|
@@ -127,15 +127,15 @@ class CountryGallery extends Gallery {
|
|
127
127
|
firstChild.style.width = me.itemWidth + 'px';
|
128
128
|
|
129
129
|
firstChild.cn[0].cn[0].src = Util.getCountryFlagUrl(record.country);
|
130
|
-
firstChild.cn[0].cn[1].
|
130
|
+
firstChild.cn[0].cn[1].text = record.country;
|
131
131
|
|
132
|
-
table.cn[0].cn[1].
|
133
|
-
table.cn[1].cn[1].
|
134
|
-
table.cn[2].cn[1].
|
132
|
+
table.cn[0].cn[1].text = fN({value: record.cases});
|
133
|
+
table.cn[1].cn[1].text = fN({value: record.deaths});
|
134
|
+
table.cn[2].cn[1].text = fN({value: record.recovered});
|
135
135
|
|
136
|
-
table.cn[0].cn[4].
|
137
|
-
table.cn[1].cn[4].
|
138
|
-
table.cn[2].cn[4].
|
136
|
+
table.cn[0].cn[4].text = fN({value: record.todayCases});
|
137
|
+
table.cn[1].cn[4].text = fN({value: record.todayDeaths});
|
138
|
+
table.cn[2].cn[4].text = fN({value: record.critical});
|
139
139
|
|
140
140
|
return vdomItem;
|
141
141
|
}
|
@@ -45,24 +45,24 @@ class CountryHelix extends Helix {
|
|
45
45
|
]},
|
46
46
|
{tag: 'table', cls: ['neo-content-table'], cn: [
|
47
47
|
{tag: 'tr', cn: [
|
48
|
-
{tag: 'td',
|
48
|
+
{tag: 'td', text: 'Cases'},
|
49
49
|
{tag: 'td', cls: ['neo-align-right']},
|
50
50
|
{tag: 'td', style: {width: '100%'}},
|
51
|
-
{tag: 'td',
|
51
|
+
{tag: 'td', text: 'Cases today'},
|
52
52
|
{tag: 'td', cls: ['neo-align-right']}
|
53
53
|
]},
|
54
54
|
{tag: 'tr', cn: [
|
55
|
-
{tag: 'td',
|
55
|
+
{tag: 'td', text: 'Deaths'},
|
56
56
|
{tag: 'td', cls: ['neo-align-right', 'neo-content-deaths']},
|
57
57
|
{tag: 'td', style: {width: '100%'}},
|
58
|
-
{tag: 'td',
|
58
|
+
{tag: 'td', text: 'Deaths today'},
|
59
59
|
{tag: 'td', cls: ['neo-align-right', 'neo-content-deaths']}
|
60
60
|
]},
|
61
61
|
{tag: 'tr', cn: [
|
62
|
-
{tag: 'td',
|
62
|
+
{tag: 'td', text: 'Recovered'},
|
63
63
|
{tag: 'td', cls: ['neo-align-right', 'neo-content-recovered']},
|
64
64
|
{tag: 'td', style: {width: '100%'}},
|
65
|
-
{tag: 'td',
|
65
|
+
{tag: 'td', text: 'Critical'},
|
66
66
|
{tag: 'td', cls: ['neo-align-right', 'neo-content-critical']}
|
67
67
|
]}
|
68
68
|
]}
|
@@ -138,15 +138,15 @@ class CountryHelix extends Helix {
|
|
138
138
|
vdomItem.id = me.getItemVnodeId(record[me.keyProperty]);
|
139
139
|
|
140
140
|
firstChild.cn[0].cn[0].src = Util.getCountryFlagUrl(record.country);
|
141
|
-
firstChild.cn[0].cn[1].
|
141
|
+
firstChild.cn[0].cn[1].text = record.country;
|
142
142
|
|
143
|
-
table.cn[0].cn[1].
|
144
|
-
table.cn[1].cn[1].
|
145
|
-
table.cn[2].cn[1].
|
143
|
+
table.cn[0].cn[1].text = fN({value: record.cases});
|
144
|
+
table.cn[1].cn[1].text = fN({value: record.deaths});
|
145
|
+
table.cn[2].cn[1].text = fN({value: record.recovered});
|
146
146
|
|
147
|
-
table.cn[0].cn[4].
|
148
|
-
table.cn[1].cn[4].
|
149
|
-
table.cn[2].cn[4].
|
147
|
+
table.cn[0].cn[4].text = fN({value: record.todayCases});
|
148
|
+
table.cn[1].cn[4].text = fN({value: record.todayDeaths});
|
149
|
+
table.cn[2].cn[4].text = fN({value: record.critical});
|
150
150
|
|
151
151
|
return vdomItem;
|
152
152
|
}
|
@@ -38,7 +38,7 @@ class HistoricalDataTable extends Container {
|
|
38
38
|
renderer : function(data) {
|
39
39
|
return {
|
40
40
|
cls : ['neo-date-column', 'neo-table-cell'],
|
41
|
-
|
41
|
+
text: new Intl.DateTimeFormat('default', {
|
42
42
|
day : 'numeric',
|
43
43
|
month: 'numeric',
|
44
44
|
year : 'numeric'
|
@@ -42,13 +42,13 @@ class Viewport extends BaseViewport {
|
|
42
42
|
iconCls: 'fa fa-home',
|
43
43
|
text : 'Tab 1'
|
44
44
|
},
|
45
|
-
|
45
|
+
text: 'Welcome to your new Neo App.'
|
46
46
|
}, {
|
47
47
|
header: {
|
48
48
|
iconCls: 'fa fa-play-circle',
|
49
49
|
text : 'Tab 2'
|
50
50
|
},
|
51
|
-
|
51
|
+
text: 'Have fun creating something awesome!'
|
52
52
|
}]
|
53
53
|
}]
|
54
54
|
}
|
@@ -26,10 +26,9 @@ class FormPageContainer extends FormContainer {
|
|
26
26
|
*/
|
27
27
|
style: {overflow: 'auto'},
|
28
28
|
/**
|
29
|
-
* @member {
|
29
|
+
* @member {String} tag='div'
|
30
30
|
*/
|
31
|
-
|
32
|
-
{cn: []} // using a div instead of a form tag
|
31
|
+
tag: 'div' // using a div instead of a form tag
|
33
32
|
}
|
34
33
|
}
|
35
34
|
|
package/apps/portal/index.html
CHANGED
@@ -131,7 +131,7 @@
|
|
131
131
|
"name" : "Liquid Glass effect",
|
132
132
|
"sourceUrl": "https://github.com/neomjs/liquid-glass-demo/blob/main/apps/myapp/view/GlassComponent.mjs",
|
133
133
|
"url" : "https://neomjs.github.io/pages2/workspace/neo-liquid-glass-demo/dist/esm/apps/myapp/index.html"
|
134
|
-
},
|
134
|
+
}, {
|
135
135
|
"hidden" : true,
|
136
136
|
"id" : 2,
|
137
137
|
"image" : "devmode/realworldApp.png",
|
@@ -132,13 +132,13 @@
|
|
132
132
|
"sharedWorkers": true,
|
133
133
|
"sourceUrl" : "apps/portal",
|
134
134
|
"url" : "dist/production/apps/portal/index.html"
|
135
|
-
},{
|
135
|
+
}, {
|
136
136
|
"id" : 3,
|
137
137
|
"image" : "devmode/liquid-glass.png",
|
138
138
|
"name" : "Liquid Glass effect",
|
139
139
|
"sourceUrl": "https://github.com/neomjs/liquid-glass-demo/blob/main/apps/myapp/view/GlassComponent.mjs",
|
140
140
|
"url" : "https://neomjs.github.io/pages2/workspace/neo-liquid-glass-demo/dist/production/apps/myapp/index.html"
|
141
|
-
},
|
141
|
+
}, {
|
142
142
|
"hidden" : true,
|
143
143
|
"id" : 2,
|
144
144
|
"image" : "devmode/realworldApp.png",
|
@@ -58,7 +58,7 @@ class HeaderToolbar extends Base {
|
|
58
58
|
iconCls: 'fa-brands fa-github',
|
59
59
|
url : 'https://github.com/neomjs/neo',
|
60
60
|
tooltip: {
|
61
|
-
|
61
|
+
text : 'GitHub',
|
62
62
|
showDelay: 0,
|
63
63
|
hideDelay: 0
|
64
64
|
}
|
@@ -66,7 +66,7 @@ class HeaderToolbar extends Base {
|
|
66
66
|
iconCls: 'fa-brands fa-slack',
|
67
67
|
url : 'https://join.slack.com/t/neomjs/shared_invite/zt-6c50ueeu-3E1~M4T9xkNnb~M_prEEOA',
|
68
68
|
tooltip: {
|
69
|
-
|
69
|
+
text : 'Join Slack',
|
70
70
|
showDelay: 0,
|
71
71
|
hideDelay: 0
|
72
72
|
}
|
@@ -74,7 +74,7 @@ class HeaderToolbar extends Base {
|
|
74
74
|
iconCls: 'fa-brands fa-discord',
|
75
75
|
url : 'https://discord.gg/6p8paPq',
|
76
76
|
tooltip: {
|
77
|
-
|
77
|
+
text : 'Join Discord',
|
78
78
|
showDelay: 0,
|
79
79
|
hideDelay: 0
|
80
80
|
}
|
@@ -80,7 +80,7 @@ class MemberContainer extends Container {
|
|
80
80
|
if (value) {
|
81
81
|
let item = this.items[1];
|
82
82
|
|
83
|
-
item.vdom.cn[1].cn[2].cn[1].
|
83
|
+
item.vdom.cn[1].cn[2].cn[1].text = value;
|
84
84
|
item.update?.()
|
85
85
|
}
|
86
86
|
}
|
@@ -95,7 +95,7 @@ class MemberContainer extends Container {
|
|
95
95
|
if (value) {
|
96
96
|
let item = this.items[1];
|
97
97
|
|
98
|
-
item.vdom.cn[1].cn[0].
|
98
|
+
item.vdom.cn[1].cn[0].text = value;
|
99
99
|
item.update?.()
|
100
100
|
}
|
101
101
|
}
|
@@ -145,7 +145,7 @@ class MemberContainer extends Container {
|
|
145
145
|
if (value) {
|
146
146
|
let item = this.items[1];
|
147
147
|
|
148
|
-
item.vdom.cn[1].cn[1].
|
148
|
+
item.vdom.cn[1].cn[1].text = value;
|
149
149
|
item.update?.()
|
150
150
|
}
|
151
151
|
}
|
@@ -122,15 +122,15 @@ class List extends BaseList {
|
|
122
122
|
{cls: ['neo-full-size', 'preview-image'], flag: `image-${record.id}`},
|
123
123
|
{cls: ['neo-absolute', 'neo-item-bottom-position'], cn: [
|
124
124
|
{tag: 'a', cls: ['neo-title'], href: record.url, target: '_blank', cn: [
|
125
|
-
{flag: 'name', html: record.name.replace(List.nameRegEx,
|
125
|
+
{flag: 'name', html: record.name.replace(List.nameRegEx, '$1')}
|
126
126
|
]},
|
127
127
|
{cls: ['neo-top-20'], cn: [
|
128
128
|
{tag: 'img', cls: ['neo-user-image'], src: `${imageBasePath}/blogAuthor/${record.authorImage}`},
|
129
129
|
{cls: ['neo-inner-content'], cn: [
|
130
130
|
{cls: ['neo-inner-details'], flag: 'author', cn: [
|
131
|
-
{tag: 'span', cls: ['neo-bold'],
|
131
|
+
{tag: 'span', cls: ['neo-bold'], text: record.author}
|
132
132
|
]},
|
133
|
-
{cls: ['neo-inner-details'],
|
133
|
+
{cls: ['neo-inner-details'], text: record.date}
|
134
134
|
]}
|
135
135
|
]}
|
136
136
|
]}
|
@@ -140,16 +140,16 @@ class List extends BaseList {
|
|
140
140
|
|
141
141
|
if (record.publisher.length > 0) {
|
142
142
|
VDomUtil.getByFlag(vdomCn[0], 'author').cn.push(
|
143
|
-
{vtype: 'text',
|
144
|
-
{tag: 'span', cls: ['neo-bold'],
|
143
|
+
{vtype: 'text', text : ' in '},
|
144
|
+
{tag: 'span', cls: ['neo-bold'], text: record.publisher}
|
145
145
|
)
|
146
146
|
}
|
147
147
|
|
148
148
|
if (record.selectedInto.length > 0) {
|
149
149
|
vdomCn[0].cn[0].cn.splice(1, 0,
|
150
150
|
{cls: ['neo-absolute', 'neo-item-top-position'], cn: [
|
151
|
-
{
|
152
|
-
{cls: ['neo-bold'],
|
151
|
+
{text: `Officially selected by ${record.provider} into`},
|
152
|
+
{cls: ['neo-bold'], text: record.selectedInto.join('</br>')}
|
153
153
|
]}
|
154
154
|
)
|
155
155
|
}
|
@@ -117,8 +117,8 @@ class List extends BaseList {
|
|
117
117
|
{cls: ['neo-top-20'], cn: [
|
118
118
|
{...me.createSourceLink(record)},
|
119
119
|
{cls: ['neo-inner-content'], cn: [
|
120
|
-
{cls: ['neo-inner-details'],
|
121
|
-
{cls: ['neo-inner-details'],
|
120
|
+
{cls: ['neo-inner-details'], text: record.browsers.join(', ')},
|
121
|
+
{cls: ['neo-inner-details'], text: record.environments.join(', ')}
|
122
122
|
]}
|
123
123
|
]}
|
124
124
|
]}
|
@@ -137,8 +137,8 @@ class List extends BaseList {
|
|
137
137
|
vdom = {
|
138
138
|
tag : 'a',
|
139
139
|
cls : ['neo-title'],
|
140
|
-
|
141
|
-
|
140
|
+
href: record.url,
|
141
|
+
text: record.name.replace(List.nameRegEx, '$1')
|
142
142
|
};
|
143
143
|
|
144
144
|
// We can use a shorter syntax for pointing examples to neomjs.com, but not all examples have to be there.
|
@@ -46,7 +46,7 @@ class ContentBox extends Base {
|
|
46
46
|
*/
|
47
47
|
afterSetContent(value, oldValue) {
|
48
48
|
value?.forEach(item => {
|
49
|
-
this.vdom.cn[1].cn.push({tag: 'li',
|
49
|
+
this.vdom.cn[1].cn.push({tag: 'li', text: item})
|
50
50
|
})
|
51
51
|
|
52
52
|
this.update()
|
@@ -59,7 +59,7 @@ class ContentBox extends Base {
|
|
59
59
|
* @protected
|
60
60
|
*/
|
61
61
|
afterSetHeader(value, oldValue) {
|
62
|
-
this.vdom.cn[0].
|
62
|
+
this.vdom.cn[0].text = value;
|
63
63
|
this.update()
|
64
64
|
}
|
65
65
|
|
@@ -148,7 +148,7 @@ class FeatureSection extends Container {
|
|
148
148
|
* @protected
|
149
149
|
*/
|
150
150
|
afterSetHeadline(value, oldValue) {
|
151
|
-
this.getItem('headline').
|
151
|
+
this.getItem('headline').text = value
|
152
152
|
}
|
153
153
|
|
154
154
|
/**
|
@@ -171,7 +171,7 @@ class FeatureSection extends Container {
|
|
171
171
|
* @protected
|
172
172
|
*/
|
173
173
|
afterSetParagraph(value, oldValue) {
|
174
|
-
this.getItem('paragraph').
|
174
|
+
this.getItem('paragraph').text = value
|
175
175
|
}
|
176
176
|
|
177
177
|
/**
|
@@ -181,7 +181,7 @@ class FeatureSection extends Container {
|
|
181
181
|
* @protected
|
182
182
|
*/
|
183
183
|
afterSetSubHeadline(value, oldValue) {
|
184
|
-
this.getItem('sub-headline').
|
184
|
+
this.getItem('sub-headline').text = value
|
185
185
|
}
|
186
186
|
|
187
187
|
/**
|
@@ -37,8 +37,8 @@ class FooterContainer extends Container {
|
|
37
37
|
items: [{
|
38
38
|
module: Component,
|
39
39
|
cls : ['neo-h2'],
|
40
|
-
|
41
|
-
|
40
|
+
tag : 'h2',
|
41
|
+
text : 'Content'
|
42
42
|
}, {
|
43
43
|
iconCls: 'fas fa-people-group',
|
44
44
|
route : '/about-us',
|
@@ -64,8 +64,8 @@ class FooterContainer extends Container {
|
|
64
64
|
items: [{
|
65
65
|
module: Component,
|
66
66
|
cls : ['neo-h2'],
|
67
|
-
|
68
|
-
|
67
|
+
tag : 'h2',
|
68
|
+
text : 'Community'
|
69
69
|
}, {
|
70
70
|
iconCls: 'fa-brands fa-github',
|
71
71
|
text : 'Contribute',
|
@@ -91,8 +91,8 @@ class FooterContainer extends Container {
|
|
91
91
|
items: [{
|
92
92
|
module: Component,
|
93
93
|
cls : ['neo-h2'],
|
94
|
-
|
95
|
-
|
94
|
+
tag : 'h2',
|
95
|
+
text : 'Social Media'
|
96
96
|
}, {
|
97
97
|
iconCls: 'fa-brands fa-linkedin',
|
98
98
|
text : 'LinkedIn',
|
@@ -107,7 +107,7 @@ class FooterContainer extends Container {
|
|
107
107
|
}, {
|
108
108
|
module: Component,
|
109
109
|
cls : ['neo-version'],
|
110
|
-
|
110
|
+
text : 'v10.0.0-beta.3'
|
111
111
|
}]
|
112
112
|
}],
|
113
113
|
/**
|
@@ -28,8 +28,8 @@ class AfterMath extends BaseContainer {
|
|
28
28
|
}, {
|
29
29
|
cls : ['neo-h1'],
|
30
30
|
flex: 'none',
|
31
|
-
|
32
|
-
|
31
|
+
tag : 'h1',
|
32
|
+
text: 'Next Steps'
|
33
33
|
}, {
|
34
34
|
cls : ['neo-content'],
|
35
35
|
flex: 'none',
|
@@ -37,7 +37,7 @@ class AfterMath extends BaseContainer {
|
|
37
37
|
|
38
38
|
html: `
|
39
39
|
<li>To learn more about Neo.mjs please dive into the <a href="#/learn">Learning Section</a> or browse the <a href="#/blog">Blog</a></li>
|
40
|
-
<li>To arrange a demo or to talk to an engineer email <a href="mailto:info@neomjs.com">info@neomjs.com</a></li>
|
40
|
+
<li>To arrange a demo or to talk to an engineer, email <a href="mailto:info@neomjs.com">info@neomjs.com</a></li>
|
41
41
|
<li>For help starting a project email <a href="mailto:services@neomjs.com">services@neomjs.com</a></li>
|
42
42
|
<li>For questions about private training email <a href="mailto:training@neomjs.com">training@neomjs.com</a></li>
|
43
43
|
`
|
@@ -30,8 +30,8 @@ class MainNeo extends BaseContainer {
|
|
30
30
|
cls : ['vector']
|
31
31
|
}, {
|
32
32
|
cls : ['neo-h1'],
|
33
|
-
|
34
|
-
|
33
|
+
tag : 'h1',
|
34
|
+
text: 'Neo.mjs'
|
35
35
|
}]
|
36
36
|
}, {
|
37
37
|
module : MagicMoveText,
|
@@ -59,7 +59,7 @@ class MainNeo extends BaseContainer {
|
|
59
59
|
flex: 'none',
|
60
60
|
tag : 'h3',
|
61
61
|
|
62
|
-
|
62
|
+
text: [
|
63
63
|
'Neo.mjs provides a new approach for building feature-rich web applications. Increase productivity by leveraging ',
|
64
64
|
'a vast component library and harness the power of multi-threading for extreme real-time performance.'
|
65
65
|
].join('')
|
@@ -29,13 +29,13 @@ class References extends BaseContainer {
|
|
29
29
|
}, {
|
30
30
|
cls : 'neo-h1',
|
31
31
|
flex: 'none',
|
32
|
-
|
33
|
-
|
32
|
+
tag : 'h1',
|
33
|
+
text: 'References'
|
34
34
|
}, {
|
35
35
|
cls : 'neo-h2',
|
36
36
|
flex: 'none',
|
37
|
-
|
38
|
-
|
37
|
+
tag : 'h2',
|
38
|
+
text: 'What people think about Neo'
|
39
39
|
}, {
|
40
40
|
module: Carousel,
|
41
41
|
// will automatically change to the next extry every 5500 ms
|
@@ -74,10 +74,10 @@ class References extends BaseContainer {
|
|
74
74
|
// each item will be created like the itemTpl structure
|
75
75
|
itemTpl: data => [{
|
76
76
|
cls : 'neo-quote',
|
77
|
-
|
77
|
+
text: data.quote
|
78
78
|
}, {
|
79
79
|
cls : 'neo-details',
|
80
|
-
|
80
|
+
text: `${data.publisher} - ${data.date}`
|
81
81
|
}]
|
82
82
|
}]
|
83
83
|
}
|