feat: render semantic portfolio document
This commit is contained in:
16
src/entry-client.ts
Normal file
16
src/entry-client.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { createApp } from './app';
|
||||
import type { ProductionInputs } from './content/types';
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
__PORTFOLIO_INPUTS__?: Readonly<ProductionInputs>;
|
||||
}
|
||||
}
|
||||
|
||||
const inputs = window.__PORTFOLIO_INPUTS__;
|
||||
|
||||
if (inputs === undefined) {
|
||||
throw new Error('The serialized portfolio input snapshot is unavailable.');
|
||||
}
|
||||
|
||||
createApp(inputs).mount('#app');
|
||||
Reference in New Issue
Block a user