mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
enable client side routing for smooth transitions
This commit is contained in:
parent
150031d847
commit
46869b3b5b
@ -10,8 +10,7 @@ async function render(pageContext: PageContextClient) {
|
|||||||
app.mount('#app')
|
app.mount('#app')
|
||||||
}
|
}
|
||||||
|
|
||||||
/* To enable Client-side Routing:
|
// To enable Client-side Routing:
|
||||||
export const clientRouting = true
|
export const clientRouting = true
|
||||||
// !! WARNING !! Before doing so, read https://vike.dev/clientRouting */
|
// !! WARNING !! Before doing so, read https://vike.dev/clientRouting */
|
||||||
|
|
||||||
export { render }
|
export { render }
|
||||||
|
|||||||
@ -11,6 +11,8 @@ import { PageProps } from '#types/PageProps'
|
|||||||
|
|
||||||
import type { PageContext } from '#types/PageContext'
|
import type { PageContext } from '#types/PageContext'
|
||||||
|
|
||||||
|
const vuetify = CreateVuetify(i18n)
|
||||||
|
|
||||||
function createApp(
|
function createApp(
|
||||||
Page: Page,
|
Page: Page,
|
||||||
pageProps: PageProps | undefined,
|
pageProps: PageProps | undefined,
|
||||||
@ -38,7 +40,7 @@ function createApp(
|
|||||||
const app = createSSRApp(PageWithLayout)
|
const app = createSSRApp(PageWithLayout)
|
||||||
app.use(pinia)
|
app.use(pinia)
|
||||||
app.use(i18n)
|
app.use(i18n)
|
||||||
app.use(CreateVuetify(i18n))
|
app.use(vuetify)
|
||||||
|
|
||||||
// Make pageContext available from any Vue component
|
// Make pageContext available from any Vue component
|
||||||
setPageContext(app, pageContext)
|
setPageContext(app, pageContext)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user