@lowdefy/docs 3.22.0-alpha.1 → 3.22.0
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.
- package/CHANGELOG.md +17 -0
- package/actions/JsAction.yaml +2 -2
- package/concepts/cli.yaml +2 -0
- package/concepts/custom-blocks.yaml +2 -2
- package/concepts/custom-code.yaml +3 -3
- package/connections/AxiosHttp.yaml +5 -5
- package/deployment/aws-lambda.yaml +2 -2
- package/deployment/docker.yaml +2 -2
- package/lowdefy.yaml +1 -1
- package/menus.yaml +6 -1
- package/operators/_actions.yaml +1 -1
- package/operators/_array.yaml +48 -0
- package/operators/_js.yaml +2 -2
- package/operators/_ref.yaml +4 -4
- package/package.json +2 -2
- package/public/sitemap.xml +213 -198
- package/tutorial/tutorial-create-page.yaml +1 -1
- package/tutorial/tutorial-start.yaml +1 -1
- package/users/login-and-logout.yaml +2 -2
- package/users/protected-pages.yaml +2 -2
- package/users/roles.yaml +2 -2
- package/users/users-introduction.yaml +1 -1
- package/version.yaml +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.22.0](https://github.com/lowdefy/lowdefy/compare/v3.22.0-alpha.1...v3.22.0) (2021-09-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **cli:** Use renderer served from blocks server url if configured. ([69d14b4](https://github.com/lowdefy/lowdefy/commit/69d14b4a862827beac955a5039df225af689f297)), closes [#840](https://github.com/lowdefy/lowdefy/issues/840)
|
|
12
|
+
* **docs:** Fix AxiosHttp connection type spelling in docs. ([d9b53a0](https://github.com/lowdefy/lowdefy/commit/d9b53a034111bc65813d81c036376d05274ff6c7))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* Add `_array.reduce` examples. ([c9a6b50](https://github.com/lowdefy/lowdefy/commit/c9a6b50017c05774654388244b06076646449ce9))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
# [3.22.0-alpha.1](https://github.com/lowdefy/lowdefy/compare/v3.22.0-alpha.0...v3.22.0-alpha.1) (2021-09-20)
|
|
7
24
|
|
|
8
25
|
|
package/actions/JsAction.yaml
CHANGED
|
@@ -66,7 +66,7 @@ _ref:
|
|
|
66
66
|
```yaml
|
|
67
67
|
# lowdefy.yaml
|
|
68
68
|
name: intercom-example
|
|
69
|
-
lowdefy: '3.
|
|
69
|
+
lowdefy: '3.22.0'
|
|
70
70
|
app:
|
|
71
71
|
html:
|
|
72
72
|
appendBody: |
|
|
@@ -137,7 +137,7 @@ _ref:
|
|
|
137
137
|
```yaml
|
|
138
138
|
# file: lowdefy.yaml
|
|
139
139
|
name: text-highlight-example
|
|
140
|
-
lowdefy: '3.
|
|
140
|
+
lowdefy: '3.22.0'
|
|
141
141
|
app:
|
|
142
142
|
html:
|
|
143
143
|
# Load the custom modules into the index.html head tag.
|
package/concepts/cli.yaml
CHANGED
|
@@ -162,6 +162,8 @@ _ref:
|
|
|
162
162
|
- `@lowdefy/blocks-markdown` to be hosted at `{BLOCK_SERVER_URL}/blocks-markdown/`.
|
|
163
163
|
- `@lowdefy/blocks-echarts` to be hosted at `{BLOCK_SERVER_URL}/blocks-echarts/`.
|
|
164
164
|
|
|
165
|
+
If you wish to run the CLI dev server, the `@lowdefy/renderer` package build artifacts (located in the `dist` directory) should also be served from `{BLOCK_SERVER_URL}/renderer/`.
|
|
166
|
+
|
|
165
167
|
- _ref:
|
|
166
168
|
path: templates/navigation_buttons.yaml
|
|
167
169
|
vars:
|
|
@@ -45,7 +45,7 @@ _ref:
|
|
|
45
45
|
|
|
46
46
|
```yaml
|
|
47
47
|
name: dashboard-app
|
|
48
|
-
lowdefy: 3.
|
|
48
|
+
lowdefy: 3.22.0
|
|
49
49
|
types:
|
|
50
50
|
AmChartsXY:
|
|
51
51
|
url: https://blocks-cdn.lowdefy.com/v3.10.1/blocks-amcharts/meta/AmChartsXY.json
|
|
@@ -95,7 +95,7 @@ _ref:
|
|
|
95
95
|
|
|
96
96
|
```yaml
|
|
97
97
|
name: dashboard-app
|
|
98
|
-
lowdefy: 3.
|
|
98
|
+
lowdefy: 3.22.0
|
|
99
99
|
types:
|
|
100
100
|
MyCustomBlock:
|
|
101
101
|
url: http://localhost:3002/meta/MyCustomBlock.json
|
|
@@ -53,7 +53,7 @@ _ref:
|
|
|
53
53
|
|
|
54
54
|
```yaml
|
|
55
55
|
name: google-analytics-example
|
|
56
|
-
lowdefy: 3.
|
|
56
|
+
lowdefy: 3.22.0
|
|
57
57
|
# ...
|
|
58
58
|
app:
|
|
59
59
|
html:
|
|
@@ -98,7 +98,7 @@ _ref:
|
|
|
98
98
|
```yaml
|
|
99
99
|
# /lowdefy.yaml
|
|
100
100
|
name: json-todos
|
|
101
|
-
lowdefy: 3.
|
|
101
|
+
lowdefy: 3.22.0
|
|
102
102
|
app:
|
|
103
103
|
html:
|
|
104
104
|
appendHead:
|
|
@@ -156,7 +156,7 @@ _ref:
|
|
|
156
156
|
```yaml
|
|
157
157
|
# /lowdefy.yaml
|
|
158
158
|
name: operator-example
|
|
159
|
-
lowdefy: 3.
|
|
159
|
+
lowdefy: 3.22.0
|
|
160
160
|
app:
|
|
161
161
|
html:
|
|
162
162
|
appendHead:
|
|
@@ -24,7 +24,7 @@ _ref:
|
|
|
24
24
|
type: MarkdownWithCode
|
|
25
25
|
properties:
|
|
26
26
|
content: |
|
|
27
|
-
The `
|
|
27
|
+
The `AxiosHttp` connection is used to connect to APIs and web servers using HTTP or HTTPS.
|
|
28
28
|
|
|
29
29
|
It uses the [axios](https://github.com/axios/axios) library.
|
|
30
30
|
|
|
@@ -35,14 +35,14 @@ _ref:
|
|
|
35
35
|
## Connections
|
|
36
36
|
|
|
37
37
|
Connection types:
|
|
38
|
-
-
|
|
38
|
+
- AxiosHttp
|
|
39
39
|
|
|
40
40
|
## Requests
|
|
41
41
|
|
|
42
42
|
Request types:
|
|
43
|
-
-
|
|
43
|
+
- AxiosHttp
|
|
44
44
|
|
|
45
|
-
###
|
|
45
|
+
### AxiosHttp
|
|
46
46
|
|
|
47
47
|
#### Properties
|
|
48
48
|
|
|
@@ -88,7 +88,7 @@ _ref:
|
|
|
88
88
|
###### A basic full example requesting data from https://jsonplaceholder.typicode.com
|
|
89
89
|
|
|
90
90
|
```yaml
|
|
91
|
-
lowdefy: 3.
|
|
91
|
+
lowdefy: 3.22.0
|
|
92
92
|
name: Lowdefy starter
|
|
93
93
|
connections:
|
|
94
94
|
- id: my_api
|
|
@@ -55,10 +55,10 @@ _ref:
|
|
|
55
55
|
COPY --chown=node:node . .
|
|
56
56
|
|
|
57
57
|
# Build the Lowdefy config using the Lowdefy CLI
|
|
58
|
-
RUN npx lowdefy@3.
|
|
58
|
+
RUN npx lowdefy@3.22.0 build
|
|
59
59
|
|
|
60
60
|
# Use the correct Lowdefy base image
|
|
61
|
-
FROM lowdefy/lowdefy-aws-lambda:3.
|
|
61
|
+
FROM lowdefy/lowdefy-aws-lambda:3.22.0
|
|
62
62
|
|
|
63
63
|
# Copy build output from build stage
|
|
64
64
|
COPY --from=build /home/node/lowdefy/.lowdefy/build ./build
|
package/deployment/docker.yaml
CHANGED
|
@@ -65,10 +65,10 @@ _ref:
|
|
|
65
65
|
COPY --chown=node:node . .
|
|
66
66
|
|
|
67
67
|
# Build the Lowdefy config using the Lowdefy CLI
|
|
68
|
-
RUN npx lowdefy@3.
|
|
68
|
+
RUN npx lowdefy@3.22.0 build
|
|
69
69
|
|
|
70
70
|
# Use the correct Lowdefy base image
|
|
71
|
-
FROM lowdefy/lowdefy:3.
|
|
71
|
+
FROM lowdefy/lowdefy:3.22.0
|
|
72
72
|
|
|
73
73
|
# Copy build output from build stage
|
|
74
74
|
COPY --from=build --chown=node:node /home/node/lowdefy/.lowdefy/build ./build
|
package/lowdefy.yaml
CHANGED
package/menus.yaml
CHANGED
|
@@ -760,9 +760,14 @@
|
|
|
760
760
|
title: Lowdefy Versions
|
|
761
761
|
icon: BranchesOutlined
|
|
762
762
|
links:
|
|
763
|
-
- id: v3.
|
|
763
|
+
- id: v3.22.0
|
|
764
764
|
type: MenuLink
|
|
765
765
|
url: https://docs.lowdefy.com
|
|
766
|
+
properties:
|
|
767
|
+
title: v3.22.0
|
|
768
|
+
- id: v3.21.2
|
|
769
|
+
type: MenuLink
|
|
770
|
+
url: https://612e10d3dc02710008646251--lowdefy-docs.netlify.app/introduction
|
|
766
771
|
properties:
|
|
767
772
|
title: v3.21.2
|
|
768
773
|
- id: v3.20.4
|
package/operators/_actions.yaml
CHANGED
package/operators/_array.yaml
CHANGED
|
@@ -198,6 +198,54 @@ _ref:
|
|
|
198
198
|
```
|
|
199
199
|
description: |
|
|
200
200
|
The `_array.reduce` method [executes a reducer function on each element of the array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce), resulting in single output value.
|
|
201
|
+
examples: |
|
|
202
|
+
The simplest example would probably be adding all the elements in an array:
|
|
203
|
+
```yaml
|
|
204
|
+
sum:
|
|
205
|
+
_array.reduce:
|
|
206
|
+
on: [1, 2, 3, 4]
|
|
207
|
+
callback:
|
|
208
|
+
_function:
|
|
209
|
+
__sum:
|
|
210
|
+
- __args: 0
|
|
211
|
+
- __args: 1
|
|
212
|
+
```
|
|
213
|
+
This will return `sum: 10`
|
|
214
|
+
|
|
215
|
+
You can start off by counting from 10 by specifying an `initialValue` for the reducer:
|
|
216
|
+
```yaml
|
|
217
|
+
sum:
|
|
218
|
+
_array.reduce:
|
|
219
|
+
on: [1, 2, 3, 4]
|
|
220
|
+
callback:
|
|
221
|
+
_function:
|
|
222
|
+
__sum:
|
|
223
|
+
- __args: 0
|
|
224
|
+
- __args: 1
|
|
225
|
+
initialValue: 10
|
|
226
|
+
```
|
|
227
|
+
This will return `sum: 20`
|
|
228
|
+
|
|
229
|
+
You can use the index of the array element to add some logic to your `callback`. For instance, when you reach index 2 of your array (the 3rd entry), add 100 instead of the current element value:
|
|
230
|
+
```yaml
|
|
231
|
+
sum:
|
|
232
|
+
_array.reduce:
|
|
233
|
+
on: [1, 2, 3, 4]
|
|
234
|
+
callback:
|
|
235
|
+
_function:
|
|
236
|
+
__sum:
|
|
237
|
+
- __args: 0
|
|
238
|
+
- __if:
|
|
239
|
+
test:
|
|
240
|
+
__eq:
|
|
241
|
+
- __args: 2
|
|
242
|
+
- 2
|
|
243
|
+
then: 100
|
|
244
|
+
else:
|
|
245
|
+
__args: 1
|
|
246
|
+
```
|
|
247
|
+
This will return `sum: 107`
|
|
248
|
+
|
|
201
249
|
- name: reduceRight
|
|
202
250
|
types: |
|
|
203
251
|
```
|
package/operators/_js.yaml
CHANGED
|
@@ -51,7 +51,7 @@ _ref:
|
|
|
51
51
|
```yaml
|
|
52
52
|
# lowdefy.yaml
|
|
53
53
|
name: make-me-primes
|
|
54
|
-
lowdefy: '3.
|
|
54
|
+
lowdefy: '3.22.0'
|
|
55
55
|
app:
|
|
56
56
|
html:
|
|
57
57
|
# This HTML will be appended to the head HTML tag in the Lowdefy app
|
|
@@ -119,7 +119,7 @@ _ref:
|
|
|
119
119
|
```yaml
|
|
120
120
|
# file: lowdefy.yaml
|
|
121
121
|
name: my-chart
|
|
122
|
-
lowdefy: '3.
|
|
122
|
+
lowdefy: '3.22.0'
|
|
123
123
|
app:
|
|
124
124
|
html:
|
|
125
125
|
appendHead:
|
package/operators/_ref.yaml
CHANGED
|
@@ -73,7 +73,7 @@ _ref:
|
|
|
73
73
|
###### Reference pages:
|
|
74
74
|
```yaml
|
|
75
75
|
# lowdefy.yaml
|
|
76
|
-
lowdefy: '3.
|
|
76
|
+
lowdefy: '3.22.0'
|
|
77
77
|
pages:
|
|
78
78
|
- _ref: pages/page1.yaml
|
|
79
79
|
- _ref: pages/page2.yaml
|
|
@@ -94,7 +94,7 @@ _ref:
|
|
|
94
94
|
```
|
|
95
95
|
Returns:
|
|
96
96
|
```
|
|
97
|
-
lowdefy: '3.
|
|
97
|
+
lowdefy: '3.22.0'
|
|
98
98
|
pages:
|
|
99
99
|
- id: page1
|
|
100
100
|
type: PageHeaderMenu
|
|
@@ -189,7 +189,7 @@ _ref:
|
|
|
189
189
|
|
|
190
190
|
```yaml
|
|
191
191
|
// lowdefy.yaml
|
|
192
|
-
lowdefy: 3.
|
|
192
|
+
lowdefy: 3.22.0
|
|
193
193
|
|
|
194
194
|
cli:
|
|
195
195
|
refResolver: resolvers/useLocalOrSharedConfig.js
|
|
@@ -215,7 +215,7 @@ _ref:
|
|
|
215
215
|
```
|
|
216
216
|
```yaml
|
|
217
217
|
// lowdefy.yaml
|
|
218
|
-
lowdefy: 3.
|
|
218
|
+
lowdefy: 3.22.0
|
|
219
219
|
|
|
220
220
|
pages:
|
|
221
221
|
- _ref:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/docs",
|
|
3
|
-
"version": "3.22.0
|
|
3
|
+
"version": "3.22.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "af37daa86e1ba73397eb65f65cacbcbb5461ec79"
|
|
44
44
|
}
|