d718c5a372
CI / compile_and_lint (push) Failing after 0s
CI / docker_build (linux/amd64, -linux-amd64-duckdb, duckdb) (push) Failing after 0s
CI / docker_build (linux/arm64, -linux-arm64, minimal) (push) Failing after 2s
CI / docker_build (linux/arm64, -linux-arm64-duckdb, duckdb) (push) Failing after 1s
CI / docker_build (linux/amd64, minimal) (push) Failing after 1s
CI / test (, sqlite, sqlite::memory:) (push) Has been skipped
CI / test (mssql, mssql, mssql://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / test (mysql, mysql, mysql://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / test (oracle, oracle, Driver=Oracle 21 ODBC driver;Dbq=//127.0.0.1:1521/FREEPDB1;Uid=root;Pwd=Password123!) (push) Has been skipped
CI / test (postgres, odbc, Driver=PostgreSQL Unicode;Server=127.0.0.1;Port=5432;Database=sqlpage;UID=root;PWD=Password123!, true) (push) Has been skipped
CI / test (postgres, postgres, postgres://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / playwright (push) Has been skipped
CI / docker_build (linux/arm/v7, -linux-arm-v7, minimal) (push) Failing after 0s
CI / hurl_examples (push) Failing after 8s
deploy website / deploy_official_site (push) Failing after 1s
CI / hurl (${{ matrix.example }}) (push) Has been skipped
CI / docker_push (duckdb) (push) Has been cancelled
CI / docker_push (minimal) (push) Has been cancelled
CI / windows_test (push) Has been cancelled
152 lines
3.3 KiB
SQL
152 lines
3.3 KiB
SQL
INSERT INTO component (name, description, icon, introduced_in_version)
|
|
VALUES (
|
|
'divider',
|
|
'Dividers help organize content and make the interface layout clear and uncluttered.',
|
|
'separator',
|
|
'0.18.0'
|
|
);
|
|
|
|
INSERT INTO parameter (
|
|
component,
|
|
name,
|
|
description,
|
|
type,
|
|
top_level,
|
|
optional
|
|
)
|
|
VALUES (
|
|
'divider',
|
|
'contents',
|
|
'A text in the divider.',
|
|
'TEXT',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
(
|
|
'divider',
|
|
'position',
|
|
'Position of the text (e.g. left, right).',
|
|
'TEXT',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
(
|
|
'divider',
|
|
'color',
|
|
'The name of a color for this span of text.',
|
|
'COLOR',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
(
|
|
'divider',
|
|
'size',
|
|
'The size of the divider text, from 1 to 6.',
|
|
'INTEGER',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
(
|
|
'divider',
|
|
'bold',
|
|
'Whether the text is bold.',
|
|
'BOOLEAN',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
(
|
|
'divider',
|
|
'italics',
|
|
'Whether the text is italicized.',
|
|
'BOOLEAN',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
(
|
|
'divider',
|
|
'underline',
|
|
'Whether the text is underlined.',
|
|
'BOOLEAN',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
(
|
|
'divider',
|
|
'link',
|
|
'URL of the link for the divider text. Available only when contents is present.',
|
|
'URL',
|
|
TRUE,
|
|
TRUE
|
|
);
|
|
|
|
-- Insert example(s) for the component
|
|
INSERT INTO example(component, description, properties)
|
|
VALUES
|
|
(
|
|
'divider',
|
|
'An empty divider',
|
|
JSON(
|
|
'[
|
|
{
|
|
"component":"divider"
|
|
}
|
|
]'
|
|
)
|
|
),
|
|
(
|
|
'divider',
|
|
'A divider with centered text',
|
|
JSON(
|
|
'[
|
|
{
|
|
"component":"divider",
|
|
"contents":"Hello"
|
|
}
|
|
]'
|
|
)
|
|
),
|
|
(
|
|
'divider',
|
|
'A divider with text at left',
|
|
JSON(
|
|
'[
|
|
{
|
|
"component":"divider",
|
|
"contents":"Hello",
|
|
"position":"left"
|
|
}
|
|
]'
|
|
)
|
|
),
|
|
(
|
|
'divider',
|
|
'A divider with blue text and a link',
|
|
JSON(
|
|
'[
|
|
{
|
|
"component":"divider",
|
|
"contents":"SQLPage components",
|
|
"link":"/documentation.sql",
|
|
"color":"blue"
|
|
}
|
|
]'
|
|
)
|
|
),
|
|
(
|
|
'divider',
|
|
'A divider with bold, italic, and underlined text',
|
|
JSON(
|
|
'[
|
|
{
|
|
"component":"divider",
|
|
"contents":"Important notice",
|
|
"position":"left",
|
|
"color":"red",
|
|
"size":5,
|
|
"bold":true,
|
|
"italics":true,
|
|
"underline":true
|
|
}
|
|
]'
|
|
)
|
|
); |