From 605fb2aef50a387bd14680020b2452d6e8a7d968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ha=C3=AFssous?= Date: Tue, 28 Mar 2023 10:15:32 +0200 Subject: [PATCH] debut tableau etablissements --- components/school.riot | 32 ++++++++++++++++++++++++++++++++ index.html | 7 +------ javascript/components/school.js | 12 ++++++++++++ javascript/school.js | 12 ++++++++++++ loader.js | 5 ++++- 5 files changed, 61 insertions(+), 7 deletions(-) create mode 100644 components/school.riot create mode 100644 javascript/components/school.js create mode 100644 javascript/school.js diff --git a/components/school.riot b/components/school.riot new file mode 100644 index 0000000..498d2b5 --- /dev/null +++ b/components/school.riot @@ -0,0 +1,32 @@ + +
+
+ + + + +
+ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/index.html b/index.html index 4fdd3eb..7b30a34 100644 --- a/index.html +++ b/index.html @@ -14,11 +14,6 @@ - + diff --git a/javascript/components/school.js b/javascript/components/school.js new file mode 100644 index 0000000..96b6c8e --- /dev/null +++ b/javascript/components/school.js @@ -0,0 +1,12 @@ +var school = { + css: null, + exports: { + onMounted() { + console.log("Test!"); + } + }, + template: (template, expressionTypes, bindingTypes, getComponent) => template('
NomVilleDptMoyenneSélectivité
NomVilleDptMoyenneSélectivité
', []), + name: 'school' +}; + +export { school as default }; diff --git a/javascript/school.js b/javascript/school.js new file mode 100644 index 0000000..96b6c8e --- /dev/null +++ b/javascript/school.js @@ -0,0 +1,12 @@ +var school = { + css: null, + exports: { + onMounted() { + console.log("Test!"); + } + }, + template: (template, expressionTypes, bindingTypes, getComponent) => template('
NomVilleDptMoyenneSélectivité
', []), + name: 'school' +}; + +export { school as default }; diff --git a/loader.js b/loader.js index 4406e39..882e6a2 100644 --- a/loader.js +++ b/loader.js @@ -5,11 +5,14 @@ import SchoolInfo from './javascript/school-info.js' import LineGraph from './javascript/line-graph.js' import Search from './javascript/search.js' +import School from './javascript/school.js' riot.register("school-info", SchoolInfo) riot.register("line-graph", LineGraph) riot.register("search", Search) +riot.register("school", School) riot.mount("school-info") riot.mount("line-graph") -riot.mount("search") \ No newline at end of file +riot.mount("search") +riot.mount("school") \ No newline at end of file