mirror of
https://github.com/enso-org/enso.git
synced 2024-12-18 07:42:21 +03:00
245ec7afe8
Closes #8673. Stacked on #9132. Before: ![image](https://github.com/enso-org/enso/assets/1047859/1b1ca9f4-eda9-45fd-bec1-cd7e255112fa) ![image](https://github.com/enso-org/enso/assets/1047859/b8cf6de1-d75c-48d0-ac0d-9e6e0c659dd4) After: ![image](https://github.com/enso-org/enso/assets/1047859/91d13862-96e7-4175-a61e-40aecd6d62b0) ![image](https://github.com/enso-org/enso/assets/1047859/ef20511f-00f2-4042-b4d4-97728817500b) # Important Notes - The model has been refactored from execution-modes (live/design) to record-mode (on/off) up to the point of the project store, where it's translated (since the backend still uses the live/design concepts).
34 lines
1.0 KiB
Vue
34 lines
1.0 KiB
Vue
<script setup lang="ts">
|
|
import { logEvent } from 'histoire/client'
|
|
import { ref } from 'vue'
|
|
|
|
import TopBar from '@/components/TopBar.vue'
|
|
|
|
const title = ref('Mock Project')
|
|
const recordMode = ref(true)
|
|
const breadcrumbs = ref(['main', 'ad_analytics'])
|
|
</script>
|
|
|
|
<template>
|
|
<Story title="Top Bar" group="graph" :layout="{ type: 'grid', width: 500 }" autoPropsDisabled>
|
|
<div style="height: 48px">
|
|
<TopBar
|
|
:title="title"
|
|
:recordMode="recordMode"
|
|
:breadcrumbs="breadcrumbs"
|
|
@back="logEvent('back', [])"
|
|
@forward="logEvent('forward', [])"
|
|
@recordOnce="logEvent('recordOnce', [])"
|
|
@breadcrumbClick="logEvent('breadcrumbClick', [$event])"
|
|
@update:recordMode="logEvent('update:recordMode', [$event]), (recordMode = $event)"
|
|
/>
|
|
</div>
|
|
|
|
<template #controls>
|
|
<HstText v-model="title" title="title" />
|
|
<HstJson v-model="recordMode" title="recordMode" />
|
|
<HstJson v-model="breadcrumbs" title="breadcrumbs" />
|
|
</template>
|
|
</Story>
|
|
</template>
|