2023-11-27 18:48:37 +03:00
|
|
|
<script setup lang="ts">
|
|
|
|
import { computed } from 'vue'
|
|
|
|
import App from '../src/App.vue'
|
|
|
|
import MockProjectStoreWrapper from '../stories/MockProjectStoreWrapper.vue'
|
|
|
|
import { getMainFile, setMainFile } from './mockEngine'
|
|
|
|
|
|
|
|
const mainFile = computed({
|
|
|
|
get() {
|
|
|
|
return getMainFile()
|
|
|
|
},
|
|
|
|
set(value) {
|
|
|
|
setMainFile(value)
|
|
|
|
},
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-12-08 21:45:42 +03:00
|
|
|
<MockProjectStoreWrapper v-model="mainFile">
|
|
|
|
<App :config="{}" :metadata="{}" />
|
|
|
|
</MockProjectStoreWrapper>
|
2023-11-27 18:48:37 +03:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
:is(.viewport) {
|
|
|
|
color: var(--color-text);
|
2023-12-08 21:45:42 +03:00
|
|
|
font-family: var(--font-code);
|
2023-11-27 18:48:37 +03:00
|
|
|
font-size: 11.5px;
|
|
|
|
font-weight: 500;
|
|
|
|
line-height: 20px;
|
|
|
|
text-rendering: optimizeLegibility;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
height: 100vh;
|
|
|
|
}
|
|
|
|
</style>
|