@lowdefy/docs 4.0.0-alpha.7 → 4.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/dist/operators/client/filter_default_value.js +55 -0
  2. package/{public/modules/connectDocsearch.js → dist/operatorsClient.js} +1 -19
  3. package/{templates/blocks/schemaTransformer.js → dist/types.js} +5 -10
  4. package/package.json +19 -3
  5. package/404.yaml +0 -26
  6. package/CHANGELOG.md +0 -697
  7. package/actions/CallMethod.yaml +0 -57
  8. package/actions/JsAction.yaml +0 -281
  9. package/actions/Link.yaml +0 -120
  10. package/actions/Login.yaml +0 -123
  11. package/actions/Logout.yaml +0 -44
  12. package/actions/Message.yaml +0 -68
  13. package/actions/Notification.yaml +0 -84
  14. package/actions/Request.yaml +0 -70
  15. package/actions/Reset.yaml +0 -42
  16. package/actions/ResetValidation.yaml +0 -102
  17. package/actions/ScrollTo.yaml +0 -100
  18. package/actions/SetGlobal.yaml +0 -78
  19. package/actions/SetState.yaml +0 -85
  20. package/actions/Throw.yaml +0 -89
  21. package/actions/Validate.yaml +0 -104
  22. package/actions/Wait.yaml +0 -40
  23. package/blocks/all_icons.yaml +0 -803
  24. package/blocks/container/Affix.yaml +0 -26
  25. package/blocks/container/Alert.yaml +0 -27
  26. package/blocks/container/Badge.yaml +0 -27
  27. package/blocks/container/Box.yaml +0 -27
  28. package/blocks/container/Card.yaml +0 -29
  29. package/blocks/container/Collapse.yaml +0 -38
  30. package/blocks/container/Comment.yaml +0 -43
  31. package/blocks/container/ConfirmModal.yaml +0 -36
  32. package/blocks/container/Descriptions.yaml +0 -51
  33. package/blocks/container/Drawer.yaml +0 -46
  34. package/blocks/container/Label.yaml +0 -28
  35. package/blocks/container/Modal.yaml +0 -46
  36. package/blocks/container/PageHCF.yaml +0 -28
  37. package/blocks/container/PageHCSF.yaml +0 -29
  38. package/blocks/container/PageHSCF.yaml +0 -29
  39. package/blocks/container/PageHeaderMenu.yaml +0 -52
  40. package/blocks/container/PageSHCF.yaml +0 -29
  41. package/blocks/container/PageSiderMenu.yaml +0 -53
  42. package/blocks/container/Result.yaml +0 -34
  43. package/blocks/container/Span.yaml +0 -27
  44. package/blocks/container/Spin.yaml +0 -27
  45. package/blocks/container/Tabs.yaml +0 -41
  46. package/blocks/container/Tooltip.yaml +0 -38
  47. package/blocks/display/Anchor.yaml +0 -25
  48. package/blocks/display/Avatar.yaml +0 -23
  49. package/blocks/display/Breadcrumb.yaml +0 -28
  50. package/blocks/display/Button.yaml +0 -43
  51. package/blocks/display/DangerousHtml.yaml +0 -62
  52. package/blocks/display/DangerousMarkdown.yaml +0 -46
  53. package/blocks/display/Divider.yaml +0 -23
  54. package/blocks/display/EChart.yaml +0 -53
  55. package/blocks/display/Html.yaml +0 -50
  56. package/blocks/display/Icon.yaml +0 -23
  57. package/blocks/display/Img.yaml +0 -40
  58. package/blocks/display/Markdown.yaml +0 -31
  59. package/blocks/display/MarkdownWithCode.yaml +0 -46
  60. package/blocks/display/Menu.yaml +0 -48
  61. package/blocks/display/Message.yaml +0 -34
  62. package/blocks/display/MobileMenu.yaml +0 -47
  63. package/blocks/display/Notification.yaml +0 -34
  64. package/blocks/display/Paragraph.yaml +0 -30
  65. package/blocks/display/Progress.yaml +0 -52
  66. package/blocks/display/Skeleton.yaml +0 -27
  67. package/blocks/display/Statistic.yaml +0 -35
  68. package/blocks/display/Title.yaml +0 -32
  69. package/blocks/input/AutoComplete.yaml +0 -30
  70. package/blocks/input/ButtonSelector.yaml +0 -36
  71. package/blocks/input/CheckboxSelector.yaml +0 -36
  72. package/blocks/input/CheckboxSwitch.yaml +0 -56
  73. package/blocks/input/ChromeColorSelector.yaml +0 -24
  74. package/blocks/input/CircleColorSelector.yaml +0 -24
  75. package/blocks/input/ColorSelector.yaml +0 -24
  76. package/blocks/input/CompactColorSelector.yaml +0 -24
  77. package/blocks/input/DateRangeSelector.yaml +0 -26
  78. package/blocks/input/DateSelector.yaml +0 -26
  79. package/blocks/input/DateTimeSelector.yaml +0 -28
  80. package/blocks/input/GithubColorSelector.yaml +0 -24
  81. package/blocks/input/MonthSelector.yaml +0 -26
  82. package/blocks/input/MultipleSelector.yaml +0 -117
  83. package/blocks/input/NumberInput.yaml +0 -24
  84. package/blocks/input/Pagination.yaml +0 -33
  85. package/blocks/input/ParagraphInput.yaml +0 -32
  86. package/blocks/input/PasswordInput.yaml +0 -48
  87. package/blocks/input/RadioSelector.yaml +0 -36
  88. package/blocks/input/RatingSlider.yaml +0 -24
  89. package/blocks/input/S3UploadButton.yaml +0 -28
  90. package/blocks/input/Selector.yaml +0 -98
  91. package/blocks/input/SliderColorSelector.yaml +0 -24
  92. package/blocks/input/SwatchesColorSelector.yaml +0 -24
  93. package/blocks/input/Switch.yaml +0 -24
  94. package/blocks/input/TextArea.yaml +0 -27
  95. package/blocks/input/TextInput.yaml +0 -59
  96. package/blocks/input/TitleInput.yaml +0 -32
  97. package/blocks/input/TwitterColorSelector.yaml +0 -24
  98. package/blocks/input/WeekSelector.yaml +0 -26
  99. package/blocks/list/ControlledList.yaml +0 -191
  100. package/blocks/list/List.yaml +0 -157
  101. package/blocks/list/TimelineList.yaml +0 -136
  102. package/body.html +0 -1
  103. package/concepts/blocks.yaml +0 -249
  104. package/concepts/cli.yaml +0 -173
  105. package/concepts/connections-and-requests.yaml +0 -114
  106. package/concepts/context-and-state.yaml +0 -82
  107. package/concepts/custom-blocks.yaml +0 -190
  108. package/concepts/custom-code.yaml +0 -197
  109. package/concepts/events-and-actions.yaml +0 -224
  110. package/concepts/hosting-files.yaml +0 -50
  111. package/concepts/layout.yaml +0 -1464
  112. package/concepts/lists.yaml +0 -162
  113. package/concepts/lowdefy-schema.yaml +0 -245
  114. package/concepts/operators.yaml +0 -66
  115. package/concepts/overview.yaml +0 -48
  116. package/concepts/secrets.yaml +0 -56
  117. package/connections/AWSS3.yaml +0 -228
  118. package/connections/AmazonRedshift.yaml +0 -75
  119. package/connections/AxiosHttp.yaml +0 -194
  120. package/connections/Elasticsearch.yaml +0 -378
  121. package/connections/GoogleSheet.yaml +0 -332
  122. package/connections/Knex.yaml +0 -181
  123. package/connections/KnexRequests.md +0 -121
  124. package/connections/MSSQL.yaml +0 -90
  125. package/connections/MariaDB.yaml +0 -77
  126. package/connections/MongoDB.yaml +0 -581
  127. package/connections/MySQL.yaml +0 -92
  128. package/connections/OracleDB.yaml +0 -73
  129. package/connections/PostgreSQL.yaml +0 -99
  130. package/connections/Redis.yaml +0 -147
  131. package/connections/SQLite.yaml +0 -94
  132. package/connections/SendGridMail.yaml +0 -113
  133. package/connections/Stripe.yaml +0 -139
  134. package/deployment/aws-lambda.yaml +0 -128
  135. package/deployment/docker.yaml +0 -118
  136. package/deployment/netlify.yaml +0 -69
  137. package/deployment/node-server.yaml +0 -111
  138. package/head.html +0 -7
  139. package/howto/generate-csv.yaml.njk +0 -252
  140. package/howto/generate-pdf.yaml.njk +0 -651
  141. package/howto/generateCsv/lowdefy.yaml +0 -64
  142. package/howto/generateCsv/public/csvMake.js +0 -27
  143. package/howto/generatePdf/inv_template.yaml +0 -200
  144. package/howto/generatePdf/lowdefy.yaml +0 -117
  145. package/howto/generatePdf/my_header.html +0 -1
  146. package/howto/generatePdf/public/logo_example.png +0 -0
  147. package/howto/generatePdf/public/modules/importUmd.js +0 -7
  148. package/howto/generatePdf/public/modules/pdfMake.js +0 -7
  149. package/howto/generatePdf/public/modules/vfs_fonts.js +0 -12
  150. package/howto/use-refrences.md +0 -5
  151. package/introduction.yaml +0 -100
  152. package/lowdefy.yaml +0 -66
  153. package/menus.yaml +0 -832
  154. package/operators/_actions.yaml +0 -123
  155. package/operators/_and.yaml +0 -90
  156. package/operators/_args.yaml +0 -79
  157. package/operators/_array.yaml +0 -326
  158. package/operators/_base64.yaml +0 -56
  159. package/operators/_change_case.yaml +0 -347
  160. package/operators/_date.yaml +0 -71
  161. package/operators/_diff.yaml +0 -75
  162. package/operators/_divide.yaml +0 -46
  163. package/operators/_eq.yaml +0 -67
  164. package/operators/_event.yaml +0 -103
  165. package/operators/_format.yaml +0 -209
  166. package/operators/_function.yaml +0 -66
  167. package/operators/_get.yaml +0 -108
  168. package/operators/_global.yaml +0 -107
  169. package/operators/_gt.yaml +0 -65
  170. package/operators/_gte.yaml +0 -65
  171. package/operators/_hash.yaml +0 -109
  172. package/operators/_if.yaml +0 -44
  173. package/operators/_if_none.yaml +0 -61
  174. package/operators/_index.yaml +0 -65
  175. package/operators/_input.yaml +0 -114
  176. package/operators/_js.yaml +0 -189
  177. package/operators/_json.yaml +0 -128
  178. package/operators/_list_contexts.yaml +0 -37
  179. package/operators/_location.yaml +0 -59
  180. package/operators/_log.yaml +0 -36
  181. package/operators/_lt.yaml +0 -65
  182. package/operators/_lte.yaml +0 -65
  183. package/operators/_math.yaml +0 -374
  184. package/operators/_media.yaml +0 -86
  185. package/operators/_menu.yaml +0 -81
  186. package/operators/_mql.yaml +0 -101
  187. package/operators/_ne.yaml +0 -77
  188. package/operators/_not.yaml +0 -47
  189. package/operators/_number.yaml +0 -157
  190. package/operators/_nunjucks.yaml +0 -73
  191. package/operators/_object.yaml +0 -193
  192. package/operators/_operator.yaml +0 -47
  193. package/operators/_or.yaml +0 -81
  194. package/operators/_product.yaml +0 -59
  195. package/operators/_random.yaml +0 -104
  196. package/operators/_ref.yaml +0 -266
  197. package/operators/_regex.yaml +0 -83
  198. package/operators/_request.yaml +0 -50
  199. package/operators/_secret.yaml +0 -74
  200. package/operators/_state.yaml +0 -114
  201. package/operators/_string.yaml +0 -283
  202. package/operators/_subtract.yaml +0 -38
  203. package/operators/_sum.yaml +0 -59
  204. package/operators/_switch.yaml +0 -51
  205. package/operators/_type.yaml +0 -92
  206. package/operators/_uri.yaml +0 -56
  207. package/operators/_url_query.yaml +0 -120
  208. package/operators/_user.yaml +0 -107
  209. package/operators/_uuid.yaml +0 -114
  210. package/operators/_var.yaml +0 -105
  211. package/operators/_yaml.yaml +0 -107
  212. package/pages.yaml +0 -227
  213. package/public/images/authors/gervwyk.jpeg +0 -0
  214. package/public/images/authors/sandile.jpeg +0 -0
  215. package/public/images/howto/header_generate_csv.jpg +0 -0
  216. package/public/images/howto/header_generate_pdf.jpg +0 -0
  217. package/public/logo_example.png +0 -0
  218. package/public/lowdefy_app_schema.png +0 -0
  219. package/public/modules/csvMake.js +0 -27
  220. package/public/modules/filterDefaultValue.js +0 -48
  221. package/public/modules/importUmd.js +0 -7
  222. package/public/modules/index.js +0 -5
  223. package/public/modules/pdfMake.js +0 -7
  224. package/public/modules/test/filterDefaultValue.test.js +0 -91
  225. package/public/modules/vfs_fonts.js +0 -12
  226. package/public/sitemap.xml +0 -1024
  227. package/templates/actions.yaml.njk +0 -68
  228. package/templates/blocks/defaultValueTransformer.js +0 -53
  229. package/templates/blocks/exampleTransformer.js +0 -81
  230. package/templates/blocks/layout.yaml +0 -114
  231. package/templates/blocks/propertiesFormTransformer.js +0 -419
  232. package/templates/blocks/propertiesGetterTransformer.js +0 -132
  233. package/templates/blocks/schema.yaml.njk +0 -42
  234. package/templates/blocks/style.yaml +0 -26
  235. package/templates/blocks/template.yaml.njk +0 -495
  236. package/templates/blog.yaml.njk +0 -221
  237. package/templates/cli_command.yaml.njk +0 -37
  238. package/templates/footer.yaml.njk +0 -604
  239. package/templates/general.yaml.njk +0 -124
  240. package/templates/generateSitemap.js +0 -41
  241. package/templates/header.yaml +0 -138
  242. package/templates/navigation_buttons.yaml +0 -68
  243. package/templates/operators.yaml.njk +0 -82
  244. package/templates/operatorsMethodTransformer.js +0 -119
  245. package/templates/test/array.test.js +0 -1335
  246. package/templates/test/boolean.test.js +0 -98
  247. package/templates/test/button.test.js +0 -166
  248. package/templates/test/color.test.js +0 -126
  249. package/templates/test/enum.test.js +0 -105
  250. package/templates/test/icon.test.js +0 -109
  251. package/templates/test/integer.test.js +0 -99
  252. package/templates/test/manual.test.js +0 -238
  253. package/templates/test/number.test.js +0 -99
  254. package/templates/test/object.test.js +0 -434
  255. package/templates/test/oneOf.test.js +0 -794
  256. package/templates/test/string.test.js +0 -98
  257. package/templates/test/yaml.test.js +0 -605
  258. package/tutorial/next-steps.yaml +0 -83
  259. package/tutorial/tutorial-actions-operators-config.yaml +0 -142
  260. package/tutorial/tutorial-actions-operators.yaml +0 -436
  261. package/tutorial/tutorial-add-blocks-config.yaml +0 -109
  262. package/tutorial/tutorial-add-blocks.yaml +0 -195
  263. package/tutorial/tutorial-create-page-config.yaml +0 -77
  264. package/tutorial/tutorial-create-page.yaml +0 -196
  265. package/tutorial/tutorial-deploy.yaml +0 -146
  266. package/tutorial/tutorial-requests-config.yaml +0 -186
  267. package/tutorial/tutorial-requests.yaml +0 -338
  268. package/tutorial/tutorial-start.yaml +0 -282
  269. package/users/login-and-logout.yaml +0 -164
  270. package/users/openid-connect.yaml +0 -84
  271. package/users/protected-pages.yaml +0 -67
  272. package/users/roles.yaml +0 -70
  273. package/users/user-object.yaml +0 -73
  274. package/users/users-introduction.yaml +0 -80
  275. package/version.yaml +0 -1
