From 4ddbb5aedee33065e375f3c81d3d513419e0f300 Mon Sep 17 00:00:00 2001 From: "Chen, Tai-Lin" Date: Thu, 22 Feb 2024 21:05:52 +0800 Subject: [PATCH] update app --- app/index.html | 2 +- app/{postcss.config.js => postcss.config.ts} | 0 app/src/{config.js => config.ts} | 0 app/src/{library.js => library.ts} | 0 app/src/{main.js => main.ts} | 0 app/src/{router.js => router.ts} | 2 +- app/{tailwind.config.js => tailwind.config.ts} | 0 7 files changed, 2 insertions(+), 2 deletions(-) rename app/{postcss.config.js => postcss.config.ts} (100%) rename app/src/{config.js => config.ts} (100%) rename app/src/{library.js => library.ts} (100%) rename app/src/{main.js => main.ts} (100%) rename app/src/{router.js => router.ts} (97%) rename app/{tailwind.config.js => tailwind.config.ts} (100%) diff --git a/app/index.html b/app/index.html index 5cc968a..040d38c 100644 --- a/app/index.html +++ b/app/index.html @@ -8,6 +8,6 @@
- + diff --git a/app/postcss.config.js b/app/postcss.config.ts similarity index 100% rename from app/postcss.config.js rename to app/postcss.config.ts diff --git a/app/src/config.js b/app/src/config.ts similarity index 100% rename from app/src/config.js rename to app/src/config.ts diff --git a/app/src/library.js b/app/src/library.ts similarity index 100% rename from app/src/library.js rename to app/src/library.ts diff --git a/app/src/main.js b/app/src/main.ts similarity index 100% rename from app/src/main.js rename to app/src/main.ts diff --git a/app/src/router.js b/app/src/router.ts similarity index 97% rename from app/src/router.js rename to app/src/router.ts index d6fd78d..ed99cbd 100644 --- a/app/src/router.js +++ b/app/src/router.ts @@ -57,7 +57,7 @@ const router = createRouter({ routes, }) -router.beforeEach(async (to, from, next) => { +router.beforeEach(async (to, _from, next) => { const loggedIn = await isLoggedIn() // Check if the route requires authentication if (to.meta.requiresAuth && !loggedIn) { diff --git a/app/tailwind.config.js b/app/tailwind.config.ts similarity index 100% rename from app/tailwind.config.js rename to app/tailwind.config.ts