Skip to content

Commit 628029f

Browse files
committed
Use x-show instead of template for banner
1 parent fba0e2f commit 628029f

File tree

245 files changed

+17770
-20200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

245 files changed

+17770
-20200
lines changed

docs/dist/1.x/admin/dashboard/index.html

Lines changed: 49 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en" class="hidden astro-MDSAD7BS">
2+
<html lang="en" class="hidden astro-ZG44MSEJ">
33
<head>
44
<meta charset="UTF-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -27,36 +27,26 @@
2727
<meta name="msapplication-config" content="/favicon/browserconfig.xml?v=w1dBNxT7Wg">
2828
<meta name="theme-color" content="#ffffff">
2929
<link rel="stylesheet" href="/docs/assets/index.5b0ae27c.css" />
30-
<link rel="stylesheet" href="/docs/assets/dashboard.82d0a5de.css" /><script type="module" src="/docs/hoisted.779873f3.js"></script></head>
31-
<body x-data="codeBlockClipboard" class="bg-cream dark:bg-[#171527] astro-MDSAD7BS">
32-
<div class="bg-burnt-butter hidden lg:block astro-MDSAD7BS">
30+
<link rel="stylesheet" href="/docs/assets/dashboard.9a592753.css" /><script type="module" src="/docs/hoisted.779873f3.js"></script></head>
31+
<body x-data="codeBlockClipboard" class="bg-cream dark:bg-[#171527] astro-ZG44MSEJ">
32+
<div class="bg-burnt-butter hidden lg:block astro-ZG44MSEJ">
3333
<div x-data="{
3434
banner: null,
35-
}" x-init="banner = Math.floor(Math.random() * 3)" class="max-w-8xl mx-auto px-4 py-1.5 sm:px-6 lg:px-8 text-sm text-center text-white min-h-9 astro-MDSAD7BS">
36-
<template x-if="banner === 0" class="astro-MDSAD7BS">
37-
<span class="astro-MDSAD7BS">
38-
Looking for dedicated help with your Filament project? Work with <a href="https://kirschbaumdevelopment.com?ref=filamentphp.com" target="_blank" class="underline astro-MDSAD7BS">Kirschbaum</a>, the official Filament-partnered development agency.
35+
}" x-init="banner = Math.floor(Math.random() * 3)" class="max-w-8xl mx-auto px-4 py-1.5 sm:px-6 lg:px-8 text-sm text-center text-white min-h-9 astro-ZG44MSEJ">
36+
<span x-show="banner === 0" class="astro-ZG44MSEJ">
37+
Looking for dedicated help with your Filament project? Work with <a href="https://kirschbaumdevelopment.com?ref=filamentphp.com" target="_blank" class="underline astro-ZG44MSEJ">Kirschbaum</a>, the official Filament-partnered development agency.
38+
</span>
39+
<span x-show="banner === 1" x-data="{ variant: null }" x-init="variant = Math.floor(Math.random() * 2)" class="astro-ZG44MSEJ">
40+
<span x-show="variant === 0" class="astro-ZG44MSEJ">
41+
Build faster with <a href="https://whizzy.dev/?utm_source=filament&utm_medium=referral&utm_campaign=partner&utm_content=banner+short" target="_blank" class="underline astro-ZG44MSEJ">Whizzy</a>.
3942
</span>
40-
</template>
41-
<template x-if="banner === 1" x-data="{ variant: null }" x-init="variant = Math.floor(Math.random() * 2)" class="astro-MDSAD7BS">
42-
<span class="astro-MDSAD7BS">
43-
<template x-if="variant === 0" class="astro-MDSAD7BS">
44-
<span class="astro-MDSAD7BS">
45-
Build faster with <a href="https://whizzy.dev/?utm_source=filament&utm_medium=referral&utm_campaign=partner&utm_content=banner+short" target="_blank" class="underline astro-MDSAD7BS">Whizzy</a>.
46-
</span>
47-
</template>
48-
<template x-if="variant === 1" class="astro-MDSAD7BS">
49-
<span class="astro-MDSAD7BS">
50-
Build faster with <a href="https://whizzy.dev/?utm_source=filament&utm_medium=referral&utm_campaign=partner&utm_content=banner+long" target="_blank" class="underline astro-MDSAD7BS">Whizzy</a>, the development platform for Laravel and Filament.
51-
</span>
52-
</template>
43+
<span x-show="variant === 1" class="astro-ZG44MSEJ">
44+
Build faster with the <a href="https://whizzy.dev/?utm_source=filament&utm_medium=referral&utm_campaign=partner&utm_content=banner+long" target="_blank" class="underline astro-ZG44MSEJ">Filament development platform</a>.
5345
</span>
54-
</template>
55-
<template x-if="banner === 2" class="astro-MDSAD7BS">
56-
<span class="astro-MDSAD7BS">
57-
Love Filament? We'd really appreciate your <a href="https://github.com/filamentphp/filament?sponsor=1" target="_blank" class="underline astro-MDSAD7BS">sponsorship</a> to fund the maintenance and support of the project.
58-
</span>
59-
</template>
46+
</span>
47+
<span x-show="banner === 2" class="astro-ZG44MSEJ">
48+
Love Filament? We'd really appreciate your <a href="https://github.com/filamentphp/filament?sponsor=1" target="_blank" class="underline astro-ZG44MSEJ">sponsorship</a> to fund the maintenance and support of the project.
49+
</span>
6050
</div>
6151
</div>
6252

