Merge pull request #1117 from lowdefy/build-docs

Build docs for server
This commit is contained in:
Sam 2022-02-16 15:03:08 +02:00 committed by GitHub
commit 7f9658bb4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
121 changed files with 420 additions and 408 deletions

View File

@ -64,7 +64,10 @@ function buildEvents(block, pageContext) {
}". Received ${JSON.stringify(block.events[key].try)}`
);
}
if (!type.isArray(block.events[key].catch) && !type.isNone(block.events[key].catch)) {
if (type.isNone(block.events[key].catch)) {
block.events[key].catch = [];
}
if (!type.isArray(block.events[key].catch)) {
throw new Error(
`Catch events must be an array of actions at "${
block.blockId

View File

@ -120,6 +120,42 @@ test('block events actions as try catch arrays', async () => {
]);
});
test('block events actions as try array and catch not defined.', async () => {
const components = {
pages: [
{
id: 'page_1',
type: 'Container',
auth,
blocks: [
{
id: 'block_1',
type: 'Input',
events: {
onClick: {
try: [
{
id: 'action_1',
type: 'Reset',
},
],
},
},
},
],
},
],
};
const res = await buildPages({ components, context });
expect(get(res, 'pages.0.areas.content.blocks.0.events.onClick.try')).toEqual([
{
id: 'action_1',
type: 'Reset',
},
]);
expect(get(res, 'pages.0.areas.content.blocks.0.events.onClick.catch')).toEqual([]);
});
test('block events actions try not an array', async () => {
const components = {
pages: [

View File

@ -196,7 +196,7 @@ _ref:
type: TextInput
properties:
title: Type to search products
prefix: SearchOutlined
prefix: AiOutlinedSearch
events:
onChange:
- id: get_search # get search_products query for search.input

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Affix
category: container
schema: ../blocks/blocksAntd/src/blocks/Affix/Affix.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Affix/schema.json
filePath: blocks/container/Affix.yaml
description_content: |
An Affix block makes it's content stick to the viewport.

View File

@ -17,8 +17,8 @@ _ref:
vars:
block_type: Alert
category: container
schema: ../blocks/blocksAntd/src/blocks/Alert/Alert.json
filePath: blocks/display/Alert.yaml
schema: ../plugins/blocks/blocks-antd/src/blocks/Alert/schema.json
filePath: blocks/container/Alert.yaml
init_property_values:
message: Alerts help to highlight important information.
description_content: |

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Badge
category: container
schema: ../blocks/blocksAntd/src/blocks/Badge/Badge.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Badge/schema.json
filePath: blocks/container/Badge.yaml
description_content: |
Small numerical value or status descriptor for UI elements. Badge is used as a container block, describing its content block.

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Box
category: container
schema: ../blocks/blocksBasic/src/blocks/Box/Box.json
schema: ../plugins/blocks/blocks-basic/src/blocks/Box/schema.json
filePath: blocks/container/Box.yaml
description_content: |
A Box is a container that places sub-blocks into a html `<div>`.

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Card
category: container
schema: ../blocks/blocksAntd/src/blocks/Card/Card.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Card/schema.json
filePath: blocks/container/Card.yaml
description_content: |
A Card container places blocks on a white background with a card border.

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Collapse
category: container
schema: ../blocks/blocksAntd/src/blocks/Collapse/Collapse.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Collapse/schema.json
description_content: |
A container with collapsible panels. The area keys are user defined, and should be listed under the `panels` property. Each panel also has a 'extra' content area, the key of which can be defined in the `panels.$.extraKey` property.
init_state_values:

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Comment
category: container
schema: ../blocks/blocksAntd/src/blocks/Comment/Comment.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Comment/schema.json
filePath: blocks/container/Comment.yaml
init_state_values:
__type_block.properties.avatar: object
@ -33,11 +33,11 @@ _ref:
block:
id: comment_ex
type: Comment
properties:
properties:
author: The Dude
content: Yeah, well, you know, thats just, like, your opinion, man.
datetime: 18 January, 1998
avatar:
color: "#402B18"
avatar:
color: '#402B18'
content: TD
shape: square

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: ConfirmModal
category: container
schema: ../blocks/blocksAntd/src/blocks/ConfirmModal/ConfirmModal.json
schema: ../plugins/blocks/blocks-antd/src/blocks/ConfirmModal/schema.json
filePath: blocks/container/ConfirmModal.yaml
description_content: |
A popup container, presenting the user with a modal confirmation dialog.

View File

@ -17,8 +17,8 @@ _ref:
vars:
block_type: Descriptions
category: container
schema: ../blocks/blocksAntd/src/blocks/Descriptions/Descriptions.json
filePath: blocks/display/Descriptions.yaml
schema: ../plugins/blocks/blocks-antd/src/blocks/Descriptions/schema.json
filePath: blocks/container/Descriptions.yaml
init_state_values:
__type_block.properties.column: number
__type_block.properties.items: object[]

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Drawer
category: container
schema: ../blocks/blocksAntd/src/blocks/Drawer/Drawer.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Drawer/schema.json
filePath: blocks/container/Drawer.yaml
description_content: |
A panel which slides in from the edge of the screen.

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Label
category: container
schema: ../blocks/blocksAntd/src/blocks/Label/Label.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Label/schema.json
filePath: blocks/container/Label.yaml
description_content: |
A container that provides a label for a input block. Most input block use Label by default.
@ -26,4 +26,3 @@ _ref:
areas:
- content
# - label

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Modal
category: container
schema: ../blocks/blocksAntd/src/blocks/Modal/Modal.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Modal/schema.json
filePath: blocks/container/Modal.yaml
description_content: |
A popup container, presenting the user with a modal dialog.

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: PageHCF
category: container
schema: ../blocks/blocksAntd/src/blocks/PageHCF/PageHCF.json
schema: ../plugins/blocks/blocks-antd/src/blocks/PageHCF/schema.json
filePath: blocks/container/PageHCF.yaml
description_content: |
Page HCF provides a minimal layout structure for a page container with a header, content and footer area.

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: PageHCSF
category: container
schema: ../blocks/blocksAntd/src/blocks/PageHCSF/PageHCSF.json
schema: ../plugins/blocks/blocks-antd/src/blocks/PageHCSF/schema.json
filePath: blocks/container/PageHCSF.yaml
description_content: |
Page HCSF provides a minimal layout structure for a page container with a header, content, sider and footer arrangement.

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: PageHSCF
category: container
schema: ../blocks/blocksAntd/src/blocks/PageHSCF/PageHSCF.json
schema: ../plugins/blocks/blocks-antd/src/blocks/PageHSCF/schema.json
filePath: blocks/container/PageHSCF.yaml
description_content: |
Page HSCF provides a minimal layout structure for a page container with a header, sider, content, and footer arrangement.

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: PageHeaderMenu
category: container
schema: ../blocks/blocksAntd/src/blocks/PageHeaderMenu/PageHeaderMenu.json
schema: ../plugins/blocks/blocks-antd/src/blocks/PageHeaderMenu/schema.json
filePath: blocks/container/PageHeaderMenu.yaml
description_content: |
The Page Header Menu block provides a structured layout for a page with a header containing a menu, content and footer area.
@ -27,13 +27,13 @@ _ref:
type: MenuLink
pageId: home
properties:
icon: HomeOutlined
icon: AiOutlinedHome
title: Home
- id: pages
type: MenuGroup
properties:
title: Pages
icon: LayoutOutlined
icon: AiOutlinedLayout
links:
- id: page1
type: MenuLink

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: PageSHCF
category: container
schema: ../blocks/blocksAntd/src/blocks/PageSHCF/PageSHCF.json
schema: ../plugins/blocks/blocks-antd/src/blocks/PageSHCF/schema.json
filePath: blocks/container/PageSHCF.yaml
description_content: |
Page SHCF provides a minimal layout structure for a page container with a sider, header, content, and footer arrangement.

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: PageSiderMenu
category: container
schema: ../blocks/blocksAntd/src/blocks/PageSiderMenu/PageSiderMenu.json
schema: ../plugins/blocks/blocks-antd/src/blocks/PageSiderMenu/schema.json
filePath: blocks/container/PageSiderMenu.yaml
description_content: |
The Page Sider Menu block provides a structured layout for a page with a header, sider including menu, content and footer area.
@ -27,13 +27,13 @@ _ref:
type: MenuLink
pageId: home
properties:
icon: HomeOutlined
icon: AiOutlinedHome
title: Home
- id: pages
type: MenuGroup
properties:
title: Pages
icon: LayoutOutlined
icon: AiOutlinedLayout
links:
- id: page1
type: MenuLink

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Result
category: container
schema: ../blocks/blocksAntd/src/blocks/Result/Result.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Result/schema.json
filePath: blocks/container/Result.yaml
description_content: |
Used to provide feedback the results of a task or error.
@ -29,6 +29,6 @@ _ref:
block:
id: error_example
type: Result
properties:
properties:
status: 500
title: An error occurred

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Span
category: container
schema: ../blocks/blocksBasic/src/blocks/Span/Span.json
schema: ../plugins/blocks/blocks-basic/src/blocks/Span/schema.json
filePath: blocks/container/Span.yaml
description_content: |
A Span is a container that places sub-blocks into a html `<span>`.

View File

@ -12,16 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# TODO: Create antd spinner block.
_ref:
path: templates/blocks/template.yaml.njk
vars:
block_type: Spin
category: container
schema: ../blocks/blocksAntd/src/blocks/Spin/Spin.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Spin/schema.json
filePath: blocks/container/Spin.yaml
description_content: |
A loading spinner. Can be used as a display block, or as container wrapping another block, with the `spinning` property set in `state`.
areas:
- content
# - indicator

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Tabs
category: container
schema: ../blocks/blocksAntd/src/blocks/Tabs/Tabs.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Tabs/schema.json
description_content: |
Tabs to easily switch between different views.
The key of each tabs is the area keys of the container and there is an `extra` content area.
@ -26,7 +26,7 @@ _ref:
block.properties.tabs:
- key: tab1
title: Tab 1
icon: MenuOutlined
icon: AiOutlinedMenu
- key: tab2
title: Tab 2
- key: tab3

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Tooltip
category: container
schema: ../blocks/blocksAntd/src/blocks/Tooltip/Tooltip.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Tooltip/schema.json
description_content: |
A simple text popup tip. Can be used to display extra information about its children blocks.
init_state_values:

View File

@ -17,10 +17,9 @@ _ref:
vars:
block_type: Anchor
category: display
schema: ../blocks/blocksAntd/src/blocks/Anchor/Anchor.json
schema: ../plugins/blocks/blocks-basic/src/blocks/Anchor/schema.json
filePath: blocks/display/Anchor.yaml
description_content: |
Anchor link block. Creates a clickable icon and/ or text.
> 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).

View File

@ -17,8 +17,7 @@ _ref:
vars:
block_type: Avatar
category: display
schema: ../blocks/blocksAntd/src/blocks/Avatar/Avatar.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Avatar/schema.json
filePath: blocks/display/Avatar.yaml
description_content: |
Avatars can be used to represent people or objects. It supports images, Icons, or letters.

View File

@ -17,13 +17,12 @@ _ref:
vars:
block_type: Breadcrumb
category: display
schema: ../blocks/blocksAntd/src/blocks/Breadcrumb/Breadcrumb.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Breadcrumb/schema.json
filePath: blocks/display/Breadcrumb.yaml
init_state_values:
__type_block.properties.list: string[]
__string_arr_block.properties.list:
- First
- First
- Second
description_content: |
A breadcrumb displays the current location within a hierarchy. It allows going back to states higher up in the hierarchy with provided links.

View File

@ -31,7 +31,7 @@ _ref:
title: Get started
block: true
ghost: true
icon: RocketOutlined
icon: AiOutlinedRocket
- title: Round and type danger
block:
id: danger_example
@ -40,4 +40,4 @@ _ref:
title: Delete Forever
shape: round
type: danger
icon: WarningOutlined
icon: AiOutlinedWarning

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: DangerousHtml
category: display
schema: ../blocks/blocksBasic/src/blocks/DangerousHtml/DangerousHtml.json
schema: ../plugins/blocks/blocks-basic/src/blocks/DangerousHtml/schema.json
filePath: blocks/display/DangerousHtml.yaml
init_property_values:
html: <a href="https://lowdefy.com">Lowdefy Website</a>

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: DangerousMarkdown
category: display
schema: ../blocks/blocksMarkdown/src/blocks/DangerousMarkdown/DangerousMarkdown.json
schema: ../plugins/blocks/blocks-markdown/src/blocks/DangerousMarkdown/schema.json
filePath: blocks/display/DangerousMarkdown.yaml
init_property_values:
content: |

View File

@ -17,9 +17,7 @@ _ref:
vars:
block_type: Divider
category: display
schema: ../blocks/blocksAntd/src/blocks/Divider/Divider.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Divider/schema.json
filePath: blocks/display/Divider.yaml
description_content: |
A divider line. Can be used horizontally or vertically.

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: EChart
category: display
schema: ../blocks/blocksECharts/src/blocks/EChart/EChart.json
schema: ../plugins/blocks/blocks-echarts/src/blocks/EChart/schema.json
filePath: blocks/display/EChart.yaml
init_property_values:
option: |

View File

@ -17,12 +17,12 @@ _ref:
vars:
block_type: Html
category: display
schema: ../blocks/blocksBasic/src/blocks/Html/Html.json
schema: ../plugins/blocks/blocks-basic/src/blocks/Html/schema.json
filePath: blocks/display/Html.yaml
init_property_values:
html: <a href="https://lowdefy.com">Lowdefy Website</a>
description_content: |
A block to render HTML.
A block to render HTML.
> 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.

View File

@ -17,9 +17,7 @@ _ref:
vars:
block_type: Icon
category: display
schema: ../blocks/blocksAntd/src/blocks/Icon/Icon.json
schema: ../plugins/blocks/blocks-basic/src/blocks/Icon/schema.json
filePath: blocks/display/Icon.yaml
description_content: |
A Icon component. Render Ant Design and other icons

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Img
category: display
schema: ../blocks/blocksBasic/src/blocks/Img/Img.json
schema: ../plugins/blocks/blocks-basic/src/blocks/Img/schema.json
filePath: blocks/display/Img.yaml
init_property_values:
src: 'https://docs.lowdefy.com/public/logo-light-theme.png'

View File

@ -17,16 +17,15 @@ _ref:
vars:
block_type: Markdown
category: display
schema: ../blocks/blocksMarkdown/src/blocks/Markdown/Markdown.json
schema: ../plugins/blocks/blocks-markdown/src/blocks/Markdown/schema.json
filePath: blocks/display/Markdown.yaml
init_property_values:
content: |
### Welcome to Lowdefy
### Welcome to Lowdefy
Click [here](https://lowdefy.com) to learn more about Lowdefy.
description_content: |
Render markdown text content.
Render markdown text content.
> For more details on markdown syntax see: [Markdown cheat sheet](https://guides.github.com/features/mastering-markdown/).

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: MarkdownWithCode
category: display
schema: ../blocks/blocksMarkdown/src/blocks/MarkdownWithCode/MarkdownWithCode.json
schema: ../plugins/blocks/blocks-markdown/src/blocks/MarkdownWithCode/schema.json
filePath: blocks/display/MarkdownWithCode.yaml
init_property_values:
content: |
@ -29,7 +29,7 @@ _ref:
Hmmm… 🤔
Fine the explanation [here](https://github.com/denysdovhan/wtfjs#math-with-true-and-false)
description_content: |
Render markdown content with code highlighting support. Currently, the following languages are supported:
- HTML: `html`
@ -42,7 +42,5 @@ _ref:
- Typescript: `typescript`, `ts`,
- XML: `xml`
- YAML: `yaml`
> For more details on markdown syntax see: [Markdown cheat sheet](https://guides.github.com/features/mastering-markdown/).

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Menu
category: display
schema: ../blocks/blocksAntd/src/blocks/Menu/Menu.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Menu/schema.json
filePath: blocks/display/Menu.yaml
description_content: |
A menu block used to display page links.
@ -27,13 +27,13 @@ _ref:
type: MenuLink
pageId: home
properties:
icon: HomeOutlined
icon: AiOutlinedHome
title: Home
- id: pages
type: MenuGroup
properties:
title: Pages
icon: LayoutOutlined
icon: AiOutlinedLayout
links:
- id: page1
type: MenuLink

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Message
category: display
schema: ../blocks/blocksAntd/src/blocks/Message/Message.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Message/schema.json
filePath: blocks/display/Message.yaml
description_content: |
Display a popup message on the page.

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: MobileMenu
category: display
schema: ../blocks/blocksAntd/src/blocks/MobileMenu/MobileMenu.json
schema: ../plugins/blocks/blocks-antd/src/blocks/MobileMenu/schema.json
description_content: |
A menu designed for mobile devices. Renders a button that opens a Drawer with the menu inside. This menu is used by default in `PageHeaderMenu` and `PageSiderMenu` on mobile devices.
init_state_values:
@ -26,13 +26,13 @@ _ref:
type: MenuLink
pageId: home
properties:
icon: HomeOutlined
icon: AiOutlinedHome
title: Home
- id: pages
type: MenuGroup
properties:
title: Pages
icon: LayoutOutlined
icon: AiOutlinedLayout
links:
- id: page1
type: MenuLink
@ -45,4 +45,3 @@ _ref:
- id: page3
type: MenuLink
pageId: page3

View File

@ -17,13 +17,13 @@ _ref:
vars:
block_type: Notification
category: display
schema: ../blocks/blocksAntd/src/blocks/Notification/Notification.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Notification/schema.json
filePath: blocks/display/Notification.yaml
description_content: |
Display a popup notification on the page.
> To display a notification, invoke the open method.
methods:
- name: open
onClick:

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Paragraph
category: display
schema: ../blocks/blocksAntd/src/blocks/Paragraph/Paragraph.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Paragraph/schema.json
filePath: blocks/display/Paragraph.yaml
init_state_values:
__type_block.properties.copyable: boolean
@ -25,8 +25,6 @@ _ref:
__boolean_block.properties.copyable: false
__boolean_block.properties.ellipsis: false
init_property_values:
content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'
description_content: |
A paragraph text component.

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Progress
category: display
schema: ../blocks/blocksAntd/src/blocks/Progress/Progress.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Progress/schema.json
filePath: blocks/display/Progress.yaml
init_property_values:
percent: 30
@ -29,25 +29,24 @@ _ref:
block:
id: line_example
type: Progress
properties:
properties:
type: line
percent: 60
strokeColor: "#fcb900"
strokeColor: '#fcb900'
status: active
- title: Circle progress
block:
id: circle_example
type: Progress
properties:
type: circle
properties:
type: circle
percent: 60
strokeColor: "#52c41a"
strokeColor: '#52c41a'
- title: Dashboard progress
block:
id: dashboard_example
type: Progress
properties:
properties:
type: dashboard
percent: 60
strokeColor: "#1890ff"
strokeColor: '#1890ff'

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Skeleton
category: display
schema: ../blocks/blocksAntd/src/blocks/Skeleton/Skeleton.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Skeleton/schema.json
filePath: blocks/display/Skeleton.yaml
description_content: |
Skeleton block to use as a loading place holder.
@ -25,4 +25,3 @@ _ref:
examples:
- title: Basic skeleton
properties: '{}'

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Statistic
category: display
schema: ../blocks/blocksAntd/src/blocks/Statistic/Statistic.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Statistic/schema.json
filePath: blocks/display/Statistic.yaml
init_state_values:
__type_block.properties.value: number
@ -30,8 +30,6 @@ _ref:
block:
id: basic_example
type: Statistic
properties:
properties:
value: 99.5
prefixIcon: AlertTwoTone
prefixIcon: AiTwoToneAlert

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: Title
category: display
schema: ../blocks/blocksAntd/src/blocks/Title/Title.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Title/schema.json
filePath: blocks/display/Title.yaml
init_state_values:
__type_block.properties.copyable: boolean

View File

@ -18,7 +18,7 @@ _ref:
block_type: AutoComplete
value_type: string
category: input
schema: ../blocks/blocksAntd/src/blocks/AutoComplete/AutoComplete.json
schema: ../plugins/blocks/blocks-antd/src/blocks/AutoComplete/schema.json
filePath: blocks/input/AutoComplete.yaml
init_property_values:
options:
@ -28,4 +28,3 @@ _ref:
The AutoComplete block is a text input that has a list of suggestions for the user. These suggestions are filtered as the user fills in the input. The user is also allowed to fill in an input not part of that list.
>If you need the user to select only from a list of options, use a block like the `Selector` block instead.

View File

@ -18,7 +18,7 @@ _ref:
block_type: ButtonSelector
value_type: any
category: input
schema: ../blocks/blocksAntd/src/blocks/ButtonSelector/ButtonSelector.json
schema: ../plugins/blocks/blocks-antd/src/blocks/ButtonSelector/schema.json
filePath: blocks/input/ButtonSelector.yaml
init_state_values:
__type_block.properties.options: object[]
@ -34,4 +34,3 @@ _ref:
The options for the selector can be provides as either an array of primitive values (strings, numbers, booleans or dates), or as an array of label-value pairs, where the label is a string, and the value can be of any type, including objects like dates and arrays.
> Other selector blocks are `CheckboxSelector`, `MultipleSelector`, `RadioSelector` and `Selector`.

View File

@ -18,7 +18,7 @@ _ref:
block_type: CheckboxSelector
value_type: any[]
category: input
schema: ../blocks/blocksAntd/src/blocks/CheckboxSelector/CheckboxSelector.json
schema: ../plugins/blocks/blocks-antd/src/blocks/CheckboxSelector/schema.json
filePath: blocks/input/CheckboxSelector.yaml
init_state_values:
__type_block.properties.options: object[]
@ -34,4 +34,3 @@ _ref:
The options for the selector can be provides as either an array of primitive values (strings, numbers, booleans, or dates), or as an array of label-value pairs, where the label is a string, and the value can be of any type, including objects like dates and arrays.
> Other selector blocks are `ButtonSelector`, `MultipleSelector`, `RadioSelector` and `Selector`.

View File

@ -18,7 +18,7 @@ _ref:
block_type: CheckboxSwitch
value_type: any[]
category: input
schema: ../blocks/blocksAntd/src/blocks/CheckboxSwitch/CheckboxSwitch.json
schema: ../plugins/blocks/blocks-antd/src/blocks/CheckboxSwitch/schema.json
filePath: blocks/input/CheckboxSwitch.yaml
description_content: |
The `CheckboxSwitch` block allows a user to select a boolean value between (true/false).

View File

@ -18,8 +18,7 @@ _ref:
block_type: ChromeColorSelector
value_type: string
category: input
schema: ../blocks/blocksColorSelectors/src/blocks/ChromeColorSelector/ChromeColorSelector.json
schema: ../plugins/blocks/blocks-color-selectors/src/blocks/ChromeColorSelector/schema.json
filePath: blocks/input/ChromeColorSelector.yaml
description_content: |
A color selector component similar to the chrome developer tools color selector.

View File

@ -18,8 +18,7 @@ _ref:
block_type: CircleColorSelector
value_type: string
category: input
schema: ../blocks/blocksColorSelectors/src/blocks/CircleColorSelector/CircleColorSelector.json
schema: ../plugins/blocks/blocks-color-selectors/src/blocks/CircleColorSelector/schema.json
filePath: blocks/input/CircleColorSelector.yaml
description_content: |
A color selector component which displays the colors in circles.

View File

@ -18,8 +18,7 @@ _ref:
block_type: ColorSelector
value_type: string
category: input
schema: ../blocks/blocksColorSelectors/src/blocks/ColorSelector/ColorSelector.json
schema: ../plugins/blocks/blocks-color-selectors/src/blocks/ColorSelector/schema.json
filePath: blocks/input/ColorSelector.yaml
description_content: |
A color selector component.

View File

@ -18,8 +18,7 @@ _ref:
block_type: CompactColorSelector
value_type: string
category: input
schema: ../blocks/blocksColorSelectors/src/blocks/CompactColorSelector/CompactColorSelector.json
schema: ../plugins/blocks/blocks-color-selectors/src/blocks/CompactColorSelector/schema.json
filePath: blocks/input/CompactColorSelector.yaml
description_content: |
A compact color selector component.

View File

@ -18,10 +18,9 @@ _ref:
block_type: DateRangeSelector
value_type: date[]
category: input
schema: ../blocks/blocksAntd/src/blocks/DateRangeSelector/DateRangeSelector.json
schema: ../plugins/blocks/blocks-antd/src/blocks/DateRangeSelector/schema.json
filePath: blocks/input/DateRangeSelector.yaml
description_content: |
The `DateRangeSelector` block allows the user to choose a start date and an end date for a date range. The selected range is saved as an array with two date elements, the start and end dates.
> Other date type blocks are `DateSelector`, `DateTimeSelector`, `MonthSelector` and `WeekSelector`.

View File

@ -18,10 +18,9 @@ _ref:
block_type: DateSelector
value_type: date
category: input
schema: ../blocks/blocksAntd/src/blocks/DateSelector/DateSelector.json
schema: ../plugins/blocks/blocks-antd/src/blocks/DateSelector/schema.json
filePath: blocks/input/DateSelector.yaml
description_content: |
The `DateSelector` block allows a user to select a date from a calender.
> Other date type blocks are `DateRangeSelector`, `DateTimeSelector`, `MonthSelector` and `WeekSelector`.

View File

@ -18,7 +18,7 @@ _ref:
block_type: DateTimeSelector
value_type: date
category: input
schema: ../blocks/blocksAntd/src/blocks/DateTimeSelector/DateTimeSelector.json
schema: ../plugins/blocks/blocks-antd/src/blocks/DateTimeSelector/schema.json
filePath: blocks/input/DateTimeSelector.yaml
description_content: |
The `DateTimeSelector` block allows a user to select a date and a time from a calender.
@ -26,4 +26,3 @@ _ref:
By default, the time selected by the user is converted to GMT time, based on the timezone of the user. The selector will also display the selected time in the correct timezone for that user. If the `selectGMT` property is set to true, the value of the selector will be the time selected by the user as GMT time, and not in the timezone of the user.
> Other date type blocks are `DateRangeSelector`, `DateTimeSelector`, `MonthSelector` and `WeekSelector`.

View File

@ -18,8 +18,7 @@ _ref:
block_type: GithubColorSelector
value_type: string
category: input
schema: ../blocks/blocksColorSelectors/src/blocks/GithubColorSelector/GithubColorSelector.json
schema: ../plugins/blocks/blocks-color-selectors/src/blocks/GithubColorSelector/schema.json
filePath: blocks/input/GithubColorSelector.yaml
description_content: |
A color selector component similar to the Github color selector.

View File

@ -18,10 +18,9 @@ _ref:
block_type: MonthSelector
value_type: date
category: input
schema: ../blocks/blocksAntd/src/blocks/MonthSelector/MonthSelector.json
schema: ../plugins/blocks/blocks-antd/src/blocks/MonthSelector/schema.json
filePath: blocks/input/MonthSelector.yaml
description_content: |
The `MonthSelector` block allows a user to select a month. The value is a date object, with day and time values of midnight on the first day of the month GMT.
> Other date type blocks are `DateRangeSelector`, `DateSelector`, `DateTimeSelector` and `WeekSelector`.

View File

@ -18,7 +18,7 @@ _ref:
block_type: MultipleSelector
value_type: any[]
category: input
schema: ../blocks/blocksAntd/src/blocks/MultipleSelector/MultipleSelector.json
schema: ../plugins/blocks/blocks-antd/src/blocks/MultipleSelector/schema.json
filePath: blocks/input/MultipleSelector.yaml
init_state_values:
__type_block.properties.options: object[]

View File

@ -18,7 +18,7 @@ _ref:
block_type: NumberInput
value_type: number
category: input
schema: ../blocks/blocksAntd/src/blocks/NumberInput/NumberInput.json
schema: ../plugins/blocks/blocks-antd/src/blocks/NumberInput/schema.json
filePath: blocks/input/NumberInput.yaml
description_content: |
The `NumberInput` allows a user to input a number.

View File

@ -18,16 +18,16 @@ _ref:
block_type: Pagination
value_type: object
category: input
schema: ../blocks/blocksAntd/src/blocks/Pagination/Pagination.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Pagination/schema.json
filePath: blocks/input/Pagination.yaml
init_property_values:
pageSizeOptions: [10, 20, 30, 40]
init_state_values:
block_id:
block_id:
current: 0
pageSize: 10
skip: 0
description_content: |
The `Pagination` controls user input for pagination purposes.
> This block does not paginate requests, it only manage pagination parameters which can be used to control pagination requests.

View File

@ -18,7 +18,7 @@ _ref:
block_type: ParagraphInput
value_type: string
category: input
schema: ../blocks/blocksAntd/src/blocks/ParagraphInput/ParagraphInput.json
schema: ../plugins/blocks/blocks-antd/src/blocks/ParagraphInput/schema.json
filePath: blocks/input/ParagraphInput.yaml
init_state_values:
__type_block.properties.copyable: boolean

View File

@ -18,7 +18,7 @@ _ref:
block_type: PasswordInput
value_type: string
category: input
schema: ../blocks/blocksAntd/src/blocks/PasswordInput/PasswordInput.json
schema: ../plugins/blocks/blocks-antd/src/blocks/PasswordInput/schema.json
filePath: blocks/input/PasswordInput.yaml
description_content: |
The `PasswordInput` block is a single line password input.

View File

@ -18,7 +18,7 @@ _ref:
block_type: RadioSelector
value_type: any
category: input
schema: ../blocks/blocksAntd/src/blocks/RadioSelector/RadioSelector.json
schema: ../plugins/blocks/blocks-antd/src/blocks/RadioSelector/schema.json
filePath: blocks/input/RadioSelector.yaml
init_state_values:
__type_block.properties.options: object[]

View File

@ -18,7 +18,7 @@ _ref:
block_type: RatingSlider
value_type: number
category: input
schema: ../blocks/blocksAntd/src/blocks/RatingSlider/RatingSlider.json
schema: ../plugins/blocks/blocks-antd/src/blocks/RatingSlider/schema.json
filePath: blocks/input/RatingSlider.yaml
description_content: |
The `RatingSlider` block allows a user to choose a numerical value on a slider input. It is typically used for scores or ratings. It has the option to have a "Not Applicable" checkbox, which leaves the value as null.

View File

@ -18,7 +18,7 @@ _ref:
block_type: Selector
value_type: any
category: input
schema: ../blocks/blocksAntd/src/blocks/Selector/Selector.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Selector/schema.json
filePath: blocks/input/Selector.yaml
init_state_values:
__type_block.properties.options: object[]

View File

@ -18,7 +18,7 @@ _ref:
block_type: SliderColorSelector
value_type: string
category: input
schema: ../blocks/blocksColorSelectors/src/blocks/SliderColorSelector/SliderColorSelector.json
schema: ../plugins/blocks/blocks-color-selectors/src/blocks/SliderColorSelector/schema.json
filePath: blocks/input/SliderColorSelector.yaml
description_content: |
A slider color selector component.

View File

@ -18,7 +18,7 @@ _ref:
block_type: SwatchesColorSelector
value_type: string
category: input
schema: ../blocks/blocksColorSelectors/src/blocks/SwatchesColorSelector/SwatchesColorSelector.json
schema: ../plugins/blocks/blocks-color-selectors/src/blocks/SwatchesColorSelector/schema.json
filePath: blocks/input/SwatchesColorSelector.yaml
description_content: |
A swatches color selector component.

View File

@ -18,7 +18,7 @@ _ref:
block_type: Switch
value_type: boolean
category: input
schema: ../blocks/blocksAntd/src/blocks/Switch/Switch.json
schema: ../plugins/blocks/blocks-antd/src/blocks/Switch/schema.json
filePath: blocks/input/Switch.yaml
description_content: |
The `Switch` block is an on/off input. It has a boolean value (true/false).

View File

@ -18,11 +18,10 @@ _ref:
block_type: TextArea
value_type: string
category: input
schema: ../blocks/blocksAntd/src/blocks/TextArea/TextArea.json
schema: ../plugins/blocks/blocks-antd/src/blocks/TextArea/schema.json
filePath: blocks/input/TextArea.yaml
init_state_values:
__type_block.properties.autoSize: boolean
__boolean_block.properties.autoSize: true
description_content: |
The `TextArea` block is a text input that has multiple rows of input. It can be set to a fixed number of rows, or it can expand automatically as the user inputs more text.

View File

@ -18,7 +18,7 @@ _ref:
block_type: TextInput
value_type: string
category: input
schema: ../blocks/blocksAntd/src/blocks/TextInput/TextInput.json
schema: ../plugins/blocks/blocks-antd/src/blocks/TextInput/schema.json
filePath: blocks/input/TextInput.yaml
description_content: |
The `TextInput` block is a single line text input.
@ -41,19 +41,19 @@ _ref:
block:
id: prefix_suffix_example
type: TextInput
properties:
label:
properties:
label:
extra: Prefix and suffix text
prefix: The cat
placeholder: chased
placeholder: chased
suffix: the rat
- title: User name
block:
id: username
type: TextInput
properties:
properties:
title: First Name
suffixIcon: UserOutlined
suffixIcon: AiOutlinedUser
placeholder: Your name
label:
label:
span: 6

View File

@ -18,7 +18,7 @@ _ref:
block_type: TitleInput
value_type: string
category: input
schema: ../blocks/blocksAntd/src/blocks/TitleInput/TitleInput.json
schema: ../plugins/blocks/blocks-antd/src/blocks/TitleInput/schema.json
filePath: blocks/input/TitleInput.yaml
init_state_values:
__type_block.properties.copyable: boolean

View File

@ -18,7 +18,7 @@ _ref:
block_type: TwitterColorSelector
value_type: string
category: input
schema: ../blocks/blocksColorSelectors/src/blocks/TwitterColorSelector/TwitterColorSelector.json
schema: ../plugins/blocks/blocks-color-selectors/src/blocks/TwitterColorSelector/schema.json
filePath: blocks/input/TwitterColorSelector.yaml
description_content: |
A color selector component similar to the twitter color selector..

View File

@ -18,7 +18,7 @@ _ref:
block_type: WeekSelector
value_type: date
category: input
schema: ../blocks/blocksAntd/src/blocks/WeekSelector/WeekSelector.json
schema: ../plugins/blocks/blocks-antd/src/blocks/WeekSelector/schema.json
filePath: blocks/input/WeekSelector.yaml
description_content: |
The `WeekSelector` block allows a user to select a week. The value is a date object, with day and time values of midnight on the first monday of the week GMT.

View File

@ -17,7 +17,7 @@ _ref:
vars:
block_type: ControlledList
category: list
schema: ../blocks/blocksAntd/src/blocks/ControlledList/ControlledList.json
schema: ../plugins/blocks/blocks-antd/src/blocks/ControlledList/schema.json
filePath: blocks/ControlledList/ControlledList.yaml
description_content: |
The ControlledList block renders a content area for all items in the array into the list card and provides easy UI elements to add or remove items in the list. All list blocks create a array in state at their block `id`. The list content areas are rendered for each index in the array. See the [List Concept](/lists) page for a detailed description on how to work with lists.
@ -26,11 +26,11 @@ _ref:
methods:
- name: pushItem
onClick:
- id: pushItem
type: CallMethod
params:
blockId: block_id
method: pushItem
- id: pushItem
type: CallMethod
params:
blockId: block_id
method: pushItem
- name: unshiftItem
onClick:
- id: unshiftItem
@ -45,7 +45,7 @@ _ref:
params:
blockId: block_id
method: removeItem
args:
args:
- 1
- name: for index 1 moveItemDown
onClick:
@ -54,7 +54,7 @@ _ref:
params:
blockId: block_id
method: moveItemDown
args:
args:
- 1
- name: for index 1 moveItemUp
onClick:
@ -63,10 +63,10 @@ _ref:
params:
blockId: block_id
method: moveItemUp
args:
args:
- 1
init_state_values:
todos:
todos:
- Add the noodles.
- Let it cook for a minute.
- Add some 🌶.
@ -86,7 +86,7 @@ _ref:
style:
paddingTop: 16
properties:
content:
content:
_nunjucks:
template: |
###### Todos State Value:
@ -97,10 +97,10 @@ _ref:
value:
_yaml.stringify:
on:
todos:
todos:
_state: todos
options:
sortKeys: false
sortKeys: false
- title: List of Contacts
block:
id: contacts
@ -126,7 +126,7 @@ _ref:
label:
span: 10
align: right
- id: contacts.$.date_of_birth
type: DateSelector
layout:
@ -143,7 +143,7 @@ _ref:
span: 12
required: true
properties:
title: Email address
title: Email address
label:
span: 10
align: right
@ -174,7 +174,7 @@ _ref:
style:
paddingTop: 16
properties:
content:
content:
_nunjucks:
template: |
###### Contacts State Value:
@ -185,7 +185,7 @@ _ref:
value:
_yaml.stringify:
on:
contacts:
contacts:
_state: contacts
options:
sortKeys: false
sortKeys: false

View File

@ -17,25 +17,25 @@ _ref:
vars:
block_type: List
category: list
schema: ../blocks/blocksBasic/src/blocks/List/List.json
schema: ../plugins/blocks/blocks-basic/src/blocks/List/schema.json
filePath: blocks/list/List.yaml
description_content: |
The List block renders a content area for all items in the array. All list blocks create a array in state at their block `id`. The list content areas are rendered for each index in the array. See the [List Concept](/lists) page for a detailed description on how to work with lists.
areas:
- content
init_state_values:
todos:
- Bake a 🧁
todos:
- Bake a 🧁
- Eat a🍦
- Phone a 🦖
methods:
- name: pushItem
onClick:
- id: pushItem
type: CallMethod
params:
blockId: block_id
method: pushItem
- id: pushItem
type: CallMethod
params:
blockId: block_id
method: pushItem
- name: unshiftItem
onClick:
- id: unshiftItem
@ -50,7 +50,7 @@ _ref:
params:
blockId: block_id
method: removeItem
args:
args:
- 1
- name: for index 1 moveItemDown
onClick:
@ -59,7 +59,7 @@ _ref:
params:
blockId: block_id
method: moveItemDown
args:
args:
- 1
- name: for index 1 moveItemUp
onClick:
@ -68,7 +68,7 @@ _ref:
params:
blockId: block_id
method: moveItemUp
args:
args:
- 1
examples:
- title: Todo List
@ -92,7 +92,7 @@ _ref:
shrink: 1
properties:
title: Add item
icon: PlusOutlined
icon: AiOutlinedPlus
events:
onClick:
- id: add
@ -119,7 +119,7 @@ _ref:
layout:
shrink: 1
properties:
name: MinusCircleOutlined
name: AiOutlinedMinusCircle
size: 18
events:
onClick:
@ -133,7 +133,6 @@ _ref:
method: removeItem
args:
- _index: 0
extra:
id: ex_state
@ -141,7 +140,7 @@ _ref:
style:
paddingTop: 16
properties:
content:
content:
_nunjucks:
template: |
###### Todos State Value:
@ -152,7 +151,7 @@ _ref:
value:
_yaml.stringify:
on:
todos:
todos:
_state: todos
options:
sortKeys: false
sortKeys: false

View File

@ -12,12 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# TODO: Fix schema to add to docs
_ref:
path: templates/blocks/template.yaml.njk
vars:
block_type: TimelineList
category: list
schema: ../blocks/blocksAntd/src/blocks/TimelineList/TimelineList.json
schema: ../plugins/blocks/blocks-antd/src/blocks/TimelineList/schema.json
filePath: blocks/TimelineList/TimelineList.yaml
description_content: |
The TimelineList block renders a content area for all items in the array. All list blocks create a array in state at their block `id`. The list content areas are rendered for each index in the array. See the [List Concept](/lists) page for a detailed description on how to work with lists.
@ -28,41 +30,41 @@ _ref:
init_state_values:
shipment_events:
- type: Order Placed
icon: ShoppingCartTwoTone
icon: AiTwoToneShoppingCart
color: '#2f54eb'
orderNumber: 2112
timestamp:
timestamp:
_date: '2021-02-10T20:30:00.000Z'
item:
code: ax2m-83kl9-ck
title: Useless Glue
- type: Shipped
icon: GiftTwoTone
icon: AiTwoToneGift
color: '#fa8c16'
orderNumber: 2112
timestamp:
timestamp:
_date: '2021-02-11T08:33:00.000Z'
- type: Cleared Customs
icon: FileDoneTwoTone
icon: AiTwoToneFileDone
color: '#13c2c2'
orderNumber: 2112
timestamp:
timestamp:
_date: '2021-02-11T16:12:00.000Z'
- type: Delivered
icon: CheckCircleTwoTone
icon: AiTwoToneCheckCircle
color: '#52c41a'
orderNumber: 2112
timestamp:
timestamp:
_date: '2021-02-11T16:12:00.000Z'
methods:
- name: pushItem
onClick:
- id: pushItem
type: CallMethod
params:
blockId: block_id
method: pushItem
- id: pushItem
type: CallMethod
params:
blockId: block_id
method: pushItem
- name: unshiftItem
onClick:
- id: unshiftItem
@ -77,7 +79,7 @@ _ref:
params:
blockId: block_id
method: removeItem
args:
args:
- 1
- name: for index 1 moveItemDown
onClick:
@ -86,7 +88,7 @@ _ref:
params:
blockId: block_id
method: moveItemDown
args:
args:
- 1
- name: for index 1 moveItemUp
onClick:
@ -95,8 +97,8 @@ _ref:
params:
blockId: block_id
method: moveItemUp
args:
- 1
args:
- 1
examples:
- title: Shipment Event Log
block:
@ -117,7 +119,7 @@ _ref:
style:
paddingTop: 16
properties:
content:
content:
_nunjucks:
template: |
###### Shipment Events State Value:
@ -128,8 +130,7 @@ _ref:
value:
_yaml.stringify:
on:
shipment_events:
shipment_events:
_state: shipment_events
options:
sortKeys: false
sortKeys: false

View File

@ -29,6 +29,7 @@ _ref:
- id: md1
type: MarkdownWithCode
properties:
# TODO: Remove JsAction reference.
content: |
Lowdefy runs as a single page web app (SPA). It is possible to extend the functionality of a Lowdefy app by loading custom code (HTML, CSS and JavaScript) into the HTML `head` and `body` to of the default `index.html` page.

View File

@ -106,11 +106,11 @@ _ref:
pageId: page1
properties:
title: Page 1
icon: FileOutlined
icon: AiOutlinedFile
- id: top-group
properties:
title: Group
icon: GroupOutlined
icon: AiOutlinedGroup
links:
- id: page2
type: MenuLink
@ -137,13 +137,13 @@ _ref:
pageId: page1
properties:
title: Page 1
icon: FileOutlined
icon: AiOutlinedFile
- id: page3
type: MenuLink
pageId: page3
properties:
title: Page 3
icon: ControlOutlined
icon: AiOutlinedControl
```
# Pages

View File

@ -33,7 +33,7 @@ _ref:
type: Anchor
properties:
title: Amazon Redshift
icon: LinkOutlined
icon: AiOutlinedLink
events:
onClick:
- id: link,
@ -44,7 +44,7 @@ _ref:
type: Anchor
properties:
title: MariaDB
icon: LinkOutlined
icon: AiOutlinedLink
events:
onClick:
- id: link,
@ -55,7 +55,7 @@ _ref:
type: Anchor
properties:
title: MS SQL Server
icon: LinkOutlined
icon: AiOutlinedLink
events:
onClick:
- id: link,
@ -66,7 +66,7 @@ _ref:
type: Anchor
properties:
title: MySQL
icon: LinkOutlined
icon: AiOutlinedLink
events:
onClick:
- id: link,
@ -77,7 +77,7 @@ _ref:
type: Anchor
properties:
title: Oracle Database
icon: LinkOutlined
icon: AiOutlinedLink
events:
onClick:
- id: link,
@ -88,7 +88,7 @@ _ref:
type: Anchor
properties:
title: PostgreSQL
icon: LinkOutlined
icon: AiOutlinedLink
events:
onClick:
- id: link,
@ -99,7 +99,7 @@ _ref:
type: Anchor
properties:
title: SQLite
icon: LinkOutlined
icon: AiOutlinedLink
events:
onClick:
- id: link,

View File

@ -74,7 +74,7 @@ _ref:
type: Alert
properties:
type: warning
icon: WarningFilled
icon: AiFilledWarning
description: When updating your app to a new Lowdefy version, make sure to update the Lowdefy version in the Dockerfile
- id: md2

View File

@ -41,7 +41,7 @@ _ref:
type: Alert
properties:
type: warning
icon: WarningFilled
icon: AiFilledWarning
description: When updating your app to a new Lowdefy version, make sure to update the Lowdefy version in the Dockerfile
- id: md2

View File

@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# TODO: Rewrite using pdf-make plugin.
_ref:
path: templates/blog.yaml.njk
vars:

View File

@ -46,7 +46,7 @@ _ref:
textAlign: center
properties:
title: Generate & Download PDF
icon: DownloadOutlined
icon: AiOutlinedDownload
color: '#6293F8'
events:
onMount:
@ -109,7 +109,7 @@ _ref:
textAlign: center
properties:
title: Share this post
icon: UploadOutlined
icon: AiOutlinedUpload
color: '#6293F8'
events:
onClick:
@ -252,7 +252,7 @@ _ref:
type: Button
properties:
title: Download PDF
icon: DownloadOutlined
icon: AiOutlinedDownload
events:
onClick:
- id: make_pdf
@ -277,7 +277,7 @@ _ref:
textAlign: center
properties:
title: Download PDF
icon: DownloadOutlined
icon: AiOutlinedDownload
events:
onClick:
- id: make_pdf
@ -591,7 +591,7 @@ _ref:
textAlign: center
properties:
title: Generate Invoice
icon: DownloadOutlined
icon: AiOutlinedDownload
color: '#6293F8'
events:
onMount:

View File

@ -68,7 +68,7 @@ pages:
title: Generate PDF from data with Lowdefy
subTitle: <a href="https://docs.lowdefy.com/generate-pdf-document-from-data">Read the full how to guide</a>
icon:
name: PrinterTwoTone
name: AiTwoTonePrinter
color: '#ff0000'
areas:
extra:

View File

@ -84,7 +84,7 @@ _ref:
properties:
block: true
hideActionLoading: true
icon: RocketOutlined
icon: AiOutlinedRocket
size: large
title: Start the tutorial
type: primary

View File

@ -13,7 +13,7 @@
# limitations under the License.
name: '@lowdefy/docs'
lowdefy: 3.23.2
lowdefy: 4.0.0-alpha.6
licence: Apache-2.0
cli:

View File

@ -5,12 +5,12 @@
pageId: introduction
properties:
title: Introduction
icon: CoffeeOutlined
icon: AiOutlinedCoffee
- id: tutorial
type: MenuGroup
properties:
title: Tutorial
icon: RocketOutlined
icon: AiOutlinedRocket
links:
- id: tutorial-start
type: MenuLink
@ -51,7 +51,7 @@
type: MenuGroup
properties:
title: How To
icon: QuestionOutlined
icon: AiOutlinedQuestion
links:
- id: generate-csv
type: MenuLink
@ -67,7 +67,7 @@
type: MenuGroup
properties:
title: Concepts
icon: BulbOutlined
icon: AiOutlinedBulb
links:
- id: overview
type: MenuLink
@ -143,7 +143,7 @@
type: MenuGroup
properties:
title: Deployment
icon: CloudUploadOutlined
icon: AiOutlinedCloudUpload
links:
- id: aws-lambda
type: MenuLink
@ -169,7 +169,7 @@
type: MenuGroup
properties:
title: User Authentication
icon: TeamOutlined
icon: AiOutlinedTeam
links:
- id: users
type: MenuLink
@ -206,7 +206,7 @@
type: MenuGroup
properties:
title: Input Blocks
icon: FormOutlined
icon: AiOutlinedForm
links:
- id: AutoComplete
type: MenuLink
@ -268,9 +268,9 @@
- id: RatingSlider
type: MenuLink
pageId: RatingSlider
- id: S3UploadButton
type: MenuLink
pageId: S3UploadButton
# - id: S3UploadButton
# type: MenuLink
# pageId: S3UploadButton
- id: Selector
type: MenuLink
pageId: Selector
@ -302,7 +302,7 @@
type: MenuGroup
properties:
title: Display Blocks
icon: PictureOutlined
icon: AiOutlinedPicture
links:
- id: Alert
type: MenuLink
@ -381,7 +381,7 @@
type: MenuGroup
properties:
title: Container Blocks
icon: ContainerOutlined
icon: AiOutlinedContainer
links:
- id: Affix
type: MenuLink
@ -437,9 +437,9 @@
- id: Span
type: MenuLink
pageId: Span
- id: Spin
type: MenuLink
pageId: Spin
# - id: Spin
# type: MenuLink
# pageId: Spin
- id: Tabs
type: MenuLink
pageId: Tabs
@ -451,7 +451,7 @@
type: MenuGroup
properties:
title: List Blocks
icon: OrderedListOutlined
icon: AiOutlinedOrderedList
links:
- id: ControlledList
type: MenuLink
@ -463,7 +463,7 @@
type: MenuGroup
properties:
title: Connections
icon: ApiOutlined
icon: AiOutlinedApi
links:
- id: AmazonRedshift
type: MenuLink
@ -533,14 +533,11 @@
type: MenuGroup
properties:
title: Actions
icon: ThunderboltOutlined
icon: AiOutlinedThunderbolt
links:
- id: CallMethod
type: MenuLink
pageId: CallMethod
- id: JsAction
type: MenuLink
pageId: JsAction
- id: Link
type: MenuLink
pageId: Link
@ -591,7 +588,7 @@
type: MenuGroup
properties:
title: Operators
icon: ToolOutlined
icon: AiOutlinedTool
links:
- id: _actions
type: MenuLink
@ -659,9 +656,9 @@
- id: _input
type: MenuLink
pageId: _input
- id: _js
type: MenuLink
pageId: _js
# - id: _js
# type: MenuLink
# pageId: _js
- id: _json
type: MenuLink
pageId: _json
@ -771,7 +768,7 @@
type: MenuGroup
properties:
title: Lowdefy Versions
icon: BranchesOutlined
icon: AiOutlinedBranches
links:
- id: v3.23.2
type: MenuLink

View File

@ -53,12 +53,12 @@ _ref:
key:
_state: status
from:
new: PlusCircleTwoTone
escalated: ExclamationCircleOutlined
investigation_started: ToolTwoTone
client_contacted: SoundTwoTone
awaiting_confirmation: LikeOutlined
closed: StopOutlined
new: AiTwoTonePlusCircle
escalated: AiOutlinedExclamationCircle
investigation_started: AiTwoToneTool
client_contacted: AiTwoToneSound
awaiting_confirmation: AiOutlinedLike
closed: AiOutlinedStop
```
Returns: The icon corresponding to the status in state.

View File

@ -49,87 +49,87 @@
- _ref: users/user-object.yaml
- _ref: users/roles.yaml
# - _ref: blocks/input/AutoComplete.yaml
# - _ref: blocks/input/ButtonSelector.yaml
# - _ref: blocks/input/CheckboxSelector.yaml
# - _ref: blocks/input/CheckboxSwitch.yaml
# - _ref: blocks/input/ChromeColorSelector.yaml
# - _ref: blocks/input/CircleColorSelector.yaml
# - _ref: blocks/input/ColorSelector.yaml
# - _ref: blocks/input/CompactColorSelector.yaml
# - _ref: blocks/input/DateRangeSelector.yaml
# - _ref: blocks/input/DateSelector.yaml
# - _ref: blocks/input/DateTimeSelector.yaml
# - _ref: blocks/input/GithubColorSelector.yaml
# - _ref: blocks/input/MonthSelector.yaml
# - _ref: blocks/input/MultipleSelector.yaml
# - _ref: blocks/input/NumberInput.yaml
# - _ref: blocks/input/Pagination.yaml
# - _ref: blocks/input/ParagraphInput.yaml
# - _ref: blocks/input/PasswordInput.yaml
# - _ref: blocks/input/RadioSelector.yaml
# - _ref: blocks/input/RatingSlider.yaml
# - _ref: blocks/input/S3UploadButton.yaml
# - _ref: blocks/input/Selector.yaml
# - _ref: blocks/input/SliderColorSelector.yaml
# - _ref: blocks/input/SwatchesColorSelector.yaml
# - _ref: blocks/input/Switch.yaml
# - _ref: blocks/input/TextArea.yaml
# - _ref: blocks/input/TextInput.yaml
# - _ref: blocks/input/TitleInput.yaml
# - _ref: blocks/input/TwitterColorSelector.yaml
# - _ref: blocks/input/WeekSelector.yaml
- _ref: blocks/input/AutoComplete.yaml
- _ref: blocks/input/ButtonSelector.yaml
- _ref: blocks/input/CheckboxSelector.yaml
- _ref: blocks/input/CheckboxSwitch.yaml
- _ref: blocks/input/ChromeColorSelector.yaml
- _ref: blocks/input/CircleColorSelector.yaml
- _ref: blocks/input/ColorSelector.yaml
- _ref: blocks/input/CompactColorSelector.yaml
- _ref: blocks/input/DateRangeSelector.yaml
- _ref: blocks/input/DateSelector.yaml
- _ref: blocks/input/DateTimeSelector.yaml
- _ref: blocks/input/GithubColorSelector.yaml
- _ref: blocks/input/MonthSelector.yaml
- _ref: blocks/input/MultipleSelector.yaml
- _ref: blocks/input/NumberInput.yaml
- _ref: blocks/input/Pagination.yaml
- _ref: blocks/input/ParagraphInput.yaml
- _ref: blocks/input/PasswordInput.yaml
- _ref: blocks/input/RadioSelector.yaml
- _ref: blocks/input/RatingSlider.yaml
# - _ref: blocks/input/S3UploadButton.yaml # TODO: Add with custom plugin
- _ref: blocks/input/Selector.yaml
- _ref: blocks/input/SliderColorSelector.yaml
- _ref: blocks/input/SwatchesColorSelector.yaml
- _ref: blocks/input/Switch.yaml
- _ref: blocks/input/TextArea.yaml
- _ref: blocks/input/TextInput.yaml
- _ref: blocks/input/TitleInput.yaml
- _ref: blocks/input/TwitterColorSelector.yaml
- _ref: blocks/input/WeekSelector.yaml
# - _ref: blocks/display/Alert.yaml
# - _ref: blocks/display/Anchor.yaml
# - _ref: blocks/display/Avatar.yaml
# - _ref: blocks/display/Breadcrumb.yaml
- _ref: blocks/display/Anchor.yaml
- _ref: blocks/display/Avatar.yaml
- _ref: blocks/display/Breadcrumb.yaml
- _ref: blocks/display/Button.yaml
# - _ref: blocks/display/DangerousHtml.yaml
# - _ref: blocks/display/DangerousMarkdown.yaml
# - _ref: blocks/display/Descriptions.yaml
# - _ref: blocks/display/Divider.yaml
# - _ref: blocks/display/EChart.yaml
# - _ref: blocks/display/Html.yaml
# - _ref: blocks/display/Icon.yaml
# - _ref: blocks/display/Img.yaml
# - _ref: blocks/display/Markdown.yaml
# - _ref: blocks/display/MarkdownWithCode.yaml
# - _ref: blocks/display/Menu.yaml
# - _ref: blocks/display/Message.yaml
# - _ref: blocks/display/MobileMenu.yaml
# - _ref: blocks/display/Notification.yaml
# - _ref: blocks/display/Paragraph.yaml
# - _ref: blocks/display/Progress.yaml
# # - _ref: blocks/display/Skeleton.yaml
# - _ref: blocks/display/Statistic.yaml
# - _ref: blocks/display/Title.yaml
- _ref: blocks/display/DangerousHtml.yaml
- _ref: blocks/display/DangerousMarkdown.yaml
- _ref: blocks/display/Divider.yaml
- _ref: blocks/display/EChart.yaml
- _ref: blocks/display/Html.yaml
- _ref: blocks/display/Icon.yaml
- _ref: blocks/display/Img.yaml
- _ref: blocks/display/Markdown.yaml
- _ref: blocks/display/MarkdownWithCode.yaml
- _ref: blocks/display/Menu.yaml
- _ref: blocks/display/Message.yaml
- _ref: blocks/display/MobileMenu.yaml
- _ref: blocks/display/Notification.yaml
- _ref: blocks/display/Paragraph.yaml
- _ref: blocks/display/Progress.yaml
# - _ref: blocks/display/Skeleton.yaml # TODO:
- _ref: blocks/display/Statistic.yaml
- _ref: blocks/display/Title.yaml
# - _ref: blocks/container/Affix.yaml
# - _ref: blocks/container/Badge.yaml
# - _ref: blocks/container/Box.yaml
# - _ref: blocks/container/Card.yaml
# - _ref: blocks/container/Collapse.yaml
# - _ref: blocks/container/Comment.yaml
# - _ref: blocks/container/ConfirmModal.yaml
# - _ref: blocks/container/Drawer.yaml
# - _ref: blocks/container/Label.yaml
# - _ref: blocks/container/Modal.yaml
# - _ref: blocks/container/PageHCF.yaml
# - _ref: blocks/container/PageHCSF.yaml
# - _ref: blocks/container/PageHeaderMenu.yaml
# - _ref: blocks/container/PageHSCF.yaml
# - _ref: blocks/container/PageSHCF.yaml
# - _ref: blocks/container/PageSiderMenu.yaml
# - _ref: blocks/container/Result.yaml
# - _ref: blocks/container/Span.yaml
# - _ref: blocks/container/Spin.yaml
# - _ref: blocks/container/Tabs.yaml
# - _ref: blocks/container/Tooltip.yaml
- _ref: blocks/container/Alert.yaml
- _ref: blocks/container/Affix.yaml
- _ref: blocks/container/Badge.yaml
- _ref: blocks/container/Box.yaml
- _ref: blocks/container/Card.yaml
- _ref: blocks/container/Collapse.yaml
- _ref: blocks/container/Comment.yaml
- _ref: blocks/container/ConfirmModal.yaml
- _ref: blocks/container/Descriptions.yaml
- _ref: blocks/container/Drawer.yaml
- _ref: blocks/container/Label.yaml
- _ref: blocks/container/Modal.yaml
- _ref: blocks/container/PageHCF.yaml
- _ref: blocks/container/PageHCSF.yaml
- _ref: blocks/container/PageHeaderMenu.yaml
- _ref: blocks/container/PageHSCF.yaml
- _ref: blocks/container/PageSHCF.yaml
- _ref: blocks/container/PageSiderMenu.yaml
- _ref: blocks/container/Result.yaml
- _ref: blocks/container/Span.yaml
# - _ref: blocks/container/Spin.yaml # TODO:
- _ref: blocks/container/Tabs.yaml
- _ref: blocks/container/Tooltip.yaml
# - _ref: blocks/list/ControlledList.yaml
# - _ref: blocks/list/List.yaml
# - _ref: blocks/list/TimelineList.yaml
- _ref: blocks/list/ControlledList.yaml
- _ref: blocks/list/List.yaml
# - _ref: blocks/list/TimelineList.yaml # TODO:
- _ref: connections/AmazonRedshift.yaml
- _ref: connections/AWSS3.yaml
@ -149,7 +149,7 @@
- _ref: connections/Stripe.yaml
- _ref: actions/CallMethod.yaml
- _ref: actions/JsAction.yaml
# - _ref: actions/JsAction.yaml
- _ref: actions/Link.yaml
- _ref: actions/Login.yaml
- _ref: actions/Logout.yaml

View File

@ -46,6 +46,8 @@ function getDefaultValues(defaultValues, obj) {
return defaultValues;
}
const transformer = (obj) => getDefaultValues({}, obj.properties);
const transformer = (obj) => {
return getDefaultValues({}, obj.properties);
};
export default transformer;

View File

@ -28,7 +28,7 @@ const avatar = (path) => ({
blocks: [
{
id: `${path}.color`,
type: 'Selector', // TODO: change back to CircleColorSelector
type: 'CircleColorSelector',
layout: {
_global: 'settings_input_layout',
},
@ -258,7 +258,7 @@ function makeBlockDefinition({
};
return block;
case 'color':
block.type = 'Selector'; // TODO: change back to CircleColorSelector
block.type = 'CircleColorSelector';
block.properties.circleSize = 14;
block.properties.circleSpacing = 8;
block.properties.colors = [

View File

@ -182,7 +182,7 @@ areas:
- id: links-{{ item.pageId }}
type: Anchor
properties:
icon: LinkOutlined
icon: AiOutlinedLink
pageId: {{ item.pageId }}
title: {{ item.title }}
{% endfor %}

View File

@ -29,9 +29,9 @@ blocks:
marginTop: 16px
code: true
copyable:
icon: CopyOutlined
icon: AiOutlinedCopy
tooltips:
- Click to copy
- Copied. Paste in console to run 🚀
content:
_var: command
_var: command

View File

@ -213,7 +213,7 @@
size: auto
properties:
title: Send
icon: SendOutlined
icon: AiOutlinedSend
color: '#1890ff'
events:
onClick:
@ -297,7 +297,7 @@
layout:
size: auto
properties:
name: TwitterOutlined
name: AiOutlinedTwitter
size: 24
events:
onClick:
@ -310,7 +310,7 @@
layout:
size: auto
properties:
name: CommentOutlined
name: AiOutlinedComment
size: 24
events:
onClick:
@ -348,7 +348,7 @@
layout:
size: auto
properties:
name: GithubOutlined
name: AiOutlinedGithub
size: 24
events:
onClick:
@ -361,7 +361,7 @@
layout:
size: auto
properties:
name: YoutubeOutlined
name: AiOutlinedYoutube
size: 24
events:
onClick:
@ -480,19 +480,19 @@
type: Anchor
properties:
title: Quick Start Tutorial
pageId: /tutorial-development-server
pageId: tutorial-development-server
rel: 'noopener'
- id: netlify_anchor
type: Anchor
properties:
title: Deploy to Netlify
pageId: /tutorial-start
pageId: tutorial-start
rel: 'noopener'
- id: concepts_anchor
type: Anchor
properties:
title: How Lowdefy Works
pageId: /overview
pageId: overview
rel: 'noopener'
- id: github_anchor
type: Anchor
@ -543,7 +543,7 @@
layout:
size: auto
properties:
name: TwitterOutlined
name: AiOutlinedTwitter
size: 24
events:
onClick:
@ -557,7 +557,7 @@
layout:
size: auto
properties:
name: CommentOutlined
name: AiOutlinedComment
size: 24
events:
onClick:
@ -571,7 +571,7 @@
layout:
size: auto
properties:
name: GithubOutlined
name: AiOutlinedGithub
size: 24
events:
onClick:
@ -585,7 +585,7 @@
layout:
size: auto
properties:
name: YoutubeOutlined
name: AiOutlinedYoutube
size: 24
events:
onClick:

View File

@ -36,7 +36,7 @@
style:
marginLeft: -22
properties:
name: SearchOutlined
name: AiOutlinedSearch
- id: why_button
type: Button
visible:
@ -128,7 +128,7 @@
properties:
title: Star on Github
type: text
icon: GithubFilled
icon: AiFilledGithub
size: large
events:
onClick:

View File

@ -27,7 +27,7 @@ blocks:
properties:
block: true
hideActionLoading: true
icon: ArrowLeftOutlined
icon: AiOutlinedArrowLeft
size: large
title:
_var: previous_page_title
@ -50,7 +50,7 @@ blocks:
properties:
block: true
hideActionLoading: true
icon: ArrowRightOutlined
icon: AiOutlinedArrowRight
size: large
title:
_var: next_page_title

Some files were not shown because too many files have changed in this diff Show More