mirror of
https://github.com/enso-org/enso.git
synced 2024-12-24 15:51:54 +03:00
277dfb1991
- The module is edited by changing the AST, not the text representation. - `IdMap`s no longer need to be maintained in parallel with the module content; they are snapshots produced as needed from the ASTs. - Simplistic synchronization is in place until #8237: Edits are never merged; if two edits are started from the same state, one will be overwritten.
42 lines
1.1 KiB
Vue
42 lines
1.1 KiB
Vue
<script setup lang="ts">
|
|
import { logEvent } from 'histoire/client'
|
|
|
|
import ComponentBrowser from '@/components/ComponentBrowser.vue'
|
|
import { useSuggestionDbStore } from '@/stores/suggestionDatabase'
|
|
import { Vec2 } from '@/util/data/vec2'
|
|
import GroupColorsWrapper from './GroupColorsWrapper.vue'
|
|
import NavigatorWrapper from './NavigatorWrapper.vue'
|
|
|
|
const position = new Vec2(-329.5, 0)
|
|
</script>
|
|
|
|
<template>
|
|
<Story
|
|
title="Component Browser"
|
|
group="graph"
|
|
:layout="{ type: 'single', iframe: false }"
|
|
:setupApp="
|
|
() => {
|
|
useSuggestionDbStore()
|
|
}
|
|
"
|
|
responsiveDisabled
|
|
autoPropsDisabled
|
|
>
|
|
<NavigatorWrapper style="height: 100%">
|
|
<template #default="{ navigator }">
|
|
<GroupColorsWrapper>
|
|
<ComponentBrowser
|
|
:nodePosition="position"
|
|
:navigator="navigator"
|
|
:initialContent="''"
|
|
:sourcePort="null"
|
|
:initialCaretPosition="[0, 0]"
|
|
@finished="logEvent('finished', [])"
|
|
/>
|
|
</GroupColorsWrapper>
|
|
</template>
|
|
</NavigatorWrapper>
|
|
</Story>
|
|
</template>
|