4d94d42ff6
with this patch, navigation with the browsers forward/backward buttons is supported within topics and subtopics as well as deep linking into topics using hashed urls like /gui/#Map or /gui/#Environment/Weather Also, slightly rename map overlay layers
35 lines
1,012 B
JavaScript
35 lines
1,012 B
JavaScript
define([
|
|
'knockout', 'text!./Simulator.html', './SubtopicViewmodel'
|
|
], function(ko, htmlString, SubtopicViewmodel) {
|
|
ko.components.register('Simulator/Screenshot', {
|
|
require : 'topics/Simulator/Screenshot'
|
|
});
|
|
|
|
ko.components.register('Simulator/Properties', {
|
|
require : 'topics/Simulator/Properties'
|
|
});
|
|
|
|
ko.components.register('Simulator/Config', {
|
|
require : 'topics/Simulator/Config'
|
|
});
|
|
|
|
ko.components.register('Simulator/Reset', {
|
|
require : 'topics/Simulator/Reset'
|
|
});
|
|
|
|
ko.components.register('Simulator/Exit', {
|
|
require : 'topics/Simulator/Exit'
|
|
});
|
|
|
|
// Return component definition
|
|
return {
|
|
viewModel : {
|
|
createViewModel : function(params, componentInfo) {
|
|
return new SubtopicViewmodel([
|
|
'Screenshot', 'Properties', 'Config', 'Reset', 'Exit'
|
|
], "Simulator", params);
|
|
},
|
|
},
|
|
template : htmlString
|
|
};
|
|
});
|