1
0
Fork 0
fgdata/Phi/topics/Environment.js
Torsten Dreyer 190e8449ce Phi: move URL to the browsers root directory
- 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 (/)
2015-04-18 13:03:46 +02:00

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
};
});