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,160 @@
|
||||
INSERT INTO component (name, description, icon, introduced_in_version)
|
||||
VALUES (
|
||||
'carousel',
|
||||
'A carousel is used to display images. When used with multiple images, it will cycle through them automatically or with controls, creating a slideshow.',
|
||||
'carousel-horizontal',
|
||||
'0.18.3'
|
||||
);
|
||||
INSERT INTO parameter (
|
||||
component,
|
||||
name,
|
||||
description,
|
||||
type,
|
||||
top_level,
|
||||
optional
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
'carousel',
|
||||
'title',
|
||||
'A name to display at the top of the carousel.',
|
||||
'TEXT',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'carousel',
|
||||
'indicators',
|
||||
'Style of image indicators (square or dot).',
|
||||
'TEXT',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'carousel',
|
||||
'vertical',
|
||||
'Whether to use the vertical image indicators.',
|
||||
'BOOLEAN',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'carousel',
|
||||
'controls',
|
||||
'Whether to show the control links to go previous or next item.',
|
||||
'BOOLEAN',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'carousel',
|
||||
'width',
|
||||
'Width of the component, between 1 and 12. Default is 12.',
|
||||
'INTEGER',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'carousel',
|
||||
'auto',
|
||||
'Whether to automatically cycle through the carousel items. Default is false.',
|
||||
'BOOLEAN',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'carousel',
|
||||
'center',
|
||||
'Whether to center the carousel.',
|
||||
'BOOLEAN',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'carousel',
|
||||
'fade',
|
||||
'Whether to apply the fading effect.',
|
||||
'BOOLEAN',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'carousel',
|
||||
'delay',
|
||||
'Specify the delay, in milliseconds, between two images.',
|
||||
'INTEGER',
|
||||
TRUE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'carousel',
|
||||
'image',
|
||||
'The URL (absolute or relative) of an image to display in the carousel.',
|
||||
'URL',
|
||||
FALSE,
|
||||
FALSE
|
||||
),
|
||||
(
|
||||
'carousel',
|
||||
'title',
|
||||
'Add caption to the slide.',
|
||||
'TEXT',
|
||||
FALSE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'carousel',
|
||||
'description',
|
||||
'A short paragraph.',
|
||||
'TEXT',
|
||||
FALSE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'carousel',
|
||||
'description_md',
|
||||
'A short paragraph formatted using markdown.',
|
||||
'TEXT',
|
||||
FALSE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'carousel',
|
||||
'width',
|
||||
'The width of the image, in pixels.',
|
||||
'INTEGER',
|
||||
FALSE,
|
||||
TRUE
|
||||
),
|
||||
(
|
||||
'carousel',
|
||||
'height',
|
||||
'The height of the image, in pixels.',
|
||||
'INTEGER',
|
||||
FALSE,
|
||||
TRUE
|
||||
);
|
||||
-- Insert example(s) for the component
|
||||
INSERT INTO example(component, description, properties)
|
||||
VALUES (
|
||||
'carousel',
|
||||
'A basic example of carousel',
|
||||
JSON(
|
||||
'[
|
||||
{"component":"carousel","name":"cats1","title":"Famous Database Animals"},
|
||||
{"image":"https://upload.wikimedia.org/wikipedia/commons/thumb/d/d7/Elefantes_africanos_de_sabana_%28Loxodonta_africana%29%2C_Elephant_Sands%2C_Botsuana%2C_2018-07-28%2C_DD_114-117_PAN.jpg/2560px-Elefantes_africanos_de_sabana_%28Loxodonta_africana%29%2C_Elephant_Sands%2C_Botsuana%2C_2018-07-28%2C_DD_114-117_PAN.jpg"},
|
||||
{"image":"https://upload.wikimedia.org/wikipedia/commons/thumb/9/99/Penguin_Island_panorama_with_ferry_and_dolphins_in_foreground%2C_March_2023_06.jpg/1280px-Penguin_Island_panorama_with_ferry_and_dolphins_in_foreground%2C_March_2023_06.jpg"}
|
||||
]'
|
||||
)
|
||||
),
|
||||
(
|
||||
'carousel',
|
||||
'An advanced example of carousel with controls',
|
||||
JSON(
|
||||
'[
|
||||
{"component":"carousel","title":"SQL web apps","width":6, "center":true,"controls":true,"auto":true},
|
||||
{"image":"/sqlpage_cover_image.webp","title":"SQLPage is modern","description":"Built by engineers who have built so many web applications the old way, they decided they just wouldn''t anymore.", "height": 512},
|
||||
{"image":"/sqlpage_illustration_alien.webp","title":"SQLPage is easy", "description":"SQLPage connects to your database, then it turns your SQL queries into nice websites.", "height": 512}
|
||||
]'
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user