mirror of
https://github.com/enso-org/enso.git
synced 2024-12-29 03:12:29 +03:00
b7a8909818
- Improved performance by batching simulatenous node edits, including metadata updates when dragging many selected nodes together. - Updated Vue to new version, allowing us to use `defineModel`. - Fixed #9161 - Unified all handling of auto-blur by making `useAutoBlur` cheap to register - all logic goes through a single window event handler. - Combined all `ResizeObserver`s into one. - Fixed the behaviour of repeated toast messages. Now only the latest compilation status is visible at any given time, and the errors disappear once compilation passes. - Actually fixed broken interaction of node and visualization widths. There no longer is a style feedback loop and the visible node backdrop width no longer jumps or randomly fails to update.
64 lines
1.1 KiB
TypeScript
64 lines
1.1 KiB
TypeScript
import { HstVue } from '@histoire/plugin-vue'
|
|
import { defineConfig } from 'histoire'
|
|
|
|
const order = [
|
|
// Graph
|
|
'Editor',
|
|
'Widgets',
|
|
'Code Editor',
|
|
'Component Browser',
|
|
'Node',
|
|
'Top Bar',
|
|
'Circular Menu',
|
|
'Selection Brush',
|
|
// Miscellaneous
|
|
'SVG Icon',
|
|
'All SVG Icons',
|
|
// Visualizations
|
|
'Selector',
|
|
'User Defined',
|
|
'JSON',
|
|
'Table',
|
|
'Scatterplot',
|
|
'Histogram',
|
|
'Heatmap',
|
|
'SQL Query',
|
|
'Geo Map',
|
|
'Image',
|
|
'Warnings',
|
|
]
|
|
|
|
export default defineConfig({
|
|
theme: {
|
|
title: 'Enso Demo Scenes',
|
|
},
|
|
setupFile: './stories/setup.ts',
|
|
plugins: [HstVue()],
|
|
tree: {
|
|
groups: [
|
|
{ id: 'graph', title: 'Graph' },
|
|
{ id: 'misc', title: 'Miscellaneous' },
|
|
{ id: 'visualizations', title: 'Visualizations' },
|
|
],
|
|
order(a, b) {
|
|
const aIndex = order.indexOf(a)
|
|
const bIndex = order.indexOf(b)
|
|
return (
|
|
aIndex != null ?
|
|
bIndex != null ?
|
|
aIndex - bIndex
|
|
: -1
|
|
: bIndex != null ? 1
|
|
: a.localeCompare(b)
|
|
)
|
|
},
|
|
},
|
|
vite: {
|
|
server: {
|
|
fs: {
|
|
allow: ['../..'],
|
|
},
|
|
},
|
|
},
|
|
})
|