mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-28 17:18:46 +00:00
Projects (#192)
* Add file save UI and drafts project * Fix build * Create SearchList component as abstraction * Add project page and file tree view * Create Locale context * Create Theme context * Create Version context * Create Title context * Create Project context * Store current file in project context * Fix issues when renaming file and implement deleting * Style improvements * Make all project strings translatable * Fix z-index
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import type { Hook } from '@mcschema/core'
|
||||
import { relativePath } from '@mcschema/core'
|
||||
import type { DataModel, Hook } from '@mcschema/core'
|
||||
import { ModelPath, relativePath } from '@mcschema/core'
|
||||
import type { BlockStateRegistry } from '../services'
|
||||
|
||||
export function getOutput(model: DataModel, blockStates: BlockStateRegistry): any {
|
||||
return model.schema.hook(transformOutput, new ModelPath(model), model.data, { blockStates })
|
||||
}
|
||||
|
||||
export type OutputProps = {
|
||||
blockStates: BlockStateRegistry,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user