@powerhousedao/connect 6.2.3-dev.71 → 6.2.3-dev.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/RUNTIME-CONFIG.md +2 -90
- package/dist/{ClearStorageModal-DxBXLSmH.js → ClearStorageModal-UrKsUfAG.js} +4 -4
- package/dist/{ClearStorageModal-DxBXLSmH.js.map → ClearStorageModal-UrKsUfAG.js.map} +1 -1
- package/dist/{CreateDocumentModal-B-cXzeOA.js → CreateDocumentModal-CiIW3pzx.js} +18 -9
- package/dist/CreateDocumentModal-CiIW3pzx.js.map +1 -0
- package/dist/{DebugSettingsModal-D1I-K2Gf.js → DebugSettingsModal-CgGazj3J.js} +6 -6
- package/dist/{DebugSettingsModal-D1I-K2Gf.js.map → DebugSettingsModal-CgGazj3J.js.map} +1 -1
- package/dist/{InspectorModal-D85U4oKJ.js → InspectorModal-Dvfzy6Q2.js} +6 -6
- package/dist/{InspectorModal-D85U4oKJ.js.map → InspectorModal-Dvfzy6Q2.js.map} +1 -1
- package/dist/app-loader-Ho1-z1fv.js +4 -0
- package/dist/{app-loader-casiq2T2.js → app-loader-b3At29LQ.js} +11 -11
- package/dist/{app-loader-casiq2T2.js.map → app-loader-b3At29LQ.js.map} +1 -1
- package/dist/{boot-CFPdHSqB.js → boot-BbECCfkE.js} +4 -4
- package/dist/{boot-CFPdHSqB.js.map → boot-BbECCfkE.js.map} +1 -1
- package/dist/{build-info-Cn2f6llN.js → build-info-BS1JT5IX.js} +5 -5
- package/dist/{build-info-Cn2f6llN.js.map → build-info-BS1JT5IX.js.map} +1 -1
- package/dist/{components-C4K5xyad.js → components-C3f6Ci7V.js} +6 -6
- package/dist/{components-C4K5xyad.js.map → components-C3f6Ci7V.js.map} +1 -1
- package/dist/{connect.config-D1pGNmaF.js → connect.config-DL9nKtlW.js} +6 -5
- package/dist/connect.config-DL9nKtlW.js.map +1 -0
- package/dist/{connection-state-B6fleM37.js → connection-state-Bwm9Agwy.js} +4 -4
- package/dist/{connection-state-B6fleM37.js.map → connection-state-Bwm9Agwy.js.map} +1 -1
- package/dist/{cookie-banner-CAvd3PC3.js → cookie-banner-NclLYtB0.js} +4 -4
- package/dist/{cookie-banner-CAvd3PC3.js.map → cookie-banner-NclLYtB0.js.map} +1 -1
- package/dist/generic.d.ts +20 -2
- package/dist/generic.d.ts.map +1 -1
- package/dist/generic.js +2 -2
- package/dist/{load-DcDV9hi4.js → load-Dx-ssjO5.js} +9 -9
- package/dist/{load-DcDV9hi4.js.map → load-Dx-ssjO5.js.map} +1 -1
- package/dist/{load-runtime-config-Deq75NYr.js → load-runtime-config-BVBJKjyd.js} +4 -4
- package/dist/{load-runtime-config-Deq75NYr.js.map → load-runtime-config-BVBJKjyd.js.map} +1 -1
- package/dist/main.js +2 -2
- package/dist/{package-manager-CzBsaUUd.js → package-manager-DzxMzlms.js} +31 -12
- package/dist/package-manager-DzxMzlms.js.map +1 -0
- package/dist/{pglite-seed-eGzXMld2.js → pglite-seed-QPbGbLB_.js} +4 -4
- package/dist/{pglite-seed-eGzXMld2.js.map → pglite-seed-QPbGbLB_.js.map} +1 -1
- package/dist/{plugins-CegSox2x.js → plugins-BUSgAzk9.js} +4 -4
- package/dist/{plugins-CegSox2x.js.map → plugins-BUSgAzk9.js.map} +1 -1
- package/dist/{preferences-store-CSqauT9V.js → preferences-store-DxYAnGCc.js} +4 -4
- package/dist/{preferences-store-CSqauT9V.js.map → preferences-store-DxYAnGCc.js.map} +1 -1
- package/dist/prerender.d.ts.map +1 -1
- package/dist/prerender.js +12 -5
- package/dist/prerender.js.map +1 -1
- package/dist/{reactor-BGYR1N7Z.js → reactor-DJVGEQho.js} +52 -11
- package/dist/reactor-DJVGEQho.js.map +1 -0
- package/dist/reactor.worker.js +10 -12
- package/dist/reactor.worker.js.map +1 -1
- package/dist/{registerServiceWorker-APlHkrmH.js → registerServiceWorker-X6fT91iL.js} +4 -4
- package/dist/{registerServiceWorker-APlHkrmH.js.map → registerServiceWorker-X6fT91iL.js.map} +1 -1
- package/dist/route-tree.js +1 -1
- package/dist/{route-views-CDVZytw4.js → route-views-DmmQ1DzX.js} +4 -4
- package/dist/{route-views-CDVZytw4.js.map → route-views-DmmQ1DzX.js.map} +1 -1
- package/dist/route-views.js +3 -3
- package/dist/router-CBzb5FUq.js +4 -0
- package/dist/{router-Cu0PH6sh.js → router-DXpaaTeR.js} +13 -5
- package/dist/router-DXpaaTeR.js.map +1 -0
- package/dist/{settings-CFn4TA0g.js → settings-CiB17TJY.js} +10 -9
- package/dist/{settings-CFn4TA0g.js.map → settings-CiB17TJY.js.map} +1 -1
- package/dist/{settings-tabs-BC8gAacB.js → settings-tabs-V0EGYnyB.js} +24 -17
- package/dist/settings-tabs-V0EGYnyB.js.map +1 -0
- package/dist/shell-head.html +1 -1
- package/dist/shell.html +1 -1
- package/dist/start-connect.js +2 -2
- package/dist/style.css +82 -0
- package/dist/{ui-BOTsJPoc.js → ui-Jmmy7K8U.js} +8 -8
- package/dist/{ui-BOTsJPoc.js.map → ui-Jmmy7K8U.js.map} +1 -1
- package/docs/customizing/data-and-navigation.md +50 -0
- package/docs/customizing/drive-apps.md +42 -0
- package/docs/customizing/hosts-and-plugins.md +23 -0
- package/docs/customizing/layout.md +9 -2
- package/docs/customizing/modals.md +25 -4
- package/docs/customizing/overrides.md +59 -4
- package/docs/customizing/packages.md +2 -0
- package/docs/customizing/pages.md +10 -13
- package/docs/customizing/styles-and-branding.md +9 -2
- package/docs/customizing/types-and-troubleshooting.md +4 -2
- package/generic-routes.json +9 -0
- package/package.json +19 -18
- package/skills/customize-connect/SKILL.md +14 -11
- package/CUSTOMIZING.md +0 -80
- package/dist/CreateDocumentModal-B-cXzeOA.js.map +0 -1
- package/dist/app-loader-D5GEwpML.js +0 -4
- package/dist/connect.config-D1pGNmaF.js.map +0 -1
- package/dist/package-manager-CzBsaUUd.js.map +0 -1
- package/dist/reactor-BGYR1N7Z.js.map +0 -1
- package/dist/router-B0OQvO11.js +0 -4
- package/dist/router-Cu0PH6sh.js.map +0 -1
- package/dist/settings-tabs-BC8gAacB.js.map +0 -1
package/dist/shell-head.html
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
<style data-ph-shell="generic">/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
|
|
2
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-leading:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:"Inter", sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-600:#f28e87;--color-red-900:#ea4334;--color-orange-600:#ffac4c;--color-orange-900:#f80;--color-green-600:#63cf80;--color-green-900:#34a853;--color-blue-500:#66b5ff;--color-blue-600:#4ca9ff;--color-blue-900:#0084ff;--color-purple-600:#b18aef;--color-slate-100:#f3f5f7;--color-slate-300:#c7ccd1;--color-slate-500:#31363a;--color-slate-600:#1e2124;--color-slate-700:#1a1d1f;--color-slate-800:#151819;--color-slate-900:#0e1010;--color-gray-50:#fcfcfc;--color-gray-100:#f5f5f5;--color-gray-200:#f0f0f0;--color-gray-300:#d8d9da;--color-gray-500:#9fa1a3;--color-gray-700:#464d4e;--color-gray-800:#404345;--color-gray-900:#333738;--color-white:#fff;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-tight:1.25;--radius-md:.375rem;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}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;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}body{color:var(--foreground)}button{cursor:pointer}.ph-default-styles h1{margin-top:calc(var(--spacing) * 6);margin-bottom:calc(var(--spacing) * 4);font-family:var(--font-sans);font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height));--tw-leading:var(--leading-tight);line-height:var(--leading-tight);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--foreground)}.ph-default-styles h2{margin-top:calc(var(--spacing) * 5);margin-bottom:calc(var(--spacing) * 3);font-family:var(--font-sans);font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height));--tw-leading:var(--leading-tight);line-height:var(--leading-tight);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--foreground)}.ph-default-styles h3{margin-top:calc(var(--spacing) * 4);margin-bottom:calc(var(--spacing) * 2);font-family:var(--font-sans);font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height));--tw-leading:var(--leading-tight);line-height:var(--leading-tight);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--foreground)}.ph-default-styles p{font-family:var(--font-sans);font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height));--tw-leading:var(--leading-tight);line-height:var(--leading-tight);--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal);color:var(--foreground)}.ph-default-styles small{font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-leading:1;--tw-font-weight:var(--font-weight-normal);line-height:1;font-weight:var(--font-weight-normal);color:var(--foreground)}.ph-default-styles input[type=text],.ph-default-styles input[type=email],.ph-default-styles input[type=password],.ph-default-styles input[type=search],.ph-default-styles input[type=tel],.ph-default-styles input[type=url],.ph-default-styles input[type=number],.ph-default-styles textarea{margin-bottom:calc(var(--spacing) * 2.5);box-sizing:border-box;border-radius:var(--radius-md);border-style:var(--tw-border-style);border-width:1px;border-color:var(--input);background-color:var(--card);width:100%;padding-inline:calc(var(--spacing) * 3);padding-block:calc(var(--spacing) * 1.75);font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5);--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal);color:var(--foreground)}.ph-default-styles textarea{min-height:calc(var(--spacing) * 9);resize:vertical}.ph-default-styles input[type=text]:is([readonly],[disabled]),.ph-default-styles input[type=email]:is([readonly],[disabled]),.ph-default-styles input[type=password]:is([readonly],[disabled]),.ph-default-styles input[type=search]:is([readonly],[disabled]),.ph-default-styles input[type=tel]:is([readonly],[disabled]),.ph-default-styles input[type=url]:is([readonly],[disabled]),.ph-default-styles input[type=number]:is([readonly],[disabled]),.ph-default-styles textarea:is([readonly],[disabled]){background-color:var(--background);color:var(--muted-foreground)}.ph-default-styles a{color:var(--info);text-decoration-line:none}.ph-default-styles a:hover{color:var(--info);--tw-brightness:brightness(50%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);text-decoration-line:underline}.ph-default-styles a:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.ph-default-styles a:focus{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.ph-default-styles a:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-outline-style:none;outline-style:none}.ph-default-styles ul,.ph-default-styles ol{margin-top:calc(var(--spacing) * 0);margin-bottom:calc(var(--spacing) * 0);padding-left:calc(var(--spacing) * 0)}.ph-default-styles label{font-family:var(--font-sans);--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium);color:var(--foreground);display:block}.ph-default-styles hr{margin-block:calc(var(--spacing) * 4);border-style:var(--tw-border-style);background-color:var(--border);border-width:0;height:1px}@supports ((-moz-appearance:none)){*{scrollbar-color:initial;scrollbar-width:initial}}}@layer components,external-packages;@layer utilities{.pointer-events-none{pointer-events:none}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing) * 0)}.top-0{top:calc(var(--spacing) * 0)}.z-0{z-index:0}.z-1{z-index:1}.z-10{z-index:10}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-8{margin:calc(var(--spacing) * 8)}.mx-auto{margin-inline:auto}.mt-3{margin-top:calc(var(--spacing) * 3)}@supports ((-moz-appearance:none)){.scrollbar-none{scrollbar-width:none}}.scrollbar-none::-webkit-scrollbar{display:none}.flex{display:flex}.hidden{display:none}.size-full{width:100%;height:100%}.h-full{height:100%}.h-screen{height:100vh}.w-full{width:100%}.flex-1{flex:1}.shrink-0{flex-shrink:0}.animate-pulse{animation:var(--animate-pulse)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.overflow-auto{overflow:auto}.rounded-full{border-radius:3.40282e38px}.rounded-md{border-radius:var(--radius-md)}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-sidebar-border{border-color:var(--sidebar-border)}.bg-background{background-color:var(--background)}.bg-sidebar{background-color:var(--sidebar)}.p-4{padding:calc(var(--spacing) * 4)}.px-2{padding-inline:calc(var(--spacing) * 2)}.py-4{padding-block:calc(var(--spacing) * 4)}.pt-12{padding-top:calc(var(--spacing) * 12)}.text-sm\/6{font-size:var(--text-sm);line-height:calc(var(--spacing) * 6)}.text-sm\/10{font-size:var(--text-sm);line-height:calc(var(--spacing) * 10)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-foreground{color:var(--foreground)}.text-muted-foreground{color:var(--muted-foreground)}.text-sidebar-foreground{color:var(--sidebar-foreground)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.aria-\[current\=page\]\:bg-sidebar-accent[aria-current=page]{background-color:var(--sidebar-accent)}@media (prefers-reduced-motion:reduce){.motion-reduce\:animate-none{animation:none}}.dark\:border-none:where(.dark,.dark *){--tw-border-style:none;border-style:none}}:root{--toastify-toast-min-height:48px;--toastify-toast-bd-radius:8px;--toastify-text-color-light:var(--color-gray-800);--toastify-color-progress-info:var(--color-gray-300);--toastify-color-progress-success:var(--color-gray-300);--toastify-color-progress-warning:var(--color-gray-300);--toastify-color-progress-error:var(--color-gray-300);--toastify-color-progress-light:var(--color-gray-300)}html:has(dialog[open]){overflow:hidden}.checkbox-container input[type=checkbox]{accent-color:var(--color-gray-900)}.rmsc{--rmsc-main:var(--color-gray-300)!important;--rmsc-hover:var(--color-gray-100)!important;--rmsc-selected:var(--color-gray-300)!important}.Toastify__toast-body{margin:0;padding:0;font-size:14px;font-weight:600}.Toastify__toast{padding:12px 16px;box-shadow:0 8px 32px #00000052}.Toastify__progress-bar--wrp{height:2px}input[type=number]::-webkit-inner-spin-button{appearance:none;margin:0}input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.hover-bg-transparent:hover{background-color:#0000000d}:root{--ph-core-bg:var(--background,#fff);--ph-core-fg:var(--foreground,#1f2328);--ph-core-muted:var(--muted-foreground,#59636e);--ph-core-border:var(--border,#d1d9e0);--ph-core-hover:var(--accent,#f6f8fa);--ph-core-link:#0969da;--ph-core-string:#0a3069;--ph-core-number:#953800;--ph-core-danger:var(--destructive,#d1242f)}:root.dark{--ph-core-bg:var(--background,#0d1117);--ph-core-fg:var(--foreground,#e6edf3);--ph-core-muted:var(--muted-foreground,#9198a1);--ph-core-border:var(--border,#3d444d);--ph-core-hover:var(--accent,#151b23);--ph-core-link:#4493f8;--ph-core-string:#a5d6ff;--ph-core-number:#ffa657;--ph-core-danger:var(--destructive,#f85149)}:root{--background:var(--color-gray-50);--foreground:var(--color-gray-800);--card:var(--color-white);--card-foreground:var(--color-gray-800);--popover:var(--color-white);--popover-foreground:var(--color-gray-800);--primary:var(--color-gray-800);--primary-foreground:var(--color-white);--secondary:var(--color-gray-200);--secondary-foreground:var(--color-gray-700);--muted:var(--color-gray-100);--muted-foreground:var(--color-gray-500);--accent:var(--color-gray-100);--accent-foreground:var(--color-gray-800);--border:var(--color-gray-200);--input:var(--color-gray-200);--ring:var(--color-blue-500);--hover:.95;--active:.9;--disabled:.5;--destructive:#d02516;--destructive-foreground:var(--color-white);--info:var(--color-blue-900);--info-foreground:var(--color-white);--success:var(--color-green-900);--success-foreground:var(--color-white);--warning:var(--color-orange-900);--warning-foreground:var(--color-white);--chart-1:var(--color-blue-600);--chart-2:var(--color-green-600);--chart-3:var(--color-orange-600);--chart-4:var(--color-purple-600);--chart-5:var(--color-red-600);--sidebar:var(--background);--sidebar-foreground:var(--foreground);--sidebar-primary:var(--primary);--sidebar-primary-foreground:var(--primary-foreground);--sidebar-accent:var(--accent);--sidebar-accent-foreground:var(--accent-foreground);--sidebar-border:var(--border);--sidebar-ring:var(--ring)}.dark{--background:var(--color-slate-800);--foreground:var(--color-slate-100);--card:var(--color-slate-700);--card-foreground:var(--color-slate-100);--popover:var(--color-slate-700);--popover-foreground:var(--color-slate-100);--primary:var(--color-slate-100);--primary-foreground:var(--color-slate-900);--secondary:var(--color-slate-600);--secondary-foreground:var(--color-slate-100);--muted:var(--color-slate-700);--muted-foreground:var(--color-slate-300);--accent:var(--color-slate-700);--accent-foreground:var(--color-slate-100);--border:var(--color-slate-500);--input:var(--color-slate-500);--hover:1.25;--active:1.4;--destructive:var(--color-red-900)}:root{--wf-ok:#1a7f45;--wf-fail:#c4312a;--wf-warn:#9a5800;--wf-run:#1d63d6;--wf-edge:#cbd5e1;--wf-literal:#7c3aed}.dark{--wf-ok:#4cc47d;--wf-fail:#f2776e;--wf-warn:#e9a23b;--wf-run:#6aa6ff;--wf-edge:#3a4146;--wf-literal:#b794f6}.wf-data-tree{--w-rjv-font-family:ui-monospace, SFMono-Regular, Menlo, monospace;--w-rjv-background-color:transparent;--w-rjv-color:var(--foreground);--w-rjv-key-string:var(--muted-foreground);--w-rjv-key-number:var(--muted-foreground);--w-rjv-line-color:var(--border);--w-rjv-arrow-color:var(--muted-foreground);--w-rjv-info-color:var(--muted-foreground);--w-rjv-curlybraces-color:var(--muted-foreground);--w-rjv-brackets-color:var(--muted-foreground);--w-rjv-colon-color:var(--muted-foreground);--w-rjv-quotes-string-color:var(--foreground);--w-rjv-type-string-color:var(--foreground);--w-rjv-type-int-color:var(--wf-run);--w-rjv-type-float-color:var(--wf-run);--w-rjv-type-bigint-color:var(--wf-run);--w-rjv-type-boolean-color:var(--wf-literal);--w-rjv-type-null-color:var(--muted-foreground);--w-rjv-type-undefined-color:var(--muted-foreground);--w-rjv-type-url-color:var(--wf-run);--w-rjv-type-date-color:var(--foreground);font-size:12px;line-height:1.7}@keyframes wf-picker-in{0%{opacity:0;transform:scale(.97)}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-leading{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}.ph-shell-embed [data-ph-shell] #sidebar{display:none}.ph-shell-route [data-ph-shell] #content-view{visibility:hidden}@keyframes ph-shell-loader-in{from{opacity:0}to{opacity:1}}.ph-shell-loader{animation:ph-shell-loader-in .2s ease-in both;animation-delay:calc(.25s + var(--ph-shell-t,0ms))}.ph-shell-loader>*{animation-delay:var(--ph-shell-t,0ms)}</style><script data-ph-shell="generic">(function(){try{var h=document.documentElement;var e=new URLSearchParams(location.search).get('embed');if(e!==null&&e!=='0'&&e!=='false')h.classList.add('ph-shell-embed');var p=location.pathname;if(!/\/$/.test(p)||/\/d\//.test(p))h.classList.add('ph-shell-route')}catch(x){}})();</script>
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-leading:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:"Inter", sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-600:#f28e87;--color-red-900:#ea4334;--color-orange-600:#ffac4c;--color-orange-900:#f80;--color-green-600:#63cf80;--color-green-900:#34a853;--color-blue-500:#66b5ff;--color-blue-600:#4ca9ff;--color-blue-900:#0084ff;--color-purple-600:#b18aef;--color-slate-100:#f3f5f7;--color-slate-300:#c7ccd1;--color-slate-500:#31363a;--color-slate-600:#1e2124;--color-slate-700:#1a1d1f;--color-slate-800:#151819;--color-slate-900:#0e1010;--color-gray-50:#fcfcfc;--color-gray-100:#f5f5f5;--color-gray-200:#f0f0f0;--color-gray-300:#d8d9da;--color-gray-500:#9fa1a3;--color-gray-700:#464d4e;--color-gray-800:#404345;--color-gray-900:#333738;--color-white:#fff;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-tight:1.25;--radius-md:.375rem;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}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;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}body{color:var(--foreground)}button{cursor:pointer}.ph-default-styles h1{margin-top:calc(var(--spacing) * 6);margin-bottom:calc(var(--spacing) * 4);font-family:var(--font-sans);font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height));--tw-leading:var(--leading-tight);line-height:var(--leading-tight);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--foreground)}.ph-default-styles h2{margin-top:calc(var(--spacing) * 5);margin-bottom:calc(var(--spacing) * 3);font-family:var(--font-sans);font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height));--tw-leading:var(--leading-tight);line-height:var(--leading-tight);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--foreground)}.ph-default-styles h3{margin-top:calc(var(--spacing) * 4);margin-bottom:calc(var(--spacing) * 2);font-family:var(--font-sans);font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height));--tw-leading:var(--leading-tight);line-height:var(--leading-tight);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--foreground)}.ph-default-styles p{font-family:var(--font-sans);font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height));--tw-leading:var(--leading-tight);line-height:var(--leading-tight);--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal);color:var(--foreground)}.ph-default-styles small{font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-leading:1;--tw-font-weight:var(--font-weight-normal);line-height:1;font-weight:var(--font-weight-normal);color:var(--foreground)}.ph-default-styles input[type=text],.ph-default-styles input[type=email],.ph-default-styles input[type=password],.ph-default-styles input[type=search],.ph-default-styles input[type=tel],.ph-default-styles input[type=url],.ph-default-styles input[type=number],.ph-default-styles textarea{margin-bottom:calc(var(--spacing) * 2.5);box-sizing:border-box;border-radius:var(--radius-md);border-style:var(--tw-border-style);border-width:1px;border-color:var(--input);background-color:var(--card);width:100%;padding-inline:calc(var(--spacing) * 3);padding-block:calc(var(--spacing) * 1.75);font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5);--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal);color:var(--foreground)}.ph-default-styles textarea{min-height:calc(var(--spacing) * 9);resize:vertical}.ph-default-styles input[type=text]:is([readonly],[disabled]),.ph-default-styles input[type=email]:is([readonly],[disabled]),.ph-default-styles input[type=password]:is([readonly],[disabled]),.ph-default-styles input[type=search]:is([readonly],[disabled]),.ph-default-styles input[type=tel]:is([readonly],[disabled]),.ph-default-styles input[type=url]:is([readonly],[disabled]),.ph-default-styles input[type=number]:is([readonly],[disabled]),.ph-default-styles textarea:is([readonly],[disabled]){background-color:var(--background);color:var(--muted-foreground)}.ph-default-styles a{color:var(--info);text-decoration-line:none}.ph-default-styles a:hover{color:var(--info);--tw-brightness:brightness(50%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);text-decoration-line:underline}.ph-default-styles a:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.ph-default-styles a:focus{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.ph-default-styles a:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-outline-style:none;outline-style:none}.ph-default-styles ul,.ph-default-styles ol{margin-top:calc(var(--spacing) * 0);margin-bottom:calc(var(--spacing) * 0);padding-left:calc(var(--spacing) * 0)}.ph-default-styles label{font-family:var(--font-sans);--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium);color:var(--foreground);display:block}.ph-default-styles hr{margin-block:calc(var(--spacing) * 4);border-style:var(--tw-border-style);background-color:var(--border);border-width:0;height:1px}@supports ((-moz-appearance:none)){*{scrollbar-color:initial;scrollbar-width:initial}}}@layer components,external-packages;@layer utilities{.pointer-events-none{pointer-events:none}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing) * 0)}.top-0{top:calc(var(--spacing) * 0)}.isolate{isolation:isolate}.z-0{z-index:0}.z-1{z-index:1}.z-10{z-index:10}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-8{margin:calc(var(--spacing) * 8)}.mx-auto{margin-inline:auto}.mt-3{margin-top:calc(var(--spacing) * 3)}@supports ((-moz-appearance:none)){.scrollbar-none{scrollbar-width:none}}.scrollbar-none::-webkit-scrollbar{display:none}.flex{display:flex}.hidden{display:none}.size-full{width:100%;height:100%}.h-full{height:100%}.h-screen{height:100vh}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-full{width:100%}.flex-1{flex:1}.shrink-0{flex-shrink:0}.animate-pulse{animation:var(--animate-pulse)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.overflow-auto{overflow:auto}.rounded-full{border-radius:3.40282e38px}.rounded-md{border-radius:var(--radius-md)}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-sidebar-border{border-color:var(--sidebar-border)}.bg-background{background-color:var(--background)}.bg-sidebar{background-color:var(--sidebar)}.p-4{padding:calc(var(--spacing) * 4)}.px-2{padding-inline:calc(var(--spacing) * 2)}.py-4{padding-block:calc(var(--spacing) * 4)}.pt-12{padding-top:calc(var(--spacing) * 12)}.text-sm\/6{font-size:var(--text-sm);line-height:calc(var(--spacing) * 6)}.text-sm\/10{font-size:var(--text-sm);line-height:calc(var(--spacing) * 10)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-foreground{color:var(--foreground)}.text-muted-foreground{color:var(--muted-foreground)}.text-sidebar-foreground{color:var(--sidebar-foreground)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.aria-\[current\=page\]\:bg-sidebar-accent[aria-current=page]{background-color:var(--sidebar-accent)}@media (prefers-reduced-motion:reduce){.motion-reduce\:animate-none{animation:none}}@media not all and (min-width:40rem){.max-sm\:mt-0{margin-top:calc(var(--spacing) * 0)}.max-sm\:flex{display:flex}.max-sm\:h-auto{height:auto}.max-sm\:w-full{width:100%}.max-sm\:flex-row{flex-direction:row}.max-sm\:overflow-x-auto{overflow-x:auto}.max-sm\:overflow-y-hidden{overflow-y:hidden}.max-sm\:border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.max-sm\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.max-sm\:py-2{padding-block:calc(var(--spacing) * 2)}.max-sm\:pb-\[env\(safe-area-inset-bottom\)\]{padding-bottom:env(safe-area-inset-bottom)}}.dark\:border-none:where(.dark,.dark *){--tw-border-style:none;border-style:none}}:root{--toastify-toast-min-height:48px;--toastify-toast-bd-radius:8px;--toastify-text-color-light:var(--color-gray-800);--toastify-color-progress-info:var(--color-gray-300);--toastify-color-progress-success:var(--color-gray-300);--toastify-color-progress-warning:var(--color-gray-300);--toastify-color-progress-error:var(--color-gray-300);--toastify-color-progress-light:var(--color-gray-300)}html:has(dialog[open]){overflow:hidden}.checkbox-container input[type=checkbox]{accent-color:var(--color-gray-900)}.rmsc{--rmsc-main:var(--color-gray-300)!important;--rmsc-hover:var(--color-gray-100)!important;--rmsc-selected:var(--color-gray-300)!important}.Toastify__toast-body{margin:0;padding:0;font-size:14px;font-weight:600}.Toastify__toast{padding:12px 16px;box-shadow:0 8px 32px #00000052}.Toastify__progress-bar--wrp{height:2px}input[type=number]::-webkit-inner-spin-button{appearance:none;margin:0}input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.hover-bg-transparent:hover{background-color:#0000000d}:root{--ph-core-bg:var(--background,#fff);--ph-core-fg:var(--foreground,#1f2328);--ph-core-muted:var(--muted-foreground,#59636e);--ph-core-border:var(--border,#d1d9e0);--ph-core-hover:var(--accent,#f6f8fa);--ph-core-link:#0969da;--ph-core-string:#0a3069;--ph-core-number:#953800;--ph-core-danger:var(--destructive,#d1242f)}:root.dark{--ph-core-bg:var(--background,#0d1117);--ph-core-fg:var(--foreground,#e6edf3);--ph-core-muted:var(--muted-foreground,#9198a1);--ph-core-border:var(--border,#3d444d);--ph-core-hover:var(--accent,#151b23);--ph-core-link:#4493f8;--ph-core-string:#a5d6ff;--ph-core-number:#ffa657;--ph-core-danger:var(--destructive,#f85149)}:root{--background:var(--color-gray-50);--foreground:var(--color-gray-800);--card:var(--color-white);--card-foreground:var(--color-gray-800);--popover:var(--color-white);--popover-foreground:var(--color-gray-800);--primary:var(--color-gray-800);--primary-foreground:var(--color-white);--secondary:var(--color-gray-200);--secondary-foreground:var(--color-gray-700);--muted:var(--color-gray-100);--muted-foreground:var(--color-gray-500);--accent:var(--color-gray-100);--accent-foreground:var(--color-gray-800);--border:var(--color-gray-200);--input:var(--color-gray-200);--ring:var(--color-blue-500);--hover:.95;--active:.9;--disabled:.5;--destructive:#d02516;--destructive-foreground:var(--color-white);--info:var(--color-blue-900);--info-foreground:var(--color-white);--success:var(--color-green-900);--success-foreground:var(--color-white);--warning:var(--color-orange-900);--warning-foreground:var(--color-white);--chart-1:var(--color-blue-600);--chart-2:var(--color-green-600);--chart-3:var(--color-orange-600);--chart-4:var(--color-purple-600);--chart-5:var(--color-red-600);--sidebar:var(--background);--sidebar-foreground:var(--foreground);--sidebar-primary:var(--primary);--sidebar-primary-foreground:var(--primary-foreground);--sidebar-accent:var(--accent);--sidebar-accent-foreground:var(--accent-foreground);--sidebar-border:var(--border);--sidebar-ring:var(--ring)}.dark{--background:var(--color-slate-800);--foreground:var(--color-slate-100);--card:var(--color-slate-700);--card-foreground:var(--color-slate-100);--popover:var(--color-slate-700);--popover-foreground:var(--color-slate-100);--primary:var(--color-slate-100);--primary-foreground:var(--color-slate-900);--secondary:var(--color-slate-600);--secondary-foreground:var(--color-slate-100);--muted:var(--color-slate-700);--muted-foreground:var(--color-slate-300);--accent:var(--color-slate-700);--accent-foreground:var(--color-slate-100);--border:var(--color-slate-500);--input:var(--color-slate-500);--hover:1.25;--active:1.4;--destructive:var(--color-red-900)}:root{--wf-ok:#1a7f45;--wf-fail:#c4312a;--wf-warn:#9a5800;--wf-run:#1d63d6;--wf-edge:#cbd5e1;--wf-literal:#7c3aed}.dark{--wf-ok:#4cc47d;--wf-fail:#f2776e;--wf-warn:#e9a23b;--wf-run:#6aa6ff;--wf-edge:#3a4146;--wf-literal:#b794f6}.wf-data-tree{--w-rjv-font-family:ui-monospace, SFMono-Regular, Menlo, monospace;--w-rjv-background-color:transparent;--w-rjv-color:var(--foreground);--w-rjv-key-string:var(--muted-foreground);--w-rjv-key-number:var(--muted-foreground);--w-rjv-line-color:var(--border);--w-rjv-arrow-color:var(--muted-foreground);--w-rjv-info-color:var(--muted-foreground);--w-rjv-curlybraces-color:var(--muted-foreground);--w-rjv-brackets-color:var(--muted-foreground);--w-rjv-colon-color:var(--muted-foreground);--w-rjv-quotes-string-color:var(--foreground);--w-rjv-type-string-color:var(--foreground);--w-rjv-type-int-color:var(--wf-run);--w-rjv-type-float-color:var(--wf-run);--w-rjv-type-bigint-color:var(--wf-run);--w-rjv-type-boolean-color:var(--wf-literal);--w-rjv-type-null-color:var(--muted-foreground);--w-rjv-type-undefined-color:var(--muted-foreground);--w-rjv-type-url-color:var(--wf-run);--w-rjv-type-date-color:var(--foreground);font-size:12px;line-height:1.7}@keyframes wf-picker-in{0%{opacity:0;transform:scale(.97)}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-leading{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}.ph-shell-embed [data-ph-shell] #sidebar{display:none}.ph-shell-route [data-ph-shell] #content-view{visibility:hidden}@keyframes ph-shell-loader-in{from{opacity:0}to{opacity:1}}.ph-shell-loader{animation:ph-shell-loader-in .2s ease-in both;animation-delay:calc(.25s + var(--ph-shell-t,0ms))}.ph-shell-loader>*{animation-delay:var(--ph-shell-t,0ms)}</style><script data-ph-shell="generic">(function(){try{var h=document.documentElement;var e=new URLSearchParams(location.search).get('embed');if(e!==null&&e!=='0'&&e!=='false')h.classList.add('ph-shell-embed');var p=location.pathname;if(!/\/$/.test(p)||/\/d\//.test(p))h.classList.add('ph-shell-route')}catch(x){}})();</script>
|
package/dist/shell.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<div data-ph-shell="generic" inert style="display:contents"><!--$--><div class="h-screen overflow-auto bg-background text-foreground"><!--$--><!--$--><div class="flex h-full items-stretch overflow-auto" role="presentation" tabindex="0"><div id="sidebar" class="group z-1 flex h-full flex-col bg-sidebar text-sidebar-foreground" style="width:58px"><div class="scrollbar-none flex-1 overflow-auto text-foreground transition-shadow"><
|
|
1
|
+
<div data-ph-shell="generic" inert style="display:contents"><!--$--><div class="h-screen overflow-auto bg-background text-foreground"><!--$--><!--$--><div class="flex h-full items-stretch overflow-auto max-sm:has-[>[data-connect-sidebar]]:flex-col-reverse" role="presentation" tabindex="0"><div id="sidebar" data-connect-sidebar="" class="group z-1 flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground max-sm:h-auto max-sm:w-full max-sm:flex-row max-sm:pb-[env(safe-area-inset-bottom)]" style="--sidebar-width:58px"><div class="scrollbar-none flex-1 overflow-auto text-foreground transition-shadow max-sm:flex max-sm:overflow-x-auto max-sm:overflow-y-hidden"><nav aria-label="Drives and pages" class="flex flex-col max-sm:flex-row"></nav></div><div class="shrink-0 flex flex-col items-center gap-3 border-t border-sidebar-border px-2 py-4 max-sm:flex-row max-sm:border-t-0 max-sm:border-l max-sm:py-2 dark:border-none"><button aria-label="Home" type="button" class="cursor-pointer"><!--$--><svg class="text-muted-foreground" style="width:24px;height:24px" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.0306 3.68615C11.2854 3.68614 11.492 3.47932 11.4921 3.2242L11.4921 9.03413e-06C8.29133 0.132881 5.41451 1.52048 3.33928 3.68633L11.0306 3.68615ZM14.2609 8.42821C14.2609 8.68334 14.0543 8.89016 13.7994 8.89016L0.406086 8.89043C0.81778 7.34998 1.52777 5.93103 2.46931 4.70043L13.7995 4.70024C14.0544 4.70023 14.261 4.90707 14.261 5.16221L14.2609 8.42821ZM20.6591 20.3137C18.5847 22.4787 15.7079 23.8663 12.5062 24L12.5063 20.7758C12.5063 20.5207 12.7129 20.3139 12.9678 20.3139L20.6591 20.3137ZM11.4924 23.9992C8.29157 23.8665 5.41401 22.4782 3.33969 20.3133L11.0309 20.3131C11.2858 20.3131 11.4924 20.52 11.4924 20.7751L11.4924 23.9992ZM17.5946 15.5703C17.5947 15.3152 17.8013 15.1083 18.0561 15.1083L23.5923 15.108C23.1806 16.6484 22.4714 18.0666 21.5291 19.298L18.0561 19.2983C17.8012 19.2983 17.5946 19.0914 17.5946 18.8363L17.5946 15.5703ZM8.84765 10.3544C8.85393 10.1039 9.05863 9.90407 9.30899 9.90407L23.8175 9.90396C23.9373 10.584 24 11.2842 24 11.9989C24 12.7136 23.9372 13.4138 23.8174 14.0939L9.31089 14.0933C9.06005 14.0932 8.85517 13.8927 8.84957 13.6416L8.80986 11.8617L8.84765 10.3544ZM16.7389 18.8372C16.7389 19.0923 16.5323 19.2991 16.2774 19.2991L2.46978 19.2992C1.52749 18.0679 0.818373 16.6498 0.406752 15.1093L16.2775 15.1092C16.5324 15.1092 16.739 15.316 16.739 15.5712L16.7389 18.8372ZM0.182552 9.90452L7.3636 9.90412C7.61849 9.90411 7.82511 10.1109 7.82511 10.3661L7.82503 13.6321C7.82503 13.8872 7.61842 14.0941 7.36355 14.0941L0.182447 14.0945C0.062664 13.4144 -1.71661e-05 12.7142 0 11.9995C1.71661e-05 11.2848 0.0627384 10.5846 0.182552 9.90452ZM15.2756 5.16214C15.2757 4.90701 15.4823 4.70019 15.7371 4.70019L21.5294 4.69998C22.4717 5.93135 23.1808 7.34943 23.5924 8.88987L15.7371 8.89013C15.4822 8.89014 15.2756 8.6833 15.2756 8.42816L15.2756 5.16214ZM12.5068 0C15.7076 0.132721 18.5852 1.52098 20.6595 3.68592L12.9682 3.6861C12.7133 3.6861 12.5067 3.47927 12.5067 3.22413L12.5068 0Z" fill="currentColor"></path></svg><!--/$--></button><div class="mt-3 max-sm:mt-0"><button type="button" aria-label="Open Account" class="cursor-pointer" aria-haspopup="dialog" aria-expanded="false" aria-controls="radix-_R_75j9_" data-state="closed"><div class="group/sidebar-footer flex w-full items-baseline justify-start text-sm/10 font-semibold text-foreground cursor-pointer"><span style="display:inline-block;width:42px;height:42px;"></span></div></button></div><a aria-label="Settings" href="/settings/package-manager" class="cursor-pointer rounded-md aria-[current=page]:bg-sidebar-accent"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings text-foreground" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg><span class="hidden text-sm/6 font-semibold text-foreground">Settings</span></a></div></div><div class="relative flex flex-1 flex-col overflow-auto" id="content-view" data-scroll-restoration-id="content-view"><div class="relative isolate container mx-auto flex h-full flex-col"><div class="pointer-events-none fixed top-0 z-0 size-full bg-background"><svg width="1858" height="1256" viewBox="0 0 1858 1256" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_4090_11134)"><ellipse opacity="0.3" cx="478.092" cy="523.885" rx="983.498" ry="480.668" transform="rotate(36.3289 478.092 523.885)" fill="url(#paint0_radial_4090_11134)" fill-opacity="0.3"></ellipse><g opacity="0.3"><ellipse cx="1385.68" cy="503.347" rx="759.956" ry="331.584" transform="rotate(36.3289 1385.68 503.347)" fill="url(#paint1_radial_4090_11134)" fill-opacity="0.2" style="mix-blend-mode:screen"></ellipse></g></g><defs><radialGradient id="paint0_radial_4090_11134" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(500.331 508.304) rotate(89.0086) scale(508.666 1077.08)"><stop stop-color="white" stop-opacity="0"></stop><stop stop-color="#FF3FAC"></stop><stop offset="0.363434" stop-color="#9D25FC" stop-opacity="0.41"></stop><stop offset="0.745192" stop-color="#141718" stop-opacity="0"></stop></radialGradient><radialGradient id="paint1_radial_4090_11134" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1385.68 503.347) rotate(90) scale(331.584 759.956)"><stop stop-color="#0084FF"></stop><stop offset="0.802885" stop-color="#141718" stop-opacity="0"></stop></radialGradient><clipPath id="clip0_4090_11134"><rect width="1858" height="1256" fill="white"></rect></clipPath></defs></svg></div><div class="relative z-10 m-8 flex flex-wrap justify-center gap-4 pt-12 bg-background"></div></div></div></div><!--/$--><!--/$--></div><!--/$--><div role="status" aria-label="Starting Connect" class="ph-shell-loader pointer-events-none fixed inset-0 z-10 flex items-center justify-center"><div data-ph-loader-slot="" class="animate-pulse rounded-full bg-background p-4 text-foreground shadow-lg motion-reduce:animate-none"><!--$--><svg style="width:40px;height:40px" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.0306 3.68615C11.2854 3.68614 11.492 3.47932 11.4921 3.2242L11.4921 9.03413e-06C8.29133 0.132881 5.41451 1.52048 3.33928 3.68633L11.0306 3.68615ZM14.2609 8.42821C14.2609 8.68334 14.0543 8.89016 13.7994 8.89016L0.406086 8.89043C0.81778 7.34998 1.52777 5.93103 2.46931 4.70043L13.7995 4.70024C14.0544 4.70023 14.261 4.90707 14.261 5.16221L14.2609 8.42821ZM20.6591 20.3137C18.5847 22.4787 15.7079 23.8663 12.5062 24L12.5063 20.7758C12.5063 20.5207 12.7129 20.3139 12.9678 20.3139L20.6591 20.3137ZM11.4924 23.9992C8.29157 23.8665 5.41401 22.4782 3.33969 20.3133L11.0309 20.3131C11.2858 20.3131 11.4924 20.52 11.4924 20.7751L11.4924 23.9992ZM17.5946 15.5703C17.5947 15.3152 17.8013 15.1083 18.0561 15.1083L23.5923 15.108C23.1806 16.6484 22.4714 18.0666 21.5291 19.298L18.0561 19.2983C17.8012 19.2983 17.5946 19.0914 17.5946 18.8363L17.5946 15.5703ZM8.84765 10.3544C8.85393 10.1039 9.05863 9.90407 9.30899 9.90407L23.8175 9.90396C23.9373 10.584 24 11.2842 24 11.9989C24 12.7136 23.9372 13.4138 23.8174 14.0939L9.31089 14.0933C9.06005 14.0932 8.85517 13.8927 8.84957 13.6416L8.80986 11.8617L8.84765 10.3544ZM16.7389 18.8372C16.7389 19.0923 16.5323 19.2991 16.2774 19.2991L2.46978 19.2992C1.52749 18.0679 0.818373 16.6498 0.406752 15.1093L16.2775 15.1092C16.5324 15.1092 16.739 15.316 16.739 15.5712L16.7389 18.8372ZM0.182552 9.90452L7.3636 9.90412C7.61849 9.90411 7.82511 10.1109 7.82511 10.3661L7.82503 13.6321C7.82503 13.8872 7.61842 14.0941 7.36355 14.0941L0.182447 14.0945C0.062664 13.4144 -1.71661e-05 12.7142 0 11.9995C1.71661e-05 11.2848 0.0627384 10.5846 0.182552 9.90452ZM15.2756 5.16214C15.2757 4.90701 15.4823 4.70019 15.7371 4.70019L21.5294 4.69998C22.4717 5.93135 23.1808 7.34943 23.5924 8.88987L15.7371 8.89013C15.4822 8.89014 15.2756 8.6833 15.2756 8.42816L15.2756 5.16214ZM12.5068 0C15.7076 0.132721 18.5852 1.52098 20.6595 3.68592L12.9682 3.6861C12.7133 3.6861 12.5067 3.47927 12.5067 3.22413L12.5068 0Z" fill="currentColor"></path></svg><!--/$--></div></div></div><script data-ph-shell="generic">(function(){if(!document.documentElement.classList.contains('ph-shell-route'))return;document.querySelectorAll('[data-ph-shell] [aria-current]').forEach(function(e){e.removeAttribute('aria-current');e.classList.remove('active')})})();</script>
|
package/dist/start-connect.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bd2ed01c-26b1-55fa-bd5b-f1ef0b991a1e")}catch(e){}}();
|
|
3
|
-
import { t as bootConnect } from "./boot-
|
|
3
|
+
import { t as bootConnect } from "./boot-BbECCfkE.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region start-connect.tsx
|
|
6
6
|
const root = await bootConnect();
|
|
7
|
-
const components = root ? await import("./components-
|
|
7
|
+
const components = root ? await import("./components-C3f6Ci7V.js") : null;
|
|
8
8
|
function updateLocalPackage(pkg) {
|
|
9
9
|
window.ph?.vetraPackageManager?.updateLocalPackage(pkg);
|
|
10
10
|
}
|
package/dist/style.css
CHANGED
|
@@ -1211,6 +1211,9 @@
|
|
|
1211
1211
|
.w-\(--radix-popover-trigger-width\) {
|
|
1212
1212
|
width: var(--radix-popover-trigger-width);
|
|
1213
1213
|
}
|
|
1214
|
+
.w-\(--sidebar-width\) {
|
|
1215
|
+
width: var(--sidebar-width);
|
|
1216
|
+
}
|
|
1214
1217
|
.w-0 {
|
|
1215
1218
|
width: calc(var(--spacing) * 0);
|
|
1216
1219
|
}
|
|
@@ -5154,6 +5157,85 @@
|
|
|
5154
5157
|
animation: none;
|
|
5155
5158
|
}
|
|
5156
5159
|
}
|
|
5160
|
+
.max-sm\:mt-0 {
|
|
5161
|
+
@media (width < 40rem) {
|
|
5162
|
+
margin-top: calc(var(--spacing) * 0);
|
|
5163
|
+
}
|
|
5164
|
+
}
|
|
5165
|
+
.max-sm\:flex {
|
|
5166
|
+
@media (width < 40rem) {
|
|
5167
|
+
display: flex;
|
|
5168
|
+
}
|
|
5169
|
+
}
|
|
5170
|
+
.max-sm\:hidden {
|
|
5171
|
+
@media (width < 40rem) {
|
|
5172
|
+
display: none;
|
|
5173
|
+
}
|
|
5174
|
+
}
|
|
5175
|
+
.max-sm\:hidden\! {
|
|
5176
|
+
@media (width < 40rem) {
|
|
5177
|
+
display: none !important;
|
|
5178
|
+
}
|
|
5179
|
+
}
|
|
5180
|
+
.max-sm\:h-auto {
|
|
5181
|
+
@media (width < 40rem) {
|
|
5182
|
+
height: auto;
|
|
5183
|
+
}
|
|
5184
|
+
}
|
|
5185
|
+
.max-sm\:w-full {
|
|
5186
|
+
@media (width < 40rem) {
|
|
5187
|
+
width: 100%;
|
|
5188
|
+
}
|
|
5189
|
+
}
|
|
5190
|
+
.max-sm\:flex-row {
|
|
5191
|
+
@media (width < 40rem) {
|
|
5192
|
+
flex-direction: row;
|
|
5193
|
+
}
|
|
5194
|
+
}
|
|
5195
|
+
.max-sm\:overflow-x-auto {
|
|
5196
|
+
@media (width < 40rem) {
|
|
5197
|
+
overflow-x: auto;
|
|
5198
|
+
}
|
|
5199
|
+
}
|
|
5200
|
+
.max-sm\:overflow-y-hidden {
|
|
5201
|
+
@media (width < 40rem) {
|
|
5202
|
+
overflow-y: hidden;
|
|
5203
|
+
}
|
|
5204
|
+
}
|
|
5205
|
+
.max-sm\:border-t-0 {
|
|
5206
|
+
@media (width < 40rem) {
|
|
5207
|
+
border-top-style: var(--tw-border-style);
|
|
5208
|
+
border-top-width: 0px;
|
|
5209
|
+
}
|
|
5210
|
+
}
|
|
5211
|
+
.max-sm\:border-l {
|
|
5212
|
+
@media (width < 40rem) {
|
|
5213
|
+
border-left-style: var(--tw-border-style);
|
|
5214
|
+
border-left-width: 1px;
|
|
5215
|
+
}
|
|
5216
|
+
}
|
|
5217
|
+
.max-sm\:px-3 {
|
|
5218
|
+
@media (width < 40rem) {
|
|
5219
|
+
padding-inline: calc(var(--spacing) * 3);
|
|
5220
|
+
}
|
|
5221
|
+
}
|
|
5222
|
+
.max-sm\:py-2 {
|
|
5223
|
+
@media (width < 40rem) {
|
|
5224
|
+
padding-block: calc(var(--spacing) * 2);
|
|
5225
|
+
}
|
|
5226
|
+
}
|
|
5227
|
+
.max-sm\:pb-\[env\(safe-area-inset-bottom\)\] {
|
|
5228
|
+
@media (width < 40rem) {
|
|
5229
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
5230
|
+
}
|
|
5231
|
+
}
|
|
5232
|
+
.max-sm\:has-\[\>\[data-connect-sidebar\]\]\:flex-col-reverse {
|
|
5233
|
+
@media (width < 40rem) {
|
|
5234
|
+
&:has(>[data-connect-sidebar]) {
|
|
5235
|
+
flex-direction: column-reverse;
|
|
5236
|
+
}
|
|
5237
|
+
}
|
|
5238
|
+
}
|
|
5157
5239
|
.min-\[420px\]\:grid-cols-2 {
|
|
5158
5240
|
@media (width >= 420px) {
|
|
5159
5241
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import { c as
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ccb84cbf-61ce-53d1-bb84-cc9b2fdd8e15")}catch(e){}}();
|
|
3
|
+
import { c as Home, d as NodeView, f as DrivePending, m as AppLayout, n as settingsTabRoutes, p as RouteError, r as SettingsPage, s as DriveLayout } from "./settings-tabs-V0EGYnyB.js";
|
|
4
4
|
import { lazy } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/generic/modals.ts
|
|
7
7
|
const AddDriveModal = lazy(() => import("./AddDriveModal-BjgmiHJr.js").then((m) => ({ default: m.AddDriveModal })));
|
|
8
|
-
const ClearStorageModal = lazy(() => import("./ClearStorageModal-
|
|
9
|
-
const CreateDocumentModal = lazy(() => import("./CreateDocumentModal-
|
|
10
|
-
const DebugSettingsModal = lazy(() => import("./DebugSettingsModal-
|
|
8
|
+
const ClearStorageModal = lazy(() => import("./ClearStorageModal-UrKsUfAG.js").then((m) => ({ default: m.ClearStorageModal })));
|
|
9
|
+
const CreateDocumentModal = lazy(() => import("./CreateDocumentModal-CiIW3pzx.js").then((m) => ({ default: m.CreateDocumentModal })));
|
|
10
|
+
const DebugSettingsModal = lazy(() => import("./DebugSettingsModal-CgGazj3J.js").then((m) => ({ default: m.DebugSettingsModal })));
|
|
11
11
|
const DeleteDriveModal = lazy(() => import("./DeleteDriveModal-1pAIayG_.js").then((m) => ({ default: m.DeleteDriveModal })));
|
|
12
12
|
const DeleteItemModal = lazy(() => import("./DeleteItemModal-BUpqmFxS.js").then((m) => ({ default: m.DeleteItemModal })));
|
|
13
13
|
const DisclaimerModal = lazy(() => import("./DisclaimerModal-TIJXRYLF.js").then((m) => ({ default: m.DisclaimerModal })));
|
|
@@ -30,7 +30,7 @@ const genericModals = {
|
|
|
30
30
|
downloadDocumentWithErrors: DownloadDocumentWithErrorsModal,
|
|
31
31
|
documentVersionUnsupported: DocumentVersionUnsupportedModal,
|
|
32
32
|
confirmDocumentUpgrade: ConfirmDocumentUpgradeModal,
|
|
33
|
-
inspector: lazy(() => import("./InspectorModal-
|
|
33
|
+
inspector: lazy(() => import("./InspectorModal-Dvfzy6Q2.js").then((m) => ({ default: m.InspectorModal }))),
|
|
34
34
|
upgradeDrive: UpgradeDriveModal,
|
|
35
35
|
driveAuthRequired: lazy(() => import("./DriveAuthRequiredModal-XTcoJKvj.js").then((m) => ({ default: m.DriveAuthRequiredModal }))),
|
|
36
36
|
login: lazy(() => import("./LoginModal-O06ZvWFI.js").then((m) => ({ default: m.LoginModal })))
|
|
@@ -62,5 +62,5 @@ const genericUi = {
|
|
|
62
62
|
//#endregion
|
|
63
63
|
export { genericUi as default };
|
|
64
64
|
|
|
65
|
-
//# sourceMappingURL=ui-
|
|
66
|
-
//# debugId=
|
|
65
|
+
//# sourceMappingURL=ui-Jmmy7K8U.js.map
|
|
66
|
+
//# debugId=ccb84cbf-61ce-53d1-bb84-cc9b2fdd8e15
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-
|
|
1
|
+
{"version":3,"file":"ui-Jmmy7K8U.js","sources":["../src/generic/modals.ts","../src/generic/ui.tsx"],"sourcesContent":["import type { ConnectModals } from \"@powerhousedao/connect-core/router\";\nimport { lazy } from \"react\";\n\nconst AddDriveModal = lazy(() =>\n import(\"./modals/AddDriveModal.js\").then((m) => ({\n default: m.AddDriveModal,\n })),\n);\nconst ClearStorageModal = lazy(() =>\n import(\"./modals/ClearStorageModal.js\").then((m) => ({\n default: m.ClearStorageModal,\n })),\n);\nconst CreateDocumentModal = lazy(() =>\n import(\"./modals/CreateDocumentModal.js\").then((m) => ({\n default: m.CreateDocumentModal,\n })),\n);\nconst DebugSettingsModal = lazy(() =>\n import(\"./modals/DebugSettingsModal.js\").then((m) => ({\n default: m.DebugSettingsModal,\n })),\n);\nconst DeleteDriveModal = lazy(() =>\n import(\"./modals/DeleteDriveModal.js\").then((m) => ({\n default: m.DeleteDriveModal,\n })),\n);\nconst DeleteItemModal = lazy(() =>\n import(\"./modals/DeleteItemModal.js\").then((m) => ({\n default: m.DeleteItemModal,\n })),\n);\nconst DisclaimerModal = lazy(() =>\n import(\"./modals/DisclaimerModal.js\").then((m) => ({\n default: m.DisclaimerModal,\n })),\n);\nconst DriveSettingsModal = lazy(() =>\n import(\"./modals/DriveSettingsModal.js\").then((m) => ({\n default: m.DriveSettingsModal,\n })),\n);\nconst DownloadDocumentWithErrorsModal = lazy(() =>\n import(\"./modals/DownloadDocumentWithErrorsModal.js\").then((m) => ({\n default: m.DownloadDocumentWithErrorsModal,\n })),\n);\nconst DocumentVersionUnsupportedModal = lazy(() =>\n import(\"./modals/DocumentVersionUnsupportedModal.js\").then((m) => ({\n default: m.DocumentVersionUnsupportedModal,\n })),\n);\nconst ConfirmDocumentUpgradeModal = lazy(() =>\n import(\"./modals/ConfirmDocumentUpgradeModal.js\").then((m) => ({\n default: m.ConfirmDocumentUpgradeModal,\n })),\n);\nconst UpgradeDriveModal = lazy(() =>\n import(\"./modals/UpgradeDriveModal.js\").then((m) => ({\n default: m.UpgradeDriveModal,\n })),\n);\nconst InspectorModal = lazy(() =>\n import(\"./modals/InspectorModal/index.js\").then((m) => ({\n default: m.InspectorModal,\n })),\n);\nconst DriveAuthRequiredModal = lazy(() =>\n import(\"./modals/DriveAuthRequiredModal.js\").then((m) => ({\n default: m.DriveAuthRequiredModal,\n })),\n);\nconst LoginModal = lazy(() =>\n import(\"./modals/LoginModal.js\").then((m) => ({\n default: m.LoginModal,\n })),\n);\n\n/** The generic plugin's modals: its chrome's, and core's in its style.\n * \"settings\" is a page; showPHModal navigates to it. */\nexport const genericModals: ConnectModals = {\n addDrive: AddDriveModal,\n clearStorage: ClearStorageModal,\n createDocument: CreateDocumentModal,\n debugSettings: DebugSettingsModal,\n deleteDrive: DeleteDriveModal,\n deleteItem: DeleteItemModal,\n disclaimer: DisclaimerModal,\n driveSettings: DriveSettingsModal,\n downloadDocumentWithErrors: DownloadDocumentWithErrorsModal,\n documentVersionUnsupported: DocumentVersionUnsupportedModal,\n confirmDocumentUpgrade: ConfirmDocumentUpgradeModal,\n inspector: InspectorModal,\n upgradeDrive: UpgradeDriveModal,\n driveAuthRequired: DriveAuthRequiredModal,\n login: LoginModal,\n};\n","// The generic plugin's UI: Connect's sidebar, drives, editors, settings and\n// modals over core's routes. Loaded only while the plugin is active.\nimport type { ConnectPluginUi } from \"@powerhousedao/connect-core/plugins\";\nimport { AppLayout } from \"./layout/app-layout.js\";\nimport { DrivePending, RouteError } from \"./layout/route-views.js\";\nimport { genericModals } from \"./modals.js\";\nimport { DriveLayout, Home, NodeView } from \"./pages/content.js\";\nimport { SettingsPage } from \"./settings/tabs.js\";\nimport { settingsTabRoutes } from \"./settings-tabs.js\";\n\nconst GenericLayout = () => <AppLayout />;\n\nconst genericUi: ConnectPluginUi = {\n routes: {\n \"/_app\": { component: GenericLayout },\n \"/_app/\": { component: Home },\n \"/_app/d/$driveSlug\": {\n component: DriveLayout,\n pendingComponent: DrivePending,\n },\n \"/_app/d/$driveSlug/{-$nodeSlug}\": {\n component: NodeView,\n pendingComponent: DrivePending,\n },\n \"/_app/settings\": { component: SettingsPage },\n // Core's tabs; the package manager and the theme toggle replace them.\n \"/_app/settings/appearance\": { staticData: { settings: undefined } },\n \"/_app/settings/packages\": { staticData: { settings: undefined } },\n },\n addRoutes: settingsTabRoutes,\n modals: genericModals,\n errorComponent: RouteError,\n commonEditors: true,\n};\n\nexport default genericUi;\n"],"names":[],"mappings":";;;;;;AAGA,MAAM,gBAAgB,WACpB,OAAO,8BAA4B,CAAC,MAAM,OAAO,EAC/C,SAAS,EAAE,cACb,EAAE,CACJ;AACA,MAAM,oBAAoB,WACxB,OAAO,kCAAgC,CAAC,MAAM,OAAO,EACnD,SAAS,EAAE,kBACb,EAAE,CACJ;AACA,MAAM,sBAAsB,WAC1B,OAAO,oCAAkC,CAAC,MAAM,OAAO,EACrD,SAAS,EAAE,oBACb,EAAE,CACJ;AACA,MAAM,qBAAqB,WACzB,OAAO,mCAAiC,CAAC,MAAM,OAAO,EACpD,SAAS,EAAE,mBACb,EAAE,CACJ;AACA,MAAM,mBAAmB,WACvB,OAAO,iCAA+B,CAAC,MAAM,OAAO,EAClD,SAAS,EAAE,iBACb,EAAE,CACJ;AACA,MAAM,kBAAkB,WACtB,OAAO,gCAA8B,CAAC,MAAM,OAAO,EACjD,SAAS,EAAE,gBACb,EAAE,CACJ;AACA,MAAM,kBAAkB,WACtB,OAAO,gCAA8B,CAAC,MAAM,OAAO,EACjD,SAAS,EAAE,gBACb,EAAE,CACJ;AACA,MAAM,qBAAqB,WACzB,OAAO,mCAAiC,CAAC,MAAM,OAAO,EACpD,SAAS,EAAE,mBACb,EAAE,CACJ;AACA,MAAM,kCAAkC,WACtC,OAAO,gDAA8C,CAAC,MAAM,OAAO,EACjE,SAAS,EAAE,gCACb,EAAE,CACJ;AACA,MAAM,kCAAkC,WACtC,OAAO,gDAA8C,CAAC,MAAM,OAAO,EACjE,SAAS,EAAE,gCACb,EAAE,CACJ;AACA,MAAM,8BAA8B,WAClC,OAAO,4CAA0C,CAAC,MAAM,OAAO,EAC7D,SAAS,EAAE,4BACb,EAAE,CACJ;AACA,MAAM,oBAAoB,WACxB,OAAO,kCAAgC,CAAC,MAAM,OAAO,EACnD,SAAS,EAAE,kBACb,EAAE,CACJ;;;AAmBA,MAAa,gBAA+B;CAC1C,UAAU;CACV,cAAc;CACd,gBAAgB;CAChB,eAAe;CACf,aAAa;CACb,YAAY;CACZ,YAAY;CACZ,eAAe;CACf,4BAA4B;CAC5B,4BAA4B;CAC5B,wBAAwB;CACxB,WA9BqB,WACrB,OAAO,+BAAmC,CAAC,MAAM,OAAO,EACtD,SAAS,EAAE,eACb,EAAE,CA2BS;CACX,cAAc;CACd,mBA3B6B,WAC7B,OAAO,uCAAqC,CAAC,MAAM,OAAO,EACxD,SAAS,EAAE,uBACb,EAAE,CAwBiB;CACnB,OAvBiB,WACjB,OAAO,2BAAyB,CAAC,MAAM,OAAO,EAC5C,SAAS,EAAE,WACb,EAAE,CAoBK;AACT;;;ACvFA,MAAM,sBAAsB,oBAAC,WAAD,CAAY,CAAA;AAExC,MAAM,YAA6B;CACjC,QAAQ;EACN,SAAS,EAAE,WAAW,cAAc;EACpC,UAAU,EAAE,WAAW,KAAK;EAC5B,sBAAsB;GACpB,WAAW;GACX,kBAAkB;EACpB;EACA,mCAAmC;GACjC,WAAW;GACX,kBAAkB;EACpB;EACA,kBAAkB,EAAE,WAAW,aAAa;EAE5C,6BAA6B,EAAE,YAAY,EAAE,UAAU,KAAA,EAAU,EAAE;EACnE,2BAA2B,EAAE,YAAY,EAAE,UAAU,KAAA,EAAU,EAAE;CACnE;CACA,WAAW;CACX,QAAQ;CACR,gBAAgB;CAChB,eAAe;AACjB","debug_id":"ccb84cbf-61ce-53d1-bb84-cc9b2fdd8e15"}
|
|
@@ -46,6 +46,56 @@ function DocumentSummary() {
|
|
|
46
46
|
- Connect starts the reactor before it renders the router, so `reactorClient` is set in Connect. The check satisfies the type.
|
|
47
47
|
- Loader data is a snapshot. It does not update when the document changes. For live data, read it in the component with the `@powerhousedao/reactor-browser` hooks (`useDrives`, `useDocument`, `useDocumentById`).
|
|
48
48
|
- `store.drives` holds the drives that have arrived. On a deep link to a remote drive, it can be incomplete while `arrivals.isPending()` is true.
|
|
49
|
+
- `useDocument`, `useDocumentById`, `useDocumentsByIds` and `useDocumentsOfType` suspend until their documents load. Put a `<Suspense>` boundary around the component that calls them, or give the route a `pendingComponent`; otherwise the nearest boundary above shows its fallback, which can be the whole layout.
|
|
50
|
+
|
|
51
|
+
### Documents of one type, across drives
|
|
52
|
+
|
|
53
|
+
`useDocumentsOfType` takes a document model module and returns its documents from every drive, a page at a time, typed by the module. The module is the `PascalCase` constant `ph generate` writes for the model, exported from `document-models/<name>`:
|
|
54
|
+
|
|
55
|
+
```tsx
|
|
56
|
+
// hosts/connect/routes/_app/ledgers.tsx
|
|
57
|
+
import { ProductionLedger } from "document-models/production-ledger";
|
|
58
|
+
import {
|
|
59
|
+
loadDocumentsOfType,
|
|
60
|
+
useDocumentLinkProps,
|
|
61
|
+
useDocumentsOfType,
|
|
62
|
+
} from "@powerhousedao/reactor-browser";
|
|
63
|
+
import { createFileRoute } from "@tanstack/react-router";
|
|
64
|
+
|
|
65
|
+
export const Route = createFileRoute("/_app/ledgers")({
|
|
66
|
+
// The first page arrives with the route, so the page doesn't suspend.
|
|
67
|
+
loader: () => loadDocumentsOfType(ProductionLedger, { limit: 20 }),
|
|
68
|
+
component: Ledgers,
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
function Ledgers() {
|
|
72
|
+
const { documents, hasNextPage, loadNextPage } = useDocumentsOfType(
|
|
73
|
+
ProductionLedger,
|
|
74
|
+
{ limit: 20 },
|
|
75
|
+
);
|
|
76
|
+
return (
|
|
77
|
+
<ul>
|
|
78
|
+
{documents.map((ledger) => (
|
|
79
|
+
<LedgerRow key={ledger.header.id} id={ledger.header.id} name={ledger.header.name} />
|
|
80
|
+
))}
|
|
81
|
+
{hasNextPage && <button onClick={loadNextPage}>More</button>}
|
|
82
|
+
</ul>
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function LedgerRow({ id, name }: { id: string; name: string }) {
|
|
87
|
+
// Opens the document in its drive; undefined until a loaded drive lists it.
|
|
88
|
+
const link = useDocumentLinkProps(id);
|
|
89
|
+
return <li>{link ? <a {...link}>{name}</a> : name}</li>;
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
- `limit` is the page size (25 by default). `loadNextPage()` appends the next page; `hasNextPage` and `isLoadingNextPage` say where it is.
|
|
94
|
+
- The order is the reactor's, not sorted; a local reactor returns them grouped by drive. Sort on the page when order matters.
|
|
95
|
+
- Each document is checked against the module's schema. Documents of the type that fail it, e.g. written by another version of the model, are in `invalid`, not in `documents`.
|
|
96
|
+
- The list follows documents being created and deleted, and each document updates as it changes.
|
|
97
|
+
- In a Connect with a local reactor, the list is what the browser has synced so far.
|
|
98
|
+
- `useDocumentLinkProps(id)` links any document by id through the drive that lists it, and `useDocumentTarget(id)` gives its `{ driveSlug, nodeSlug }`.
|
|
49
99
|
|
|
50
100
|
### The open drive and document
|
|
51
101
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Drive apps
|
|
2
|
+
|
|
3
|
+
A drive app is the view Connect shows for a drive: its own listing, forms and tools around the open document. It is an editor module for `powerhouse/document-drive`, shipped by a package like any editor. Routes change Connect around it ([overrides.md](./overrides.md)); this guide is the app itself.
|
|
4
|
+
|
|
5
|
+
## Make one
|
|
6
|
+
|
|
7
|
+
Create a `powerhouse/app` document in the Vetra drive, the way `AGENTS.md` makes an editor: give it a name and the document types it holds, then set it to CONFIRMED. Codegen writes `editors/<app-id>/`:
|
|
8
|
+
|
|
9
|
+
- `editor.tsx`, the app's root. Codegen writes it once and never again, so edit it.
|
|
10
|
+
- `components/`, a folder tree, folder contents and a create button to start from; it too stays yours.
|
|
11
|
+
- `config.ts`, the app's `allowedDocumentTypes` and drag and drop.
|
|
12
|
+
|
|
13
|
+
## What it gets
|
|
14
|
+
|
|
15
|
+
Connect renders the app in the drive route with these props:
|
|
16
|
+
|
|
17
|
+
- `document`: the drive.
|
|
18
|
+
- `dispatch`: bound to the drive, for drive actions such as `addFolder` and `moveNode` from `@powerhousedao/shared/document-drive`. `moveNode({ srcFolder, targetParentFolder })` moves any node: `srcFolder` is the id of the file or folder being moved.
|
|
19
|
+
- `children`: the open document's editor, or `null` on a folder or the drive's root. Render it where the document goes, and the app's own view when it is `null`.
|
|
20
|
+
|
|
21
|
+
Inside it, the `@powerhousedao/reactor-browser` hooks read the route it is shown in:
|
|
22
|
+
|
|
23
|
+
- `useSelectedDrive()` (a `[drive, dispatch]` pair), `useSelectedFolder()`, `useSelectedNode()` and `useNodesInSelectedDrive()`.
|
|
24
|
+
- `useNodesInSelectedDriveOrFolder()` lists the open folder, or the drive's root when no folder is open. `useNodesInSelectedFolder()` and the generated `use<Model>DocumentsInSelectedFolder()` give `undefined` at the root.
|
|
25
|
+
- `setSelectedNode(id)` opens a folder or document; `setSelectedNode(undefined)` goes back to the drive's root. Both are router navigations, so Back, Forward and reloads land on the same node.
|
|
26
|
+
- `useLinkProps(useNodeTarget(node))` makes a row a real link.
|
|
27
|
+
- `getDriveName(drive)` is the drive's display name; drives made in the UI leave `header.name` empty.
|
|
28
|
+
- `showCreateDocumentModal(type)` opens Connect's create modal, which adds the document to the open folder and opens it.
|
|
29
|
+
- Documents in Connect don't carry their operations, so `document.operations.global` can be undefined; read history with `useDocumentOperations(id, "global")`.
|
|
30
|
+
|
|
31
|
+
The `reactor-browser` actions do the same work from outside the app: `addFolder(driveId, name, parentId?)`, `renameDriveNode(driveId, nodeId, name)` and `deleteNode(driveId, nodeId)`.
|
|
32
|
+
|
|
33
|
+
## Which app a drive shows
|
|
34
|
+
|
|
35
|
+
A drive shows the app its `header.meta.preferredEditor` names. With none, or an app no loaded package has, Connect shows its Drive Explorer (`powerhouse/generic-drive-explorer`); a host without the generic plugin shows core's directory listing.
|
|
36
|
+
|
|
37
|
+
- **A new drive in the UI:** Create Drive's "Drive App" picker. Package apps are listed first, so a project's app is preselected.
|
|
38
|
+
- **A new drive in code:** `addDrive(input, appId)` from `@powerhousedao/reactor-browser`, or `driveInput.preferredEditor` in the MCP `addDrive` tool.
|
|
39
|
+
- **A drive every user gets:** a local entry in `connect.drives.defaultDrives` with `"app": "<app-id>"` ([RUNTIME-CONFIG.md](../../RUNTIME-CONFIG.md)). Connect creates it on first boot and opens it in that app.
|
|
40
|
+
- **An existing drive:** `setPreferredEditorOnNode(driveId, appId)` from `@powerhousedao/reactor-browser`, which dispatches `setPreferredEditor`. Connect has no UI for this yet, so a project that needs it adds a button, e.g. on a page that lists the drives. The change syncs like any other drive operation.
|
|
41
|
+
|
|
42
|
+
The home cards and `useAppModuleById(drive.header.meta?.preferredEditor)` show which app a drive uses.
|
|
@@ -39,6 +39,29 @@ export default {
|
|
|
39
39
|
}
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
+
- Lint can't use that tsconfig: oxlint's type-aware rules check every file against the project's `tsconfig.json`, so they report the host's route ids as errors. Add the folder to `.oxlintrc.json`'s `ignorePatterns`, and type-check it with `tsc -p hosts/lab/routes/tsconfig.json`.
|
|
43
|
+
|
|
44
|
+
## Run a host
|
|
45
|
+
|
|
46
|
+
`ph run <host> <verb>` runs a host with its runner: `dev`, `build` and `serve` for a Connect host. It is behind a flag for now, for `ph` and `ph-cli` alike:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
FEATURE_UNIFORM_RUNNERS_ENABLED=1 ph run lab dev
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
- `ph init` with the same flag writes a `hosts/<name>/host.js` for each built-in host (`connect`, `switchboard`, `vetra` and the others) and a `hosts/README.md` on their format. Without it, `ph init` writes only `hosts/connect/style.css`; write a host's `host.js` yourself, as above.
|
|
53
|
+
- `build` writes to the host's `runner.outDir`, by default `.ph/connect-build/dist` as `ph connect build` does, and `serve` serves the same folder. `dist/` is the package that `ph build` writes.
|
|
54
|
+
- Each host's dev server keeps its own Vite cache, `node_modules/.vite-<host>`, so `ph vetra` and `ph run lab dev` can run side by side.
|
|
55
|
+
|
|
56
|
+
The setting that picks each command's port:
|
|
57
|
+
|
|
58
|
+
| Command | Port | Default |
|
|
59
|
+
| --- | --- | --- |
|
|
60
|
+
| `ph connect studio` | `--port` | 3000 |
|
|
61
|
+
| `ph vetra` | `--connect-port`, else `PH_VETRA_CONNECT_PORT`, else `vetra.connectPort` | 3001 |
|
|
62
|
+
| `ph connect preview` | `--port` | 4173 |
|
|
63
|
+
| `ph run <host> dev` and `serve` | the host's `runner.port`; the `hosts/connect/host.js` that `ph init` writes under the flag reads `studio.port` | 3000 |
|
|
64
|
+
|
|
42
65
|
## Host plugins
|
|
43
66
|
|
|
44
67
|
`hosts/connect/host.js` also lists `runner.plugins`, read by `ph run connect`. They transform the served runtime config through the plugin host in `@powerhousedao/connect-core` (its `src/plugins/plugin-host.ts`), which runs the built-in plugins Connect registers ([`apps/connect/src/plugins/`](https://github.com/powerhouse-inc/powerhouse/tree/main/apps/connect/src/plugins)): `@powerhousedao/connect/plugins/generic` (`allowAddDrive`, drive sections), `.../sentry`, `.../openpanel` and `.../assistant`. A listed plugin switches its slice of the config on, and an unlisted one switches it off. Other modules are skipped with a warning.
|
|
@@ -16,10 +16,13 @@ import {
|
|
|
16
16
|
SidebarItem,
|
|
17
17
|
useSidebarMode,
|
|
18
18
|
} from "@powerhousedao/connect/generic";
|
|
19
|
+
import { options } from "@powerhousedao/connect/routes/_app";
|
|
19
20
|
import { isPlainClick } from "@powerhousedao/reactor-browser";
|
|
20
21
|
import { createFileRoute, useRouter } from "@tanstack/react-router";
|
|
21
22
|
|
|
22
23
|
export const Route = createFileRoute("/_app")({
|
|
24
|
+
// Empty today; spread so an option Connect adds later isn't dropped.
|
|
25
|
+
...options,
|
|
23
26
|
component: Layout,
|
|
24
27
|
});
|
|
25
28
|
|
|
@@ -53,11 +56,14 @@ function Layout() {
|
|
|
53
56
|
}
|
|
54
57
|
```
|
|
55
58
|
|
|
59
|
+
- The sidebar shows only icons. `title` is the item's tooltip and its accessible name, and `description` is shown in the tooltip under it and read as its description. An item without an `icon` shows the title's first letter.
|
|
60
|
+
- On a phone, `ConnectSidebar` is a bar under the page, with the items in a row: rendered by `AppLayout`, passed as `sidebar`, or rendered by a component of yours that is. Any other `sidebar` keeps the place its markup gives it.
|
|
61
|
+
|
|
56
62
|
A plain `href` makes the browser load the whole app again. Use it for external links only. For a link inside Connect, navigate through the router, as the "Focus" item does, or render the router's `Link`. `isPlainClick` leaves modified clicks (new tab, new window) to the browser.
|
|
57
63
|
|
|
58
64
|
## Replace the layout
|
|
59
65
|
|
|
60
|
-
`@powerhousedao/connect/layout` exports core's parts to build a different layout, and `@powerhousedao/connect/generic` the generic plugin's as well. A layout that imports only from `/layout` doesn't load the generic UI:
|
|
66
|
+
`@powerhousedao/connect/layout` exports core's parts to build a different layout, and `@powerhousedao/connect/generic` the generic plugin's as well. `/generic` re-exports everything in `/layout`, so either import works for a `/layout` part. A layout that imports only from `/layout` doesn't load the generic UI:
|
|
61
67
|
|
|
62
68
|
| Export | From | What it is |
|
|
63
69
|
| --- | --- | --- |
|
|
@@ -65,7 +71,7 @@ A plain `href` makes the browser load the whole app again. Use it for external l
|
|
|
65
71
|
| `ConnectSidebar` | `/generic` | Connect's sidebar; `extraItems`, `collapsed`. |
|
|
66
72
|
| `SidebarDriveItems` | `/generic` | The drive items and the add-drive item. |
|
|
67
73
|
| `SidebarNavItems` | `/generic` | The `staticData.nav` items. |
|
|
68
|
-
| `SidebarItem` | `/layout` | One sidebar item. |
|
|
74
|
+
| `SidebarItem` | `/layout` | One sidebar item: `title`, `icon` (an element, unlike `staticData.nav`'s component), `description`, `href` or `onClick`. |
|
|
69
75
|
| `useNavRoutes()` | `/layout` | The `staticData.nav` routes, sorted: `{ label, icon, order, routeId, to }`. |
|
|
70
76
|
| `useSidebarMode()` | `/layout` | The current route's `staticData.sidebar`. |
|
|
71
77
|
| `ContentOutlet` | `/layout` | The matched route, in the container whose scroll Connect resets on new pages and restores on back and forward. |
|
|
@@ -143,6 +149,7 @@ export const Route = createFileRoute("/_app")({
|
|
|
143
149
|
|
|
144
150
|
- Without a `pendingComponent` on `_app`, the loading screen shows core's spinner.
|
|
145
151
|
- The render runs at build time, in Node, with no drives: components on the path to `/` must not touch `window` while rendering, and should show nothing for data that isn't there yet (e.g. `useDrives()` is `undefined`).
|
|
152
|
+
- Studio renders the screen too, at start and on route edits. If it fails, Studio shows the error over the page and in its log, since `ph connect build` fails on it.
|
|
146
153
|
- On a deep link the screen is the same, with no tab marked current; the page appears once the app routes.
|
|
147
154
|
- The screen's CSS is inlined: Tailwind builds the project's `style.css` for just the classes in the screen's markup, with its tokens and rules and without third-party CSS. The full stylesheet loads without blocking the first paint.
|
|
148
155
|
- `staticData.nav` items are links the layout renders, so they appear on the loading screen; drives arrive later, so put them after the static items to avoid a shift.
|
|
@@ -19,12 +19,29 @@ Editors, drive apps and Connect open modals with `showPHModal(modal)` from `@pow
|
|
|
19
19
|
- **Core** has a plain view for each of its modals, so every host can show what editors and drive apps open.
|
|
20
20
|
- **With the generic plugin**, Connect shows its design-system views for all of them; without it, core's.
|
|
21
21
|
|
|
22
|
+
A plain `<a href={modalHref(modal)}>` reloads the app. `useModalLinkProps(modal)` gives a link that opens the modal in place on a plain click, and its URL to new tabs and copied links:
|
|
23
|
+
|
|
24
|
+
```tsx
|
|
25
|
+
import { useModalLinkProps } from "@powerhousedao/reactor-browser";
|
|
26
|
+
|
|
27
|
+
const modal = { type: "createDocument", documentType: "powerhouse/todo" } as const;
|
|
28
|
+
|
|
29
|
+
function NewTodoListLink() {
|
|
30
|
+
return <a {...useModalLinkProps(modal)}>New todo list</a>;
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
- The href follows the page's query params as they change.
|
|
35
|
+
- Confirmations (`deleteItem` and the like) aren't routed, so their link has no URL of its own; open them with `showPHModal(modal)` from a button.
|
|
36
|
+
- `createDocument` creates in the open drive, and its open folder, then opens the new document in its drive, wherever the modal was opened. Outside a drive it asks which drive, preselecting the only one, and offers to add a drive when there is none. Give it `driveId` to choose the drive yourself, e.g. `{ type: "createDocument", documentType: "powerhouse/todo", driveId }`.
|
|
37
|
+
|
|
22
38
|
## Replace a modal's view
|
|
23
39
|
|
|
24
40
|
A route's `staticData.modals` replaces the host's view of a modal while the route matches; the deepest matched route wins. The view reads the modal with `usePHModal()`:
|
|
25
41
|
|
|
26
42
|
```tsx
|
|
27
43
|
// hosts/connect/routes/_app.tsx
|
|
44
|
+
import { ModalDialog } from "@powerhousedao/connect/layout";
|
|
28
45
|
import { closePHModal, usePHModal } from "@powerhousedao/reactor-browser";
|
|
29
46
|
|
|
30
47
|
export const Route = createFileRoute("/_app")({
|
|
@@ -36,19 +53,23 @@ function CreateTodoList() {
|
|
|
36
53
|
const modal = usePHModal();
|
|
37
54
|
if (modal?.type !== "createDocument") return null;
|
|
38
55
|
return (
|
|
39
|
-
<
|
|
40
|
-
New {modal.documentType}
|
|
56
|
+
<ModalDialog labelledBy="new-todo-list" className="rounded-xl p-6">
|
|
57
|
+
<h2 id="new-todo-list">New {modal.documentType}</h2>
|
|
41
58
|
<button onClick={closePHModal}>Cancel</button>
|
|
42
|
-
</
|
|
59
|
+
</ModalDialog>
|
|
43
60
|
);
|
|
44
61
|
}
|
|
45
62
|
```
|
|
46
63
|
|
|
64
|
+
- `ModalDialog` opens the view as a modal, centred, with a backdrop; Escape and a click on the backdrop close it. A plain `<dialog open>` gets none of that.
|
|
65
|
+
|
|
47
66
|
- On an override of one of Connect's routes, spread `options.staticData` first if it has any.
|
|
48
67
|
- A view that throws closes quietly; the error is logged.
|
|
49
68
|
|
|
50
69
|
## Frame every modal
|
|
51
70
|
|
|
71
|
+
A frame applies only in a host whose composition leaves out the generic plugin: the generic plugin, active in a default Connect, draws every modal with the design system.
|
|
72
|
+
|
|
52
73
|
A route's `staticData.modalFrame` lays out every core modal while the route matches, so one component restyles all of them. Each modal passes its title, content and buttons; `ModalDialog` keeps the dialog's behaviour (modal, Escape and the backdrop close it):
|
|
53
74
|
|
|
54
75
|
```tsx
|
|
@@ -73,6 +94,6 @@ function Frame({ title, titleId, actions, children }: ModalFrameProps) {
|
|
|
73
94
|
```
|
|
74
95
|
|
|
75
96
|
- The deepest matched route's frame wins, as with `staticData.modals`. On `_app` it frames the modals opened inside the layout; on the root route, all of them.
|
|
76
|
-
- It frames core's modals.
|
|
97
|
+
- It frames core's modals only. Views a route gives in `staticData.modals` draw their own.
|
|
77
98
|
- The content and buttons keep core's markup; style them from the frame, e.g. with `[&_button]:…` classes.
|
|
78
99
|
|