@@ -1,495 +0,0 @@
1
- # Copyright 2020-2021 Lowdefy, Inc
2
-
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
-
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- id: {{ block_type }}
16
- type: PageSiderMenu
17
- requests:
18
- - id: post_telemetry
19
- type: AxiosHttp
20
- connectionId: lowdefy_api_telemetry
21
- properties:
22
- data:
23
- session_id:
24
- _global: session_id
25
- page_id: {{ block_type }}
26
- url_query:
27
- _url_query: true
28
- input:
29
- _input: true
30
-
31
- events:
32
- onInit:
33
- - id: set_session_id
34
- type: SetGlobal
35
- skip:
36
- _not:
37
- _eq:
38
- - _global: session_id
39
- - null
40
- params:
41
- session_id:
42
- _random:
43
- type: string
44
- length: 16
45
- - id: init_default_properties
46
- type: SetState
47
- params:
48
- block:
49
- layout:
50
- align: top
51
- span: 24
52
- visible: true
53
- properties:
54
- _ref:
55
- path:
56
- _var: schema
57
- transformer: templates/blocks/defaultValueTransformer.js
58
- - id: init_property_values
59
- type: SetState
60
- skip:
61
- _eq:
62
- - _var: init_property_values
63
- - null
64
- params:
65
- block:
66
- properties:
67
- _var: init_property_values
68
- - id: init_state_values
69
- type: SetState
70
- skip:
71
- _eq:
72
- - _var: init_state_values
73
- - null
74
- params:
75
- _var: init_state_values
76
-
77
- onEnterAsync:
78
- {# - id: connect_docsearch
79
- type: JsAction # TODO:
80
- params:
81
- name: connectDocsearch #}
82
- - id: post_telemetry
83
- type: Request
84
- messages:
85
- error: false
86
- params: post_telemetry
87
-
88
- properties:
89
- title: {{ block_type }}
90
- header:
91
- theme: light
92
- menu:
93
- forceSubMenuRender: true
94
- sider:
95
- width: 256px
96
- initialCollapsed:
97
- _or:
98
- - _eq:
99
- - _media: size
100
- - md
101
- - _eq:
102
- - _media: size
103
- - lg
104
- layout:
105
- style:
106
- background: '#FFFFFF'
107
- footer:
108
- style:
109
- background: '#FFFFFF'
110
- breadcrumb:
111
- list:
112
- - _ref: version.yaml
113
- - {{ category }}
114
- - {{ block_type }}
115
- layout:
116
- contentGutter: 16
117
- areas:
118
- header:
119
- blocks:
120
- _ref: templates/header.yaml
121
- footer:
122
- blocks:
123
- _ref:
124
- path: templates/footer.yaml.njk
125
- vars:
126
- hideFeedback:
127
- _var: hideFeedback
128
- filePath:
129
- _var: filePath
130
- pageId:
131
- _var: block_type
132
- content:
133
- blocks:
134
- - id: title
135
- type: Title
136
- properties:
137
- level: 2
138
- content:
139
- _var: block_type
140
- {% if value_type %}
141
- - id: value_type
142
- type: Markdown
143
- properties:
144
- content: |
145
- ```
146
- value type: {{ value_type }}
147
- ```
148
- {% endif %}
149
- {% if areas %}
150
- - id: areas_list
151
- type: Markdown
152
- properties:
153
- content: |
154
- {% if user_defined_areas -%}
155
- ```
156
- areas: [key]
157
- ```
158
- {% else %}
159
- ```
160
- areas: {{ areas | join(', ') }}
161
- ```
162
- {% endif %}
163
- {% endif %}
164
- - id: description
165
- type: Markdown
166
- properties:
167
- content:
168
- _var: description_content
169
- - id: left_column
170
- type: Box
171
- layout:
172
- span: 12
173
- blocks:
174
- - id: block_divider
175
- type: Divider
176
- properties:
177
- title: Block
178
- - id: block_id
179
- type:
180
- _var: block_type
181
- layout:
182
- _state: block.layout
183
- style:
184
- _yaml.parse:
185
- _if_none:
186
- - _state: style_block_input
187
- - ''
188
- {% if category != "context" %}
189
- visible:
190
- _state: block.visible
191
- {% endif %}
192
- required:
193
- _state: block.required
194
- properties:
195
- _js.filterDefaultValue:
196
- - _ref:
197
- path:
198
- _var: schema
199
- vars:
200
- block_type: {{ block_type }}
201
- transformer: templates/blocks/propertiesGetterTransformer.js
202
- - _ref:
203
- path:
204
- _var: schema
205
- transformer: templates/blocks/defaultValueTransformer.js
206
-
207
- {% if areas %}
208
- areas:
209
- {% for area in areas %}
210
- {{ area }}:
211
- gutter: 0
212
- style:
213
- border: 1px dashed red
214
- blocks:
215
- - id: block_area_{{ area }}
216
- type: Html
217
- style:
218
- background: '#f0f2f5'
219
- textAlign: center
220
- padding: 2px 5px
221
- color: red
222
- properties:
223
- html: {{ area }}
224
- {% endfor %}
225
- {% endif %}
226
- {% if methods %}
227
- - id: method_divider
228
- type: Divider
229
- properties:
230
- title: Methods
231
- {% for method in methods %}
232
- - id: method_button_{{ method.name }}
233
- type: Button
234
- layout:
235
- span: 12
236
- md:
237
- span: 24
238
- properties:
239
- title: {{ method.name }}
240
- events:
241
- onClick:
242
- _var: methods.{{ loop.index0 }}.onClick
243
- - id: method_args_{{ method.name }}
244
- type: MarkdownWithCode
245
- layout:
246
- span: 12
247
- md:
248
- span: 24
249
- properties:
250
- content:
251
- _nunjucks:
252
- template: |
253
- {% raw %}
254
- ```yaml
255
- onClick:
256
- {{ value | safe }}
257
- ```
258
- {% endraw %}
259
- on:
260
- value:
261
- _yaml.stringify:
262
- on:
263
- _var: methods.{{ loop.index0 }}.onClick
264
- options:
265
- sortKeys: false
266
-
267
- {% endfor %}
268
- {% endif %}
269
- {% if category == 'input' %}
270
- - id: state_divider
271
- type: Divider
272
- properties:
273
- title: State
274
- - id: state_markdown
275
- type: MarkdownWithCode
276
- properties:
277
- content:
278
- _nunjucks:
279
- template: |
280
- {% raw %}
281
- ```yaml
282
- {{ value | safe }}
283
- ```
284
- {% endraw %}
285
- on:
286
- value:
287
- _yaml.stringify:
288
- - block_id:
289
- _state: block_id
290
- {% endif %}
291
- - id: setup_divider
292
- type: Divider
293
- properties:
294
- title: Block Setup
295
- - id: setup_markdown
296
- type: MarkdownWithCode
297
- properties:
298
- content:
299
- _nunjucks:
300
- template: |
301
- {% raw %}
302
- ```yaml
303
- {{ value | safe }}
304
- ```
305
- {% endraw %}
306
- on:
307
- value:
308
- _yaml.stringify:
309
- options:
310
- sortKeys: false
311
- on:
312
- _js.filterDefaultValue:
313
- - id: block_id
314
- type: {{ block_type }}
315
- required:
316
- _state: block.required
317
- visible:
318
- _state: block.visible
319
- layout:
320
- _state: block.layout
321
- style:
322
- _yaml.parse:
323
- _if_none:
324
- - _state: style_block_input
325
- - ''
326
- properties:
327
- _ref:
328
- path:
329
- _var: schema
330
- vars:
331
- block_type: {{ block_type }}
332
- transformer: templates/blocks/propertiesGetterTransformer.js
333
- - required: false
334
- visible: true
335
- layout:
336
- align: top
337
- span: 24
338
- properties:
339
- _ref:
340
- path:
341
- _var: schema
342
- transformer: templates/blocks/defaultValueTransformer.js
343
-
344
- - id: right_column
345
- type: Box
346
- layout:
347
- span: 12
348
- blocks:
349
- - id: settings_divider
350
- type: Divider
351
- properties:
352
- title: Settings
353
- - id: settings_collapse
354
- type: Collapse
355
- properties:
356
- defaultActiveKey: properties
357
- panels:
358
- - key: properties
359
- title: 'properties:'
360
- - key: layout
361
- title: 'layout:'
362
- - key: style
363
- title: 'style:'
364
- - key: events
365
- title: 'events:'
366
- disabled:
367
- _not:
368
- _get:
369
- key: '0.events'
370
- from:
371
- _mql.aggregate:
372
- on:
373
- - events:
374
- _get:
375
- key: schema.events.properties
376
- default: {}
377
- from:
378
- _ref:
379
- path:
380
- _var: schema
381
- pipeline:
382
- - $project:
383
- events:
384
- $objectToArray: $events
385
- - key: required
386
- title: 'required:'
387
- disabled:
388
- _not:
389
- _eq:
390
- - _var: category
391
- - input
392
- - key: visible
393
- title: 'visible:'
394
- disabled:
395
- _eq:
396
- - _var: category
397
- - context
398
- areas:
399
- properties:
400
- blocks:
401
- _ref:
402
- path:
403
- _var: schema
404
- transformer: templates/blocks/propertiesFormTransformer.js
405
- layout:
406
- blocks:
407
- _ref: templates/blocks/layout.yaml
408
- style:
409
- blocks:
410
- _ref: templates/blocks/style.yaml
411
- events:
412
- blocks:
413
- - id: event_description
414
- type: Markdown
415
- properties:
416
- style:
417
- '& > .markdown-body':
418
- fontSize: 14
419
- content:
420
- _nunjucks:
421
- template: |
422
- {% raw %}
423
- {% for event in events %}
424
- {{ event.k }}:
425
-
426
- {{ event.v.description }}
427
-
428
- {% endfor %}
429
- {% endraw %}
430
- on:
431
- _get:
432
- key: '0'
433
- from:
434
- _mql.aggregate:
435
- on:
436
- - events:
437
- _get:
438
- key: schema.events.properties
439
- default: {}
440
- from:
441
- _ref:
442
- path:
443
- _var: schema
444
- pipeline:
445
- - $project:
446
- events:
447
- $objectToArray: $events
448
-
449
-
450
- required:
451
- blocks:
452
- - id: block.required
453
- type: Switch
454
- properties:
455
- title: required
456
- label:
457
- extra: Toggle if the field is indicated as compulsory and required when the Validate action is called.
458
- align: right
459
- span: 8
460
- size: small
461
- {% if category != "context" %}
462
- visible:
463
- blocks:
464
- - id: block.visible
465
- type: Switch
466
- properties:
467
- title: visible
468
- label:
469
- extra: Toggle if block is visible and has a value in state.
470
- align: right
471
- span: 8
472
- size: small
473
- {% endif %}
474
- {% if examples %}
475
- - id: examples_divider
476
- type: Divider
477
- properties:
478
- title: Examples
479
- - _ref:
480
- path: README.md
481
- transformer: templates/blocks/exampleTransformer.js
482
- vars:
483
- block_type: {{ block_type }}
484
- examples:
485
- _var: examples
486
- {% endif %}
487
- - _ref:
488
- path: templates/blocks/schema.yaml.njk
489
- vars:
490
- block_type: {{ block_type }}
491
- schema_definition:
492
- _ref:
493
- path:
494
- _var: schema
495
- transformer: templates/blocks/schemaTransformer.js
@@ -1,221 +0,0 @@
1
- # Copyright 2020-2021 Lowdefy, Inc
2
-
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
-
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- id: "{{ pageId }}"
16
- type: PageHeaderMenu
17
- requests:
18
- - id: post_telemetry
19
- type: AxiosHttp
20
- connectionId: lowdefy_api_telemetry
21
- properties:
22
- data:
23
- session_id:
24
- _global: session_id
25
- page_id:
26
- _var: pageId
27
- url_query:
28
- _url_query: true
29
- input:
30
- _input: true
31
-
32
- events:
33
- onInit:
34
- - id: set_session_id
35
- type: SetGlobal
36
- skip:
37
- _not:
38
- _eq:
39
- - _global: session_id
40
- - null
41
- params:
42
- session_id:
43
- _random:
44
- type: string
45
- length: 16
46
- onEnterAsync:
47
- {# - id: connect_docsearch
48
- type: JsAction # TODO:
49
- params:
50
- name: connectDocsearch #}
51
- - id: post_telemetry
52
- type: Request
53
- messages:
54
- error: false
55
- params: post_telemetry
56
-
57
- properties:
58
- title: {{ pageTitle }}
59
- header:
60
- theme: light
61
- menu:
62
- forceSubMenuRender: true
63
- links: []
64
- sider:
65
- width: 256px
66
- initialCollapsed:
67
- _or:
68
- - _eq:
69
- - _media: size
70
- - md
71
- - _eq:
72
- - _media: size
73
- - lg
74
- content:
75
- style:
76
- background: '#FFFFFF'
77
- footer:
78
- style:
79
- background: '#FFFFFF'
80
- padding: 16px 0px 0px 0px
81
- areas:
82
- header:
83
- blocks:
84
- _ref: templates/header.yaml
85
- footer:
86
- blocks:
87
- _ref:
88
- path: templates/footer.yaml.njk
89
- vars:
90
- hideFeedback:
91
- _var: hideFeedback
92
- filePath:
93
- _var: filePath
94
- pageId:
95
- _var: pageId
96
- padding: 40
97
-
98
- content:
99
- justify: center
100
- blocks:
101
- - id: affix_breadcrumb
102
- type: Affix
103
- style:
104
- background: '#FFFFFF'
105
- blocks:
106
- - id: breadcrumb
107
- type: Breadcrumb
108
- style:
109
- background: '#FFFFFF'
110
- margin: 0px -32px 0px -32px
111
- padding: 8px 32px 8px 32px
112
- properties:
113
- list:
114
- - label:
115
- _ref: version.yaml
116
- pageId: introduction
117
- - label: Lowdefy Docs
118
- pageId: introduction
119
- {% if section %}
120
- - {{ section }}
121
- - {{ pageTitle }}
122
- {% endif %}
123
- {% if pageImage %}
124
- - id: page_image
125
- type: Img
126
- style:
127
- marginLeft: -50
128
- properties:
129
- src:
130
- _var: pageImage
131
- alt:
132
- _var: pageTitle
133
- width: 105%
134
- {% endif %}
135
- - id: max_width
136
- type: Box
137
- layout:
138
- flex: 0 1 800px
139
- contentGutter: 16
140
- style:
141
- marginTop: 32
142
- blocks:
143
- {% if pageTitle %}
144
- - id: page_title
145
- type: Title
146
- properties:
147
- content:
148
- _var: pageTitle
149
- {% endif %}
150
- - id: content
151
- type: Box
152
- layout:
153
- contentGutter: 16
154
- blocks:
155
- _var: content
156
- {% if discussionsLink %}
157
- - id: md5
158
- type: MarkdownWithCode
159
- properties:
160
- content: |
161
- -----
162
- ###### Comments and questions regarding this how-to are availible on [this GitHub Discussions Thread]({{ discussionsLink }})
163
-
164
- {% endif %}
165
- - id: footer_links
166
- type: MarkdownWithCode
167
- properties:
168
- content: |
169
- -----
170
- - id: links_box
171
- type: Box
172
- layout:
173
- span: 12
174
- contentGutter: 16
175
- blocks:
176
- - id: md_author
177
- type: MarkdownWithCode
178
- properties:
179
- content: |
180
- ###### Other interesting how-to guides:
181
- {% for item in articleLinks %}
182
- - id: links-{{ item.pageId }}
183
- type: Anchor
184
- properties:
185
- icon: AiOutlinedLink
186
- pageId: {{ item.pageId }}
187
- title: {{ item.title }}
188
- {% endfor %}
189
-
190
- {% if authorName %}
191
- - id: author_box
192
- type: Box
193
- layout:
194
- span: 12
195
- contentGutter: 16
196
- blocks:
197
- - id: md_author
198
- type: MarkdownWithCode
199
- properties:
200
- content: |
201
- ###### This how-to article was written by:
202
- {% if authorProfile %}
203
- - id: author
204
- type: Avatar
205
- layout:
206
- flex: 0 1 auto
207
- properties:
208
- src:
209
- _var: authorProfile
210
- size: large
211
- {% endif %}
212
- - id: author_name
213
- type: Html
214
- style:
215
- marginTop: -3
216
- layout:
217
- flex: 1 0 auto
218
- properties:
219
- html:
220
- _var: authorName
221
- {% endif %}