Reinitialized commit. Update and actors overview with some filters.
This commit is contained in:
38
renderer/app.js
Normal file
38
renderer/app.js
Normal file
@@ -0,0 +1,38 @@
|
||||
import { createSSRApp, h } from 'vue';
|
||||
import { setPageContext } from './usePageContext';
|
||||
|
||||
import '../assets/css/style.css';
|
||||
|
||||
import Container from './container.vue';
|
||||
import Link from '../components/link/link.vue';
|
||||
import Icon from '../components/icon/icon.vue';
|
||||
|
||||
function createApp(Page, pageProps, pageContext) {
|
||||
const PageWithLayout = {
|
||||
render() {
|
||||
return h(
|
||||
Container,
|
||||
{},
|
||||
{
|
||||
default() {
|
||||
return h(Page, pageProps || {});
|
||||
},
|
||||
},
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
const app = createSSRApp(PageWithLayout);
|
||||
|
||||
// We make pageContext available from any Vue component
|
||||
setPageContext(app, pageContext);
|
||||
|
||||
app.provide('pageContext', pageContext);
|
||||
|
||||
app.component('Link', Link);
|
||||
app.component('Icon', Icon);
|
||||
|
||||
return app;
|
||||
}
|
||||
|
||||
export { createApp };
|
||||
Reference in New Issue
Block a user