@goweekdays/layer-common 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/components/Calendar.vue +367 -0
- package/components/Layout/NavigationDrawer.vue +3 -1
- package/components/VideoPlayer.vue +1496 -0
- package/middleware/01.auth.ts +2 -2
- package/nuxt.config.ts +6 -0
- package/package.json +1 -1
package/middleware/01.auth.ts
CHANGED
|
@@ -5,9 +5,9 @@ export default defineNuxtRouteMiddleware(async () => {
|
|
|
5
5
|
const { cookieConfig } = useRuntimeConfig().public;
|
|
6
6
|
|
|
7
7
|
// Get access token from cookies
|
|
8
|
-
const
|
|
8
|
+
const sid = useCookie("sid", cookieConfig).value;
|
|
9
9
|
|
|
10
|
-
if (!
|
|
10
|
+
if (!sid) {
|
|
11
11
|
// Redirect to login page if no access token
|
|
12
12
|
return navigateTo({ name: "index" });
|
|
13
13
|
}
|
package/nuxt.config.ts
CHANGED
|
@@ -26,6 +26,12 @@ export default defineNuxtConfig({
|
|
|
26
26
|
APP_INVENTORY: (process.env.APP_INVENTORY as string) ?? "",
|
|
27
27
|
APP_ASSET: (process.env.APP_ASSET as string) ?? "",
|
|
28
28
|
APP_FINANCE: (process.env.APP_FINANCE as string) ?? "",
|
|
29
|
+
APP_STAY: (process.env.APP_STAY as string) ?? "",
|
|
30
|
+
APP_EAT: (process.env.APP_EAT as string) ?? "",
|
|
31
|
+
APP_RIDE: (process.env.APP_RIDE as string) ?? "",
|
|
32
|
+
APP_MARKETPLACE: (process.env.APP_MARKETPLACE as string) ?? "",
|
|
33
|
+
APP_EXPERIENCE: (process.env.APP_EXPERIENCE as string) ?? "",
|
|
34
|
+
ORS_API_KEY: process.env.ORS_API_KEY || "",
|
|
29
35
|
},
|
|
30
36
|
},
|
|
31
37
|
|