@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,34 +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
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: Result
|
|
19
|
-
category: container
|
|
20
|
-
schema: ../plugins/blocks/blocks-antd/src/blocks/Result/schema.json
|
|
21
|
-
filePath: blocks/container/Result.yaml
|
|
22
|
-
description_content: |
|
|
23
|
-
Used to provide feedback the results of a task or error.
|
|
24
|
-
areas:
|
|
25
|
-
- content
|
|
26
|
-
- extra
|
|
27
|
-
examples:
|
|
28
|
-
- title: 500 Error
|
|
29
|
-
block:
|
|
30
|
-
id: error_example
|
|
31
|
-
type: Result
|
|
32
|
-
properties:
|
|
33
|
-
status: 500
|
|
34
|
-
title: An error occurred
|
|
@@ -1,27 +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
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: Span
|
|
19
|
-
category: container
|
|
20
|
-
schema: ../plugins/blocks/blocks-basic/src/blocks/Span/schema.json
|
|
21
|
-
filePath: blocks/container/Span.yaml
|
|
22
|
-
description_content: |
|
|
23
|
-
A Span is a container that places sub-blocks into a html `<span>`.
|
|
24
|
-
The Span has a single area, `content`.
|
|
25
|
-
|
|
26
|
-
areas:
|
|
27
|
-
- content
|
|
@@ -1,27 +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
|
-
# TODO: Create antd spinner block.
|
|
16
|
-
_ref:
|
|
17
|
-
path: templates/blocks/template.yaml.njk
|
|
18
|
-
vars:
|
|
19
|
-
block_type: Spin
|
|
20
|
-
category: container
|
|
21
|
-
schema: ../plugins/blocks/blocks-antd/src/blocks/Spin/schema.json
|
|
22
|
-
filePath: blocks/container/Spin.yaml
|
|
23
|
-
description_content: |
|
|
24
|
-
A loading spinner. Can be used as a display block, or as container wrapping another block, with the `spinning` property set in `state`.
|
|
25
|
-
areas:
|
|
26
|
-
- content
|
|
27
|
-
# - indicator
|
|
@@ -1,41 +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
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: Tabs
|
|
19
|
-
category: container
|
|
20
|
-
schema: ../plugins/blocks/blocks-antd/src/blocks/Tabs/schema.json
|
|
21
|
-
description_content: |
|
|
22
|
-
Tabs to easily switch between different views.
|
|
23
|
-
The key of each tabs is the area keys of the container and there is an `extra` content area.
|
|
24
|
-
init_state_values:
|
|
25
|
-
block.properties.extraAreaKey: extra
|
|
26
|
-
block.properties.tabs:
|
|
27
|
-
- key: tab1
|
|
28
|
-
title: Tab 1
|
|
29
|
-
icon: AiOutlinedMenu
|
|
30
|
-
- key: tab2
|
|
31
|
-
title: Tab 2
|
|
32
|
-
- key: tab3
|
|
33
|
-
disabled: true
|
|
34
|
-
title: Tab 3
|
|
35
|
-
user_defined_areas: true
|
|
36
|
-
areas:
|
|
37
|
-
- tab1
|
|
38
|
-
- tab2
|
|
39
|
-
- tab3
|
|
40
|
-
- panel3
|
|
41
|
-
- extra
|
|
@@ -1,38 +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
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: Tooltip
|
|
19
|
-
category: container
|
|
20
|
-
schema: ../plugins/blocks/blocks-antd/src/blocks/Tooltip/schema.json
|
|
21
|
-
description_content: |
|
|
22
|
-
A simple text popup tip. Can be used to display extra information about its children blocks.
|
|
23
|
-
init_state_values:
|
|
24
|
-
block.properties.title: Tooltip title
|
|
25
|
-
areas:
|
|
26
|
-
- content
|
|
27
|
-
examples:
|
|
28
|
-
- title: Button tooltip
|
|
29
|
-
block:
|
|
30
|
-
id: button_ex
|
|
31
|
-
type: Tooltip
|
|
32
|
-
properties:
|
|
33
|
-
title: Explains what happens when this button is clicked.
|
|
34
|
-
blocks:
|
|
35
|
-
- id: btn
|
|
36
|
-
type: Button
|
|
37
|
-
properties:
|
|
38
|
-
title: Button
|
|
@@ -1,25 +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
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: Anchor
|
|
19
|
-
category: display
|
|
20
|
-
schema: ../plugins/blocks/blocks-basic/src/blocks/Anchor/schema.json
|
|
21
|
-
filePath: blocks/display/Anchor.yaml
|
|
22
|
-
description_content: |
|
|
23
|
-
Anchor link block. Creates a clickable icon and/ or text.
|
|
24
|
-
|
|
25
|
-
> When changing the relationship (`rel`) property of the linked URL, make sure you understand the security implications. Read more about link types [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).
|
|
@@ -1,23 +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
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: Avatar
|
|
19
|
-
category: display
|
|
20
|
-
schema: ../plugins/blocks/blocks-antd/src/blocks/Avatar/schema.json
|
|
21
|
-
filePath: blocks/display/Avatar.yaml
|
|
22
|
-
description_content: |
|
|
23
|
-
Avatars can be used to represent people or objects. It supports images, Icons, or letters.
|
|
@@ -1,28 +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
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: Breadcrumb
|
|
19
|
-
category: display
|
|
20
|
-
schema: ../plugins/blocks/blocks-antd/src/blocks/Breadcrumb/schema.json
|
|
21
|
-
filePath: blocks/display/Breadcrumb.yaml
|
|
22
|
-
init_state_values:
|
|
23
|
-
__type_block.properties.list: string[]
|
|
24
|
-
__string_arr_block.properties.list:
|
|
25
|
-
- First
|
|
26
|
-
- Second
|
|
27
|
-
description_content: |
|
|
28
|
-
A breadcrumb displays the current location within a hierarchy. It allows going back to states higher up in the hierarchy with provided links.
|
|
@@ -1,43 +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
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: Button
|
|
19
|
-
category: display
|
|
20
|
-
schema: ../plugins/blocks/blocks-antd/src/blocks/Button/schema.json
|
|
21
|
-
filePath: blocks/display/Button.yaml
|
|
22
|
-
description_content: |
|
|
23
|
-
Button block.
|
|
24
|
-
|
|
25
|
-
examples:
|
|
26
|
-
- title: Block and ghost button with icon
|
|
27
|
-
block:
|
|
28
|
-
id: ghost_example
|
|
29
|
-
type: Button
|
|
30
|
-
properties:
|
|
31
|
-
title: Get started
|
|
32
|
-
block: true
|
|
33
|
-
ghost: true
|
|
34
|
-
icon: AiOutlinedRocket
|
|
35
|
-
- title: Round and type danger
|
|
36
|
-
block:
|
|
37
|
-
id: danger_example
|
|
38
|
-
type: Button
|
|
39
|
-
properties:
|
|
40
|
-
title: Delete Forever
|
|
41
|
-
shape: round
|
|
42
|
-
type: danger
|
|
43
|
-
icon: AiOutlinedWarning
|
|
@@ -1,62 +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
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: DangerousHtml
|
|
19
|
-
category: display
|
|
20
|
-
schema: ../plugins/blocks/blocks-basic/src/blocks/DangerousHtml/schema.json
|
|
21
|
-
filePath: blocks/display/DangerousHtml.yaml
|
|
22
|
-
init_property_values:
|
|
23
|
-
html: <a href="https://lowdefy.com">Lowdefy Website</a>
|
|
24
|
-
description_content: |
|
|
25
|
-
A block to render HTML with the ability to customize the [DOMPurify's options](https://github.com/cure53/DOMPurify#can-i-configure-dompurify).
|
|
26
|
-
|
|
27
|
-
> The DangerousHtml block sanitizes HTML using [DOMPurify's](https://github.com/cure53/DOMPurify) with the ability to customize the sanitization options. This comes with some security considerations, please consider [DOMPurify's Security Goals and Threat Model](https://github.com/cure53/DOMPurify/wiki/Security-Goals-&-Threat-Model) for more details regarding the security impact of using the DangerousHtml block.
|
|
28
|
-
>
|
|
29
|
-
> In short, it is strongly advised to never render any user input DangerousHtml content, only render hardcoded or trusted HTML content.
|
|
30
|
-
|
|
31
|
-
examples:
|
|
32
|
-
- title: Basic DangerousHtml
|
|
33
|
-
block:
|
|
34
|
-
id: basic_example
|
|
35
|
-
type: DangerousHtml
|
|
36
|
-
properties:
|
|
37
|
-
html: |
|
|
38
|
-
<div style="background: #123456; padding: 10px;"><h1 style="color: white;">A simple white title box</h1></div>
|
|
39
|
-
- title: DangerousHtml with iframes sanitized
|
|
40
|
-
block:
|
|
41
|
-
id: sanitized_iframes_example
|
|
42
|
-
type: DangerousHtml
|
|
43
|
-
properties:
|
|
44
|
-
html: |
|
|
45
|
-
The iframe was removed: <iframe width="560" height="315" src="https://www.youtube.com/embed/pkCJpDleMtI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> - title: DangerousHtml with iframes enabled
|
|
46
|
-
- title: DangerousHtml with iframes not sanitized
|
|
47
|
-
block:
|
|
48
|
-
id: iframes_example
|
|
49
|
-
type: DangerousHtml
|
|
50
|
-
properties:
|
|
51
|
-
DOMPurifyOptions:
|
|
52
|
-
ADD_TAGS:
|
|
53
|
-
- iframe
|
|
54
|
-
html: |
|
|
55
|
-
The iframe was not removed: <iframe width="560" height="315" src="https://www.youtube.com/embed/pkCJpDleMtI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
|
56
|
-
- title: DangerousHtml basic sanitization
|
|
57
|
-
block:
|
|
58
|
-
id: sanitized_example
|
|
59
|
-
type: DangerousHtml
|
|
60
|
-
properties:
|
|
61
|
-
html: |
|
|
62
|
-
<div style="color: red; border: 2px dashed blue; padding: 10px;"><script>alert("hello world")</script><img src=x onerror=alert("img") />A little bit of bad html sanitized.</div>
|
|
@@ -1,46 +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
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: DangerousMarkdown
|
|
19
|
-
category: display
|
|
20
|
-
schema: ../plugins/blocks/blocks-markdown/src/blocks/DangerousMarkdown/schema.json
|
|
21
|
-
filePath: blocks/display/DangerousMarkdown.yaml
|
|
22
|
-
init_property_values:
|
|
23
|
-
content: |
|
|
24
|
-
## Some Html content:
|
|
25
|
-
|
|
26
|
-
<div style="background: #123456; padding: 10px;"><h4 style="color: white;">A simple white title box</h4></div>
|
|
27
|
-
|
|
28
|
-
description_content: |
|
|
29
|
-
Render markdown content which can include HTML elements. If the markdown content does not need to render HTML, use the [Markdown](/Markdown) or [MarkdownWithCode](/MarkdownWithCode) blocks instead. Specify what HTML element to allow or remove by changing the default modifying the [DOMPurify's options](https://github.com/cure53/DOMPurify#can-i-configure-dompurify).
|
|
30
|
-
|
|
31
|
-
> The DangerousMarkdown block sanitizes the markdown content using [DOMPurify's](https://github.com/cure53/DOMPurify) before converting the markdown to HTML. DangerousMarkdown provides the ability to customize the sanitization options. This comes with some security considerations, please consider [DOMPurify's Security Goals and Threat Model](https://github.com/cure53/DOMPurify/wiki/Security-Goals-&-Threat-Model) for more details regarding the security impact of using the DangerousMarkdown block.
|
|
32
|
-
>
|
|
33
|
-
> In short, it is strongly advised to never render any user input DangerousMarkdown content, only render hardcoded or trusted markdown and HTML content.
|
|
34
|
-
|
|
35
|
-
examples:
|
|
36
|
-
- title: DangerousMarkdown headings
|
|
37
|
-
block:
|
|
38
|
-
id: iframes_example
|
|
39
|
-
type: DangerousMarkdown
|
|
40
|
-
properties:
|
|
41
|
-
DOMPurifyOptions":
|
|
42
|
-
ADD_TAGS":
|
|
43
|
-
- iframe
|
|
44
|
-
content: |
|
|
45
|
-
# Markdown with an iframe:
|
|
46
|
-
<iframe width="560" height="315" src="https://www.youtube.com/embed/pkCJpDleMtI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
|
@@ -1,23 +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
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: Divider
|
|
19
|
-
category: display
|
|
20
|
-
schema: ../plugins/blocks/blocks-antd/src/blocks/Divider/schema.json
|
|
21
|
-
filePath: blocks/display/Divider.yaml
|
|
22
|
-
description_content: |
|
|
23
|
-
A divider line. Can be used horizontally or vertically.
|
|
@@ -1,53 +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
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: EChart
|
|
19
|
-
category: display
|
|
20
|
-
schema: ../plugins/blocks/blocks-echarts/src/blocks/EChart/schema.json
|
|
21
|
-
filePath: blocks/display/EChart.yaml
|
|
22
|
-
init_property_values:
|
|
23
|
-
option: |
|
|
24
|
-
xAxis:
|
|
25
|
-
type: category
|
|
26
|
-
data:
|
|
27
|
-
- Mon
|
|
28
|
-
- Tue
|
|
29
|
-
- Wed
|
|
30
|
-
- Thu
|
|
31
|
-
- Fri
|
|
32
|
-
- Sat
|
|
33
|
-
- Sun
|
|
34
|
-
yAxis:
|
|
35
|
-
type: value
|
|
36
|
-
series:
|
|
37
|
-
- type: bar
|
|
38
|
-
data:
|
|
39
|
-
- 150
|
|
40
|
-
- 230
|
|
41
|
-
- 224
|
|
42
|
-
- 218
|
|
43
|
-
- 135
|
|
44
|
-
- 147
|
|
45
|
-
- 260
|
|
46
|
-
description_content: |
|
|
47
|
-
[Apache ECharts](https://echarts.apache.org/) is a feature rich javascript charting library.
|
|
48
|
-
|
|
49
|
-
This implementation is a minimal wrapper for the [echarts-for-react](https://www.npmjs.com/package/echarts-for-react) package. This means you write normal EChart config to create charts.
|
|
50
|
-
|
|
51
|
-
See the [Apache ECharts docs](https://echarts.apache.org/en/api.html#echarts) for the chart settings API. See the [ECharts theme builder](https://echarts.apache.org/en/theme-builder.html) to create beautiful custom themes.
|
|
52
|
-
|
|
53
|
-
> View more [Apache EChart examples](https://echarts.apache.org/examples/en/index.html).
|
package/blocks/display/Html.yaml
DELETED
|
@@ -1,50 +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
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: Html
|
|
19
|
-
category: display
|
|
20
|
-
schema: ../plugins/blocks/blocks-basic/src/blocks/Html/schema.json
|
|
21
|
-
filePath: blocks/display/Html.yaml
|
|
22
|
-
init_property_values:
|
|
23
|
-
html: <a href="https://lowdefy.com">Lowdefy Website</a>
|
|
24
|
-
description_content: |
|
|
25
|
-
A block to render HTML.
|
|
26
|
-
|
|
27
|
-
> The Html block sanitizes HTML using [DOMPurify's](https://github.com/cure53/DOMPurify) default configuration. This comes with some security considerations, please consider [DOMPurify's Security Goals and Threat Model](https://github.com/cure53/DOMPurify/wiki/Security-Goals-&-Threat-Model) for more details regarding the security impact of using the Html block. In short, it is strongly advised to never render any user input Html content, only render hardcoded or trusted HTML content.
|
|
28
|
-
|
|
29
|
-
examples:
|
|
30
|
-
- title: Basic DangerousHtml
|
|
31
|
-
block:
|
|
32
|
-
id: basic_example
|
|
33
|
-
type: Html
|
|
34
|
-
properties:
|
|
35
|
-
html: |
|
|
36
|
-
<div style="background: #123456; padding: 10px;"><h1 style="color: white;">A simple white title box</h1></div>
|
|
37
|
-
- title: DangerousHtml with iframes sanitized
|
|
38
|
-
block:
|
|
39
|
-
id: sanitized_iframes_example
|
|
40
|
-
type: Html
|
|
41
|
-
properties:
|
|
42
|
-
html: |
|
|
43
|
-
The iframe was removed: <iframe style="max-width: 512px;" width="100%" src="https://www.youtube.com/embed/7N7GWdlQJlU" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> - title: DangerousHtml with iframes enabled
|
|
44
|
-
- title: DangerousHtml basic sanitization
|
|
45
|
-
block:
|
|
46
|
-
id: sanitized_example
|
|
47
|
-
type: Html
|
|
48
|
-
properties:
|
|
49
|
-
html: |
|
|
50
|
-
<div style="color: red; border: 2px dashed blue; padding: 10px;"><script>alert("hello world")</script><img src=x onerror=alert("img") />A little bit of bad html sanitized.</div>
|
package/blocks/display/Icon.yaml
DELETED
|
@@ -1,23 +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
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: Icon
|
|
19
|
-
category: display
|
|
20
|
-
schema: ../plugins/blocks/blocks-basic/src/blocks/Icon/schema.json
|
|
21
|
-
filePath: blocks/display/Icon.yaml
|
|
22
|
-
description_content: |
|
|
23
|
-
A Icon component. Render Ant Design and other icons
|
package/blocks/display/Img.yaml
DELETED
|
@@ -1,40 +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
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: Img
|
|
19
|
-
category: display
|
|
20
|
-
schema: ../plugins/blocks/blocks-basic/src/blocks/Img/schema.json
|
|
21
|
-
filePath: blocks/display/Img.yaml
|
|
22
|
-
init_property_values:
|
|
23
|
-
src: 'https://docs.lowdefy.com/public/logo-light-theme.png'
|
|
24
|
-
description_content: |
|
|
25
|
-
A block to render a HTML [`<img/>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img) element.
|
|
26
|
-
examples:
|
|
27
|
-
- title: Basic Img
|
|
28
|
-
block:
|
|
29
|
-
id: basic_example
|
|
30
|
-
type: Img
|
|
31
|
-
properties:
|
|
32
|
-
src: https://docs.lowdefy.com/public/logo-light-theme.png
|
|
33
|
-
- title: srcset Img
|
|
34
|
-
block:
|
|
35
|
-
id: srcset_example
|
|
36
|
-
type: Img
|
|
37
|
-
properties:
|
|
38
|
-
src: https://docs.lowdefy.com/public/logo-light-theme.png
|
|
39
|
-
srcSet: https://docs.lowdefy.com/public/logo-square-light-theme.png 40w, https://docs.lowdefy.com/public/logo-light-theme.png 577w
|
|
40
|
-
sizes: '(max-width: 576px) 40px, 577px'
|
|
@@ -1,31 +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
|
-
_ref:
|
|
16
|
-
path: templates/blocks/template.yaml.njk
|
|
17
|
-
vars:
|
|
18
|
-
block_type: Markdown
|
|
19
|
-
category: display
|
|
20
|
-
schema: ../plugins/blocks/blocks-markdown/src/blocks/Markdown/schema.json
|
|
21
|
-
filePath: blocks/display/Markdown.yaml
|
|
22
|
-
init_property_values:
|
|
23
|
-
content: |
|
|
24
|
-
### Welcome to Lowdefy
|
|
25
|
-
|
|
26
|
-
Click [here](https://lowdefy.com) to learn more about Lowdefy.
|
|
27
|
-
|
|
28
|
-
description_content: |
|
|
29
|
-
Render markdown text content.
|
|
30
|
-
|
|
31
|
-
> For more details on markdown syntax see: [Markdown cheat sheet](https://guides.github.com/features/mastering-markdown/).
|