190e8449ce
- rename the directory from webgui to Phi - let the webserver's root point to Phi instead of Docs - redirect old /gui/ url to the new location (/)
27 lines
811 B
JavaScript
27 lines
811 B
JavaScript
define([
|
|
'knockout', 'text!./Environment.html', './SubtopicViewmodel'
|
|
], function(ko, htmlString, SubtopicViewmodel) {
|
|
ko.components.register('Environment/Date & Time', {
|
|
require : 'topics/Environment/DateTime'
|
|
});
|
|
|
|
ko.components.register('Environment/Weather', {
|
|
require : 'topics/Environment/Weather'
|
|
});
|
|
|
|
ko.components.register('Environment/Position', {
|
|
require : 'topics/Environment/Position'
|
|
});
|
|
|
|
// Return component definition
|
|
return {
|
|
viewModel : {
|
|
createViewModel : function(params, componentInfo) {
|
|
return new SubtopicViewmodel([
|
|
'Date & Time', 'Weather', 'Position',
|
|
], "Environment", params);
|
|
},
|
|
},
|
|
template : htmlString
|
|
};
|
|
});
|