Files
sqlpage--sqlpage/examples/official-site/sqlpage/migrations/35_code_title.sql
T
wehub-resource-sync 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
chore: import upstream snapshot with attribution
2026-07-13 12:31:57 +08:00

115 lines
3.0 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- Documentation for the title component
INSERT INTO component (name, description, icon, introduced_in_version) VALUES (
'title',
'Defines HTML headings. The level 1 is used for the maximal size and the level 6 is used for the minimal size.',
'letter-case-upper',
'0.19.0'
);
INSERT INTO parameter (component,name,description,type,top_level,optional) VALUES (
'title',
'center',
'Whether to center the title.',
'BOOLEAN',
TRUE,
TRUE
),(
'title',
'contents',
'A text to display.',
'TEXT',
TRUE,
FALSE
),(
'title',
'level',
'Set the heading level (default level is 1)',
'INTEGER',
TRUE,
TRUE
);
-- Insert example(s) for the component
INSERT INTO example(component, description, properties) VALUES (
'title',
'Displays several titles with different levels.',
JSON(
'[
{"component":"title","contents":"Level 1"},
{"component":"title","contents":"Level 2","level": 2},
{"component":"title","contents":"Level 3","level": 3}
]'
)
);
INSERT INTO example(component, description, properties) VALUES (
'title',
'Displays a centered title.',
JSON(
'[
{"component":"title","contents":"Level 1","center": true}
]'
)
);
-- Documentation for the code component
INSERT INTO component (name, description, icon, introduced_in_version) VALUES (
'code',
'Displays one or many blocks of code from a programming language or formated text as XML or JSON.',
'code',
'0.19.0'
);
INSERT INTO parameter (component,name,description,type,top_level,optional) VALUES (
'code',
'title',
'Set the heading level (default level is 1)',
'TEXT',
FALSE,
TRUE
),(
'code',
'contents',
'A block of code.',
'TEXT',
FALSE,
FALSE
),(
'code',
'description',
'Description of the snipet of code.',
'TEXT',
FALSE,
TRUE
),(
'code',
'description_md',
'Rich text in the markdown format. Among others, this allows you to write bold text using **bold**, italics using *italics*, and links using [text](https://example.com).',
'TEXT',
FALSE,
TRUE
),(
'code',
'language',
'Set the programming language name.',
'TEXT',
FALSE,
TRUE
);
-- Insert example(s) for the component
INSERT INTO example(component, description, properties) VALUES (
'code',
'Displays a block of HTML code.',
JSON(
'[
{"component":"code"},
{
"title":"A HTML5 example",
"language":"html",
"description":"Heres the very minimum that an HTML document should contain, assuming it has CSS and JavaScript linked to it.",
"contents":"<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\">\n\t\t<title>title</title>\n\t\t<link rel=\"stylesheet\" href=\"style.css\">\n\t\t<script src=\"script.js\"></script>\n\t</head>\n\t<body>\n\t\t<!-- page content -->\n\t</body>\n</html>"
}
]'
)
);