Skip to content

Commit

Permalink
feat(define): add define for demos
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Jan 13, 2022
1 parent c80ce48 commit 231e1d1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion examples/entries-define.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,13 @@ entries:
- created_date: Date
- updated_date: Date
actions: ~

- type: graph
display: "Graph"
target: "quake-board"
properties:
- title: Title
- file: File
- content: String
- created_date: Date
- updated_date: Date
actions: ~
2 changes: 2 additions & 0 deletions quake_core/src/entry/entry_define.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ pub struct EntryDefine {
pub flows: Option<Vec<FlowProperty>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub states: Option<Vec<EntryState>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub target: Option<String>,
}

/// process file for file content
Expand Down
2 changes: 0 additions & 2 deletions quake_webapp/quake-board/src/QuakeBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ function QuakeBoard(props: Props) {
}, [engine, model, props]
);



return (
<StyledDiv onContextMenu={handleContextMenu}>
<StyledCanvasWidget engine={engine}/>
Expand Down

0 comments on commit 231e1d1

Please sign in to comment.