chore: import upstream snapshot with attribution
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
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
This commit is contained in:
@@ -0,0 +1,188 @@
|
||||
-- Alert component
|
||||
INSERT INTO component(name, icon, description)
|
||||
VALUES (
|
||||
'alert',
|
||||
'alert-triangle',
|
||||
'A visually distinctive message or notification.'
|
||||
);
|
||||
INSERT INTO parameter(
|
||||
component,
|
||||
name,
|
||||
description,
|
||||
type,
|
||||
top_level,
|
||||
optional
|
||||
)
|
||||
VALUES (
|
||||
'alert',
|
||||
'title',
|
||||
'Title of the alert message.',
|
||||
'TEXT',
|
||||
TRUE,
|
||||
FALSE
|
||||
),
|
||||
(
|
||||
'alert',
|
||||
'icon',
|
||||
'Icon name (from tabler-icons.io) to display next to the alert message.',
|
||||
'TEXT',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'alert',
|
||||
'color',
|
||||
'The color theme for the alert message.',
|
||||
'COLOR',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'alert',
|
||||
'description',
|
||||
'Detailed description or content of the alert message.',
|
||||
'TEXT',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'alert',
|
||||
'description_md',
|
||||
'Detailed description or content of the alert message, in Markdown format, allowing you to use rich text formatting, including **bold** and *italic* text.',
|
||||
'TEXT',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'alert',
|
||||
'dismissible',
|
||||
'Whether the user can close the alert message.',
|
||||
'BOOLEAN',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'alert',
|
||||
'important',
|
||||
'Set this to TRUE to make the alert message more prominent.',
|
||||
'BOOLEAN',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'alert',
|
||||
'link',
|
||||
'A URL to link to from the alert message.',
|
||||
'URL',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'alert',
|
||||
'link_text',
|
||||
'Customize the text of the link in the alert message. The default is "Ok".',
|
||||
'TEXT',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'alert',
|
||||
'link',
|
||||
'A URL to link to from the alert message.',
|
||||
'URL',
|
||||
FALSE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'alert',
|
||||
'title',
|
||||
'Customize the text of the link in the alert message. The default is "Ok".',
|
||||
'TEXT',
|
||||
FALSE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'alert',
|
||||
'color',
|
||||
'Customize the color of the link.',
|
||||
'COLOR',
|
||||
FALSE,
|
||||
TRUE
|
||||
);
|
||||
-- Insert example(s) for the component
|
||||
INSERT INTO example(component, description, properties)
|
||||
VALUES (
|
||||
'alert',
|
||||
'A basic alert message',
|
||||
JSON(
|
||||
'[{"component":"alert", "title":"Attention", "description":"This is an important message."}]'
|
||||
)
|
||||
),
|
||||
(
|
||||
'alert',
|
||||
'A list of notifications',
|
||||
JSON(
|
||||
'[
|
||||
{"component" :"alert", "title":"Success","description":"Item successfully added to your cart.", "icon":"check", "color": "green"},
|
||||
{"component":"alert", "title":"Warning","description":"Your cart is almost full.", "icon":"alert-triangle", "color": "yellow"},
|
||||
{"component":"alert", "title":"Error","description":"Your cart is full.", "icon":"alert-circle", "color": "red"}
|
||||
]'
|
||||
)
|
||||
),
|
||||
(
|
||||
'alert',
|
||||
'A full-featured notification message with multiple links',
|
||||
JSON(
|
||||
'[
|
||||
{
|
||||
"component" :"alert",
|
||||
"title": "Your dashboard is ready!",
|
||||
"icon":"analyze",
|
||||
"color":"teal",
|
||||
"dismissible": true,
|
||||
"description":"Your public web dashboard was successfully created."
|
||||
},
|
||||
{
|
||||
"link":"dashboard.sql",
|
||||
"title": "View your dashboard"
|
||||
},
|
||||
{
|
||||
"link" :"index.sql",
|
||||
"title": "Back to home",
|
||||
"color": "secondary"
|
||||
}
|
||||
]'
|
||||
)
|
||||
),
|
||||
(
|
||||
'alert',
|
||||
'An important danger alert message with an icon and color',
|
||||
JSON(
|
||||
'[
|
||||
{
|
||||
"component":"alert",
|
||||
"title":"Alert",
|
||||
"icon":"alert-circle",
|
||||
"color":"red",
|
||||
"important": true,
|
||||
"dismissible": true,
|
||||
"description":"SQLPage is entirely free and open source.",
|
||||
"link":"https://github.com/sqlpage/SQLPage",
|
||||
"link_text":"See source code"
|
||||
}]'
|
||||
)
|
||||
),
|
||||
(
|
||||
'alert',
|
||||
'An alert message with a Markdown-formatted description',
|
||||
JSON(
|
||||
'[
|
||||
{
|
||||
"component":"alert",
|
||||
"title":"Free and open source",
|
||||
"icon": "free-rights",
|
||||
"color": "info",
|
||||
"description_md":"*SQLPage* is entirely free and open source. You can **contribute** to it on [GitHub](https://github.com/sqlpage/SQLPage)."
|
||||
}]'
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user