Files
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

101 lines
4.2 KiB
Handlebars

{{#if title}}
<h2 class="mt-3 mb-0">{{title}}</h2>
{{/if}}
{{#if description}}
<p>{{description}}</p>
{{/if}}
{{#if description_md}}
{{{markdown description_md}}}
{{/if}}
<div class="row gx-2 gy-2 mt-1 mb-3 {{class}}
{{~#if columns~}}
{{#if (gt columns 2)}} row-cols-sm-2 {{/if}}
row-cols-lg-{{columns}}
{{/if}}">
{{#each_row}}
<div class="
{{#unless ../columns}}
{{~#if width~}}
{{~#if (lt width 6)}} col-12 col-md-6 {{/if~}}
col-lg-{{width~}}
{{~else~}}
col-12 col-md-6 col-lg-3
{{~/if~}}
{{/unless}} {{class}}"
{{~#if id}} id="{{id}}"{{/if}}>
<div class="card h-100
{{~#if active}} card-active {{/if~}}
{{~#if background_color}}
bg-{{background_color}} text-{{background_color}}-fg
{{~else}}
{{#if (all embed (not title) (not icon))}}
bg-transparent border-0
{{/if}}
{{/if}}
"
{{#if (and embed (ne embed_mode "iframe"))}}data-pre-init="card" data-embed="{{embed}}"{{/if}}>
{{#if link}}
<a href="{{link}}" style="text-decoration: inherit; color: inherit">
{{/if}}
{{#if top_image}}
<img src="{{top_image}}" class="card-img-top"{{#if top_image_width}} width="{{top_image_width}}"{{/if}}{{#if top_image_height}} height="{{top_image_height}}"{{/if}}{{#if top_image_lazy}} loading="lazy"{{/if}}/>
{{/if}}
{{#if color}}
{{#if (not embed)}}
<div class="card-status-start bg-{{color}}"></div>
{{/if}}
{{/if}}
<div class="card-body {{#if (all embed (not title) (not icon))}}p-0{{/if}}">
{{#if title}}<h2 class="card-title fs-3 me-3">{{title}}</h2>{{/if}}
<div class="card-content remove-bottom-margin{{#if (and icon (not title))}} pe-4{{/if}}">
{{~description~}}
{{~#if description_md~}}
{{{markdown description_md}}}
{{~/if~}}
</div>
{{~#if embed ~}}
{{~#if (eq embed_mode "iframe")}}
<iframe src="{{embed}}"
width="{{#if width}}{{width}}{{else}}100%{{/if}}"
{{~#if height}} height="{{height}}"{{/if~}}
{{~#if allow}} allow="{{allow}}"{{/if~}}
{{~#if sandbox}} sandbox="{{sandbox}}"{{/if~}}
{{~#if style}} style="{{style}}"{{/if~}}
>
</iframe>
{{~else~}}
<div class="d-flex justify-content-center h-100 align-items-center card-loading-placeholder">
<div class="spinner-border" role="status" style="width: 3rem; height: 3rem;">
<span class="visually-hidden">Loading...</span>
</div>
</div>
{{~/if~}}
{{~/if~}}
</div>
{{#if link}}
</a>
{{/if}}
{{#if footer}}
<div class="card-footer text-muted py-2">
{{#if footer_link}}
<a href="{{footer_link}}">{{footer}}</a>
{{else}}
{{footer}}
{{/if}}
</div>
{{/if}}
{{#if footer_md}}
<div class="card-footer text-muted py-2 remove-bottom-margin">
{{{markdown footer_md}}}
</div>
{{/if}}
{{#if icon}}
<div class="ribbon bg-{{color}} fs-2">
{{~icon_img icon~}}
</div>
{{/if}}
</div>
</div>
{{/each_row}}
</div>