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 (/)
28 lines
827 B
JavaScript
28 lines
827 B
JavaScript
define([
|
|
'knockout', 'text!./Tools.html', './SubtopicViewmodel'
|
|
], function(ko, htmlString, SubtopicViewmodel) {
|
|
|
|
ko.components.register('Tools/Holding Pattern', {
|
|
require : 'topics/Tools/Holding'
|
|
});
|
|
|
|
ko.components.register('Tools/Vertical Navigation', {
|
|
require : 'topics/Tools/VerticalNavigation'
|
|
});
|
|
|
|
ko.components.register('Tools/Stopwatch', {
|
|
require : 'topics/Tools/Stopwatch'
|
|
});
|
|
|
|
// Return component definition
|
|
return {
|
|
viewModel : {
|
|
createViewModel : function(params, componentInfo) {
|
|
return new SubtopicViewmodel([
|
|
'Holding Pattern', 'Wind Calculator', 'Vertical Navigation', 'Stopwatch'
|
|
], "Tools", params);
|
|
},
|
|
},
|
|
template : htmlString
|
|
};
|
|
});
|