From e857bb23eaf74a91a779c8174baa0b8c68cc9e34 Mon Sep 17 00:00:00 2001 From: lalBi94 Date: Mon, 6 Mar 2023 17:09:06 +0100 Subject: [PATCH] $ --- src/app.riot | 134 ++++++++---------- .../global/etablanalytics/etablanalytics.riot | 3 + .../global/generalytics/generalytics.riot | 3 + src/index.html | 29 ++-- src/pages/home.riot | 41 +++++- 5 files changed, 123 insertions(+), 87 deletions(-) create mode 100644 src/components/global/etablanalytics/etablanalytics.riot create mode 100644 src/components/global/generalytics/generalytics.riot diff --git a/src/app.riot b/src/app.riot index a87a5c0..aa55dba 100644 --- a/src/app.riot +++ b/src/app.riot @@ -1,84 +1,64 @@ -
- -
-
- -
-
-
-
- -
- -
-
-
-
+
+ +
+
+ +
+
- + export default { + components: { + Router, + Route, + NotFound, + Home: lazy(Loader, () => import( + './pages/home.riot' + )), + }, + state: { + pages, + showNotFound: false, + activePage: null + }, + onBeforeMount({ isServer }) { + this.anyRouteStream = route('(.*)') + this.anyRouteStream.on.value(this.onAnyRoute) + }, + onAnyRoute(path) {// show the not found page if none of the page paths are matched + const activePage = pages.find(p => match(path.pathname, toRegexp(p.path))) - + diff --git a/src/components/global/etablanalytics/etablanalytics.riot b/src/components/global/etablanalytics/etablanalytics.riot new file mode 100644 index 0000000..7575321 --- /dev/null +++ b/src/components/global/etablanalytics/etablanalytics.riot @@ -0,0 +1,3 @@ + +

eta

+
\ No newline at end of file diff --git a/src/components/global/generalytics/generalytics.riot b/src/components/global/generalytics/generalytics.riot new file mode 100644 index 0000000..dec8db3 --- /dev/null +++ b/src/components/global/generalytics/generalytics.riot @@ -0,0 +1,3 @@ + +

gen

+
\ No newline at end of file diff --git a/src/index.html b/src/index.html index 5f7b96f..8a9b02f 100644 --- a/src/index.html +++ b/src/index.html @@ -1,12 +1,23 @@ - - Parcoursup Analytic's - - - - - -
- + + Parcoursup Analytic's + + + + + + + + + +
+ diff --git a/src/pages/home.riot b/src/pages/home.riot index 0ebbd61..07ad83d 100644 --- a/src/pages/home.riot +++ b/src/pages/home.riot @@ -1,3 +1,42 @@ - + + +
+ + +
+ + +
+