From b2ab93f9275f64fabaa6d2fd75817fe66716d9bb Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 1 Feb 2025 08:48:08 +0200 Subject: feat(views): Move newlist to list/new --- views/global/router.php | 2 +- views/list/new/index.php | 23 +++++++++++++++++++++++ views/list/new/meta.php | 4 ++++ views/newlist/index.php | 23 ----------------------- views/newlist/meta.php | 4 ---- 5 files changed, 28 insertions(+), 28 deletions(-) create mode 100644 views/list/new/index.php create mode 100644 views/list/new/meta.php delete mode 100644 views/newlist/index.php delete mode 100644 views/newlist/meta.php diff --git a/views/global/router.php b/views/global/router.php index 41e0b48..ea5aa42 100644 --- a/views/global/router.php +++ b/views/global/router.php @@ -21,6 +21,7 @@ function route_view() { switch ($root . $subroot) { case '/list/update': return '/list/update'; + case '/list/new': return '/list/new'; } switch ($root) { @@ -29,7 +30,6 @@ function route_view() { case '/register': return '/register'; case '/login': return '/login'; case '/logout': return '/logout'; - case '/newlist': return '/newlist'; case '/list': return '/list'; case '/authenticate': diff --git a/views/list/new/index.php b/views/list/new/index.php new file mode 100644 index 0000000..72ac7a3 --- /dev/null +++ b/views/list/new/index.php @@ -0,0 +1,23 @@ + + +

Create a new list

+ +
+ +
+ + +

+ Error: +

+ + + + + + +
diff --git a/views/list/new/meta.php b/views/list/new/meta.php new file mode 100644 index 0000000..6f02fff --- /dev/null +++ b/views/list/new/meta.php @@ -0,0 +1,4 @@ + - if (!cookieStorage.getItem('token')) { - window.location.href = '/login'; - } - - -

Create a new list

- -
- -
- - -

- Error: -

- - - - - - -
diff --git a/views/newlist/meta.php b/views/newlist/meta.php deleted file mode 100644 index 6f02fff..0000000 --- a/views/newlist/meta.php +++ /dev/null @@ -1,4 +0,0 @@ -