-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: f7 cleanup and user info route
- Loading branch information
Showing
11 changed files
with
75 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
<template> | ||
<div> | ||
<div style="width: 100%; height: 100%"> | ||
<NuxtLoadingIndicator /> | ||
<NuxtLayout> | ||
<NuxtPage /> | ||
</NuxtLayout> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
#__nuxt { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<script setup lang="ts"> | ||
import { f7Page } from 'framework7-vue' | ||
</script> | ||
|
||
<template> | ||
<f7Page> | ||
Events view! | ||
</f7Page> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<script setup lang="ts"> | ||
import { f7Button, f7Link, f7Navbar, f7Page } from 'framework7-vue' | ||
</script> | ||
|
||
<template> | ||
<f7Page name="Home"> | ||
<f7Navbar title="Home" /> | ||
<f7Link href="/events"> | ||
to events | ||
</f7Link> | ||
</f7Page> | ||
</template> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,48 @@ | ||
<script setup lang="ts"> | ||
import 'framework7/css/bundle' | ||
import 'framework7-icons/css/framework7-icons.css' | ||
import 'material-icons/iconfont/material-icons.css' | ||
// @ts-expect-error Missing types | ||
import Framework7 from 'framework7/lite-bundle' | ||
// @ts-expect-error Missing types | ||
import Framework7Vue from 'framework7-vue/bundle' | ||
import { f7App, f7View } from 'framework7-vue' | ||
import { AppHomePage, LazyAppEventsPage } from '#components' | ||
Framework7.use(Framework7Vue) | ||
const appRoutes = [ | ||
{ | ||
path: '/', | ||
component: AppHomePage, | ||
}, | ||
{ | ||
path: '/events', | ||
component: LazyAppEventsPage, | ||
}, | ||
] | ||
const route = useRoute() | ||
const url = (() => { | ||
if (route.path.length === 4) | ||
return '/' | ||
return route.path.slice(4, route.path.length) | ||
})() | ||
</script> | ||
|
||
<template> | ||
<f7App :routes="appRoutes"> | ||
<f7App | ||
name="SSTAA" | ||
theme="md" | ||
dark-mode | ||
:routes="appRoutes" | ||
> | ||
<f7View | ||
main | ||
browser-history | ||
browser-history-separator="" | ||
:browser-history-initial-match="true" | ||
:browser-history-store-history="false" | ||
> | ||
<NuxtPage /> | ||
</f7View> | ||
:url="url" | ||
/> | ||
</f7App> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
<div> | ||
hello from events! | ||
</div> | ||
<AppEventsPage /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
<div> | ||
hello! | ||
</div> | ||
<AppHomePage /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export default defineProtectedEventHandler(async (event) => { | ||
if (event.context.firebaseId !== event.context.params!.firebaseId) { | ||
throw createError({ | ||
status: 403, | ||
statusMessage: 'Forbidden', | ||
}) | ||
} | ||
|
||
return event.context.user | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters