enso/app/gui2/e2e/MockApp.vue
somebody1234 cbd7397b5e
Fix GUI2 entrypoint (#8542)
- Closes https://github.com/enso-org/cloud-v2/issues/804
- The GUI should now properly configure deep links and auth settings, among other things, because the logic has been ported over from the GUI1 runner.
- The porting was very basic; it may be a good idea to refactor it later, but that is out of scope of this PR.
- This also means that `runner/` should be safe to remove along with GUI1 in the future, as all code relevant to GUI2 now resides in `app/gui2/runner`.

# Important Notes
- The built `ide2` has been tested on Windows, but should also be tested on macOS.
- Should *also* be fully tested in `npm run dev`.
2023-12-21 15:04:30 +00:00

36 lines
832 B
Vue

<script setup lang="ts">
import { computed } from 'vue'
import { getMainFile, setMainFile } from '../mock/engine'
import App from '../src/App.vue'
import MockProjectStoreWrapper from '../stories/MockProjectStoreWrapper.vue'
const mainFile = computed({
get() {
return getMainFile()
},
set(value) {
setMainFile(value)
},
})
</script>
<template>
<MockProjectStoreWrapper v-model="mainFile">
<App :config="{}" :accessToken="''" :metadata="{}" :unrecognizedOptions="[]" />
</MockProjectStoreWrapper>
</template>
<style scoped>
:is(.viewport) {
color: var(--color-text);
font-family: var(--font-code);
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>