neo.mjs 2.3.17 → 3.0.1
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/README.md +9 -0
- package/apps/covid/Util.mjs +1 -3
- package/apps/covid/view/GalleryContainer.mjs +2 -3
- package/apps/covid/view/GalleryContainerController.mjs +1 -5
- package/apps/covid/view/HelixContainer.mjs +2 -3
- package/apps/covid/view/HelixContainerController.mjs +1 -4
- package/apps/covid/view/MainContainerController.mjs +0 -7
- package/apps/covid/view/MainContainerModel.mjs +0 -1
- package/apps/covid/view/TableContainer.mjs +2 -3
- package/apps/covid/view/TableContainerController.mjs +0 -3
- package/apps/covid/view/WorldMapComponent.mjs +1 -2
- package/apps/covid/view/WorldMapContainerController.mjs +0 -2
- package/apps/covid/view/country/Gallery.mjs +0 -2
- package/apps/covid/view/country/Helix.mjs +0 -3
- package/apps/covid/view/mapboxGl/Container.mjs +1 -1
- package/apps/covid/view/mapboxGl/ContainerController.mjs +1 -6
- package/apps/krausest/TableCollection.mjs +0 -1
- package/apps/krausest/view/MainComponent.mjs +2 -3
- package/apps/krausest/view/MainComponentController.mjs +0 -1
- package/apps/krausest/view/TableComponent.mjs +2 -4
- package/apps/realworld/api/Article.mjs +1 -4
- package/apps/realworld/api/Base.mjs +0 -5
- package/apps/realworld/api/Favorite.mjs +1 -3
- package/apps/realworld/api/Profile.mjs +1 -3
- package/apps/realworld/view/HeaderComponent.mjs +1 -2
- package/apps/realworld/view/HomeComponent.mjs +2 -11
- package/apps/realworld/view/MainContainerController.mjs +0 -13
- package/apps/realworld/view/article/CommentComponent.mjs +3 -5
- package/apps/realworld/view/article/Component.mjs +2 -7
- package/apps/realworld/view/article/CreateCommentComponent.mjs +3 -7
- package/apps/realworld/view/article/CreateComponent.mjs +3 -3
- package/apps/realworld/view/article/PreviewComponent.mjs +3 -5
- package/apps/realworld/view/article/TagListComponent.mjs +3 -7
- package/apps/realworld/view/user/ProfileComponent.mjs +2 -8
- package/apps/realworld/view/user/SettingsComponent.mjs +3 -7
- package/apps/realworld/view/user/SignUpComponent.mjs +2 -3
- package/apps/realworld2/api/Article.mjs +1 -4
- package/apps/realworld2/api/Base.mjs +0 -5
- package/apps/realworld2/api/Favorite.mjs +1 -3
- package/apps/realworld2/api/Profile.mjs +1 -3
- package/apps/realworld2/view/HeaderToolbarController.mjs +1 -2
- package/apps/realworld2/view/HomeContainer.mjs +1 -2
- package/apps/realworld2/view/MainContainerController.mjs +1 -14
- package/apps/realworld2/view/article/Gallery.mjs +1 -3
- package/apps/realworld2/view/article/GalleryContainer.mjs +1 -2
- package/apps/realworld2/view/article/Helix.mjs +1 -3
- package/apps/realworld2/view/article/HelixContainer.mjs +3 -5
- package/apps/realworld2/view/article/PreviewComponent.mjs +3 -5
- package/apps/realworld2/view/article/TagListComponent.mjs +3 -7
- package/apps/realworld2/view/user/LoginFormContainer.mjs +3 -4
- package/apps/sharedcovid/Util.mjs +1 -3
- package/apps/sharedcovid/view/GalleryContainer.mjs +2 -3
- package/apps/sharedcovid/view/GalleryContainerController.mjs +1 -5
- package/apps/sharedcovid/view/HelixContainer.mjs +2 -3
- package/apps/sharedcovid/view/HelixContainerController.mjs +1 -4
- package/apps/sharedcovid/view/MainContainerController.mjs +12 -16
- package/apps/sharedcovid/view/MainContainerModel.mjs +0 -1
- package/apps/sharedcovid/view/TableContainer.mjs +2 -3
- package/apps/sharedcovid/view/TableContainerController.mjs +0 -3
- package/apps/sharedcovid/view/WorldMapComponent.mjs +1 -2
- package/apps/sharedcovid/view/WorldMapContainerController.mjs +0 -2
- package/apps/sharedcovid/view/country/Gallery.mjs +0 -2
- package/apps/sharedcovid/view/country/Helix.mjs +0 -3
- package/apps/sharedcovid/view/mapboxGl/Container.mjs +2 -3
- package/apps/sharedcovid/view/mapboxGl/ContainerController.mjs +1 -5
- package/apps/shareddialog/view/MainContainerController.mjs +0 -18
- package/apps/shareddialog2/view/MainContainerController.mjs +1 -2
- package/apps/website/data/blog.json +13 -0
- package/apps/website/view/MainContainerController.mjs +0 -4
- package/docs/app/view/ContentTabContainer.mjs +2 -2
- package/docs/app/view/MainContainer.mjs +2 -2
- package/docs/app/view/classdetails/SourceViewComponent.mjs +2 -2
- package/docs/app/view/classdetails/TutorialComponent.mjs +2 -2
- package/docs/tutorials/02_ClassSystem.html +3 -3
- package/docs/tutorials/02_ClassSystem.md +2 -2
- package/docs/tutorials/09_TodoList_version1.html +8 -8
- package/examples/ConfigurationViewport.mjs +0 -4
- package/examples/calendar/basic/MainContainerController.mjs +0 -1
- package/examples/calendar/weekview/MainContainer.mjs +2 -2
- package/examples/component/coronaGallery/CountryGallery.mjs +1 -4
- package/examples/component/coronaGallery/MainContainer.mjs +2 -4
- package/examples/component/coronaHelix/CountryHelix.mjs +0 -4
- package/examples/component/coronaHelix/MainContainer.mjs +2 -4
- package/examples/component/gallery/MainContainer.mjs +2 -4
- package/examples/component/helix/MainContainer.mjs +2 -4
- package/examples/component/splitter/MainContainer.mjs +0 -2
- package/examples/core/config/MainContainer.mjs +3 -5
- package/examples/dialog/MainContainer.mjs +3 -7
- package/examples/list/animate/MainContainer.mjs +2 -2
- package/examples/model/advanced/MainContainerController.mjs +0 -12
- package/examples/model/dialog/EditUserDialogController.mjs +1 -3
- package/examples/model/dialog/MainContainerController.mjs +1 -2
- package/examples/model/extendedClass/MainContainerController.mjs +0 -7
- package/examples/model/inline/MainContainerController.mjs +0 -7
- package/examples/model/inlineNoModel/MainContainerController.mjs +1 -6
- package/examples/model/multiWindow/EditUserDialogController.mjs +1 -3
- package/examples/model/multiWindow/MainContainerController.mjs +1 -3
- package/examples/model/multiWindow/ViewportController.mjs +3 -5
- package/examples/model/nestedData/MainContainerController.mjs +1 -8
- package/examples/tab/container/MainContainer.mjs +1 -6
- package/examples/todoList/version1/MainComponent.mjs +3 -3
- package/examples/todoList/version2/MainContainer.mjs +3 -3
- package/examples/todoList/version2/TodoList.mjs +1 -1
- package/examples/tree/MainContainer.mjs +0 -2
- package/package.json +7 -7
- package/src/Main.mjs +9 -18
- package/src/Neo.mjs +26 -26
- package/src/button/Menu.mjs +0 -1
- package/src/button/Split.mjs +2 -6
- package/src/calendar/store/Events.mjs +0 -1
- package/src/calendar/view/DayComponent.mjs +0 -1
- package/src/calendar/view/EditEventContainer.mjs +2 -9
- package/src/calendar/view/MainContainer.mjs +2 -17
- package/src/calendar/view/MainContainerModel.mjs +2 -4
- package/src/calendar/view/SettingsContainer.mjs +2 -6
- package/src/calendar/view/YearComponent.mjs +3 -14
- package/src/calendar/view/calendars/Container.mjs +0 -1
- package/src/calendar/view/calendars/EditContainer.mjs +2 -7
- package/src/calendar/view/calendars/List.mjs +0 -5
- package/src/calendar/view/month/Component.mjs +3 -17
- package/src/calendar/view/settings/GeneralContainer.mjs +0 -3
- package/src/calendar/view/settings/MonthContainer.mjs +0 -3
- package/src/calendar/view/settings/WeekContainer.mjs +0 -5
- package/src/calendar/view/settings/YearContainer.mjs +0 -3
- package/src/calendar/view/week/Component.mjs +3 -22
- package/src/calendar/view/week/EventDragZone.mjs +1 -6
- package/src/calendar/view/week/TimeAxisComponent.mjs +2 -3
- package/src/calendar/view/week/plugin/DragDrop.mjs +2 -12
- package/src/calendar/view/week/plugin/EventResizable.mjs +0 -3
- package/src/collection/Base.mjs +3 -22
- package/src/collection/Filter.mjs +0 -1
- package/src/collection/Sorter.mjs +0 -3
- package/src/component/Base.mjs +14 -3
- package/src/component/Chip.mjs +2 -4
- package/src/component/Circle.mjs +2 -20
- package/src/component/DateSelector.mjs +4 -21
- package/src/component/Gallery.mjs +2 -14
- package/src/component/Helix.mjs +2 -16
- package/src/component/Splitter.mjs +3 -8
- package/src/component/mwc/Button.mjs +2 -2
- package/src/component/mwc/TextField.mjs +2 -3
- package/src/component/wrapper/AmChart.mjs +1 -1
- package/src/component/wrapper/MapboxGL.mjs +0 -5
- package/src/container/Base.mjs +1 -7
- package/src/container/Panel.mjs +2 -5
- package/src/controller/Application.mjs +2 -3
- package/src/controller/Base.mjs +2 -3
- package/src/controller/Component.mjs +3 -6
- package/src/core/Base.mjs +26 -3
- package/src/core/Compare.mjs +0 -1
- package/src/core/IdGenerator.mjs +2 -4
- package/src/core/Observable.mjs +0 -3
- package/src/core/Util.mjs +0 -1
- package/src/core/_export.mjs +1 -2
- package/src/data/RecordFactory.mjs +1 -6
- package/src/data/Store.mjs +2 -12
- package/src/data/connection/Xhr.mjs +0 -6
- package/src/dialog/Base.mjs +5 -24
- package/src/draggable/DragProxyComponent.mjs +3 -5
- package/src/draggable/DragZone.mjs +2 -8
- package/src/draggable/DropZone.mjs +3 -9
- package/src/draggable/list/DragZone.mjs +3 -9
- package/src/draggable/tab/header/toolbar/SortZone.mjs +1 -3
- package/src/draggable/toolbar/DragZone.mjs +3 -7
- package/src/draggable/toolbar/SortZone.mjs +1 -8
- package/src/draggable/tree/DragZone.mjs +1 -4
- package/src/filter/BooleanContainer.mjs +0 -1
- package/src/filter/NumberContainer.mjs +0 -2
- package/src/filter/ToggleOperatorsButton.mjs +3 -5
- package/src/form/Container.mjs +0 -2
- package/src/form/Fieldset.mjs +0 -1
- package/src/form/field/Base.mjs +0 -2
- package/src/form/field/CheckBox.mjs +2 -7
- package/src/form/field/Color.mjs +2 -5
- package/src/form/field/Date.mjs +2 -6
- package/src/form/field/Display.mjs +2 -3
- package/src/form/field/Picker.mjs +1 -12
- package/src/form/field/Range.mjs +2 -3
- package/src/form/field/Select.mjs +24 -22
- package/src/form/field/Text.mjs +3 -20
- package/src/form/field/Time.mjs +2 -9
- package/src/form/field/trigger/Base.mjs +2 -4
- package/src/form/field/trigger/Clear.mjs +0 -3
- package/src/form/field/trigger/CopyToClipboard.mjs +0 -3
- package/src/form/field/trigger/Picker.mjs +0 -1
- package/src/form/field/trigger/SpinDown.mjs +0 -1
- package/src/form/field/trigger/SpinUp.mjs +0 -1
- package/src/form/field/trigger/SpinUpDown.mjs +0 -1
- package/src/form/field/trigger/Time.mjs +2 -3
- package/src/grid/Container.mjs +3 -6
- package/src/grid/header/Toolbar.mjs +1 -5
- package/src/list/Base.mjs +2 -2
- package/src/list/Color.mjs +0 -3
- package/src/list/Component.mjs +0 -3
- package/src/list/plugin/Animate.mjs +3 -6
- package/src/main/DomAccess.mjs +9 -24
- package/src/main/DomEvents.mjs +44 -77
- package/src/main/addon/AmCharts.mjs +3 -12
- package/src/main/addon/AnalyticsByGoogle.mjs +3 -4
- package/src/main/addon/CloneNode.mjs +0 -2
- package/src/main/addon/Cookie.mjs +0 -3
- package/src/main/addon/DragDrop.mjs +2 -11
- package/src/main/addon/HighlightJS.mjs +3 -7
- package/src/main/addon/MapboxGL.mjs +4 -16
- package/src/main/addon/Markdown.mjs +3 -3
- package/src/main/addon/Mwc.mjs +0 -2
- package/src/main/addon/Siesta.mjs +2 -3
- package/src/main/addon/Stylesheet.mjs +2 -6
- package/src/main/addon/WindowPosition.mjs +3 -8
- package/src/main/draggable/sensor/Mouse.mjs +2 -6
- package/src/main/draggable/sensor/Touch.mjs +2 -6
- package/src/main/mixin/DeltaUpdates.mjs +0 -8
- package/src/main/mixin/TouchDomEvents.mjs +1 -7
- package/src/manager/Base.mjs +0 -2
- package/src/manager/Component.mjs +2 -5
- package/src/manager/DomEvent.mjs +1 -6
- package/src/manager/Focus.mjs +0 -7
- package/src/manager/Instance.mjs +2 -3
- package/src/manager/Store.mjs +0 -4
- package/src/menu/List.mjs +4 -18
- package/src/model/Component.mjs +2 -3
- package/src/plugin/Base.mjs +2 -3
- package/src/plugin/Resizable.mjs +4 -15
- package/src/selection/CircleModel.mjs +1 -5
- package/src/selection/DateSelectorModel.mjs +1 -9
- package/src/selection/GalleryModel.mjs +0 -9
- package/src/selection/HelixModel.mjs +0 -9
- package/src/selection/ListModel.mjs +0 -8
- package/src/selection/Model.mjs +0 -8
- package/src/selection/menu/ListModel.mjs +0 -2
- package/src/selection/table/CellColumnModel.mjs +2 -6
- package/src/selection/table/CellColumnRowModel.mjs +2 -6
- package/src/selection/table/CellModel.mjs +0 -8
- package/src/selection/table/CellRowModel.mjs +2 -8
- package/src/selection/table/ColumnModel.mjs +0 -6
- package/src/selection/table/RowModel.mjs +0 -5
- package/src/tab/Container.mjs +0 -6
- package/src/tab/Strip.mjs +1 -3
- package/src/tab/header/Button.mjs +1 -2
- package/src/tab/header/Toolbar.mjs +0 -1
- package/src/table/Container.mjs +2 -10
- package/src/table/View.mjs +0 -4
- package/src/table/header/Button.mjs +2 -8
- package/src/table/header/Toolbar.mjs +1 -2
- package/src/tree/List.mjs +0 -4
- package/src/util/Css.mjs +0 -1
- package/src/util/Date.mjs +0 -2
- package/src/util/Function.mjs +0 -2
- package/src/util/HashHistory.mjs +0 -3
- package/src/util/KeyNavigation.mjs +0 -5
- package/src/{core → util}/Logger.mjs +7 -19
- package/src/util/Matrix.mjs +0 -3
- package/src/util/VDom.mjs +0 -5
- package/src/util/_export.mjs +2 -1
- package/src/vdom/Helper.mjs +0 -3
- package/src/vdom/VNode.mjs +0 -1
- package/src/worker/App.mjs +2 -9
- package/src/worker/Base.mjs +2 -8
- package/src/worker/Canvas.mjs +0 -2
- package/src/worker/Manager.mjs +3 -5
- package/src/worker/Message.mjs +0 -1
- package/src/worker/mixin/RemoteMethodAccess.mjs +0 -3
- package/test/siesta/siesta.js +2 -1
- package/test/siesta/tests/ClassConfigsAndFields.mjs +307 -0
- package/test/siesta/tests/ClassSystem.mjs +1 -1
|
@@ -98,7 +98,6 @@ class MainContainerController extends ComponentController {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
102
101
|
* @param {String} slug
|
|
103
102
|
*/
|
|
104
103
|
deleteArticle(slug) {
|
|
@@ -110,7 +109,6 @@ class MainContainerController extends ComponentController {
|
|
|
110
109
|
}
|
|
111
110
|
|
|
112
111
|
/**
|
|
113
|
-
*
|
|
114
112
|
* @param {Number} id
|
|
115
113
|
* @returns {Promise<any>}
|
|
116
114
|
*/
|
|
@@ -124,7 +122,6 @@ class MainContainerController extends ComponentController {
|
|
|
124
122
|
}
|
|
125
123
|
|
|
126
124
|
/**
|
|
127
|
-
*
|
|
128
125
|
* @param {String} slug
|
|
129
126
|
* @param {Boolean} favorited
|
|
130
127
|
*/
|
|
@@ -133,7 +130,6 @@ class MainContainerController extends ComponentController {
|
|
|
133
130
|
}
|
|
134
131
|
|
|
135
132
|
/**
|
|
136
|
-
*
|
|
137
133
|
* @param {String} slug
|
|
138
134
|
* @param {Boolean} follow
|
|
139
135
|
*/
|
|
@@ -153,7 +149,6 @@ class MainContainerController extends ComponentController {
|
|
|
153
149
|
}
|
|
154
150
|
|
|
155
151
|
/**
|
|
156
|
-
*
|
|
157
152
|
* @param {Object} [params={}]
|
|
158
153
|
* @param {Object} [opts={}]
|
|
159
154
|
* @returns {Promise<any>}
|
|
@@ -170,7 +165,6 @@ class MainContainerController extends ComponentController {
|
|
|
170
165
|
}
|
|
171
166
|
|
|
172
167
|
/**
|
|
173
|
-
*
|
|
174
168
|
* @param {String} slug
|
|
175
169
|
*/
|
|
176
170
|
getComments(slug) {
|
|
@@ -180,7 +174,6 @@ class MainContainerController extends ComponentController {
|
|
|
180
174
|
}
|
|
181
175
|
|
|
182
176
|
/**
|
|
183
|
-
*
|
|
184
177
|
* @param {String} token
|
|
185
178
|
*/
|
|
186
179
|
getCurrentUser(token) {
|
|
@@ -194,7 +187,6 @@ class MainContainerController extends ComponentController {
|
|
|
194
187
|
}
|
|
195
188
|
|
|
196
189
|
/**
|
|
197
|
-
*
|
|
198
190
|
* @param {String} slug
|
|
199
191
|
*/
|
|
200
192
|
getProfile(slug) {
|
|
@@ -282,7 +274,6 @@ class MainContainerController extends ComponentController {
|
|
|
282
274
|
}
|
|
283
275
|
|
|
284
276
|
/**
|
|
285
|
-
*
|
|
286
277
|
* @param {Object} value
|
|
287
278
|
* @param {Object} oldValue
|
|
288
279
|
*/
|
|
@@ -390,7 +381,6 @@ class MainContainerController extends ComponentController {
|
|
|
390
381
|
}
|
|
391
382
|
|
|
392
383
|
/**
|
|
393
|
-
*
|
|
394
384
|
* @param {Object} [opts)
|
|
395
385
|
* @returns {Promise<any>}
|
|
396
386
|
*/
|
|
@@ -404,7 +394,6 @@ class MainContainerController extends ComponentController {
|
|
|
404
394
|
}
|
|
405
395
|
|
|
406
396
|
/**
|
|
407
|
-
*
|
|
408
397
|
* @param {String} key
|
|
409
398
|
* @param {Function} module
|
|
410
399
|
* @param {String} reference
|
|
@@ -427,7 +416,6 @@ class MainContainerController extends ComponentController {
|
|
|
427
416
|
}
|
|
428
417
|
|
|
429
418
|
/**
|
|
430
|
-
*
|
|
431
419
|
* @param {Object} opts
|
|
432
420
|
* @returns {Promise<any>}
|
|
433
421
|
*/
|
|
@@ -436,7 +424,6 @@ class MainContainerController extends ComponentController {
|
|
|
436
424
|
}
|
|
437
425
|
|
|
438
426
|
/**
|
|
439
|
-
*
|
|
440
427
|
* @param {Object} [opts)
|
|
441
428
|
* @returns {Promise<any>}
|
|
442
429
|
*/
|
|
@@ -61,11 +61,10 @@ class CommentComponent extends Component {
|
|
|
61
61
|
}}
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
65
64
|
* @param {Object} config
|
|
66
65
|
*/
|
|
67
|
-
|
|
68
|
-
super(config);
|
|
66
|
+
construct(config) {
|
|
67
|
+
super.construct(config);
|
|
69
68
|
|
|
70
69
|
let me = this,
|
|
71
70
|
domListeners = me.domListeners;
|
|
@@ -154,7 +153,6 @@ class CommentComponent extends Component {
|
|
|
154
153
|
}
|
|
155
154
|
|
|
156
155
|
/**
|
|
157
|
-
*
|
|
158
156
|
* @param {Object} data
|
|
159
157
|
*/
|
|
160
158
|
onDeleteButtonClick(data) {
|
|
@@ -172,4 +170,4 @@ class CommentComponent extends Component {
|
|
|
172
170
|
|
|
173
171
|
Neo.applyClassConfig(CommentComponent);
|
|
174
172
|
|
|
175
|
-
export {CommentComponent as default};
|
|
173
|
+
export {CommentComponent as default};
|
|
@@ -139,11 +139,10 @@ class Component extends BaseComponent {
|
|
|
139
139
|
}}
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
|
-
*
|
|
143
142
|
* @param {Object} config
|
|
144
143
|
*/
|
|
145
|
-
|
|
146
|
-
super(config);
|
|
144
|
+
construct(config) {
|
|
145
|
+
super.construct(config);
|
|
147
146
|
|
|
148
147
|
let me = this,
|
|
149
148
|
domListeners = me.domListeners;
|
|
@@ -429,7 +428,6 @@ class Component extends BaseComponent {
|
|
|
429
428
|
}
|
|
430
429
|
|
|
431
430
|
/**
|
|
432
|
-
*
|
|
433
431
|
* @param {Object} data
|
|
434
432
|
*/
|
|
435
433
|
onDeleteButtonClick(data) {
|
|
@@ -437,7 +435,6 @@ class Component extends BaseComponent {
|
|
|
437
435
|
}
|
|
438
436
|
|
|
439
437
|
/**
|
|
440
|
-
*
|
|
441
438
|
* @param {Object} data
|
|
442
439
|
*/
|
|
443
440
|
onEditButtonClick(data) {
|
|
@@ -447,7 +444,6 @@ class Component extends BaseComponent {
|
|
|
447
444
|
}
|
|
448
445
|
|
|
449
446
|
/**
|
|
450
|
-
*
|
|
451
447
|
* @param {Object} data
|
|
452
448
|
*/
|
|
453
449
|
onFavoriteButtonClick(data) {
|
|
@@ -455,7 +451,6 @@ class Component extends BaseComponent {
|
|
|
455
451
|
}
|
|
456
452
|
|
|
457
453
|
/**
|
|
458
|
-
*
|
|
459
454
|
* @param {Object} data
|
|
460
455
|
*/
|
|
461
456
|
onFollowButtonClick(data) {
|
|
@@ -41,11 +41,10 @@ class CreateCommentComponent extends Component {
|
|
|
41
41
|
}}
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
45
44
|
* @param {Object} config
|
|
46
45
|
*/
|
|
47
|
-
|
|
48
|
-
super(config);
|
|
46
|
+
construct(config) {
|
|
47
|
+
super.construct(config);
|
|
49
48
|
|
|
50
49
|
let me = this,
|
|
51
50
|
domListeners = me.domListeners,
|
|
@@ -101,7 +100,6 @@ class CreateCommentComponent extends Component {
|
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
/**
|
|
104
|
-
*
|
|
105
103
|
* @returns {String}
|
|
106
104
|
*/
|
|
107
105
|
getInputElId() {
|
|
@@ -109,7 +107,6 @@ class CreateCommentComponent extends Component {
|
|
|
109
107
|
}
|
|
110
108
|
|
|
111
109
|
/**
|
|
112
|
-
*
|
|
113
110
|
* @param {Object} value
|
|
114
111
|
*/
|
|
115
112
|
onCurrentUserChange(value) {
|
|
@@ -120,7 +117,6 @@ class CreateCommentComponent extends Component {
|
|
|
120
117
|
}
|
|
121
118
|
|
|
122
119
|
/**
|
|
123
|
-
*
|
|
124
120
|
* @param {Object} data
|
|
125
121
|
*/
|
|
126
122
|
onSubmitButtonClick(data) {
|
|
@@ -150,4 +146,4 @@ class CreateCommentComponent extends Component {
|
|
|
150
146
|
|
|
151
147
|
Neo.applyClassConfig(CreateCommentComponent);
|
|
152
148
|
|
|
153
|
-
export {CreateCommentComponent as default};
|
|
149
|
+
export {CreateCommentComponent as default};
|
|
@@ -79,8 +79,8 @@ class CreateComponent extends Component {
|
|
|
79
79
|
* constructor
|
|
80
80
|
* @param {Object} config
|
|
81
81
|
*/
|
|
82
|
-
|
|
83
|
-
super(config);
|
|
82
|
+
construct(config) {
|
|
83
|
+
super.construct(config);
|
|
84
84
|
|
|
85
85
|
let me = this,
|
|
86
86
|
domListeners = me.domListeners;
|
|
@@ -274,4 +274,4 @@ class CreateComponent extends Component {
|
|
|
274
274
|
|
|
275
275
|
Neo.applyClassConfig(CreateComponent);
|
|
276
276
|
|
|
277
|
-
export {CreateComponent as default};
|
|
277
|
+
export {CreateComponent as default};
|
|
@@ -79,11 +79,10 @@ class PreviewComponent extends Component {
|
|
|
79
79
|
}}
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
83
82
|
* @param {Object} config
|
|
84
83
|
*/
|
|
85
|
-
|
|
86
|
-
super(config);
|
|
84
|
+
construct(config) {
|
|
85
|
+
super.construct(config);
|
|
87
86
|
|
|
88
87
|
let me = this,
|
|
89
88
|
domListeners = me.domListeners;
|
|
@@ -261,7 +260,6 @@ class PreviewComponent extends Component {
|
|
|
261
260
|
}
|
|
262
261
|
|
|
263
262
|
/**
|
|
264
|
-
*
|
|
265
263
|
* @param {Object} data
|
|
266
264
|
*/
|
|
267
265
|
onFavoriteButtonClick(data) {
|
|
@@ -277,4 +275,4 @@ class PreviewComponent extends Component {
|
|
|
277
275
|
|
|
278
276
|
Neo.applyClassConfig(PreviewComponent);
|
|
279
277
|
|
|
280
|
-
export {PreviewComponent as default};
|
|
278
|
+
export {PreviewComponent as default};
|
|
@@ -45,11 +45,10 @@ class TagListComponent extends Component {
|
|
|
45
45
|
}}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
49
48
|
* @param {Object} config
|
|
50
49
|
*/
|
|
51
|
-
|
|
52
|
-
super(config);
|
|
50
|
+
construct(config) {
|
|
51
|
+
super.construct(config);
|
|
53
52
|
|
|
54
53
|
Neo.main.DomEvents.registerPreventDefaultTargets({
|
|
55
54
|
name: 'click',
|
|
@@ -113,7 +112,6 @@ class TagListComponent extends Component {
|
|
|
113
112
|
}
|
|
114
113
|
|
|
115
114
|
/**
|
|
116
|
-
*
|
|
117
115
|
* @param {String} nodeId
|
|
118
116
|
* @returns {String}
|
|
119
117
|
*/
|
|
@@ -122,7 +120,6 @@ class TagListComponent extends Component {
|
|
|
122
120
|
}
|
|
123
121
|
|
|
124
122
|
/**
|
|
125
|
-
*
|
|
126
123
|
* @param {String} name
|
|
127
124
|
* @returns {String}
|
|
128
125
|
*/
|
|
@@ -131,7 +128,6 @@ class TagListComponent extends Component {
|
|
|
131
128
|
}
|
|
132
129
|
|
|
133
130
|
/**
|
|
134
|
-
*
|
|
135
131
|
* @param {Object} data
|
|
136
132
|
*/
|
|
137
133
|
onTagLinkClick(data) {
|
|
@@ -141,4 +137,4 @@ class TagListComponent extends Component {
|
|
|
141
137
|
|
|
142
138
|
Neo.applyClassConfig(TagListComponent);
|
|
143
139
|
|
|
144
|
-
export {TagListComponent as default};
|
|
140
|
+
export {TagListComponent as default};
|
|
@@ -95,11 +95,10 @@ class ProfileComponent extends Component {
|
|
|
95
95
|
}}
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
99
98
|
* @param {Object} config
|
|
100
99
|
*/
|
|
101
|
-
|
|
102
|
-
super(config);
|
|
100
|
+
construct(config) {
|
|
101
|
+
super.construct(config);
|
|
103
102
|
|
|
104
103
|
Neo.main.DomEvents.registerPreventDefaultTargets({
|
|
105
104
|
name: 'click',
|
|
@@ -247,7 +246,6 @@ class ProfileComponent extends Component {
|
|
|
247
246
|
}
|
|
248
247
|
|
|
249
248
|
/**
|
|
250
|
-
*
|
|
251
249
|
* @param {Object} params
|
|
252
250
|
*/
|
|
253
251
|
getArticles(params) {
|
|
@@ -257,7 +255,6 @@ class ProfileComponent extends Component {
|
|
|
257
255
|
}
|
|
258
256
|
|
|
259
257
|
/**
|
|
260
|
-
*
|
|
261
258
|
* @param {Object} value
|
|
262
259
|
*/
|
|
263
260
|
onCurrentUserChange(value) {console.log('onCurrentUserChange', value);
|
|
@@ -265,7 +262,6 @@ class ProfileComponent extends Component {
|
|
|
265
262
|
}
|
|
266
263
|
|
|
267
264
|
/**
|
|
268
|
-
*
|
|
269
265
|
* @param {Object} data
|
|
270
266
|
*/
|
|
271
267
|
onFollowButtonClick(data) {
|
|
@@ -277,7 +273,6 @@ class ProfileComponent extends Component {
|
|
|
277
273
|
}
|
|
278
274
|
|
|
279
275
|
/**
|
|
280
|
-
*
|
|
281
276
|
* @param {Object} data
|
|
282
277
|
*/
|
|
283
278
|
onNavLinkClick(data) {
|
|
@@ -316,7 +311,6 @@ class ProfileComponent extends Component {
|
|
|
316
311
|
}
|
|
317
312
|
|
|
318
313
|
/**
|
|
319
|
-
*
|
|
320
314
|
* @param {Object} configs
|
|
321
315
|
*/
|
|
322
316
|
update(configs) {
|
|
@@ -75,11 +75,10 @@ class SettingsComponent extends Component {
|
|
|
75
75
|
}}
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
79
78
|
* @param {Object} config
|
|
80
79
|
*/
|
|
81
|
-
|
|
82
|
-
super(config);
|
|
80
|
+
construct(config) {
|
|
81
|
+
super.construct(config);
|
|
83
82
|
|
|
84
83
|
let me = this,
|
|
85
84
|
domListeners = me.domListeners;
|
|
@@ -174,7 +173,6 @@ class SettingsComponent extends Component {
|
|
|
174
173
|
}
|
|
175
174
|
|
|
176
175
|
/**
|
|
177
|
-
*
|
|
178
176
|
* @param {Object} value
|
|
179
177
|
*/
|
|
180
178
|
onCurrentUserChange(value) {
|
|
@@ -190,7 +188,6 @@ class SettingsComponent extends Component {
|
|
|
190
188
|
}
|
|
191
189
|
|
|
192
190
|
/**
|
|
193
|
-
*
|
|
194
191
|
* @param {Object} data
|
|
195
192
|
*/
|
|
196
193
|
onLogoutButtonClick(data) {
|
|
@@ -198,7 +195,6 @@ class SettingsComponent extends Component {
|
|
|
198
195
|
}
|
|
199
196
|
|
|
200
197
|
/**
|
|
201
|
-
*
|
|
202
198
|
* @param {Object} data
|
|
203
199
|
*/
|
|
204
200
|
onSubmitButtonClick(data) {
|
|
@@ -241,4 +237,4 @@ class SettingsComponent extends Component {
|
|
|
241
237
|
|
|
242
238
|
Neo.applyClassConfig(SettingsComponent);
|
|
243
239
|
|
|
244
|
-
export {SettingsComponent as default};
|
|
240
|
+
export {SettingsComponent as default};
|
|
@@ -62,11 +62,10 @@ class SignUpComponent extends Component {
|
|
|
62
62
|
}}
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
66
65
|
* @param {Object} config
|
|
67
66
|
*/
|
|
68
|
-
|
|
69
|
-
super(config);
|
|
67
|
+
construct(config) {
|
|
68
|
+
super.construct(config);
|
|
70
69
|
|
|
71
70
|
let me = this,
|
|
72
71
|
domListeners = me.domListeners;
|
|
@@ -18,7 +18,6 @@ class Article extends Base {
|
|
|
18
18
|
}}
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
21
|
* @param {String} slug
|
|
23
22
|
* @param {Number} id
|
|
24
23
|
*/
|
|
@@ -29,7 +28,6 @@ class Article extends Base {
|
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
/**
|
|
32
|
-
*
|
|
33
31
|
* @param {String} slug
|
|
34
32
|
*/
|
|
35
33
|
getComments(slug) {
|
|
@@ -39,7 +37,6 @@ class Article extends Base {
|
|
|
39
37
|
}
|
|
40
38
|
|
|
41
39
|
/**
|
|
42
|
-
*
|
|
43
40
|
* @param {String} slug
|
|
44
41
|
* @param {Object} opts
|
|
45
42
|
*/
|
|
@@ -57,4 +54,4 @@ let instance = Neo.create(Article);
|
|
|
57
54
|
|
|
58
55
|
Neo.applyToGlobalNs(instance);
|
|
59
56
|
|
|
60
|
-
export default instance;
|
|
57
|
+
export default instance;
|
|
@@ -66,7 +66,6 @@ class Base extends CoreBase {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
70
69
|
* @param {Object} [opts={}]
|
|
71
70
|
* @param {Object} [opts.data]
|
|
72
71
|
* @param {Object} [opts.params]
|
|
@@ -84,7 +83,6 @@ class Base extends CoreBase {
|
|
|
84
83
|
}
|
|
85
84
|
|
|
86
85
|
/**
|
|
87
|
-
*
|
|
88
86
|
* @param {Object} [opts={}]
|
|
89
87
|
* @param {Object} [opts.data]
|
|
90
88
|
* @param {Object} [opts.params]
|
|
@@ -112,7 +110,6 @@ class Base extends CoreBase {
|
|
|
112
110
|
}
|
|
113
111
|
|
|
114
112
|
/**
|
|
115
|
-
*
|
|
116
113
|
* @param {Object} [opts={}]
|
|
117
114
|
* @param {Object} [opts.data]
|
|
118
115
|
* @param {Object} [opts.params]
|
|
@@ -156,7 +153,6 @@ class Base extends CoreBase {
|
|
|
156
153
|
}
|
|
157
154
|
|
|
158
155
|
/**
|
|
159
|
-
*
|
|
160
156
|
* @param {Object} [opts={}]
|
|
161
157
|
* @param {Object} [opts.data]
|
|
162
158
|
* @param {Object} [opts.params]
|
|
@@ -187,7 +183,6 @@ class Base extends CoreBase {
|
|
|
187
183
|
}
|
|
188
184
|
|
|
189
185
|
/**
|
|
190
|
-
*
|
|
191
186
|
* @param {Object} [opts={}]
|
|
192
187
|
* @param {Object} [opts.data]
|
|
193
188
|
* @param {Object} [opts.params]
|
|
@@ -14,7 +14,6 @@ class Favorite extends Base {
|
|
|
14
14
|
}}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
17
|
* @param {String} slug
|
|
19
18
|
*/
|
|
20
19
|
add(slug) {
|
|
@@ -24,7 +23,6 @@ class Favorite extends Base {
|
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
28
26
|
* @param {String} slug
|
|
29
27
|
*/
|
|
30
28
|
remove(slug) {
|
|
@@ -40,4 +38,4 @@ let instance = Neo.create(Favorite);
|
|
|
40
38
|
|
|
41
39
|
Neo.applyToGlobalNs(instance);
|
|
42
40
|
|
|
43
|
-
export default instance;
|
|
41
|
+
export default instance;
|
|
@@ -18,7 +18,6 @@ class Profile extends Base {
|
|
|
18
18
|
}}
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
21
|
* @param {String} slug
|
|
23
22
|
*/
|
|
24
23
|
follow(slug) {
|
|
@@ -28,7 +27,6 @@ class Profile extends Base {
|
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
/**
|
|
31
|
-
*
|
|
32
30
|
* @param {String} slug
|
|
33
31
|
*/
|
|
34
32
|
unfollow(slug) {
|
|
@@ -44,4 +42,4 @@ let instance = Neo.create(Profile);
|
|
|
44
42
|
|
|
45
43
|
Neo.applyToGlobalNs(instance);
|
|
46
44
|
|
|
47
|
-
export default instance;
|
|
45
|
+
export default instance;
|
|
@@ -38,7 +38,6 @@ class HeaderToolbarController extends ComponentController {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
42
41
|
* @param {String} hash
|
|
43
42
|
*/
|
|
44
43
|
setRoute(hash) {
|
|
@@ -50,4 +49,4 @@ class HeaderToolbarController extends ComponentController {
|
|
|
50
49
|
|
|
51
50
|
Neo.applyClassConfig(HeaderToolbarController);
|
|
52
51
|
|
|
53
|
-
export {HeaderToolbarController as default};
|
|
52
|
+
export {HeaderToolbarController as default};
|
|
@@ -73,7 +73,6 @@ class HomeContainer extends Container {
|
|
|
73
73
|
}}
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
77
76
|
* @param {Object} [params={}]
|
|
78
77
|
* @param {Object} [opts={}]
|
|
79
78
|
*/
|
|
@@ -102,4 +101,4 @@ class HomeContainer extends Container {
|
|
|
102
101
|
|
|
103
102
|
Neo.applyClassConfig(HomeContainer);
|
|
104
103
|
|
|
105
|
-
export {HomeContainer as default};
|
|
104
|
+
export {HomeContainer as default};
|
|
@@ -86,7 +86,6 @@ class MainContainerController extends ComponentController {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
90
89
|
* @param {String} slug
|
|
91
90
|
*/
|
|
92
91
|
deleteArticle(slug) {
|
|
@@ -98,7 +97,6 @@ class MainContainerController extends ComponentController {
|
|
|
98
97
|
}
|
|
99
98
|
|
|
100
99
|
/**
|
|
101
|
-
*
|
|
102
100
|
* @param {Number} id
|
|
103
101
|
* @returns {Promise<any>}
|
|
104
102
|
*/
|
|
@@ -112,7 +110,6 @@ class MainContainerController extends ComponentController {
|
|
|
112
110
|
}
|
|
113
111
|
|
|
114
112
|
/**
|
|
115
|
-
*
|
|
116
113
|
* @param {String} slug
|
|
117
114
|
* @param {Boolean} favorited
|
|
118
115
|
*/
|
|
@@ -121,7 +118,6 @@ class MainContainerController extends ComponentController {
|
|
|
121
118
|
}
|
|
122
119
|
|
|
123
120
|
/**
|
|
124
|
-
*
|
|
125
121
|
* @param {String} slug
|
|
126
122
|
* @param {Boolean} follow
|
|
127
123
|
*/
|
|
@@ -140,7 +136,6 @@ class MainContainerController extends ComponentController {
|
|
|
140
136
|
}
|
|
141
137
|
|
|
142
138
|
/**
|
|
143
|
-
*
|
|
144
139
|
* @param {Object} [params={}]
|
|
145
140
|
* @param {Object} [opts={}]
|
|
146
141
|
* @returns {Promise<any>}
|
|
@@ -156,7 +151,6 @@ class MainContainerController extends ComponentController {
|
|
|
156
151
|
}
|
|
157
152
|
|
|
158
153
|
/**
|
|
159
|
-
*
|
|
160
154
|
* @param {String} slug
|
|
161
155
|
*/
|
|
162
156
|
getComments(slug) {
|
|
@@ -166,7 +160,6 @@ class MainContainerController extends ComponentController {
|
|
|
166
160
|
}
|
|
167
161
|
|
|
168
162
|
/**
|
|
169
|
-
*
|
|
170
163
|
* @param {String} token
|
|
171
164
|
*/
|
|
172
165
|
getCurrentUser(token) {
|
|
@@ -181,7 +174,6 @@ class MainContainerController extends ComponentController {
|
|
|
181
174
|
}
|
|
182
175
|
|
|
183
176
|
/**
|
|
184
|
-
*
|
|
185
177
|
* @param {String} slug
|
|
186
178
|
*/
|
|
187
179
|
getProfile(slug) {
|
|
@@ -207,7 +199,6 @@ class MainContainerController extends ComponentController {
|
|
|
207
199
|
}
|
|
208
200
|
|
|
209
201
|
/**
|
|
210
|
-
*
|
|
211
202
|
* @param {String} reference
|
|
212
203
|
* @param {Neo.component.Base} module
|
|
213
204
|
* @returns {Neo.component.Base} The matching view instance
|
|
@@ -264,7 +255,6 @@ class MainContainerController extends ComponentController {
|
|
|
264
255
|
}
|
|
265
256
|
|
|
266
257
|
/**
|
|
267
|
-
*
|
|
268
258
|
* @param {Object} value
|
|
269
259
|
* @param {Object} oldValue
|
|
270
260
|
*/
|
|
@@ -340,7 +330,6 @@ class MainContainerController extends ComponentController {
|
|
|
340
330
|
}
|
|
341
331
|
|
|
342
332
|
/**
|
|
343
|
-
*
|
|
344
333
|
* @param {Object} [opts)
|
|
345
334
|
* @returns {Promise<any>}
|
|
346
335
|
*/
|
|
@@ -354,7 +343,6 @@ class MainContainerController extends ComponentController {
|
|
|
354
343
|
}
|
|
355
344
|
|
|
356
345
|
/**
|
|
357
|
-
*
|
|
358
346
|
* @param {Object} opts
|
|
359
347
|
* @returns {Promise<any>}
|
|
360
348
|
*/
|
|
@@ -363,7 +351,6 @@ class MainContainerController extends ComponentController {
|
|
|
363
351
|
}
|
|
364
352
|
|
|
365
353
|
/**
|
|
366
|
-
*
|
|
367
354
|
* @param {Object} [opts)
|
|
368
355
|
* @returns {Promise<any>}
|
|
369
356
|
*/
|
|
@@ -383,4 +370,4 @@ class MainContainerController extends ComponentController {
|
|
|
383
370
|
|
|
384
371
|
Neo.applyClassConfig(MainContainerController);
|
|
385
372
|
|
|
386
|
-
export {MainContainerController as default};
|
|
373
|
+
export {MainContainerController as default};
|
|
@@ -80,7 +80,6 @@ class Gallery extends BaseGallery {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
84
83
|
* @param {String} vnodeId
|
|
85
84
|
* @returns {String}
|
|
86
85
|
*/
|
|
@@ -89,7 +88,6 @@ class Gallery extends BaseGallery {
|
|
|
89
88
|
}
|
|
90
89
|
|
|
91
90
|
/**
|
|
92
|
-
*
|
|
93
91
|
* @param {Array} items
|
|
94
92
|
*/
|
|
95
93
|
onStoreLoad(items) {
|
|
@@ -104,4 +102,4 @@ class Gallery extends BaseGallery {
|
|
|
104
102
|
|
|
105
103
|
Neo.applyClassConfig(Gallery);
|
|
106
104
|
|
|
107
|
-
export {Gallery as default};
|
|
105
|
+
export {Gallery as default};
|
|
@@ -26,7 +26,6 @@ class GalleryContainer extends GalleryMainContainer {
|
|
|
26
26
|
}}
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
29
|
* @param {Object} [params={}]
|
|
31
30
|
* @param {Object} [opts={}]
|
|
32
31
|
*/
|
|
@@ -51,4 +50,4 @@ class GalleryContainer extends GalleryMainContainer {
|
|
|
51
50
|
|
|
52
51
|
Neo.applyClassConfig(GalleryContainer);
|
|
53
52
|
|
|
54
|
-
export {GalleryContainer as default};
|
|
53
|
+
export {GalleryContainer as default};
|