@@ -545,12 +535,12 @@ <h2>Plugin Development</h2>
545535

546536

547537

548-
<div class="relative mx-auto flex max-w-screen-2xl justify-center sm:px-2 lg:px-8 xl:px-12 astro-MDSAD7BS">
549-
<div class="hidden lg:relative lg:block lg:flex-none astro-MDSAD7BS">
550-
<div class="absolute inset-y-0 right-0 w-[50vw] bg-cream dark:hidden astro-MDSAD7BS"></div>
551-
<div class="absolute top-16 bottom-0 right-0 hidden h-12 w-px bg-gradient-to-t from-gray-800 dark:block astro-MDSAD7BS"></div>
552-
<div class="absolute top-28 bottom-0 right-0 hidden w-px bg-gray-800 dark:block astro-MDSAD7BS"></div>
553-
<div class="sticky top-10 -ml-0.5 h-screen overflow-y-auto overflow-x-hidden pt-10 pb-16 pl-0.5 navigation-custom-scrollbar astro-MDSAD7BS" x-data="{
538+
<div class="relative mx-auto flex max-w-screen-2xl justify-center sm:px-2 lg:px-8 xl:px-12 astro-ZG44MSEJ">
539+
<div class="hidden lg:relative lg:block lg:flex-none astro-ZG44MSEJ">
540+
<div class="absolute inset-y-0 right-0 w-[50vw] bg-cream dark:hidden astro-ZG44MSEJ"></div>
541+
<div class="absolute top-16 bottom-0 right-0 hidden h-12 w-px bg-gradient-to-t from-gray-800 dark:block astro-ZG44MSEJ"></div>
542+
<div class="absolute top-28 bottom-0 right-0 hidden w-px bg-gray-800 dark:block astro-ZG44MSEJ"></div>
543+
<div class="sticky top-10 -ml-0.5 h-screen overflow-y-auto overflow-x-hidden pt-10 pb-16 pl-0.5 navigation-custom-scrollbar astro-ZG44MSEJ" x-data="{
554544
position: 0,
555545
init() {
556546
this.position = localStorage.getItem('sidebarScrollPosition') || 0;
@@ -654,17 +644,17 @@ <h2>Plugin Development</h2>
654644
</nav>
655645
</div>
656646
</div>
657-
<div class="min-w-0 max-w-2xl flex-auto px-4 py-16 lg:max-w-none lg:pr-0 lg:pl-8 xl:px-16 astro-MDSAD7BS">
658-
<article class="astro-MDSAD7BS">
659-
<header class="mb-9 space-y-1 astro-MDSAD7BS">
660-
<p class="font-display font-bold text-butter astro-MDSAD7BS">
661-
<span id="current-package" class="astro-MDSAD7BS">
647+
<div class="min-w-0 max-w-2xl flex-auto px-4 py-16 lg:max-w-none lg:pr-0 lg:pl-8 xl:px-16 astro-ZG44MSEJ">
648+
<article class="astro-ZG44MSEJ">
649+
<header class="mb-9 space-y-1 astro-ZG44MSEJ">
650+
<p class="font-display font-bold text-butter astro-ZG44MSEJ">
651+
<span id="current-package" class="astro-ZG44MSEJ">
662652
Admin Panel
663653
</span>
664654

665655

666656
</p>
667-
<h1 class="font-display text-3xl font-extrabold tracking-tight text-stone-900 dark:text-white astro-MDSAD7BS">
657+
<h1 class="font-display text-3xl font-extrabold tracking-tight text-stone-900 dark:text-white astro-ZG44MSEJ">
668658
Dashboard
669659
</h1>
670660
</header>
@@ -686,44 +676,44 @@ <h2 id="disabling-the-default-widgets"><a class="heading-anchor" href="#disablin
686676
'info' =&gt; false, // Disables the info widget.
687677
],
688678
],
689-
</textarea></code></pre><a href="https://github.com/filamentphp/filament/edit/1.x/docs/06-dashboard.md&#34;" class="text-sm astro-MDSAD7BS" target="_blank" rel="noopener">Edit on GitHub</a><p class="astro-MDSAD7BS">
690-
Still need help? Join our <a href="/discord" target="_blank" class="transition hover:text-primary-600 astro-MDSAD7BS">Discord community</a> or open a <a href="https://github.com/filamentphp/filament/discussions/new/choose" target="_blank" class="transition hover:text-primary-600 astro-MDSAD7BS">GitHub discussion</a>
679+
</textarea></code></pre><a href="https://github.com/filamentphp/filament/edit/1.x/docs/06-dashboard.md&#34;" class="text-sm astro-ZG44MSEJ" target="_blank" rel="noopener">Edit on GitHub</a><p class="astro-ZG44MSEJ">
680+
Still need help? Join our <a href="/discord" target="_blank" class="transition hover:text-primary-600 astro-ZG44MSEJ">Discord community</a> or open a <a href="https://github.com/filamentphp/filament/discussions/new/choose" target="_blank" class="transition hover:text-primary-600 astro-ZG44MSEJ">GitHub discussion</a>
691681
</p>
692682
</div>
693683
</article>
694-
<dl class="mt-12 flex border-t border-gray-200 pt-6 dark:border-gray-800 astro-MDSAD7BS">
695-
<div class="astro-MDSAD7BS">
696-
<dt class="font-display text-sm font-bold text-stone-900 dark:text-white astro-MDSAD7BS">
684+
<dl class="mt-12 flex border-t border-gray-200 pt-6 dark:border-gray-800 astro-ZG44MSEJ">
685+
<div class="astro-ZG44MSEJ">
686+
<dt class="font-display text-sm font-bold text-stone-900 dark:text-white astro-ZG44MSEJ">
697687
Previous
698688
</dt>
699-
<dd class="mt-1 astro-MDSAD7BS">
700-
<a href="/docs/1.x/admin/pages" class="text-base font-semibold text-gray-500 hover:text-gray-600 dark:text-gray-300 dark:hover:text-gray-300 astro-MDSAD7BS">
701-
<span aria-hidden="true" class="astro-MDSAD7BS">&larr;</span> Pages
689+
<dd class="mt-1 astro-ZG44MSEJ">
690+
<a href="/docs/1.x/admin/pages" class="text-base font-semibold text-gray-500 hover:text-gray-600 dark:text-gray-300 dark:hover:text-gray-300 astro-ZG44MSEJ">
691+
<span aria-hidden="true" class="astro-ZG44MSEJ">&larr;</span> Pages
702692
</a>
703693
</dd>
704694
</div>
705-
<div class="ml-auto text-right astro-MDSAD7BS">
706-
<dt class="font-display text-sm font-bold text-stone-900 dark:text-white astro-MDSAD7BS">
695+
<div class="ml-auto text-right astro-ZG44MSEJ">
696+
<dt class="font-display text-sm font-bold text-stone-900 dark:text-white astro-ZG44MSEJ">
707697
Next
708698
</dt>
709-
<dd class="mt-1 astro-MDSAD7BS">
710-
<a href="/docs/1.x/admin/navigation" class="text-base font-semibold text-gray-500 hover:text-gray-600 dark:text-gray-300 dark:hover:text-gray-300 astro-MDSAD7BS">
711-
Navigation <span aria-hidden="true" class="astro-MDSAD7BS">&rarr;</span>
699+
<dd class="mt-1 astro-ZG44MSEJ">
700+
<a href="/docs/1.x/admin/navigation" class="text-base font-semibold text-gray-500 hover:text-gray-600 dark:text-gray-300 dark:hover:text-gray-300 astro-ZG44MSEJ">
701+
Navigation <span aria-hidden="true" class="astro-ZG44MSEJ">&rarr;</span>
712702
</a>
713703
</dd>
714704
</div>
715705
</dl>
716706
</div>
717-
<div class="hidden xl:sticky xl:top-0 xl:-mr-6 xl:block xl:h-screen xl:flex-none xl:overflow-y-auto xl:pt-10 xl:pb-16 xl:pr-6 navigation-custom-scrollbar astro-MDSAD7BS">
707+
<div class="hidden xl:sticky xl:top-0 xl:-mr-6 xl:block xl:h-screen xl:flex-none xl:overflow-y-auto xl:pt-10 xl:pb-16 xl:pr-6 navigation-custom-scrollbar astro-ZG44MSEJ">
718708
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CW7D627Y&placement=filamentphpcom" id="_carbonads_js"></script>
719709

