-
Notifications
You must be signed in to change notification settings - Fork 0
/
lowdefy_dev_tools.yaml
108 lines (108 loc) · 2.75 KB
/
lowdefy_dev_tools.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
id: lowdefy_dev_tools
type: Box
style:
_object.assign:
- position: fixed
z-index: 1
bottom: 20
- _if:
test:
_eq:
- _state: lowdefy_dev_tools.placement
- left
then:
right: 20
else:
left: 20
events:
onMount:
- id: set_color
type: SetState
params:
lowdefy_dev_tools.color:
_ref:
path: app_config.yaml
key: colors.primary
lowdefy_dev_tools.placement: left
blocks:
- id: open_button
type: Button
properties:
title: Dev Tools
icon: FaTools
shape: round
events:
onClick:
- id: open_tools_drawer
type: CallMethod
params:
blockId: tools_drawer
method: toggleOpen
- id: tools_drawer
type: Drawer
layout:
contentGutter: 8
properties:
title: Lowdefy Dev Tools
width: 500
placement:
_if_none:
- _state: lowdefy_dev_tools.placement
- left
bodyStyle:
padding: 16
mask: false
areas:
extra:
blocks:
- id: toggle_placement
type: Button
properties:
hideTitle: true
icon:
_if:
test:
_eq:
- _state: lowdefy_dev_tools.placement
- left
then: AiOutlineArrowRight
else: AiOutlineArrowLeft
size: small
events:
onClick:
- id: set_placement
type: SetState
params:
lowdefy_dev_tools.placement:
_if:
test:
_eq:
- _state: lowdefy_dev_tools.placement
- left
then: right
else: left
blocks:
- id: tool_tabs
type: Tabs
properties:
tabType: card
tabs:
- key: state
title: State
icon: AiOutlineBars
- key: requests
title: Requests
icon: AiOutlineDatabase
# - key: code_editor
# title: Code Editor
# icon: AiOutlineCode
areas:
state:
blocks:
- _ref: ../../../lowdefy-dev-tools/dev-tools/view_state/view_state.yaml
requests:
blocks:
- _ref: ../../../lowdefy-dev-tools/dev-tools/view_requests/view_requests.yaml
# code_editor:
# blocks:
# - _ref: ../../../lowdefy-dev-tools/dev-tools/view_code_editor/view_code_editor.yaml