ProjetRIOT/javascript/main-controller.js

57 lines
1.7 KiB
JavaScript
Raw Normal View History

2023-03-28 13:42:53 +02:00
var mainController = {
css: null,
2023-03-29 22:56:14 +02:00
exports: {
2023-03-29 22:01:50 +02:00
onBeforeMount(props, state) {
//Initial state
this.state = {
formation: null
};
},
updateCourse(formation) {
this.update({
formation: formation
});
2023-03-29 22:56:14 +02:00
}
},
2023-03-29 22:57:36 +02:00
template: (template, expressionTypes, bindingTypes, getComponent) => template('<div class="columns"><div class="column is-one-third"><div class="box p-3 m-2"><img class="mt-1 ml-5 mr-auto" style="margin: auto;" src="../resources/logo-parcoursup.svg"/></div><search expr984="expr984"></search></div><div class="column"><fili-info expr985="expr985"></fili-info><school expr986="expr986"></school></div></div><school-info expr987="expr987"></school-info>', [{
2023-03-28 13:42:53 +02:00
type: bindingTypes.TAG,
getComponent: getComponent,
evaluate: _scope => 'search',
slots: [],
2023-03-29 22:56:14 +02:00
attributes: [{
type: expressionTypes.ATTRIBUTE,
2023-03-29 22:01:50 +02:00
name: 'updateCourse',
evaluate: _scope => _scope.updateCourse
2023-03-29 22:56:14 +02:00
}],
2023-03-29 22:57:36 +02:00
redundantAttribute: 'expr984',
selector: '[expr984]'
2023-03-28 13:42:53 +02:00
}, {
type: bindingTypes.TAG,
getComponent: getComponent,
evaluate: _scope => 'fili-info',
slots: [],
attributes: [],
2023-03-29 22:57:36 +02:00
redundantAttribute: 'expr985',
selector: '[expr985]'
2023-03-28 13:42:53 +02:00
}, {
type: bindingTypes.TAG,
getComponent: getComponent,
evaluate: _scope => 'school',
slots: [],
attributes: [],
2023-03-29 22:57:36 +02:00
redundantAttribute: 'expr986',
selector: '[expr986]'
2023-03-28 13:42:53 +02:00
}, {
type: bindingTypes.TAG,
getComponent: getComponent,
evaluate: _scope => 'school-info',
slots: [],
attributes: [],
2023-03-29 22:57:36 +02:00
redundantAttribute: 'expr987',
selector: '[expr987]'
2023-03-28 13:42:53 +02:00
}]),
name: 'main-controller'
};
export { mainController as default };