-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget-activity.yaml
120 lines (116 loc) · 2.83 KB
/
get-activity.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
109
110
111
112
113
114
115
116
117
118
119
120
id: get_activity
type: PageHeaderMenu
requests:
- id: get_activity
type: AxiosHttp
connectionId: bored_api
properties:
url: activity/
- id: save_activity
type: MongoDBInsertOne
connectionId: bored-activities
payload:
new_activity:
_state: activity
properties:
doc:
activity:
_payload: new_activity.activity
type:
_payload: new_activity.type
participants:
_payload: new_activity.participants
completed: no
properties:
title: Search
layout:
contentJustify: center
blocks:
- id: content_card
type: Card
layout:
size: 800
contentGutter: 16
blocks:
- id: page_heading
type: Title
properties:
content: Press this button to fight boredom!
level: 3
- id: activity_button
type: Button
layout:
align: middle
properties:
icon: AiFillBulb
shape: round
size: large
title: Idea
events:
onClick:
- id: fetch_activity
type: Request
params: get_activity
- id: set_data
type: SetState
params:
activity:
_request: get_activity.data
display: true
- id: activity_card
type: Card
visible:
_eq:
- _state: display
- true
properties:
title: What to do
blocks:
- id: act_tag
type: Tag
properties:
title: Activity
icon: MdRocketLaunch
- id: act_text
type: Paragraph
properties:
strong: true
content:
_state: activity.activity
- id: type_tag
type: Tag
properties:
title: Type
icon: MdBuild
- id: type_text
type: Paragraph
properties:
strong: true
content:
_state: activity.type
- id: part_tag
type: Tag
properties:
title: Participants
icon: MdAccessibility
- id: part_text
type: Paragraph
properties:
strong: true
content:
_state: activity.participants
- id: activity_button
type: Button
layout:
align: middle
properties:
icon: MdFavorite
shape: round
size: large
title: Add to my ToDo List
color: "#20ec85"
events:
onClick:
- id: add_activity
type: Request
params: save_activity