@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.
- package/dist/operators/client/filter_default_value.js +55 -0
- package/{public/modules/connectDocsearch.js → dist/operatorsClient.js} +1 -19
- package/{templates/blocks/schemaTransformer.js → dist/types.js} +5 -10
- package/package.json +19 -3
- package/404.yaml +0 -26
- package/CHANGELOG.md +0 -697
- package/actions/CallMethod.yaml +0 -57
- package/actions/JsAction.yaml +0 -281
- package/actions/Link.yaml +0 -120
- package/actions/Login.yaml +0 -123
- package/actions/Logout.yaml +0 -44
- package/actions/Message.yaml +0 -68
- package/actions/Notification.yaml +0 -84
- package/actions/Request.yaml +0 -70
- package/actions/Reset.yaml +0 -42
- package/actions/ResetValidation.yaml +0 -102
- package/actions/ScrollTo.yaml +0 -100
- package/actions/SetGlobal.yaml +0 -78
- package/actions/SetState.yaml +0 -85
- package/actions/Throw.yaml +0 -89
- package/actions/Validate.yaml +0 -104
- package/actions/Wait.yaml +0 -40
- package/blocks/all_icons.yaml +0 -803
- package/blocks/container/Affix.yaml +0 -26
- package/blocks/container/Alert.yaml +0 -27
- package/blocks/container/Badge.yaml +0 -27
- package/blocks/container/Box.yaml +0 -27
- package/blocks/container/Card.yaml +0 -29
- package/blocks/container/Collapse.yaml +0 -38
- package/blocks/container/Comment.yaml +0 -43
- package/blocks/container/ConfirmModal.yaml +0 -36
- package/blocks/container/Descriptions.yaml +0 -51
- package/blocks/container/Drawer.yaml +0 -46
- package/blocks/container/Label.yaml +0 -28
- package/blocks/container/Modal.yaml +0 -46
- package/blocks/container/PageHCF.yaml +0 -28
- package/blocks/container/PageHCSF.yaml +0 -29
- package/blocks/container/PageHSCF.yaml +0 -29
- package/blocks/container/PageHeaderMenu.yaml +0 -52
- package/blocks/container/PageSHCF.yaml +0 -29
- package/blocks/container/PageSiderMenu.yaml +0 -53
- package/blocks/container/Result.yaml +0 -34
- package/blocks/container/Span.yaml +0 -27
- package/blocks/container/Spin.yaml +0 -27
- package/blocks/container/Tabs.yaml +0 -41
- package/blocks/container/Tooltip.yaml +0 -38
- package/blocks/display/Anchor.yaml +0 -25
- package/blocks/display/Avatar.yaml +0 -23
- package/blocks/display/Breadcrumb.yaml +0 -28
- package/blocks/display/Button.yaml +0 -43
- package/blocks/display/DangerousHtml.yaml +0 -62
- package/blocks/display/DangerousMarkdown.yaml +0 -46
- package/blocks/display/Divider.yaml +0 -23
- package/blocks/display/EChart.yaml +0 -53
- package/blocks/display/Html.yaml +0 -50
- package/blocks/display/Icon.yaml +0 -23
- package/blocks/display/Img.yaml +0 -40
- package/blocks/display/Markdown.yaml +0 -31
- package/blocks/display/MarkdownWithCode.yaml +0 -46
- package/blocks/display/Menu.yaml +0 -48
- package/blocks/display/Message.yaml +0 -34
- package/blocks/display/MobileMenu.yaml +0 -47
- package/blocks/display/Notification.yaml +0 -34
- package/blocks/display/Paragraph.yaml +0 -30
- package/blocks/display/Progress.yaml +0 -52
- package/blocks/display/Skeleton.yaml +0 -27
- package/blocks/display/Statistic.yaml +0 -35
- package/blocks/display/Title.yaml +0 -32
- package/blocks/input/AutoComplete.yaml +0 -30
- package/blocks/input/ButtonSelector.yaml +0 -36
- package/blocks/input/CheckboxSelector.yaml +0 -36
- package/blocks/input/CheckboxSwitch.yaml +0 -56
- package/blocks/input/ChromeColorSelector.yaml +0 -24
- package/blocks/input/CircleColorSelector.yaml +0 -24
- package/blocks/input/ColorSelector.yaml +0 -24
- package/blocks/input/CompactColorSelector.yaml +0 -24
- package/blocks/input/DateRangeSelector.yaml +0 -26
- package/blocks/input/DateSelector.yaml +0 -26
- package/blocks/input/DateTimeSelector.yaml +0 -28
- package/blocks/input/GithubColorSelector.yaml +0 -24
- package/blocks/input/MonthSelector.yaml +0 -26
- package/blocks/input/MultipleSelector.yaml +0 -117
- package/blocks/input/NumberInput.yaml +0 -24
- package/blocks/input/Pagination.yaml +0 -33
- package/blocks/input/ParagraphInput.yaml +0 -32
- package/blocks/input/PasswordInput.yaml +0 -48
- package/blocks/input/RadioSelector.yaml +0 -36
- package/blocks/input/RatingSlider.yaml +0 -24
- package/blocks/input/S3UploadButton.yaml +0 -28
- package/blocks/input/Selector.yaml +0 -98
- package/blocks/input/SliderColorSelector.yaml +0 -24
- package/blocks/input/SwatchesColorSelector.yaml +0 -24
- package/blocks/input/Switch.yaml +0 -24
- package/blocks/input/TextArea.yaml +0 -27
- package/blocks/input/TextInput.yaml +0 -59
- package/blocks/input/TitleInput.yaml +0 -32
- package/blocks/input/TwitterColorSelector.yaml +0 -24
- package/blocks/input/WeekSelector.yaml +0 -26
- package/blocks/list/ControlledList.yaml +0 -191
- package/blocks/list/List.yaml +0 -157
- package/blocks/list/TimelineList.yaml +0 -136
- package/body.html +0 -1
- package/concepts/blocks.yaml +0 -249
- package/concepts/cli.yaml +0 -173
- package/concepts/connections-and-requests.yaml +0 -114
- package/concepts/context-and-state.yaml +0 -82
- package/concepts/custom-blocks.yaml +0 -190
- package/concepts/custom-code.yaml +0 -197
- package/concepts/events-and-actions.yaml +0 -224
- package/concepts/hosting-files.yaml +0 -50
- package/concepts/layout.yaml +0 -1464
- package/concepts/lists.yaml +0 -162
- package/concepts/lowdefy-schema.yaml +0 -245
- package/concepts/operators.yaml +0 -66
- package/concepts/overview.yaml +0 -48
- package/concepts/secrets.yaml +0 -56
- package/connections/AWSS3.yaml +0 -228
- package/connections/AmazonRedshift.yaml +0 -75
- package/connections/AxiosHttp.yaml +0 -194
- package/connections/Elasticsearch.yaml +0 -378
- package/connections/GoogleSheet.yaml +0 -332
- package/connections/Knex.yaml +0 -181
- package/connections/KnexRequests.md +0 -121
- package/connections/MSSQL.yaml +0 -90
- package/connections/MariaDB.yaml +0 -77
- package/connections/MongoDB.yaml +0 -581
- package/connections/MySQL.yaml +0 -92
- package/connections/OracleDB.yaml +0 -73
- package/connections/PostgreSQL.yaml +0 -99
- package/connections/Redis.yaml +0 -147
- package/connections/SQLite.yaml +0 -94
- package/connections/SendGridMail.yaml +0 -113
- package/connections/Stripe.yaml +0 -139
- package/deployment/aws-lambda.yaml +0 -128
- package/deployment/docker.yaml +0 -118
- package/deployment/netlify.yaml +0 -69
- package/deployment/node-server.yaml +0 -111
- package/head.html +0 -7
- package/howto/generate-csv.yaml.njk +0 -252
- package/howto/generate-pdf.yaml.njk +0 -651
- package/howto/generateCsv/lowdefy.yaml +0 -64
- package/howto/generateCsv/public/csvMake.js +0 -27
- package/howto/generatePdf/inv_template.yaml +0 -200
- package/howto/generatePdf/lowdefy.yaml +0 -117
- package/howto/generatePdf/my_header.html +0 -1
- package/howto/generatePdf/public/logo_example.png +0 -0
- package/howto/generatePdf/public/modules/importUmd.js +0 -7
- package/howto/generatePdf/public/modules/pdfMake.js +0 -7
- package/howto/generatePdf/public/modules/vfs_fonts.js +0 -12
- package/howto/use-refrences.md +0 -5
- package/introduction.yaml +0 -100
- package/lowdefy.yaml +0 -66
- package/menus.yaml +0 -832
- package/operators/_actions.yaml +0 -123
- package/operators/_and.yaml +0 -90
- package/operators/_args.yaml +0 -79
- package/operators/_array.yaml +0 -326
- package/operators/_base64.yaml +0 -56
- package/operators/_change_case.yaml +0 -347
- package/operators/_date.yaml +0 -71
- package/operators/_diff.yaml +0 -75
- package/operators/_divide.yaml +0 -46
- package/operators/_eq.yaml +0 -67
- package/operators/_event.yaml +0 -103
- package/operators/_format.yaml +0 -209
- package/operators/_function.yaml +0 -66
- package/operators/_get.yaml +0 -108
- package/operators/_global.yaml +0 -107
- package/operators/_gt.yaml +0 -65
- package/operators/_gte.yaml +0 -65
- package/operators/_hash.yaml +0 -109
- package/operators/_if.yaml +0 -44
- package/operators/_if_none.yaml +0 -61
- package/operators/_index.yaml +0 -65
- package/operators/_input.yaml +0 -114
- package/operators/_js.yaml +0 -189
- package/operators/_json.yaml +0 -128
- package/operators/_list_contexts.yaml +0 -37
- package/operators/_location.yaml +0 -59
- package/operators/_log.yaml +0 -36
- package/operators/_lt.yaml +0 -65
- package/operators/_lte.yaml +0 -65
- package/operators/_math.yaml +0 -374
- package/operators/_media.yaml +0 -86
- package/operators/_menu.yaml +0 -81
- package/operators/_mql.yaml +0 -101
- package/operators/_ne.yaml +0 -77
- package/operators/_not.yaml +0 -47
- package/operators/_number.yaml +0 -157
- package/operators/_nunjucks.yaml +0 -73
- package/operators/_object.yaml +0 -193
- package/operators/_operator.yaml +0 -47
- package/operators/_or.yaml +0 -81
- package/operators/_product.yaml +0 -59
- package/operators/_random.yaml +0 -104
- package/operators/_ref.yaml +0 -266
- package/operators/_regex.yaml +0 -83
- package/operators/_request.yaml +0 -50
- package/operators/_secret.yaml +0 -74
- package/operators/_state.yaml +0 -114
- package/operators/_string.yaml +0 -283
- package/operators/_subtract.yaml +0 -38
- package/operators/_sum.yaml +0 -59
- package/operators/_switch.yaml +0 -51
- package/operators/_type.yaml +0 -92
- package/operators/_uri.yaml +0 -56
- package/operators/_url_query.yaml +0 -120
- package/operators/_user.yaml +0 -107
- package/operators/_uuid.yaml +0 -114
- package/operators/_var.yaml +0 -105
- package/operators/_yaml.yaml +0 -107
- package/pages.yaml +0 -227
- package/public/images/authors/gervwyk.jpeg +0 -0
- package/public/images/authors/sandile.jpeg +0 -0
- package/public/images/howto/header_generate_csv.jpg +0 -0
- package/public/images/howto/header_generate_pdf.jpg +0 -0
- package/public/logo_example.png +0 -0
- package/public/lowdefy_app_schema.png +0 -0
- package/public/modules/csvMake.js +0 -27
- package/public/modules/filterDefaultValue.js +0 -48
- package/public/modules/importUmd.js +0 -7
- package/public/modules/index.js +0 -5
- package/public/modules/pdfMake.js +0 -7
- package/public/modules/test/filterDefaultValue.test.js +0 -91
- package/public/modules/vfs_fonts.js +0 -12
- package/public/sitemap.xml +0 -1024
- package/templates/actions.yaml.njk +0 -68
- package/templates/blocks/defaultValueTransformer.js +0 -53
- package/templates/blocks/exampleTransformer.js +0 -81
- package/templates/blocks/layout.yaml +0 -114
- package/templates/blocks/propertiesFormTransformer.js +0 -419
- package/templates/blocks/propertiesGetterTransformer.js +0 -132
- package/templates/blocks/schema.yaml.njk +0 -42
- package/templates/blocks/style.yaml +0 -26
- package/templates/blocks/template.yaml.njk +0 -495
- package/templates/blog.yaml.njk +0 -221
- package/templates/cli_command.yaml.njk +0 -37
- package/templates/footer.yaml.njk +0 -604
- package/templates/general.yaml.njk +0 -124
- package/templates/generateSitemap.js +0 -41
- package/templates/header.yaml +0 -138
- package/templates/navigation_buttons.yaml +0 -68
- package/templates/operators.yaml.njk +0 -82
- package/templates/operatorsMethodTransformer.js +0 -119
- package/templates/test/array.test.js +0 -1335
- package/templates/test/boolean.test.js +0 -98
- package/templates/test/button.test.js +0 -166
- package/templates/test/color.test.js +0 -126
- package/templates/test/enum.test.js +0 -105
- package/templates/test/icon.test.js +0 -109
- package/templates/test/integer.test.js +0 -99
- package/templates/test/manual.test.js +0 -238
- package/templates/test/number.test.js +0 -99
- package/templates/test/object.test.js +0 -434
- package/templates/test/oneOf.test.js +0 -794
- package/templates/test/string.test.js +0 -98
- package/templates/test/yaml.test.js +0 -605
- package/tutorial/next-steps.yaml +0 -83
- package/tutorial/tutorial-actions-operators-config.yaml +0 -142
- package/tutorial/tutorial-actions-operators.yaml +0 -436
- package/tutorial/tutorial-add-blocks-config.yaml +0 -109
- package/tutorial/tutorial-add-blocks.yaml +0 -195
- package/tutorial/tutorial-create-page-config.yaml +0 -77
- package/tutorial/tutorial-create-page.yaml +0 -196
- package/tutorial/tutorial-deploy.yaml +0 -146
- package/tutorial/tutorial-requests-config.yaml +0 -186
- package/tutorial/tutorial-requests.yaml +0 -338
- package/tutorial/tutorial-start.yaml +0 -282
- package/users/login-and-logout.yaml +0 -164
- package/users/openid-connect.yaml +0 -84
- package/users/protected-pages.yaml +0 -67
- package/users/roles.yaml +0 -70
- package/users/user-object.yaml +0 -73
- package/users/users-introduction.yaml +0 -80
- package/version.yaml +0 -1
|
@@ -1,124 +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: 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:
|
|
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
|
-
sider:
|
|
64
|
-
width: 256px
|
|
65
|
-
initialCollapsed:
|
|
66
|
-
_or:
|
|
67
|
-
- _eq:
|
|
68
|
-
- _media: size
|
|
69
|
-
- md
|
|
70
|
-
- _eq:
|
|
71
|
-
- _media: size
|
|
72
|
-
- lg
|
|
73
|
-
layout:
|
|
74
|
-
style:
|
|
75
|
-
background: '#FFFFFF'
|
|
76
|
-
footer:
|
|
77
|
-
style:
|
|
78
|
-
background: '#FFFFFF'
|
|
79
|
-
padding: 16px 0px 0px 0px
|
|
80
|
-
breadcrumb:
|
|
81
|
-
list:
|
|
82
|
-
- _ref: version.yaml
|
|
83
|
-
{% if section %}
|
|
84
|
-
- {{ section }}
|
|
85
|
-
- {{ pageTitle }}
|
|
86
|
-
{% endif %}
|
|
87
|
-
|
|
88
|
-
areas:
|
|
89
|
-
header:
|
|
90
|
-
blocks:
|
|
91
|
-
_ref: templates/header.yaml
|
|
92
|
-
footer:
|
|
93
|
-
blocks:
|
|
94
|
-
_ref:
|
|
95
|
-
path: templates/footer.yaml.njk
|
|
96
|
-
vars:
|
|
97
|
-
hideFeedback:
|
|
98
|
-
_var: hideFeedback
|
|
99
|
-
filePath:
|
|
100
|
-
_var: filePath
|
|
101
|
-
pageId:
|
|
102
|
-
_var: pageId
|
|
103
|
-
|
|
104
|
-
content:
|
|
105
|
-
justify: center
|
|
106
|
-
blocks:
|
|
107
|
-
- id: max_width
|
|
108
|
-
type: Box
|
|
109
|
-
layout:
|
|
110
|
-
flex: 0 1 800px
|
|
111
|
-
blocks:
|
|
112
|
-
{% if pageTitle %}
|
|
113
|
-
- id: page_title
|
|
114
|
-
type: Title
|
|
115
|
-
properties:
|
|
116
|
-
content:
|
|
117
|
-
_var: pageTitle
|
|
118
|
-
{% endif %}
|
|
119
|
-
- id: content
|
|
120
|
-
type: Box
|
|
121
|
-
layout:
|
|
122
|
-
contentGutter: 16
|
|
123
|
-
blocks:
|
|
124
|
-
_var: content
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020-2021 Lowdefy, Inc
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
|
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
See the License for the specific language governing permissions and
|
|
14
|
-
limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
function transformer(pages) {
|
|
18
|
-
const fs = require('fs');
|
|
19
|
-
const sitemapStart = `<?xml version="1.0" encoding="UTF-8"?>
|
|
20
|
-
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
21
|
-
`;
|
|
22
|
-
const sitemapEnd = `
|
|
23
|
-
</urlset>`;
|
|
24
|
-
const now = new Date();
|
|
25
|
-
const addPage = (acc, page) => {
|
|
26
|
-
return acc.concat(`
|
|
27
|
-
<url>
|
|
28
|
-
<loc>https://docs.lowdefy.com/${page.id}</loc>
|
|
29
|
-
<lastmod>${now.getFullYear()}-${now.getMonth() > 8 ? '' : 0}${now.getMonth() + 1}-${
|
|
30
|
-
now.getDate() > 9 ? '' : 0
|
|
31
|
-
}${now.getDate()}</lastmod>
|
|
32
|
-
</url>
|
|
33
|
-
`);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
const sitemap = pages.reduce(addPage, sitemapStart).concat(sitemapEnd);
|
|
37
|
-
|
|
38
|
-
fs.writeFileSync('public/sitemap.xml', sitemap);
|
|
39
|
-
return pages;
|
|
40
|
-
}
|
|
41
|
-
export default transformer;
|
package/templates/header.yaml
DELETED
|
@@ -1,138 +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
|
-
- id: search_box
|
|
15
|
-
type: Box
|
|
16
|
-
layout:
|
|
17
|
-
flex: 0 1 auto
|
|
18
|
-
align: middle
|
|
19
|
-
style:
|
|
20
|
-
marginRight: 8
|
|
21
|
-
blocks:
|
|
22
|
-
- id: docsearch
|
|
23
|
-
type: TextInput
|
|
24
|
-
layout:
|
|
25
|
-
flex: 0 1 auto
|
|
26
|
-
align: middle
|
|
27
|
-
properties:
|
|
28
|
-
label:
|
|
29
|
-
disabled: true
|
|
30
|
-
placeholder: Search
|
|
31
|
-
- id: docsearch_icon
|
|
32
|
-
type: Icon
|
|
33
|
-
layout:
|
|
34
|
-
flex: 0 1 auto
|
|
35
|
-
align: middle
|
|
36
|
-
style:
|
|
37
|
-
marginLeft: -22
|
|
38
|
-
properties:
|
|
39
|
-
name: AiOutlinedSearch
|
|
40
|
-
- id: why_button
|
|
41
|
-
type: Button
|
|
42
|
-
visible:
|
|
43
|
-
_not:
|
|
44
|
-
_or:
|
|
45
|
-
- _eq:
|
|
46
|
-
- _media: size
|
|
47
|
-
- md
|
|
48
|
-
- _eq:
|
|
49
|
-
- _media: size
|
|
50
|
-
- sm
|
|
51
|
-
- _eq:
|
|
52
|
-
- _media: size
|
|
53
|
-
- xs
|
|
54
|
-
layout:
|
|
55
|
-
flex: 1 0 auto
|
|
56
|
-
properties:
|
|
57
|
-
title: Why Lowdefy
|
|
58
|
-
type: text
|
|
59
|
-
size: large
|
|
60
|
-
events:
|
|
61
|
-
onClick:
|
|
62
|
-
- id: website_link
|
|
63
|
-
type: Link
|
|
64
|
-
params:
|
|
65
|
-
url: https://lowdefy.com
|
|
66
|
-
- id: tutorial_button
|
|
67
|
-
type: Button
|
|
68
|
-
visible:
|
|
69
|
-
_not:
|
|
70
|
-
_or:
|
|
71
|
-
- _eq:
|
|
72
|
-
- _media: size
|
|
73
|
-
- md
|
|
74
|
-
- _eq:
|
|
75
|
-
- _media: size
|
|
76
|
-
- sm
|
|
77
|
-
- _eq:
|
|
78
|
-
- _media: size
|
|
79
|
-
- xs
|
|
80
|
-
layout:
|
|
81
|
-
flex: 1 0 auto
|
|
82
|
-
properties:
|
|
83
|
-
title: Getting Started
|
|
84
|
-
type: text
|
|
85
|
-
size: large
|
|
86
|
-
events:
|
|
87
|
-
onClick:
|
|
88
|
-
- id: tutorial_link
|
|
89
|
-
type: Link
|
|
90
|
-
params:
|
|
91
|
-
pageId: tutorial-start
|
|
92
|
-
- id: community_button
|
|
93
|
-
type: Button
|
|
94
|
-
visible:
|
|
95
|
-
_not:
|
|
96
|
-
_or:
|
|
97
|
-
- _eq:
|
|
98
|
-
- _media: size
|
|
99
|
-
- sm
|
|
100
|
-
- _eq:
|
|
101
|
-
- _media: size
|
|
102
|
-
- xs
|
|
103
|
-
layout:
|
|
104
|
-
flex: 1 0 auto
|
|
105
|
-
properties:
|
|
106
|
-
title: Join our Discord
|
|
107
|
-
type: text
|
|
108
|
-
size: large
|
|
109
|
-
events:
|
|
110
|
-
onClick:
|
|
111
|
-
- id: website_link
|
|
112
|
-
type: Link
|
|
113
|
-
params:
|
|
114
|
-
url: https://discord.gg/WmcJgXt
|
|
115
|
-
- id: github_button
|
|
116
|
-
type: Button
|
|
117
|
-
visible:
|
|
118
|
-
_not:
|
|
119
|
-
_or:
|
|
120
|
-
- _eq:
|
|
121
|
-
- _media: size
|
|
122
|
-
- sm
|
|
123
|
-
- _eq:
|
|
124
|
-
- _media: size
|
|
125
|
-
- xs
|
|
126
|
-
layout:
|
|
127
|
-
flex: 1 0 auto
|
|
128
|
-
properties:
|
|
129
|
-
title: Star on Github
|
|
130
|
-
type: text
|
|
131
|
-
icon: AiFilledGithub
|
|
132
|
-
size: large
|
|
133
|
-
events:
|
|
134
|
-
onClick:
|
|
135
|
-
- id: website_link
|
|
136
|
-
type: Link
|
|
137
|
-
params:
|
|
138
|
-
url: https://github.com/lowdefy/lowdefy
|
|
@@ -1,68 +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: nav_buttons
|
|
16
|
-
type: Box
|
|
17
|
-
style:
|
|
18
|
-
marginTop: 40px
|
|
19
|
-
marginBottom: 80px
|
|
20
|
-
layout:
|
|
21
|
-
contentGutter: 16
|
|
22
|
-
blocks:
|
|
23
|
-
- id: previous_button
|
|
24
|
-
type: Button
|
|
25
|
-
layout:
|
|
26
|
-
span: 12
|
|
27
|
-
properties:
|
|
28
|
-
block: true
|
|
29
|
-
hideActionLoading: true
|
|
30
|
-
icon: AiOutlinedArrowLeft
|
|
31
|
-
size: large
|
|
32
|
-
title:
|
|
33
|
-
_var: previous_page_title
|
|
34
|
-
type: default
|
|
35
|
-
events:
|
|
36
|
-
onClick:
|
|
37
|
-
- id: link_back
|
|
38
|
-
type: Link
|
|
39
|
-
params:
|
|
40
|
-
pageId:
|
|
41
|
-
_var: previous_page_id
|
|
42
|
-
- id: scroll_to_top
|
|
43
|
-
type: ScrollTo
|
|
44
|
-
params:
|
|
45
|
-
top: 0
|
|
46
|
-
- id: next_button
|
|
47
|
-
type: Button
|
|
48
|
-
layout:
|
|
49
|
-
span: 12
|
|
50
|
-
properties:
|
|
51
|
-
block: true
|
|
52
|
-
hideActionLoading: true
|
|
53
|
-
icon: AiOutlinedArrowRight
|
|
54
|
-
size: large
|
|
55
|
-
title:
|
|
56
|
-
_var: next_page_title
|
|
57
|
-
type: default
|
|
58
|
-
events:
|
|
59
|
-
onClick:
|
|
60
|
-
- id: link_forward
|
|
61
|
-
type: Link
|
|
62
|
-
params:
|
|
63
|
-
pageId:
|
|
64
|
-
_var: next_page_id
|
|
65
|
-
- id: scroll_to_top
|
|
66
|
-
type: ScrollTo
|
|
67
|
-
params:
|
|
68
|
-
top: 0
|
|
@@ -1,82 +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
|
-
methods:
|
|
15
|
-
_var: methods
|
|
16
|
-
page:
|
|
17
|
-
_ref:
|
|
18
|
-
path: templates/general.yaml.njk
|
|
19
|
-
vars:
|
|
20
|
-
pageId:
|
|
21
|
-
_var: pageId
|
|
22
|
-
pageTitle:
|
|
23
|
-
_var: pageTitle
|
|
24
|
-
section: Operators
|
|
25
|
-
content:
|
|
26
|
-
- id: warning
|
|
27
|
-
type: Alert
|
|
28
|
-
visible:
|
|
29
|
-
_not:
|
|
30
|
-
_not:
|
|
31
|
-
_var: warning
|
|
32
|
-
properties:
|
|
33
|
-
message:
|
|
34
|
-
_var: warning
|
|
35
|
-
type: warning
|
|
36
|
-
- id: environment
|
|
37
|
-
type: Alert
|
|
38
|
-
visible:
|
|
39
|
-
_not:
|
|
40
|
-
_not:
|
|
41
|
-
_var: env
|
|
42
|
-
properties:
|
|
43
|
-
message:
|
|
44
|
-
_string.concat:
|
|
45
|
-
- 'Environment: '
|
|
46
|
-
- _var: env
|
|
47
|
-
type: info
|
|
48
|
-
- id: types
|
|
49
|
-
type: Markdown
|
|
50
|
-
style:
|
|
51
|
-
'.markdown-body':
|
|
52
|
-
fontSize: 14px
|
|
53
|
-
properties:
|
|
54
|
-
content:
|
|
55
|
-
_var: types
|
|
56
|
-
- id: description
|
|
57
|
-
type: MarkdownWithCode
|
|
58
|
-
properties:
|
|
59
|
-
content:
|
|
60
|
-
_var: description
|
|
61
|
-
{% if arguments %}
|
|
62
|
-
- id: arguments_title
|
|
63
|
-
type: Markdown
|
|
64
|
-
properties:
|
|
65
|
-
content: '#### Arguments'
|
|
66
|
-
- id: arguments
|
|
67
|
-
type: MarkdownWithCode
|
|
68
|
-
properties:
|
|
69
|
-
content:
|
|
70
|
-
_var: arguments
|
|
71
|
-
{% endif %}
|
|
72
|
-
{% if examples %}
|
|
73
|
-
- id: examples_title
|
|
74
|
-
type: Markdown
|
|
75
|
-
properties:
|
|
76
|
-
content: '#### Examples'
|
|
77
|
-
- id: examples
|
|
78
|
-
type: MarkdownWithCode
|
|
79
|
-
properties:
|
|
80
|
-
content:
|
|
81
|
-
_var: examples
|
|
82
|
-
{% endif %}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020-2021 Lowdefy, Inc
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
|
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
See the License for the specific language governing permissions and
|
|
14
|
-
limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
function transformer(obj) {
|
|
18
|
-
// console.log(JSON.stringify(obj, null, 2));
|
|
19
|
-
if (!obj.methods) {
|
|
20
|
-
return obj.page;
|
|
21
|
-
}
|
|
22
|
-
const contentArray = obj.page.areas.content.blocks[0].blocks[1].blocks;
|
|
23
|
-
const operatorName = obj.page.properties.title;
|
|
24
|
-
|
|
25
|
-
contentArray.push({
|
|
26
|
-
id: `methods_title`,
|
|
27
|
-
type: 'Markdown',
|
|
28
|
-
properties: {
|
|
29
|
-
content: '# Operator methods:',
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
obj.methods.forEach((method) => {
|
|
34
|
-
// console.log(method);
|
|
35
|
-
contentArray.push({
|
|
36
|
-
id: `${method.name}_link`,
|
|
37
|
-
type: 'Anchor',
|
|
38
|
-
properties: {
|
|
39
|
-
title: `${operatorName}.${method.name}`,
|
|
40
|
-
icon: 'AiOutlinedLink',
|
|
41
|
-
},
|
|
42
|
-
events: {
|
|
43
|
-
onClick: [
|
|
44
|
-
{
|
|
45
|
-
id: 'scroll',
|
|
46
|
-
type: 'ScrollTo',
|
|
47
|
-
params: {
|
|
48
|
-
blockId: `${method.name}_title`,
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
// const methodsBlocks = [];
|
|
57
|
-
obj.methods.forEach((method) => {
|
|
58
|
-
// console.log(method);
|
|
59
|
-
contentArray.push({
|
|
60
|
-
id: `${method.name}_title`,
|
|
61
|
-
type: 'Markdown',
|
|
62
|
-
properties: {
|
|
63
|
-
content: `## ${operatorName}.${method.name}`,
|
|
64
|
-
},
|
|
65
|
-
});
|
|
66
|
-
contentArray.push({
|
|
67
|
-
id: `${method.name}_types`,
|
|
68
|
-
type: 'Markdown',
|
|
69
|
-
style: {
|
|
70
|
-
'.markdown-body': { fontSize: '14px' },
|
|
71
|
-
},
|
|
72
|
-
properties: {
|
|
73
|
-
content: method.types,
|
|
74
|
-
},
|
|
75
|
-
});
|
|
76
|
-
contentArray.push({
|
|
77
|
-
id: `${method.name}_description`,
|
|
78
|
-
type: 'MarkdownWithCode',
|
|
79
|
-
properties: {
|
|
80
|
-
content: method.description,
|
|
81
|
-
},
|
|
82
|
-
});
|
|
83
|
-
if (method.arguments) {
|
|
84
|
-
contentArray.push({
|
|
85
|
-
id: `${method.name}_arguments_title`,
|
|
86
|
-
type: 'Markdown',
|
|
87
|
-
properties: {
|
|
88
|
-
content: '#### Arguments',
|
|
89
|
-
},
|
|
90
|
-
});
|
|
91
|
-
contentArray.push({
|
|
92
|
-
id: `${method.name}_arguments`,
|
|
93
|
-
type: 'MarkdownWithCode',
|
|
94
|
-
properties: {
|
|
95
|
-
content: method.arguments,
|
|
96
|
-
},
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
if (method.examples) {
|
|
100
|
-
contentArray.push({
|
|
101
|
-
id: `${method.name}_arguments_title`,
|
|
102
|
-
type: 'Markdown',
|
|
103
|
-
properties: {
|
|
104
|
-
content: '#### Examples',
|
|
105
|
-
},
|
|
106
|
-
});
|
|
107
|
-
contentArray.push({
|
|
108
|
-
id: `${method.name}_examples`,
|
|
109
|
-
type: 'MarkdownWithCode',
|
|
110
|
-
properties: {
|
|
111
|
-
content: method.examples,
|
|
112
|
-
},
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
return obj.page;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export default transformer;
|