mirror of
https://github.com/tabler/tabler.git
synced 2026-08-29 13:21:29 +04:00
Extract Liquid filter helpers into shared typed lib modules (#2725)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
---
|
||||
import DefaultLayout from '@shared/layouts/DefaultLayout.astro';
|
||||
import { ucFirst as capitalize } from '@shared/lib/string-format';
|
||||
import Card from '@shared/components/ui/Card.astro';
|
||||
import CardBody from '@shared/components/ui/CardBody.astro';
|
||||
import Offcanvas from '@shared/components/ui/Offcanvas.astro';
|
||||
@@ -7,9 +8,6 @@ import OffcanvasHeader from '@shared/components/ui/OffcanvasHeader.astro';
|
||||
import OffcanvasBody from '@shared/components/ui/OffcanvasBody.astro';
|
||||
|
||||
const directions = ['start', 'end', 'top', 'bottom'];
|
||||
|
||||
// Liquid `capitalize` filter.
|
||||
const capitalize = (s: string) => s.charAt(0).toUpperCase() + s.slice(1);
|
||||
---
|
||||
|
||||
<DefaultLayout title="Offcanvas" pageHeader="Offcanvas" pageMenu="base.offcanvas">
|
||||
|
||||
Reference in New Issue
Block a user