From 86d1984095dc03e3da8c564c3729bf1026b1d211 Mon Sep 17 00:00:00 2001 From: Fauvet Matthis Date: Fri, 28 Jun 2024 23:59:56 +0200 Subject: [PATCH] test route --- index.html | 78 ++++++++++++++++++++++++++++++++++++-------------- onzer.riot | 5 +++- playlists.riot | 14 +++++++++ 3 files changed, 74 insertions(+), 23 deletions(-) create mode 100644 playlists.riot diff --git a/index.html b/index.html index 979eff5..8f9c7b4 100644 --- a/index.html +++ b/index.html @@ -1,31 +1,65 @@ - - - Riot App - - - + + + Riot App + + + - +
- - + + + - + + - + + + - riot.compile().then(async () => { - const data = await fetch_data(); - riot.mount('onzer', { items: data }); - }); - + + + diff --git a/onzer.riot b/onzer.riot index 1238d48..fe7d029 100644 --- a/onzer.riot +++ b/onzer.riot @@ -13,7 +13,7 @@
-
@@ -96,6 +96,9 @@ computeHttpRequest = `${baseHttpRequest}${table}`; } return fetch(computeHttpRequest).then(response => response.json()); + }, + navigateToPlaylists() { + route('/playlists'); } } diff --git a/playlists.riot b/playlists.riot new file mode 100644 index 0000000..154c83e --- /dev/null +++ b/playlists.riot @@ -0,0 +1,14 @@ + +

Playlists Page

+

This is the playlists page. It is currently empty.

+ + + + +