720-
<nav aria-labelledby="on-this-page-title" class="my-6 w-56 astro-MDSAD7BS">
721-
<h2 id="on-this-page-title" class="font-display text-sm font-bold text-stone-900 dark:text-white astro-MDSAD7BS">
710+
<nav aria-labelledby="on-this-page-title" class="my-6 w-56 astro-ZG44MSEJ">
711+
<h2 id="on-this-page-title" class="font-display text-sm font-bold text-stone-900 dark:text-white astro-ZG44MSEJ">
722712
On this page
723-
</h2><ol role="list" class="mt-4 space-y-3 text-sm astro-MDSAD7BS" x-data="tableOfContents([{&#34;depth&#34;:2,&#34;slug&#34;:&#34;disabling-the-default-widgets&#34;,&#34;text&#34;:&#34;Disabling the Default Widgets&#34;,&#34;title&#34;:&#34;Disabling the Default Widgets&#34;,&#34;children&#34;:[]}])" x-on:scroll.window="updateCurrentSection">
724-
<li class="astro-MDSAD7BS">
725-
<h3 class="astro-MDSAD7BS">
726-
<a href="#disabling-the-default-widgets" class="inline-block transition duration-300 ease-out astro-MDSAD7BS" x-bind:class="current == 'disabling-the-default-widgets' ? 'text-butter font-bold translate-x-1' : 'text-gray-500 hover:text-gray-700 dark:text-gray-300 dark:hover:text-gray-300 hover:translate-x-1'">
713+
</h2><ol role="list" class="mt-4 space-y-3 text-sm astro-ZG44MSEJ" x-data="tableOfContents([{&#34;depth&#34;:2,&#34;slug&#34;:&#34;disabling-the-default-widgets&#34;,&#34;text&#34;:&#34;Disabling the Default Widgets&#34;,&#34;title&#34;:&#34;Disabling the Default Widgets&#34;,&#34;children&#34;:[]}])" x-on:scroll.window="updateCurrentSection">
714+
<li class="astro-ZG44MSEJ">
715+
<h3 class="astro-ZG44MSEJ">
716+
<a href="#disabling-the-default-widgets" class="inline-block transition duration-300 ease-out astro-ZG44MSEJ" x-bind:class="current == 'disabling-the-default-widgets' ? 'text-butter font-bold translate-x-1' : 'text-gray-500 hover:text-gray-700 dark:text-gray-300 dark:hover:text-gray-300 hover:translate-x-1'">
727717
Disabling the Default Widgets
728718
</a>
729719
</h3>

0 commit comments

Comments
 (0)