mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 05:06:55 +04:00
Fix unreadable counter digit on not-yet-reached steps (#3023)
Co-authored-by: Paweł Kuna <1282324+codecalm@users.noreply.github.com> Co-authored-by: codecalm <codecalm@gmail.com>
This commit is contained in:
227 files changed
+4503
-1577
No files matched your search
@@ -177,7 +177,11 @@ const libJsFiles = pageLibEntries.flatMap(([, lib]) => (lib.js ?? []).map((file)
|
||||
</nav>
|
||||
|
||||
{libJsFiles.map((src) => <script is:inline src={src} defer />)}
|
||||
<script is:inline src={`/dist/js/tabler${min}.js`} defer></script>
|
||||
<!-- ESM-only build: load as a module and re-expose the namespace as a local
|
||||
shim so the capture pages' window.tabler.Dropdown/Offcanvas calls keep working.
|
||||
A static import (not import()) so window.tabler is set before DOMContentLoaded,
|
||||
the way the old classic script guaranteed. -->
|
||||
<script is:inline type="module" set:html={`import * as tabler from '/dist/js/tabler${min}.js';\nwindow.tabler = tabler;`} />
|
||||
|
||||
<PageScripts />
|
||||
|
||||
|
||||
@@ -160,7 +160,11 @@ const libJsFiles = pageLibEntries.flatMap(([, lib]) => (lib.js ?? []).map((file)
|
||||
</div>
|
||||
|
||||
{libJsFiles.map((src) => <script is:inline src={src} defer />)}
|
||||
<script is:inline src={`/dist/js/tabler${min}.js`} defer></script>
|
||||
<!-- ESM-only build: load as a module and re-expose the namespace as a local
|
||||
shim so the capture pages' window.tabler.Dropdown/Offcanvas calls keep working.
|
||||
A static import (not import()) so window.tabler is set before DOMContentLoaded,
|
||||
the way the old classic script guaranteed. -->
|
||||
<script is:inline type="module" set:html={`import * as tabler from '/dist/js/tabler${min}.js';\nwindow.tabler = tabler;`} />
|
||||
|
||||
<!-- components that render via CaptureScript (e.g. Chart) queue their init script
|
||||
into shared/lib/page-scripts instead of inlining it where used; this drains it. -->
|
||||
|
||||
Reference in new issue
Block a user