mirror of
https://github.com/enso-org/enso.git
synced 2024-12-22 13:41:39 +03:00
ab246539d1
Closes: #10592 https://github.com/user-attachments/assets/12f3d155-b4ea-4c78-a8a5-fb771c80f3f2
45 lines
1.2 KiB
Vue
45 lines
1.2 KiB
Vue
<script setup lang="ts">
|
|
import { logEvent } from 'histoire/client'
|
|
|
|
import ComponentBrowser from '@/components/ComponentBrowser.vue'
|
|
import { Usage } from '@/components/ComponentBrowser/input'
|
|
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)
|
|
const usage: Usage = { type: 'newNode' }
|
|
</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"
|
|
:usage="usage"
|
|
:sourcePort="null"
|
|
:initialCaretPosition="[0, 0]"
|
|
:associatedElements="[]"
|
|
@finished="logEvent('finished', [])"
|
|
/>
|
|
</GroupColorsWrapper>
|
|
</template>
|
|
</NavigatorWrapper>
|
|
</Story>
|
|
</template>
|