panda_cms 0.5.6 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -4
- data/app/assets/builds/panda_cms.css +1 -1
- data/app/components/panda_cms/admin/table_component.html.erb +8 -0
- data/app/components/panda_cms/admin/table_component.rb +2 -1
- data/app/components/panda_cms/menu_component.html.erb +1 -1
- data/app/components/panda_cms/menu_component.rb +39 -8
- data/app/components/panda_cms/page_menu_component.html.erb +5 -7
- data/app/components/panda_cms/page_menu_component.rb +1 -4
- data/app/controllers/panda_cms/admin/sessions_controller.rb +3 -1
- data/app/helpers/panda_cms/application_helper.rb +15 -1
- data/app/models/panda_cms/page.rb +11 -11
- data/app/views/layouts/panda_cms/application.html.erb +29 -32
- data/app/views/panda_cms/admin/dashboard/show.html.erb +0 -1
- data/app/views/panda_cms/admin/forms/index.html.erb +1 -1
- data/app/views/panda_cms/admin/menus/index.html.erb +1 -1
- data/app/views/panda_cms/admin/pages/index.html.erb +1 -1
- data/app/views/panda_cms/admin/posts/index.html.erb +1 -1
- data/app/views/panda_cms/shared/_header.html.erb +1 -1
- data/config/importmap.rb +1 -0
- data/config/initializers/panda_cms.rb +8 -4
- data/config/routes.rb +4 -0
- data/db/migrate/20240923234535_add_depth_to_panda_cms_menus.rb +11 -0
- data/lib/panda_cms/engine.rb +12 -4
- data/lib/panda_cms/version.rb +1 -1
- metadata +58 -43
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd7ca583180961d77d05634c9159ab828e8412bb393189a17673e205678e2c2c
|
4
|
+
data.tar.gz: 27f77b7dea245a10c9e3f67404ce599009f46545c446d11102d4fbca6f4ba948
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9af8638df72dc9f4f444ad05cb3458fd1f04e499fe7f9246854973b0f713df7e360f9d6ce4f7aa7ccdff4e66826ed712de24b768eeec6d12ecbca47a41c863d
|
7
|
+
data.tar.gz: 6a28ab4cd9dd1e7ccf9f48d1dec7c21c2902313dc0ce11da4809862625953a38ae9f76e9eb91980aeed4dfe5d4a9f58ffc1b290b445466822196f465a0d2bb58
|
data/README.md
CHANGED
@@ -43,7 +43,7 @@ For initial setup, run:
|
|
43
43
|
```shell
|
44
44
|
bundle install
|
45
45
|
rails generate panda_cms:install
|
46
|
-
rails db:
|
46
|
+
rails db:schema:load
|
47
47
|
rails db:seed
|
48
48
|
```
|
49
49
|
|
@@ -62,9 +62,7 @@ This is a non-exhuastive list (there will be many more):
|
|
62
62
|
|
63
63
|
We welcome contributions.
|
64
64
|
|
65
|
-
See our [Contributing Guidelines](https://
|
66
|
-
|
67
|
-
See [Credits](https://github.com/pandacms/panda_cms/blob/main/CREDITS.md) for thanks, influences, libraries and other credits.
|
65
|
+
See our [Contributing Guidelines](https://docs.pandacms.io/developers/contributing/)
|
68
66
|
|
69
67
|
## License
|
70
68
|
|
@@ -1 +1 @@
|
|
1
|
-
/*! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem;--tw-shadow:0 0 #0000}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem;--tw-shadow:0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0'/%3E%3C/svg%3E")}@media (forced-colors:active) {[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}@media (forced-colors:active) {[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active) {[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}html[data-theme=default]{--color-white:249 249 249;--color-black:26 22 29;--color-light:238 206 230;--color-mid:141 94 183;--color-dark:33 29 73;--color-highlight:208 64 20;--color-active:188 230 163;--color-warning:250 207 142;--color-inactive:211 229 249;--color-error:245 129 129}html[data-theme=sky]{--color-white:249 249 249;--color-black:26 22 29;--color-light:204 238 242;--color-mid:42 102 159;--color-dark:20 32 74;--color-highlight:208 64 20;--color-active:166 211 129;--color-warning:244 190 102;--color-error:208 64 20}a.block-link:after{content:"";inset:0;position:absolute}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.aspect-h-7{--tw-aspect-h:7}.aspect-w-10{padding-bottom:calc(var(--tw-aspect-h)/var(--tw-aspect-w)*100%);position:relative;--tw-aspect-w:10}.aspect-w-10>*{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-inset-1\.5{inset:-.375rem}.inset-0{inset:0}.right-0{right:0}.right-2{right:.5rem}.top-0{top:0}.top-2{top:.5rem}.z-10{z-index:10}.z-50{z-index:50}.col-span-3{grid-column:span 3/span 3}.m-0{margin:0}.-mx-3{margin-left:-.75rem;margin-right:-.75rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-1{margin-bottom:-.25rem}.-mb-px{margin-bottom:-1px}.-ml-1{margin-left:-.25rem}.-mt-1{margin-top:-.25rem}.-mt-4{margin-top:-1rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-0{margin-left:0}.ml-0\.5{margin-left:.125rem}.ml-12{margin-left:3rem}.ml-16{margin-left:4rem}.ml-2{margin-left:.5rem}.ml-20{margin-left:5rem}.ml-24{margin-left:6rem}.ml-28{margin-left:7rem}.ml-3{margin-left:.75rem}.ml-32{margin-left:8rem}.ml-36{margin-left:9rem}.ml-4{margin-left:1rem}.ml-40{margin-left:10rem}.ml-48{margin-left:12rem}.ml-6{margin-left:1.5rem}.ml-8{margin-left:2rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-5{margin-right:1.25rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.table-cell{display:table-cell}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-20{height:5rem}.h-32{height:8rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-\[calc\(100vh-10rem\)\]{height:calc(100vh - 10rem)}.h-full{height:100%}.max-h-16{max-height:4rem}.max-h-full{max-height:100%}.min-h-20{min-height:5rem}.min-h-32{min-height:8rem}.min-h-full{min-height:100%}.w-0{width:0}.w-10{width:2.5rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-96{width:24rem}.w-auto{width:auto}.w-full{width:100%}.min-w-56{min-width:14rem}.min-w-full{min-width:100%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.basis-3\/12{flex-basis:25%}.table-auto{table-layout:auto}.border-collapse{border-collapse:collapse}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-5{gap:1.25rem}.gap-x-1\.5{-moz-column-gap:.375rem;column-gap:.375rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-5{row-gap:1.25rem}.gap-y-8{row-gap:2rem}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.break-keep{word-break:keep-all}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-b-lg{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-l-none{border-bottom-left-radius:0;border-top-left-radius:0}.rounded-s-md{border-end-start-radius:.375rem;border-start-start-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-dark{--tw-border-opacity:1;border-color:rgb(var(--color-dark)/var(--tw-border-opacity))}.border-error{--tw-border-opacity:1;border-color:rgb(var(--color-error)/var(--tw-border-opacity))}.border-highlight{--tw-border-opacity:1;border-color:rgb(var(--color-highlight)/var(--tw-border-opacity))}.border-mid{--tw-border-opacity:1;border-color:rgb(var(--color-mid)/var(--tw-border-opacity))}.border-mid\/20{border-color:rgb(var(--color-mid)/.2)}.border-transparent{border-color:transparent}.bg-active{--tw-bg-opacity:1;background-color:rgb(var(--color-active)/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(var(--color-black)/var(--tw-bg-opacity))}.bg-black\/5{background-color:rgb(var(--color-black)/.05)}.bg-error\/10{background-color:rgb(var(--color-error)/.1)}.bg-mid{--tw-bg-opacity:1;background-color:rgb(var(--color-mid)/var(--tw-bg-opacity))}.bg-mid\/5{background-color:rgb(var(--color-mid)/.05)}.bg-transparent{background-color:transparent}.bg-warning{--tw-bg-opacity:1;background-color:rgb(var(--color-warning)/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(var(--color-white)/var(--tw-bg-opacity))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-dark{--tw-gradient-from:rgb(var(--color-dark)/1) var(--tw-gradient-from-position);--tw-gradient-to:rgb(var(--color-dark)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-light\/20{--tw-gradient-from:rgb(var(--color-light)/0.2) var(--tw-gradient-from-position);--tw-gradient-to:rgb(var(--color-light)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-light{--tw-gradient-to:rgb(var(--color-light)/1) var(--tw-gradient-to-position)}.to-mid{--tw-gradient-to:rgb(var(--color-mid)/1) var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-12{padding-bottom:3rem;padding-top:3rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-3\.5{padding-bottom:.875rem;padding-top:.875rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.pb-16{padding-bottom:4rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-12{padding-left:3rem}.pl-16{padding-left:4rem}.pl-20{padding-left:5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-8{padding-left:2rem}.pr-10{padding-right:2.5rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-4{padding-top:1rem}.pt-\[0\.2rem\]{padding-top:.2rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-6{line-height:1.5rem}.leading-loose{line-height:2}.tracking-tight{letter-spacing:-.025em}.text-active{--tw-text-opacity:1;color:rgb(var(--color-active)/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(var(--color-black)/var(--tw-text-opacity))}.text-black\/60{color:rgb(var(--color-black)/.6)}.text-black\/80{color:rgb(var(--color-black)/.8)}.text-dark{--tw-text-opacity:1;color:rgb(var(--color-dark)/var(--tw-text-opacity))}.text-error{--tw-text-opacity:1;color:rgb(var(--color-error)/var(--tw-text-opacity))}.text-highlight{--tw-text-opacity:1;color:rgb(var(--color-highlight)/var(--tw-text-opacity))}.text-mid{--tw-text-opacity:1;color:rgb(var(--color-mid)/var(--tw-text-opacity))}.text-mid\/50{color:rgb(var(--color-mid)/.5)}.text-warning{--tw-text-opacity:1;color:rgb(var(--color-warning)/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(var(--color-white)/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-none,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-0,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-inset{--tw-ring-inset:inset}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--color-black)/var(--tw-ring-opacity))}.ring-black\/30{--tw-ring-color:rgb(var(--color-black)/0.3)}.ring-mid{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--color-mid)/var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity:0.05}.ring-offset-0{--tw-ring-offset-width:0px}.ring-offset-2{--tw-ring-offset-width:2px}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-all{transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ql-editor{border:none!important;margin:-1rem 0 0;padding:0!important;&:active,&:focus{border:none;outline:none}h1,h2,h3,p{margin-bottom:20px!important}h1,h2,h3,li,p{font-size:130%!important}}.trix-content .attachment-gallery>.attachment,.trix-content .attachment-gallery>action-text-attachment{flex:1 0 33%;max-width:33%;padding:0 .5em}.trix-content .attachment-gallery.attachment-gallery--2>.attachment,.trix-content .attachment-gallery.attachment-gallery--2>action-text-attachment,.trix-content .attachment-gallery.attachment-gallery--4>.attachment,.trix-content .attachment-gallery.attachment-gallery--4>action-text-attachment{flex-basis:50%;max-width:50%}.trix-content action-text-attachment .attachment{max-width:100%!important;padding:0!important}.file\:rounded::file-selector-button{border-radius:.25rem}.file\:border-0::file-selector-button{border-width:0}.file\:bg-white::file-selector-button{--tw-bg-opacity:1;background-color:rgb(var(--color-white)/var(--tw-bg-opacity))}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}.hover\:bg-black:hover{--tw-bg-opacity:1;background-color:rgb(var(--color-black)/var(--tw-bg-opacity))}.hover\:bg-light:hover{--tw-bg-opacity:1;background-color:rgb(var(--color-light)/var(--tw-bg-opacity))}.hover\:bg-mid\/20:hover{background-color:rgb(var(--color-mid)/.2)}.hover\:bg-mid\/60:hover{background-color:rgb(var(--color-mid)/.6)}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(var(--color-white)/var(--tw-bg-opacity))}.hover\:text-black\/80:hover{color:rgb(var(--color-black)/.8)}.hover\:text-error:hover{--tw-text-opacity:1;color:rgb(var(--color-error)/var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(var(--color-white)/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-sm:hover{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:border-dark:focus{--tw-border-opacity:1;border-color:rgb(var(--color-dark)/var(--tw-border-opacity))}.focus\:text-black:focus{--tw-text-opacity:1;color:rgb(var(--color-black)/var(--tw-text-opacity))}.focus\:underline:focus{text-decoration-line:underline}.focus\:shadow-none:focus{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring-1:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-inset:focus{--tw-ring-inset:inset}.focus\:ring-black:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--color-black)/var(--tw-ring-opacity))}.focus\:ring-dark:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--color-dark)/var(--tw-ring-opacity))}.focus\:ring-offset-0:focus{--tw-ring-offset-width:0px}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-highlight:focus-visible{outline-color:rgb(var(--color-highlight)/1)}.group:hover .group-hover\:opacity-75{opacity:.75}@media (min-width:640px){.sm\:mx-0{margin-left:0;margin-right:0}.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:mt-2{margin-top:.5rem}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:w-full{width:100%}.sm\:max-w-sm{max-width:24rem}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:items-end{align-items:flex-end}.sm\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:leading-6{line-height:1.5rem}}@media (min-width:768px){.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1024px){.lg\:fixed{position:fixed}.lg\:inset-y-0{bottom:0;top:0}.lg\:z-50{z-index:50}.lg\:ml-72{margin-left:18rem}.lg\:mt-0{margin-top:0}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:max-h-full{max-height:100%}.lg\:w-72{width:18rem}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-col{flex-direction:column}.lg\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:1280px){.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.xl\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}}
|
1
|
+
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem;--tw-shadow:0 0 #0000}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem;--tw-shadow:0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0'/%3E%3C/svg%3E")}@media (forced-colors:active) {[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}@media (forced-colors:active) {[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active) {[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}html[data-theme=default]{--color-white:249 249 249;--color-black:26 22 29;--color-light:238 206 230;--color-mid:141 94 183;--color-dark:33 29 73;--color-highlight:208 64 20;--color-active:188 230 163;--color-warning:250 207 142;--color-inactive:211 229 249;--color-error:245 129 129}html[data-theme=sky]{--color-white:249 249 249;--color-black:26 22 29;--color-light:204 238 242;--color-mid:42 102 159;--color-dark:20 32 74;--color-highlight:208 64 20;--color-active:166 211 129;--color-warning:244 190 102;--color-error:208 64 20}a.block-link:after{content:"";inset:0;position:absolute}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.aspect-h-7{--tw-aspect-h:7}.aspect-w-10{padding-bottom:calc(var(--tw-aspect-h)/var(--tw-aspect-w)*100%);position:relative;--tw-aspect-w:10}.aspect-w-10>*{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-inset-1\.5{inset:-.375rem}.inset-0{inset:0}.right-0{right:0}.right-2{right:.5rem}.top-0{top:0}.top-2{top:.5rem}.z-10{z-index:10}.z-50{z-index:50}.col-span-3{grid-column:span 3/span 3}.m-0{margin:0}.-mx-3{margin-left:-.75rem;margin-right:-.75rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-1{margin-bottom:-.25rem}.-mb-px{margin-bottom:-1px}.-ml-1{margin-left:-.25rem}.-mt-1{margin-top:-.25rem}.-mt-4{margin-top:-1rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-0{margin-left:0}.ml-0\.5{margin-left:.125rem}.ml-12{margin-left:3rem}.ml-16{margin-left:4rem}.ml-2{margin-left:.5rem}.ml-20{margin-left:5rem}.ml-24{margin-left:6rem}.ml-28{margin-left:7rem}.ml-3{margin-left:.75rem}.ml-32{margin-left:8rem}.ml-36{margin-left:9rem}.ml-4{margin-left:1rem}.ml-40{margin-left:10rem}.ml-48{margin-left:12rem}.ml-6{margin-left:1.5rem}.ml-8{margin-left:2rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-5{margin-right:1.25rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.table-cell{display:table-cell}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-20{height:5rem}.h-32{height:8rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-\[calc\(100vh-10rem\)\]{height:calc(100vh - 10rem)}.h-full{height:100%}.max-h-16{max-height:4rem}.max-h-full{max-height:100%}.min-h-20{min-height:5rem}.min-h-32{min-height:8rem}.min-h-full{min-height:100%}.w-0{width:0}.w-10{width:2.5rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-96{width:24rem}.w-auto{width:auto}.w-full{width:100%}.min-w-56{min-width:14rem}.min-w-full{min-width:100%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.basis-3\/12{flex-basis:25%}.table-auto{table-layout:auto}.border-collapse{border-collapse:collapse}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-5{gap:1.25rem}.gap-x-1\.5{-moz-column-gap:.375rem;column-gap:.375rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-5{row-gap:1.25rem}.gap-y-8{row-gap:2rem}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.break-keep{word-break:keep-all}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-b-lg{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-l-none{border-bottom-left-radius:0;border-top-left-radius:0}.rounded-s-md{border-end-start-radius:.375rem;border-start-start-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-dark{--tw-border-opacity:1;border-color:rgb(var(--color-dark)/var(--tw-border-opacity))}.border-error{--tw-border-opacity:1;border-color:rgb(var(--color-error)/var(--tw-border-opacity))}.border-highlight{--tw-border-opacity:1;border-color:rgb(var(--color-highlight)/var(--tw-border-opacity))}.border-mid{--tw-border-opacity:1;border-color:rgb(var(--color-mid)/var(--tw-border-opacity))}.border-mid\/20{border-color:rgb(var(--color-mid)/.2)}.border-transparent{border-color:transparent}.bg-active{--tw-bg-opacity:1;background-color:rgb(var(--color-active)/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(var(--color-black)/var(--tw-bg-opacity))}.bg-black\/5{background-color:rgb(var(--color-black)/.05)}.bg-error\/10{background-color:rgb(var(--color-error)/.1)}.bg-mid{--tw-bg-opacity:1;background-color:rgb(var(--color-mid)/var(--tw-bg-opacity))}.bg-mid\/5{background-color:rgb(var(--color-mid)/.05)}.bg-transparent{background-color:transparent}.bg-warning{--tw-bg-opacity:1;background-color:rgb(var(--color-warning)/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(var(--color-white)/var(--tw-bg-opacity))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-dark{--tw-gradient-from:rgb(var(--color-dark)/1) var(--tw-gradient-from-position);--tw-gradient-to:rgb(var(--color-dark)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-light\/20{--tw-gradient-from:rgb(var(--color-light)/0.2) var(--tw-gradient-from-position);--tw-gradient-to:rgb(var(--color-light)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-light{--tw-gradient-to:rgb(var(--color-light)/1) var(--tw-gradient-to-position)}.to-mid{--tw-gradient-to:rgb(var(--color-mid)/1) var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-12{padding-bottom:3rem;padding-top:3rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-3\.5{padding-bottom:.875rem;padding-top:.875rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.pb-16{padding-bottom:4rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-12{padding-left:3rem}.pl-16{padding-left:4rem}.pl-20{padding-left:5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-8{padding-left:2rem}.pr-10{padding-right:2.5rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-4{padding-top:1rem}.pt-\[0\.2rem\]{padding-top:.2rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-6{line-height:1.5rem}.leading-loose{line-height:2}.tracking-tight{letter-spacing:-.025em}.text-active{--tw-text-opacity:1;color:rgb(var(--color-active)/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(var(--color-black)/var(--tw-text-opacity))}.text-black\/60{color:rgb(var(--color-black)/.6)}.text-black\/80{color:rgb(var(--color-black)/.8)}.text-dark{--tw-text-opacity:1;color:rgb(var(--color-dark)/var(--tw-text-opacity))}.text-error{--tw-text-opacity:1;color:rgb(var(--color-error)/var(--tw-text-opacity))}.text-highlight{--tw-text-opacity:1;color:rgb(var(--color-highlight)/var(--tw-text-opacity))}.text-mid{--tw-text-opacity:1;color:rgb(var(--color-mid)/var(--tw-text-opacity))}.text-mid\/50{color:rgb(var(--color-mid)/.5)}.text-warning{--tw-text-opacity:1;color:rgb(var(--color-warning)/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(var(--color-white)/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-none,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-0,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-inset{--tw-ring-inset:inset}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--color-black)/var(--tw-ring-opacity))}.ring-black\/30{--tw-ring-color:rgb(var(--color-black)/0.3)}.ring-mid{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--color-mid)/var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity:0.05}.ring-offset-0{--tw-ring-offset-width:0px}.ring-offset-2{--tw-ring-offset-width:2px}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-all{transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ql-editor{border:none!important;margin:-1rem 0 0;padding:0!important;&:active,&:focus{border:none;outline:none}h1,h2,h3,p{margin-bottom:20px!important}h1,h2,h3,li,p{font-size:130%!important}}.trix-content .attachment-gallery>.attachment,.trix-content .attachment-gallery>action-text-attachment{flex:1 0 33%;max-width:33%;padding:0 .5em}.trix-content .attachment-gallery.attachment-gallery--2>.attachment,.trix-content .attachment-gallery.attachment-gallery--2>action-text-attachment,.trix-content .attachment-gallery.attachment-gallery--4>.attachment,.trix-content .attachment-gallery.attachment-gallery--4>action-text-attachment{flex-basis:50%;max-width:50%}.trix-content action-text-attachment .attachment{max-width:100%!important;padding:0!important}.file\:rounded::file-selector-button{border-radius:.25rem}.file\:border-0::file-selector-button{border-width:0}.file\:bg-white::file-selector-button{--tw-bg-opacity:1;background-color:rgb(var(--color-white)/var(--tw-bg-opacity))}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}.hover\:bg-black:hover{--tw-bg-opacity:1;background-color:rgb(var(--color-black)/var(--tw-bg-opacity))}.hover\:bg-light:hover{--tw-bg-opacity:1;background-color:rgb(var(--color-light)/var(--tw-bg-opacity))}.hover\:bg-mid\/20:hover{background-color:rgb(var(--color-mid)/.2)}.hover\:bg-mid\/60:hover{background-color:rgb(var(--color-mid)/.6)}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(var(--color-white)/var(--tw-bg-opacity))}.hover\:text-black\/80:hover{color:rgb(var(--color-black)/.8)}.hover\:text-error:hover{--tw-text-opacity:1;color:rgb(var(--color-error)/var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(var(--color-white)/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-sm:hover{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:border-dark:focus{--tw-border-opacity:1;border-color:rgb(var(--color-dark)/var(--tw-border-opacity))}.focus\:text-black:focus{--tw-text-opacity:1;color:rgb(var(--color-black)/var(--tw-text-opacity))}.focus\:underline:focus{text-decoration-line:underline}.focus\:shadow-none:focus{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring-1:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-inset:focus{--tw-ring-inset:inset}.focus\:ring-black:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--color-black)/var(--tw-ring-opacity))}.focus\:ring-dark:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--color-dark)/var(--tw-ring-opacity))}.focus\:ring-offset-0:focus{--tw-ring-offset-width:0px}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-highlight:focus-visible{outline-color:rgb(var(--color-highlight)/1)}.group:hover .group-hover\:opacity-75{opacity:.75}@media (min-width:640px){.sm\:mx-0{margin-left:0;margin-right:0}.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:mt-2{margin-top:.5rem}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:w-full{width:100%}.sm\:max-w-sm{max-width:24rem}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:items-end{align-items:flex-end}.sm\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:leading-6{line-height:1.5rem}}@media (min-width:768px){.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1024px){.lg\:fixed{position:fixed}.lg\:inset-y-0{bottom:0;top:0}.lg\:z-50{z-index:50}.lg\:ml-72{margin-left:18rem}.lg\:mt-0{margin-top:0}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:max-h-full{max-height:100%}.lg\:w-72{width:18rem}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-col{flex-direction:column}.lg\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:1280px){.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.xl\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}}
|
@@ -7,6 +7,7 @@
|
|
7
7
|
</div>
|
8
8
|
</div>
|
9
9
|
|
10
|
+
<% if @rows.any? %>
|
10
11
|
<div class="table-row-group">
|
11
12
|
<% @rows.each do |row| %>
|
12
13
|
<div class="table-row relative bg-mid/5 hover:bg-mid/20">
|
@@ -19,3 +20,10 @@
|
|
19
20
|
<% end %>
|
20
21
|
</div>
|
21
22
|
</div>
|
23
|
+
<% else %>
|
24
|
+
</div>
|
25
|
+
<div class="text-center mx-12 block border border-dashed py-12 rounded-lg">
|
26
|
+
<h3 class="py-1 text-xl font-semibold text-gray-900">No <%= @term.pluralize %></h3>
|
27
|
+
<p class="py-1 text-base text-gray-500">Get started by creating a new <%= @term %>.</p>
|
28
|
+
</div>
|
29
|
+
<% end %>
|
@@ -2,17 +2,48 @@
|
|
2
2
|
|
3
3
|
module PandaCms
|
4
4
|
class MenuComponent < ViewComponent::Base
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
#
|
6
|
+
# Renders the menu item and its children
|
7
|
+
#
|
8
|
+
# @param [String] name The name of the menu
|
9
|
+
# @param [String] current_path The current path of the request (request.path)
|
10
|
+
# @param [Hash] styles
|
11
|
+
# The CSS classes to apply to the menu items, containing "default", "inactive" and "active" keys.
|
12
|
+
# The "default" key is applied to all menu items. "inactive" and "active" are set based on the
|
13
|
+
# current path.
|
14
|
+
# @return [void]
|
15
|
+
def initialize(name:, current_path: "", styles: {})
|
9
16
|
@menu = PandaCms::Menu.find_by(name: name)
|
10
|
-
@menu_items = @menu.menu_items
|
11
|
-
@
|
17
|
+
@menu_items = @menu.menu_items
|
18
|
+
@menu_items = @menu_items.where("depth <= ?", @menu.depth) if @menu.depth
|
19
|
+
@menu_items = @menu_items.order(:lft)
|
20
|
+
@current_path = current_path.to_s
|
21
|
+
|
22
|
+
@menu_items = @menu_items.order(:lft).map do |menu_item|
|
23
|
+
if is_active?(menu_item)
|
24
|
+
menu_item.define_singleton_method(:css_classes) { styles[:default] + " " + styles[:active] }
|
25
|
+
else
|
26
|
+
menu_item.define_singleton_method(:css_classes) { styles[:default] + " " + styles[:inactive] }
|
27
|
+
end
|
28
|
+
|
29
|
+
menu_item
|
30
|
+
end
|
12
31
|
end
|
13
32
|
|
14
|
-
def
|
15
|
-
@
|
33
|
+
def is_active?(menu_item)
|
34
|
+
return true if @current_path == "/" && active_link?(menu_item.page.path, match: :exact)
|
35
|
+
return true if menu_item.page.path != "/" && active_link?(menu_item.page.path, match: :starts_with)
|
36
|
+
false
|
37
|
+
end
|
38
|
+
|
39
|
+
def active_link?(path, match: :starts_with)
|
40
|
+
if match == :starts_with
|
41
|
+
return @current_path.starts_with?(path)
|
42
|
+
elsif match == :exact
|
43
|
+
return (@current_path == path)
|
44
|
+
end
|
45
|
+
|
46
|
+
false
|
16
47
|
end
|
17
48
|
end
|
18
49
|
end
|
@@ -1,19 +1,17 @@
|
|
1
1
|
<% inactive_nav_styles = "border-gray-200 text-slate-600 " %>
|
2
|
-
<% active_nav_styles = "bg-gray-100 text-blue-900 border-blue-900" %>
|
3
|
-
|
4
|
-
<
|
5
|
-
<ul role="list" class="flex flex-col flex-1">
|
2
|
+
<% active_nav_styles = "bg-gray-100 text-blue-900 border-blue-900 " %>
|
3
|
+
<nav class="pl-8 font-sans font-sm">
|
4
|
+
<ul role="list" class="">
|
6
5
|
<li>
|
7
|
-
<a href="<%= menu_item.page.path %>" class="border-l-2 hover:bg-gray-50 group
|
6
|
+
<a href="<%= menu_item.page.path %>" class="border-l-2 hover:bg-gray-50 group px-3 py-2.5 text-lg leading-6 font-semibold <%= menu_item.page == PandaCms::Current.page ? active_nav_styles : inactive_nav_styles %>">
|
8
7
|
<%= menu_item.text %>
|
9
8
|
</a>
|
10
9
|
</li>
|
11
|
-
|
12
10
|
<div>
|
13
11
|
<ul class="mt-1">
|
14
12
|
<% PandaCms::MenuItem.each_with_level(menu_item.descendants) do |submenu_item, level| %>
|
15
13
|
<li data-level="<%= level %>" data-page-id="<%= submenu_item.page.id %>" <% if level > 1 && !PandaCms::Current.page.id.in?(submenu_item.page.self_and_ancestors.ids + submenu_item.page.siblings.ids) %> class="hidden"<% end %>>
|
16
|
-
<a href="<%= submenu_item.page.path %>" class="
|
14
|
+
<a href="<%= submenu_item.page.path %>" class="<%= helpers.menu_indent(submenu_item) %> border-l-2 hover:bg-gray-50 block px-3 py-2.5 text-base leading-6 font-regular <%= submenu_item.page == PandaCms::Current.page ? active_nav_styles : inactive_nav_styles %>">
|
17
15
|
<%= submenu_item.page.title %>
|
18
16
|
</a>
|
19
17
|
</li>
|
@@ -14,11 +14,8 @@ module PandaCms
|
|
14
14
|
|
15
15
|
menu = PandaCms::Menu.find_by(kind: "auto", start_page: start_page)
|
16
16
|
@menu_item = menu.menu_items.order(:lft)&.first unless menu.nil?
|
17
|
-
@children = menu_item&.descendants unless menu_item.nil?
|
18
|
-
end
|
19
17
|
|
20
|
-
|
21
|
-
@menu_item
|
18
|
+
@children = menu_item&.descendants unless menu_item.nil?
|
22
19
|
end
|
23
20
|
end
|
24
21
|
end
|
@@ -26,7 +26,9 @@ module PandaCms
|
|
26
26
|
|
27
27
|
# Always create the first user as admin, regardless of what our settings look like
|
28
28
|
# else we can't ever really login. :)
|
29
|
-
|
29
|
+
if !create_as_admin
|
30
|
+
create_as_admin = true if !create_as_admin && PandaCms::User.count.zero?
|
31
|
+
end
|
30
32
|
|
31
33
|
if user_info["first_name"] && user_info["last_name"]
|
32
34
|
firstname = user_info["first_name"]
|
@@ -1,7 +1,21 @@
|
|
1
1
|
module PandaCms
|
2
2
|
module ApplicationHelper
|
3
|
+
#
|
4
|
+
# Helper method to render a ViewComponent
|
5
|
+
# @see ViewComponent::Rendering#render
|
6
|
+
# @usage <%= component "example", title: "Hello World!" %>
|
7
|
+
#
|
8
|
+
def component(name, *, **, &)
|
9
|
+
component = name.to_s.camelize.constantize::Component
|
10
|
+
render(component.new(*, **), &)
|
11
|
+
end
|
12
|
+
|
3
13
|
def title_tag
|
4
|
-
|
14
|
+
if @breadcrumbs.present?
|
15
|
+
"#{@breadcrumbs.last&.name} · #{PandaCms.title}".html_safe
|
16
|
+
else
|
17
|
+
PandaCms.title
|
18
|
+
end
|
5
19
|
end
|
6
20
|
|
7
21
|
def panda_cms_editor
|
@@ -37,6 +37,17 @@ module PandaCms
|
|
37
37
|
archived: "archived"
|
38
38
|
}
|
39
39
|
|
40
|
+
#
|
41
|
+
# Update any menus which include this page or its parent as a menu item
|
42
|
+
#
|
43
|
+
# @return nil
|
44
|
+
# @visibility public
|
45
|
+
#
|
46
|
+
def update_auto_menus
|
47
|
+
menus.find_each(&:generate_auto_menu_items)
|
48
|
+
menus_of_parent.find_each(&:generate_auto_menu_items)
|
49
|
+
end
|
50
|
+
|
40
51
|
private
|
41
52
|
|
42
53
|
#
|
@@ -73,16 +84,5 @@ module PandaCms
|
|
73
84
|
def update_existing_menu_items
|
74
85
|
menu_items.where.not(text: title).update_all(text: title)
|
75
86
|
end
|
76
|
-
|
77
|
-
#
|
78
|
-
# Update any menus which include this page or its parent as a menu item
|
79
|
-
#
|
80
|
-
# @return nil
|
81
|
-
# @visibility private
|
82
|
-
#
|
83
|
-
def update_auto_menus
|
84
|
-
menus.find_each(&:generate_auto_menu_items)
|
85
|
-
menus_of_parent.find_each(&:generate_auto_menu_items)
|
86
|
-
end
|
87
87
|
end
|
88
88
|
end
|
@@ -1,20 +1,18 @@
|
|
1
1
|
<%= render "panda_cms/shared/header", html_class: "h-full bg-white" %>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
</div>
|
2
|
+
<div class="flex h-full" id="panda-container">
|
3
|
+
<div class="absolute top-0 w-full lg:flex lg:fixed lg:inset-y-0 lg:z-50 lg:flex-col lg:w-72">
|
4
|
+
<div class="flex overflow-y-auto flex-col gap-y-5 px-4 pb-4 max-h-16 bg-gradient-to-br lg:max-h-full grow from-dark to-mid" data-transition-enter="transition-all ease-in-out duration-300" data-transition-enter-from="m-h-16" data-transition-enter-to="max-h-full" data-transition-leave="transition-all ease-in-out duration-300" data-transition-leave-from="max-h-full" data-transition-leave-to="max-h-16">
|
5
|
+
<%= render "panda_cms/admin/shared/sidebar" %>
|
7
6
|
</div>
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
<div data-toggle-target="toggleable" class="flex hidden absolute right-0 flex-col h-full bg-white divide-y divide-gray-200 shadow-xl basis-3/12"
|
7
|
+
</div>
|
8
|
+
<div class="flex flex-col flex-1 mt-16 ml-0 lg:mt-0 lg:ml-72" id="panda-inner-container" <% if content_for :sidebar %> data-controller="toggle" data-action="keydown.esc->modal#close" tabindex="-1"<% end %>>
|
9
|
+
<section id="panda-main" class="flex flex-row h-full">
|
10
|
+
<div class="flex-1 h-full" id="panda-cms-primary-content">
|
11
|
+
<%= render "panda_cms/admin/shared/breadcrumbs" %>
|
12
|
+
<%= yield %>
|
13
|
+
</div>
|
14
|
+
<% if content_for :sidebar %>
|
15
|
+
<div data-toggle-target="toggleable" class="hidden flex absolute right-0 flex-col h-full bg-white divide-y divide-gray-200 shadow-xl basis-3/12"
|
18
16
|
data-transition-enter="transform transition ease-in-out duration-500"
|
19
17
|
data-transition-enter-from="translate-x-full"
|
20
18
|
data-transition-enter-to="translate-x-0"
|
@@ -22,23 +20,22 @@
|
|
22
20
|
data-transition-leave-from="translate-x-full"
|
23
21
|
data-transition-leave-to="translate-x-0"
|
24
22
|
id="slideover">
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
</div>
|
31
|
-
</div>
|
32
|
-
<div class="flex flex-col flex-1 justify-between">
|
33
|
-
<div class="px-4 space-y-6">
|
34
|
-
<%= yield :sidebar %>
|
35
|
-
</div>
|
36
|
-
</div>
|
23
|
+
<div class="overflow-y-auto flex-1 h-0">
|
24
|
+
<div class="py-3 px-4 mb-4 bg-black">
|
25
|
+
<div class="flex justify-between items-center">
|
26
|
+
<h2 class="text-base font-semibold leading-6 text-white" id="slideover-title"><i class="mr-2 fa-light fa-gear"></i> <%= yield :sidebar_title %> </h2>
|
27
|
+
<a href="#" data-action="click->toggle#toggle touch->toggle#toggle"><i class="font-bold text-white fa-regular fa-xmark right"></i></a>
|
37
28
|
</div>
|
38
29
|
</div>
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
30
|
+
<div class="flex flex-col flex-1 justify-between">
|
31
|
+
<div class="px-4 space-y-6">
|
32
|
+
<%= yield :sidebar %>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<% end %>
|
38
|
+
</section>
|
39
|
+
</div>
|
40
|
+
</div>
|
44
41
|
<%= render "panda_cms/shared/footer" %>
|
@@ -2,7 +2,6 @@
|
|
2
2
|
<% container.with_heading(text: "Dashboard", level: 1) do |heading| %>
|
3
3
|
<% heading.with_button(action: :add, text: "Add Page", link: new_admin_page_path) %>
|
4
4
|
<% end %>
|
5
|
-
|
6
5
|
<dl class="grid grid-cols-1 gap-5 mt-5 sm:grid-cols-3">
|
7
6
|
<%= render PandaCms::Admin::StatisticsComponent.new(metric: "Views Today", value: PandaCms::Visit.group_by_day(:visited_at, last: 1).count.values.first) %>
|
8
7
|
<%= render PandaCms::Admin::StatisticsComponent.new(metric: "Views Last Week", value: PandaCms::Visit.group_by_week(:visited_at, last: 1).count.values.first) %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<% component.with_heading(text: "Forms", level: 1) do |heading| %>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
-
<%= render PandaCms::Admin::TableComponent.new(rows: forms) do |table| %>
|
5
|
+
<%= render PandaCms::Admin::TableComponent.new(term: "form", rows: forms) do |table| %>
|
6
6
|
<% table.column("Name") { |form| block_link_to form.name, admin_form_path(form) } %>
|
7
7
|
<% table.column("Status") { |form| render PandaCms::Admin::TagComponent.new(status: :active) } %>
|
8
8
|
<% table.column("Last Submission") do |form| %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<% heading.with_button(action: :add, text: "Add Menu", link: new_admin_menu_path) %>
|
4
4
|
<% end %>
|
5
5
|
|
6
|
-
<%= render PandaCms::Admin::TableComponent.new(rows: menus) do |table| %>
|
6
|
+
<%= render PandaCms::Admin::TableComponent.new(term: "menu", rows: menus) do |table| %>
|
7
7
|
<% table.column("Name") { |menu| link_to menu.name, edit_admin_menu_path(menu) } %>
|
8
8
|
<% table.column("Kind") { |menu| render PandaCms::Admin::TagComponent.new(status: :active, text: menu.kind.titleize) } %>
|
9
9
|
<% end %>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<% end %>
|
5
5
|
|
6
6
|
<% if root_page %>
|
7
|
-
<%= render PandaCms::Admin::TableComponent.new(rows: root_page.self_and_descendants) do |table| %>
|
7
|
+
<%= render PandaCms::Admin::TableComponent.new(term: "page", rows: root_page.self_and_descendants) do |table| %>
|
8
8
|
<% table.column("Name") do |page| %>
|
9
9
|
<div class="<%= table_indent(page) %>">
|
10
10
|
<%= link_to page.title, edit_admin_page_path(page), class: "block h-full w-full" %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<% heading.with_button(action: :add, text: "Add Post", link: new_admin_post_path) %>
|
4
4
|
<% end %>
|
5
5
|
|
6
|
-
<%= render PandaCms::Admin::TableComponent.new(rows: posts) do |table| %>
|
6
|
+
<%= render PandaCms::Admin::TableComponent.new(term: "post", rows: posts) do |table| %>
|
7
7
|
<% table.column("Title") do |post| %>
|
8
8
|
<div class="">
|
9
9
|
<%= link_to post.title, edit_admin_post_path(post), class: "block h-full w-full" %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html data-theme="default" class="<%= html_class ||= "" %>">
|
3
3
|
<head>
|
4
|
-
<title
|
4
|
+
<title><%= title_tag %></title>
|
5
5
|
<%= csrf_meta_tags %>
|
6
6
|
<%= csp_meta_tag %>
|
7
7
|
<script src="https://kit.fontawesome.com/7835d81e75.js" crossorigin="anonymous"></script>
|
data/config/importmap.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
pin "@hotwired/stimulus", to: "https://ga.jspm.io/npm:stimulus@3.2.2/dist/stimulus.js"
|
2
2
|
pin "@hotwired/stimulus-loading", to: "/panda-cms-assets/javascripts/vendor/stimulus-loading.js" # 3.2.2
|
3
|
+
pin "@hotwired/turbo-rails", to: "turbo.min.js"
|
3
4
|
pin "@rails/activestorage", to: "https://ga.jspm.io/npm:@rails/activestorage@7.2.0/app/assets/javascripts/activestorage.esm.js"
|
4
5
|
|
5
6
|
pin "panda_cms/vendor/stimulus-components-rails-nested-form", to: "/panda-cms-assets/javascripts/vendor/stimulus-components-rails-nested-form.js", preload: false
|
@@ -27,19 +27,23 @@ PandaCms.authentication = {
|
|
27
27
|
},
|
28
28
|
# If you assign specific users or groups, you will likely want to set this to true to enable
|
29
29
|
# auto-provisioning
|
30
|
-
create_account_on_first_login:
|
30
|
+
create_account_on_first_login: false,
|
31
31
|
redirect_uri: Rails.application.credentials.dig(:microsoft, :redirect_uri)
|
32
32
|
},
|
33
33
|
google: {
|
34
34
|
enabled: false,
|
35
|
-
create_account_on_first_login:
|
35
|
+
create_account_on_first_login: false,
|
36
36
|
create_admin_account_on_first_login: false,
|
37
|
+
# client_id: Rails.application.credentials.dig(:google, :client_id),
|
38
|
+
# client_secret: Rails.application.credentials.dig(:google, :client_secret),
|
39
|
+
client_id: "552337866923-o1jd9ushva70su79c2ke8ftnu623chsl.apps.googleusercontent.com", # Will only work on localhost
|
40
|
+
client_secret: "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", # Will only work on localhost
|
37
41
|
redirect_uri: Rails.application.credentials.dig(:google, :redirect_uri)
|
38
42
|
},
|
39
43
|
github: {
|
40
44
|
enabled: true,
|
41
|
-
create_account_on_first_login:
|
42
|
-
create_admin_account_on_first_login:
|
45
|
+
create_account_on_first_login: false,
|
46
|
+
create_admin_account_on_first_login: false,
|
43
47
|
# client_id: Rails.application.credentials.dig(:github, :client_id),
|
44
48
|
# client_secret: Rails.application.credentials.dig(:github, :client_secret),
|
45
49
|
client_id: "Ov23li9k0LpMXtq8FShb", # Will only work on localhost
|
data/config/routes.rb
CHANGED
@@ -16,6 +16,10 @@ PandaCms::Engine.routes.draw do
|
|
16
16
|
get "bulk_editor", to: "bulk_editor#new"
|
17
17
|
post "bulk_editor", to: "bulk_editor#create"
|
18
18
|
end
|
19
|
+
|
20
|
+
if Rails.env.development?
|
21
|
+
mount Lookbook::Engine, at: "/lookbook"
|
22
|
+
end
|
19
23
|
end
|
20
24
|
|
21
25
|
get PandaCms.admin_path, to: "admin/dashboard#show", as: :admin_dashboard
|
@@ -0,0 +1,11 @@
|
|
1
|
+
class AddDepthToPandaCmsMenus < ActiveRecord::Migration[7.2]
|
2
|
+
def change
|
3
|
+
add_column :panda_cms_menus, :depth, :integer, null: true, default: nil
|
4
|
+
|
5
|
+
homepage = PandaCms::Page.find_by(path: "/")
|
6
|
+
if homepage
|
7
|
+
main_menu = PandaCms::Menu.find_by(start_page_id: homepage.id, kind: :auto)
|
8
|
+
main_menu&.update(depth: 2)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
data/lib/panda_cms/engine.rb
CHANGED
@@ -2,6 +2,7 @@ require "groupdate"
|
|
2
2
|
require "importmap-rails"
|
3
3
|
require "paper_trail"
|
4
4
|
require "view_component"
|
5
|
+
require "lookbook"
|
5
6
|
|
6
7
|
require "omniauth"
|
7
8
|
require "omniauth/rails_csrf_protection"
|
@@ -20,9 +21,6 @@ module PandaCms
|
|
20
21
|
ApplicationController.helper(::ApplicationHelper)
|
21
22
|
end
|
22
23
|
|
23
|
-
# We rely on ViewComponent here before we can continue
|
24
|
-
config.railties_order = [::ViewComponent::Engine, PandaCms::Engine, :main_app, :all]
|
25
|
-
|
26
24
|
# Set our generators
|
27
25
|
config.generators do |g|
|
28
26
|
g.orm :active_record, primary_key_type: :uuid
|
@@ -47,8 +45,8 @@ module PandaCms
|
|
47
45
|
app.config.importmap.paths << PandaCms::Engine.root.join("config/importmap.rb")
|
48
46
|
end
|
49
47
|
|
50
|
-
# Append routes to the routes file
|
51
48
|
config.after_initialize do |app|
|
49
|
+
# Append routes to the routes file
|
52
50
|
app.routes.append do
|
53
51
|
mount PandaCms::Engine => "/", :as => "panda_cms"
|
54
52
|
post "/_forms/:id", to: "panda_cms/form_submissions#create", as: :panda_cms_form_submit
|
@@ -67,6 +65,16 @@ module PandaCms
|
|
67
65
|
end
|
68
66
|
end
|
69
67
|
|
68
|
+
# Set up ViewComponent and Lookbook
|
69
|
+
# config.view_component.component_parent_class = "PandaCms::BaseComponent"
|
70
|
+
config.view_component.view_component_path = PandaCms::Engine.root.join("lib/components").to_s
|
71
|
+
config.eager_load_paths << PandaCms::Engine.root.join("lib/components").to_s
|
72
|
+
config.view_component.generate.sidecar = true
|
73
|
+
config.view_component.generate.preview = true
|
74
|
+
config.view_component.preview_paths ||= []
|
75
|
+
config.view_component.preview_paths << PandaCms::Engine.root.join("lib/component_previews").to_s
|
76
|
+
config.view_component.generate.preview_path = "lib/component_previews"
|
77
|
+
|
70
78
|
# Set up authentication
|
71
79
|
initializer "panda_cms.omniauth", before: "omniauth" do |app|
|
72
80
|
app.config.session_store :cookie_store, key: "_panda_cms_session"
|
data/lib/panda_cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: panda_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Panda Software Limited
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activestorage-office-previewer
|
@@ -178,6 +178,20 @@ dependencies:
|
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '3.0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: lookbook
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '2.0'
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '2.0'
|
181
195
|
- !ruby/object:Gem::Dependency
|
182
196
|
name: omniauth
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -254,14 +268,14 @@ dependencies:
|
|
254
268
|
requirements:
|
255
269
|
- - "~>"
|
256
270
|
- !ruby/object:Gem::Version
|
257
|
-
version: '15.
|
271
|
+
version: '15.2'
|
258
272
|
type: :runtime
|
259
273
|
prerelease: false
|
260
274
|
version_requirements: !ruby/object:Gem::Requirement
|
261
275
|
requirements:
|
262
276
|
- - "~>"
|
263
277
|
- !ruby/object:Gem::Version
|
264
|
-
version: '15.
|
278
|
+
version: '15.2'
|
265
279
|
- !ruby/object:Gem::Dependency
|
266
280
|
name: pg
|
267
281
|
requirement: !ruby/object:Gem::Requirement
|
@@ -627,7 +641,21 @@ dependencies:
|
|
627
641
|
- !ruby/object:Gem::Version
|
628
642
|
version: '2.5'
|
629
643
|
- !ruby/object:Gem::Dependency
|
630
|
-
name:
|
644
|
+
name: htmlbeautifier
|
645
|
+
requirement: !ruby/object:Gem::Requirement
|
646
|
+
requirements:
|
647
|
+
- - "~>"
|
648
|
+
- !ruby/object:Gem::Version
|
649
|
+
version: '1.4'
|
650
|
+
type: :development
|
651
|
+
prerelease: false
|
652
|
+
version_requirements: !ruby/object:Gem::Requirement
|
653
|
+
requirements:
|
654
|
+
- - "~>"
|
655
|
+
- !ruby/object:Gem::Version
|
656
|
+
version: '1.4'
|
657
|
+
- !ruby/object:Gem::Dependency
|
658
|
+
name: lefthook
|
631
659
|
requirement: !ruby/object:Gem::Requirement
|
632
660
|
requirements:
|
633
661
|
- - "~>"
|
@@ -641,7 +669,21 @@ dependencies:
|
|
641
669
|
- !ruby/object:Gem::Version
|
642
670
|
version: '1.7'
|
643
671
|
- !ruby/object:Gem::Dependency
|
644
|
-
name:
|
672
|
+
name: listen
|
673
|
+
requirement: !ruby/object:Gem::Requirement
|
674
|
+
requirements:
|
675
|
+
- - "~>"
|
676
|
+
- !ruby/object:Gem::Version
|
677
|
+
version: '3.9'
|
678
|
+
type: :development
|
679
|
+
prerelease: false
|
680
|
+
version_requirements: !ruby/object:Gem::Requirement
|
681
|
+
requirements:
|
682
|
+
- - "~>"
|
683
|
+
- !ruby/object:Gem::Version
|
684
|
+
version: '3.9'
|
685
|
+
- !ruby/object:Gem::Dependency
|
686
|
+
name: msgpack
|
645
687
|
requirement: !ruby/object:Gem::Requirement
|
646
688
|
requirements:
|
647
689
|
- - "~>"
|
@@ -674,14 +716,14 @@ dependencies:
|
|
674
716
|
requirements:
|
675
717
|
- - "~>"
|
676
718
|
- !ruby/object:Gem::Version
|
677
|
-
version: '0
|
719
|
+
version: '1.0'
|
678
720
|
type: :development
|
679
721
|
prerelease: false
|
680
722
|
version_requirements: !ruby/object:Gem::Requirement
|
681
723
|
requirements:
|
682
724
|
- - "~>"
|
683
725
|
- !ruby/object:Gem::Version
|
684
|
-
version: '0
|
726
|
+
version: '1.0'
|
685
727
|
- !ruby/object:Gem::Dependency
|
686
728
|
name: rails-route-checker
|
687
729
|
requirement: !ruby/object:Gem::Requirement
|
@@ -823,61 +865,33 @@ dependencies:
|
|
823
865
|
- !ruby/object:Gem::Version
|
824
866
|
version: '0.9'
|
825
867
|
- !ruby/object:Gem::Dependency
|
826
|
-
name:
|
827
|
-
requirement: !ruby/object:Gem::Requirement
|
828
|
-
requirements:
|
829
|
-
- - "~>"
|
830
|
-
- !ruby/object:Gem::Version
|
831
|
-
version: '0.50'
|
832
|
-
type: :development
|
833
|
-
prerelease: false
|
834
|
-
version_requirements: !ruby/object:Gem::Requirement
|
835
|
-
requirements:
|
836
|
-
- - "~>"
|
837
|
-
- !ruby/object:Gem::Version
|
838
|
-
version: '0.50'
|
839
|
-
- !ruby/object:Gem::Dependency
|
840
|
-
name: solargraph-rails
|
841
|
-
requirement: !ruby/object:Gem::Requirement
|
842
|
-
requirements:
|
843
|
-
- - "~>"
|
844
|
-
- !ruby/object:Gem::Version
|
845
|
-
version: '1.1'
|
846
|
-
type: :development
|
847
|
-
prerelease: false
|
848
|
-
version_requirements: !ruby/object:Gem::Requirement
|
849
|
-
requirements:
|
850
|
-
- - "~>"
|
851
|
-
- !ruby/object:Gem::Version
|
852
|
-
version: '1.1'
|
853
|
-
- !ruby/object:Gem::Dependency
|
854
|
-
name: solargraph-standardrb
|
868
|
+
name: standard
|
855
869
|
requirement: !ruby/object:Gem::Requirement
|
856
870
|
requirements:
|
857
871
|
- - "~>"
|
858
872
|
- !ruby/object:Gem::Version
|
859
|
-
version:
|
873
|
+
version: '1.40'
|
860
874
|
type: :development
|
861
875
|
prerelease: false
|
862
876
|
version_requirements: !ruby/object:Gem::Requirement
|
863
877
|
requirements:
|
864
878
|
- - "~>"
|
865
879
|
- !ruby/object:Gem::Version
|
866
|
-
version:
|
880
|
+
version: '1.40'
|
867
881
|
- !ruby/object:Gem::Dependency
|
868
|
-
name:
|
882
|
+
name: ruby-lsp
|
869
883
|
requirement: !ruby/object:Gem::Requirement
|
870
884
|
requirements:
|
871
885
|
- - "~>"
|
872
886
|
- !ruby/object:Gem::Version
|
873
|
-
version: '
|
887
|
+
version: '0.18'
|
874
888
|
type: :development
|
875
889
|
prerelease: false
|
876
890
|
version_requirements: !ruby/object:Gem::Requirement
|
877
891
|
requirements:
|
878
892
|
- - "~>"
|
879
893
|
- !ruby/object:Gem::Version
|
880
|
-
version: '
|
894
|
+
version: '0.18'
|
881
895
|
- !ruby/object:Gem::Dependency
|
882
896
|
name: turbo-rails
|
883
897
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1095,6 +1109,7 @@ files:
|
|
1095
1109
|
- db/migrate/20240806204412_add_completion_path_to_panda_cms_forms.rb
|
1096
1110
|
- db/migrate/20240820081917_change_form_submissions_to_submission_count.rb
|
1097
1111
|
- db/migrate/20240904200605_create_action_text_tables.action_text.rb
|
1112
|
+
- db/migrate/20240923234535_add_depth_to_panda_cms_menus.rb
|
1098
1113
|
- db/seeds.rb
|
1099
1114
|
- lib/generators/panda_cms/install_generator.rb
|
1100
1115
|
- lib/panda_cms.rb
|
@@ -1152,7 +1167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1152
1167
|
- !ruby/object:Gem::Version
|
1153
1168
|
version: '0'
|
1154
1169
|
requirements: []
|
1155
|
-
rubygems_version: 3.5.
|
1170
|
+
rubygems_version: 3.5.18
|
1156
1171
|
signing_key:
|
1157
1172
|
specification_version: 4
|
1158
1173
|
summary: Better websites on Rails.
|