div-deck 0.1.0
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 +73 -0
- package/dist/assets/index-CXZACp-f.js +716 -0
- package/dist/assets/index-Cupwm8gy.css +2 -0
- package/dist/favicon.svg +1 -0
- package/dist/icons.svg +24 -0
- package/dist/index.html +14 -0
- package/dist-server/cli.js +127 -0
- package/dist-server/routes/presentations.js +79 -0
- package/dist-server/start.js +23 -0
- package/package.json +69 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! 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-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-outline-style:solid;--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;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-amber-500:oklch(76.9% .188 70.08);--color-yellow-300:oklch(90.5% .182 98.111);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-700:oklch(55.4% .135 66.442);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-900:oklch(42.1% .095 57.708);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-700:oklch(52.7% .154 150.069);--color-green-900:oklch(39.3% .095 152.535);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-900:oklch(21% .034 264.665);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-300:oklch(87% 0 0);--color-neutral-400:oklch(70.8% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-600:oklch(43.9% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-neutral-950:oklch(14.5% 0 0);--color-white:#fff;--spacing:.25rem;--default-transition-duration:.1s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--text-color-kumo-placeholder:var(--lightningcss-light,var(--color-neutral-400,oklch(70.8% 0 0)))var(--lightningcss-dark,var(--color-neutral-500,oklch(55.6% 0 0)));--color-kumo-neutral-25:oklch(99% 0 0);--color-kumo-neutral-50:oklch(97.5% 0 0);--color-kumo-neutral-75:oklch(96.7% 0 0);--color-kumo-neutral-150:oklch(93.5% 0 0);--color-kumo-neutral-850:oklch(22.4% 0 0);--color-kumo-neutral-925:oklch(18% 0 0);--color-kumo-neutral-975:oklch(8.5% 0 0)}}@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;-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}:root,[data-theme=kumo]{--text-color-kumo-default:var(--color-neutral-900,oklch(21% .006 285.885));--text-color-kumo-inverse:var(--color-neutral-100,oklch(97% 0 0));--text-color-kumo-strong:var(--color-neutral-600,oklch(43.9% 0 0));--text-color-kumo-subtle:var(--color-neutral-500,oklch(55.6% 0 0));--text-color-kumo-inactive:var(--color-neutral-400,oklch(70.8% 0 0));--text-color-kumo-placeholder:var(--color-neutral-400,oklch(70.8% 0 0));--text-color-kumo-brand:#f6821f;--text-color-kumo-link:var(--color-blue-800,oklch(42.4% .199 265.638));--text-color-kumo-success:var(--color-green-500,oklch(72.3% .219 149.579));--text-color-kumo-danger:var(--color-red-500,oklch(63.7% .237 25.331));--text-color-kumo-warning:var(--color-yellow-800,oklch(47.6% .114 61.907));--color-kumo-surface:var(--color-kumo-neutral-25,oklch(99% 0 0));--color-kumo-recessed:var(--color-kumo-neutral-50,oklch(97.5% 0 0));--color-kumo-base:var(--color-white,#fff);--color-kumo-tint:var(--color-kumo-neutral-75,oklch(96.7% 0 0));--color-kumo-contrast:var(--color-kumo-neutral-975,oklch(8.5% 0 0));--color-kumo-elevated:var(--color-kumo-neutral-25,oklch(98.5% 0 0));--color-kumo-overlay:var(--color-kumo-neutral-50,oklch(97.5% 0 0));--color-kumo-control:var(--color-white,#fff);--color-kumo-interact:var(--color-neutral-300,oklch(87% 0 0));--color-kumo-fill:var(--color-neutral-200,oklch(92.2% 0 0));--color-kumo-fill-hover:var(--color-neutral-200,oklch(92.2% 0 0));--color-kumo-brand:oklch(57.72% .2324 260);--color-kumo-brand-hover:var(--color-blue-700,oklch(48.8% .243 264.376));--color-kumo-line:oklch(14.5% 0 0/.1);--color-kumo-ring:var(--color-kumo-neutral-150,oklch(93.5% 0 0));--color-kumo-tip-shadow:var(--color-gray-200,oklch(92.8% .006 264.531));--color-kumo-tip-stroke:transparent;--color-kumo-info:var(--color-blue-500,oklch(62.3% .214 259.815));--color-kumo-info-tint:var(--color-blue-300,oklch(80.9% .105 251.813));--color-kumo-warning:var(--color-yellow-500,oklch(79.5% .184 86.047));--color-kumo-warning-tint:var(--color-yellow-300,oklch(90.5% .182 98.111));--color-kumo-danger:var(--color-red-500,oklch(63.7% .237 25.331));--color-kumo-danger-tint:var(--color-red-300,oklch(80.8% .114 19.571));--color-kumo-success:var(--color-green-500,oklch(72.3% .219 149.579));--color-kumo-success-tint:var(--color-green-300,oklch(87.1% .15 154.449))}:root[data-mode=dark],[data-mode=dark]:not([data-theme]),[data-mode=dark] [data-theme=kumo],[data-theme=kumo][data-mode=dark],[data-theme=kumo] [data-mode=dark]{--text-color-kumo-default:var(--color-neutral-100,oklch(97% 0 0));--text-color-kumo-inverse:var(--color-neutral-900,oklch(20.5% 0 0));--text-color-kumo-strong:var(--color-neutral-400,oklch(70.8% 0 0));--text-color-kumo-subtle:var(--color-kumo-neutral-50,oklch(97.5% 0 0));--text-color-kumo-inactive:var(--color-neutral-600,oklch(70.8% 0 0));--text-color-kumo-placeholder:var(--color-neutral-500,oklch(55.6% 0 0));--text-color-kumo-brand:#f6821f;--text-color-kumo-link:var(--color-blue-400,oklch(70.7% .165 254.624));--text-color-kumo-success:var(--color-green-400,oklch(79.2% .209 151.711));--text-color-kumo-danger:var(--color-red-400,oklch(70.4% .191 22.216));--text-color-kumo-warning:var(--color-yellow-400,oklch(85.2% .199 91.936));--color-kumo-surface:var(--color-kumo-neutral-975,oklch(8.5% 0 0));--color-kumo-recessed:var(--color-kumo-neutral-925,oklch(18% 0 0));--color-kumo-base:var(--color-kumo-neutral-850,oklch(22.4% 0 0));--color-kumo-tint:var(--color-kumo-neutral-800,oklch(26.9% 0 0));--color-kumo-contrast:var(--color-kumo-neutral-25,oklch(99% 0 0));--color-kumo-elevated:var(--color-neutral-950,oklch(14.5% 0 0));--color-kumo-overlay:var(--color-neutral-800,oklch(26.9% 0 0));--color-kumo-control:var(--color-neutral-900,oklch(21% .006 285.885));--color-kumo-interact:var(--color-neutral-700,oklch(37.1% 0 0));--color-kumo-fill:var(--color-neutral-800,oklch(26.9% 0 0));--color-kumo-fill-hover:var(--color-neutral-700,oklch(37.1% 0 0));--color-kumo-brand:oklch(57.72% .2324 260);--color-kumo-brand-hover:var(--color-blue-700,oklch(48.8% .243 264.376));--color-kumo-line:var(--color-neutral-800,oklch(26.9% 0 0));--color-kumo-ring:var(--color-neutral-700,oklch(37.1% 0 0));--color-kumo-tip-shadow:transparent;--color-kumo-tip-stroke:var(--color-neutral-800,oklch(26.9% 0 0));--color-kumo-info:var(--color-blue-400,oklch(70.7% .165 254.624));--color-kumo-info-tint:var(--color-blue-900,oklch(37.9% .146 265.522));--color-kumo-warning:var(--color-yellow-700,oklch(55.4% .135 66.442));--color-kumo-warning-tint:var(--color-yellow-900,oklch(42.1% .095 57.708));--color-kumo-danger:var(--color-red-700,oklch(50.5% .213 27.518));--color-kumo-danger-tint:var(--color-red-900,oklch(39.6% .141 25.723));--color-kumo-success:var(--color-green-700,oklch(52.7% .154 150.069));--color-kumo-success-tint:var(--color-green-900,oklch(39.3% .095 152.535))}[data-theme=fedramp],[data-mode=dark] [data-theme=fedramp],[data-theme=fedramp][data-mode=dark],[data-theme=fedramp] [data-mode=dark]{--color-kumo-surface:#5b697c;--color-kumo-base:#5b697c;--color-kumo-ring:#c8d4e5}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}[data-mode=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}@layer components;@layer utilities{.visible{visibility:visible}.fixed{position:fixed}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-grid{display:inline-grid}.table{display:table}.flex-shrink{flex-shrink:1}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.border{border-style:var(--tw-border-style);border-width:1px}.text-wrap{text-wrap:wrap}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);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,)}.filter{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,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.no-input-spinner{appearance:textfield}.no-input-spinner ::-webkit-outer-spin-button{appearance:none}.no-input-spinner ::-webkit-inner-spin-button{appearance:none}.link-current{text-decoration-color:currentColor}@supports (color:color-mix(in lab, red, red)){.link-current{-webkit-text-decoration-color:color-mix(in oklch, currentColor 35%, transparent);-webkit-text-decoration-color:color-mix(in oklch, currentColor 35%, transparent);-webkit-text-decoration-color:color-mix(in oklch, currentColor 35%, transparent);text-decoration-color:color-mix(in oklch, currentColor 35%, transparent)}}[data-mode=dark] .link-current{text-decoration-color:currentColor}@supports (color:color-mix(in lab, red, red)){[data-mode=dark] .link-current{-webkit-text-decoration-color:color-mix(in oklch, currentColor 65%, transparent);-webkit-text-decoration-color:color-mix(in oklch, currentColor 65%, transparent);-webkit-text-decoration-color:color-mix(in oklch, currentColor 65%, transparent);text-decoration-color:color-mix(in oklch, currentColor 65%, transparent)}}.link-current:hover{text-decoration-color:currentColor}.link-external-icon{stroke-width:1.75px}[data-mode=dark] .link-external-icon{stroke-width:2px}}@keyframes right{to{transform:translate(100%)}}.float{animation:5s linear infinite alternate float}@keyframes float{to{transform:translate(5px,15px)}}@keyframes refresh{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes bounce-in{0%{opacity:0;transform:scale(.6)}50%{opacity:1;transform:scale(1.2)}to{transform:scale(1)}}.animate-bounce-in{animation:.4s ease-out bounce-in}@keyframes shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}@keyframes kumo-chart-wave{0%{transform:translate(0)}to{transform:translate(-400px)}}@keyframes toast-bump{0%{transform:scale(1)}20%{transform:scale(1.02)}to{transform:scale(1)}}.animate-toast-bump{transform-origin:50%;animation:.4s cubic-bezier(.34,1.56,.64,1) toast-bump}.skeleton-line{height:var(--skeleton-height,.5rem);width:var(--skeleton-width);background-color:#f3f4f6;border-radius:2px;position:relative;overflow:hidden}.skeleton-line:after{animation:shimmer var(--shimmer-duration,1.5s) var(--shimmer-delay,0s) infinite ease-in-out;content:"";background:linear-gradient(90deg,#0000 0%,#00000014 50%,#0000 100%);position:absolute;inset:0}[data-mode=dark] .skeleton-line{background-color:#ffffff0f}[data-mode=dark] .skeleton-line:after{background:linear-gradient(90deg,#fff0 0%,#ffffff0d 50%,#fff0 100%)}[data-mode=dark] .kumo-tooltip-popup,[data-mode=dark] .kumo-popover-popup{outline-offset:-1px}.kumo-input-placeholder::placeholder{color:var(--text-color-kumo-placeholder)}@keyframes skeleton{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton{background:linear-gradient(90deg,#0000 0%,#0000000d 50%,#0000 100%) 0 0/200% 100%;animation:1.5s ease-in-out infinite skeleton}[data-mode=dark] .skeleton{background:linear-gradient(90deg,#0000 0%,#ffffff0d 50%,#0000 100%)}.animate-refresh{animation:1s linear infinite refresh}.rdp-root{font-variant-numeric:tabular-nums;--rdp-cell-padding:2px;--rdp-day-height:calc(2rem + var(--rdp-cell-padding) * 2);--rdp-day-width:calc(2rem + var(--rdp-cell-padding) * 2);--rdp-day_button-border-radius:.375rem;--rdp-day_button-border:none;--rdp-day_button-height:2rem;--rdp-day_button-width:2rem;--rdp-selected-border:none;--rdp-disabled-opacity:.4;--rdp-outside-opacity:.4;--rdp-dropdown-gap:.5rem;--rdp-months-gap:1rem;--rdp-nav_button-disabled-opacity:.5;--rdp-nav_button-height:2rem;--rdp-nav_button-width:2rem;--rdp-nav-height:2.5rem;--rdp-week_number-border-radius:.375rem;--rdp-week_number-border:none;--rdp-week_number-height:var(--rdp-day-height);--rdp-week_number-opacity:.75;--rdp-week_number-width:var(--rdp-day-width);--rdp-weekday-opacity:1;--rdp-weekday-padding:.5rem 0;--rdp-gradient-direction:90deg;--rdp-animation_duration:.2s;--rdp-animation_timing:ease-out;--rdp-accent-color:oklch(20.5% 0 0);--rdp-accent-background-color:oklch(92.2% 0 0);--rdp-range_middle-background-color:oklch(92.2% 0 0);--rdp-range_middle-color:oklch(21% .006 285.885);--rdp-range_start-color:oklch(97% 0 0);--rdp-range_start-date-background-color:oklch(20.5% 0 0);--rdp-range_end-color:oklch(97% 0 0);--rdp-range_end-date-background-color:oklch(20.5% 0 0);--rdp-today-color:oklch(54.6% .215 262.881);--rdp-day-color:oklch(21% .006 285.885);--rdp-day-color-subtle:oklch(55.6% 0 0);--rdp-nav-bg:transparent;--rdp-nav-border:oklch(14.5% 0 0/.1);--rdp-hover-bg:oklch(90% 0 0);--rdp-fill-hover-bg:oklch(87% 0 0);--rdp-focus-ring:oklch(75% 0 0);box-sizing:border-box;position:relative}[data-mode=dark] .rdp-root{--rdp-accent-color:oklch(97% 0 0);--rdp-accent-background-color:oklch(35% 0 0);--rdp-range_middle-background-color:oklch(28% 0 0);--rdp-range_middle-color:oklch(97% 0 0);--rdp-range_start-color:oklch(20.5% 0 0);--rdp-range_start-date-background-color:oklch(97% 0 0);--rdp-range_end-color:oklch(20.5% 0 0);--rdp-range_end-date-background-color:oklch(97% 0 0);--rdp-today-color:oklch(62.3% .214 259.815);--rdp-day-color:oklch(97% 0 0);--rdp-day-color-subtle:oklch(70% 0 0);--rdp-nav-bg:transparent;--rdp-nav-border:oklch(26.9% 0 0);--rdp-hover-bg:oklch(20% 0 0);--rdp-fill-hover-bg:oklch(25% 0 0);--rdp-focus-ring:oklch(45% 0 0)}.rdp-root[dir=rtl]{--rdp-gradient-direction:-90deg}.rdp-root *{box-sizing:border-box}.rdp-root thead{background:0 0}.rdp-day{width:var(--rdp-day-width);height:var(--rdp-day-height);text-align:center;padding:var(--rdp-cell-padding)}.rdp-day_button{cursor:pointer;font:inherit;color:var(--rdp-day-color);width:var(--rdp-day_button-width);height:var(--rdp-day_button-height);border:var(--rdp-day_button-border);border-radius:var(--rdp-day_button-border-radius);background:0 0;outline:none;justify-content:center;align-items:center;margin:0;padding:0;font-size:.8125rem;transition:background-color .15s,color .15s;display:flex}.rdp-day_button:focus-visible{box-shadow:inset 0 0 0 2px var(--rdp-focus-ring)}.rdp-day_button:hover{background-color:var(--rdp-hover-bg)}.rdp-day_button:disabled{cursor:not-allowed}.rdp-caption_label{z-index:1;white-space:nowrap;color:var(--rdp-day-color);border:0;align-items:center;font-weight:600;display:inline-flex;position:relative}.rdp-button_next,.rdp-button_previous{cursor:pointer;font:inherit;color:var(--rdp-day-color);appearance:none;box-shadow:inset 0 0 0 1px var(--rdp-nav-border);border:none;border-radius:.375rem;outline:none;justify-content:center;align-items:center;margin:0;padding:0;transition:background-color .15s,box-shadow .15s;display:inline-flex;position:relative;background:0 0!important;width:1.5rem!important;height:1.5rem!important}.rdp-button_next:hover,.rdp-button_previous:hover{background:var(--rdp-hover-bg)!important}.rdp-button_next:focus-visible,.rdp-button_previous:focus-visible{box-shadow:inset 0 0 0 2px var(--rdp-focus-ring)}.rdp-button_next:disabled,.rdp-button_next[aria-disabled=true],.rdp-button_previous:disabled,.rdp-button_previous[aria-disabled=true]{cursor:not-allowed;opacity:var(--rdp-nav_button-disabled-opacity)}.rdp-chevron{fill:var(--rdp-day-color);display:inline-block}.rdp-root[dir=rtl] .rdp-nav .rdp-chevron{transform-origin:50%;transform:rotate(180deg)}.rdp-dropdowns{align-items:center;gap:var(--rdp-dropdown-gap);display:inline-flex;position:relative}.rdp-dropdown{z-index:2;opacity:0;appearance:none;width:100%;cursor:inherit;line-height:inherit;border:none;margin:0;padding:0;position:absolute;inset-block:0;inset-inline-start:0}.rdp-dropdown_root{align-items:center;display:inline-flex;position:relative}.rdp-dropdown_root[data-disabled=true] .rdp-chevron{opacity:var(--rdp-disabled-opacity)}.rdp-month_caption{height:var(--rdp-nav-height);align-content:center;font-weight:600;display:flex}.rdp-root[data-nav-layout=around] .rdp-month,.rdp-root[data-nav-layout=after] .rdp-month{position:relative}.rdp-root[data-nav-layout=around] .rdp-month_caption{justify-content:center;margin-inline-start:var(--rdp-nav_button-width);margin-inline-end:var(--rdp-nav_button-width);position:relative}.rdp-root[data-nav-layout=around] .rdp-button_previous{height:var(--rdp-nav-height);inset-inline-start:0;display:inline-flex;position:absolute;top:0}.rdp-root[data-nav-layout=around] .rdp-button_next{height:var(--rdp-nav-height);inset-inline-end:0;justify-content:center;display:inline-flex;position:absolute;top:0}.rdp-months{gap:var(--rdp-months-gap);flex-wrap:wrap;max-width:fit-content;display:flex;position:relative}.rdp-month_grid{border-collapse:collapse;border-spacing:0}.rdp-nav{height:var(--rdp-nav-height);align-items:center;gap:.25rem;display:flex;position:absolute;inset-block-start:0;inset-inline-end:0}.rdp-weekday{opacity:var(--rdp-weekday-opacity);padding:var(--rdp-weekday-padding);text-align:center;color:var(--rdp-day-color-subtle);font-size:smaller;font-weight:500}.rdp-week_number{opacity:var(--rdp-week_number-opacity);height:var(--rdp-week_number-height);width:var(--rdp-week_number-width);border:var(--rdp-week_number-border);border-radius:var(--rdp-week_number-border-radius);text-align:center;color:var(--rdp-day-color-subtle);font-size:small;font-weight:400}.rdp-today:not(.rdp-outside):not(.rdp-selected) .rdp-day_button{color:var(--rdp-today-color);font-weight:600}.rdp-selected .rdp-day_button{background-color:var(--rdp-accent-color);color:var(--rdp-range_start-color);border-radius:var(--rdp-day_button-border-radius)}.rdp-selected .rdp-day_button:hover{background-color:var(--rdp-accent-color)}.rdp-outside .rdp-day_button{opacity:var(--rdp-outside-opacity);color:var(--rdp-day-color-subtle)}.rdp-disabled:not(.rdp-selected) .rdp-day_button{opacity:var(--rdp-disabled-opacity);cursor:not-allowed}.rdp-disabled .rdp-day_button:hover{background-color:#0000}.rdp-hidden{visibility:hidden}.rdp-day.rdp-range_start:not(.rdp-range_end){background-color:var(--rdp-range_start-date-background-color);border-radius:var(--rdp-day_button-border-radius) 0 0 var(--rdp-day_button-border-radius)}.rdp-day.rdp-range_start .rdp-day_button{color:var(--rdp-range_start-color);background-color:#0000}.rdp-day.rdp-range_start .rdp-day_button:hover{background-color:#0000}.rdp-day.rdp-range_middle{background-color:var(--rdp-range_middle-background-color)}.rdp-day.rdp-range_middle .rdp-day_button{color:var(--rdp-range_middle-color);background-color:#0000}.rdp-day.rdp-range_middle .rdp-day_button:hover{background-color:var(--rdp-fill-hover-bg);border-radius:var(--rdp-day_button-border-radius)}.rdp-day.rdp-range_end:not(.rdp-range_start){background-color:var(--rdp-range_end-date-background-color);border-radius:0 var(--rdp-day_button-border-radius) var(--rdp-day_button-border-radius) 0}.rdp-day.rdp-range_end .rdp-day_button{color:var(--rdp-range_end-color);background-color:#0000}.rdp-day.rdp-range_end .rdp-day_button:hover{background-color:#0000}.rdp-day.rdp-range_start.rdp-range_end{background-color:var(--rdp-range_start-date-background-color);border-radius:var(--rdp-day_button-border-radius)}.rdp-day.rdp-range_start.rdp-range_end .rdp-day_button{color:var(--rdp-range_start-color);background-color:#0000}.rdp-focusable{cursor:pointer}.rdp-footer{width:0;min-width:100%;padding-top:.5rem}@keyframes rdp-slide_in_left{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes rdp-slide_in_right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes rdp-slide_out_left{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes rdp-slide_out_right{0%{transform:translate(0)}to{transform:translate(100%)}}.rdp-weeks_before_enter{animation:rdp-slide_in_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-weeks_before_exit{animation:rdp-slide_out_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-weeks_after_enter{animation:rdp-slide_in_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-weeks_after_exit{animation:rdp-slide_out_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_after_enter{animation:rdp-slide_in_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_before_exit{animation:rdp-slide_out_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_before_enter{animation:rdp-slide_in_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_after_exit{animation:rdp-slide_out_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}@keyframes rdp-fade_in{0%{opacity:0}to{opacity:1}}@keyframes rdp-fade_out{0%{opacity:1}to{opacity:0}}.rdp-caption_after_enter{animation:rdp-fade_in var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-caption_after_exit{animation:rdp-fade_out var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-caption_before_enter{animation:rdp-fade_in var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-caption_before_exit{animation:rdp-fade_out var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.kumo-shiki pre{background-color:#0000!important}[data-mode=dark] .kumo-shiki span:not(.line-highlighted){color:var(--shiki-dark)!important;background-color:#0000!important}[data-mode=dark] .kumo-shiki .line-highlighted{color:var(--shiki-dark)!important}.kumo-shiki code{width:fit-content;min-width:100%;padding-right:1rem;display:block}.kumo-shiki{--kumo-code-highlight-bg:#0000000d}[data-mode=dark] .kumo-shiki{--kumo-code-highlight-bg:#ffffff14}.kumo-shiki .line.line-highlighted{background-color:var(--kumo-code-highlight-bg);width:calc(100% + 2rem);margin:0 -1rem;padding:0 1rem;display:inline-block}.kumo-line-numbers{padding-left:.75rem;line-height:1.625}:root{--editor-sidebar-width:320px;--editor-toolbar-height:48px;--editor-statusbar-height:32px}html,body,#root{height:100%;margin:0;overflow:hidden}.app-shell{grid-template-rows:var(--editor-toolbar-height) 1fr var(--editor-statusbar-height);grid-template-columns:var(--editor-sidebar-width) 1fr;background:var(--color-gray-50);height:100vh;display:grid}.app-toolbar{border-bottom:1px solid var(--color-gray-200);z-index:10;background:#fff;grid-column:1/-1;align-items:center;gap:8px;padding:0 16px;display:flex}.app-sidebar{border-right:1px solid var(--color-gray-200);background:#fff;flex-direction:column;grid-area:2/1;display:flex;overflow:hidden}.app-main{background:var(--color-gray-100);grid-area:2/2;justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.app-statusbar{border-top:1px solid var(--color-gray-200);color:var(--color-gray-500);background:#fff;grid-column:1/-1;align-items:center;gap:12px;padding:0 16px;font-size:12px;display:flex}.sidebar-tabs{flex-direction:column;flex:1;display:flex;overflow:hidden}.sidebar-tab-content{flex:1;padding:8px;overflow-y:auto}.file-item{cursor:pointer;border:1px solid #0000;border-radius:8px;align-items:center;gap:10px;padding:10px 12px;transition:background .15s;display:flex}.file-item:hover{background:var(--color-gray-50)}.file-item--active{background:var(--color-blue-50);border-color:var(--color-blue-200)}.file-item__name{color:var(--color-gray-900);text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;overflow:hidden}.file-item__meta{color:var(--color-gray-400);font-size:11px}.file-item:hover .file-item__delete{opacity:1}.file-item__delete:hover{color:var(--color-red-500)!important}.slide-thumbnail{cursor:pointer;background:#fff;border:2px solid #0000;border-radius:6px;transition:border-color .15s,box-shadow .15s;position:relative;overflow:hidden}.slide-thumbnail:hover{border-color:var(--color-gray-300)}.slide-thumbnail--active{border-color:var(--color-blue-500);box-shadow:0 0 0 2px var(--color-blue-100)}.slide-thumbnail__iframe-container{aspect-ratio:16/9;pointer-events:none;width:100%;position:relative;overflow:hidden}.slide-thumbnail__iframe{transform-origin:0 0;width:1280px;height:720px;transform:scale(var(--thumb-scale,.22));border:none;position:absolute;top:0;left:0}.slide-thumbnail__label{color:var(--color-gray-500);background:var(--color-gray-50);border-top:1px solid var(--color-gray-100);justify-content:space-between;align-items:center;padding:4px 8px;font-size:11px;display:flex}.slide-thumbnail__drag-bar{color:var(--color-gray-500);background:var(--color-gray-50);border-bottom:1px solid var(--color-gray-100);cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none;align-items:center;gap:6px;padding:6px 8px;font-size:11px;display:flex}.slide-thumbnail__drag-bar:active{cursor:grabbing;background:var(--color-gray-100)}.slide-thumbnail__drag-bar .slide-thumbnail__type{margin-left:auto}.slide-thumbnail__number{font-variant-numeric:tabular-nums;font-weight:600}.slide-thumbnail__type{text-transform:uppercase;letter-spacing:.5px;background:var(--color-gray-100);border-radius:4px;padding:1px 6px;font-size:10px}.editor-canvas{justify-content:center;align-items:center;width:100%;height:100%;padding:24px;display:flex}.editor-canvas__frame{aspect-ratio:16/9;background:#fff;border-radius:8px;width:100%;max-width:1280px;position:relative;overflow:hidden;box-shadow:0 4px 24px #0000001f,0 1px 4px #00000014}.editor-canvas__iframe{border:none;width:100%;height:100%}.empty-state{color:var(--color-gray-400);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:48px;display:flex}.empty-state__icon{opacity:.5;font-size:48px}.empty-state__title{color:var(--color-gray-600);font-size:18px;font-weight:600}.empty-state__desc{max-width:300px;font-size:14px}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@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}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}
|
package/dist/favicon.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="46" fill="none" viewBox="0 0 48 46"><path fill="#863bff" d="M25.946 44.938c-.664.845-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.287c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.497 0-3.578-1.842-3.578H1.237c-.92 0-1.456-1.04-.92-1.788L10.013.474c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.579 1.842 3.579h11.377c.943 0 1.473 1.088.89 1.83L25.947 44.94z" style="fill:#863bff;fill:color(display-p3 .5252 .23 1);fill-opacity:1"/><mask id="a" width="48" height="46" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#000" d="M25.842 44.938c-.664.844-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.183c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.498 0-3.579-1.842-3.579H1.133c-.92 0-1.456-1.04-.92-1.787L9.91.473c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.578 1.842 3.578h11.377c.943 0 1.473 1.088.89 1.832L25.843 44.94z" style="fill:#000;fill-opacity:1"/></mask><g mask="url(#a)"><g filter="url(#b)"><ellipse cx="5.508" cy="14.704" fill="#ede6ff" rx="5.508" ry="14.704" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -4.47 31.516)"/></g><g filter="url(#c)"><ellipse cx="10.399" cy="29.851" fill="#ede6ff" rx="10.399" ry="29.851" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -39.328 7.883)"/></g><g filter="url(#d)"><ellipse cx="5.508" cy="30.487" fill="#7e14ff" rx="5.508" ry="30.487" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -25.913 -14.639)scale(1 -1)"/></g><g filter="url(#e)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -32.644 -3.334)scale(1 -1)"/></g><g filter="url(#f)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -34.34 30.47)"/></g><g filter="url(#g)"><ellipse cx="14.072" cy="22.078" fill="#ede6ff" rx="14.072" ry="22.078" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="rotate(93.35 24.506 48.493)scale(-1 1)"/></g><g filter="url(#h)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#i)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#j)"><ellipse cx=".387" cy="8.972" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(39.51 .387 8.972)"/></g><g filter="url(#k)"><ellipse cx="47.523" cy="-6.092" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 47.523 -6.092)"/></g><g filter="url(#l)"><ellipse cx="41.412" cy="6.333" fill="#47bfff" rx="5.971" ry="9.665" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 41.412 6.333)"/></g><g filter="url(#m)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#n)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#o)"><ellipse cx="35.651" cy="29.907" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 35.651 29.907)"/></g><g filter="url(#p)"><ellipse cx="38.418" cy="32.4" fill="#47bfff" rx="5.971" ry="15.297" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 38.418 32.4)"/></g></g><defs><filter id="b" width="60.045" height="41.654" x="-19.77" y="16.149" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="c" width="90.34" height="51.437" x="-54.613" y="-7.533" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="d" width="79.355" height="29.4" x="-49.64" y="2.03" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="e" width="79.579" height="29.4" x="-45.045" y="20.029" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="f" width="79.579" height="29.4" x="-43.513" y="21.178" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="g" width="74.749" height="58.852" x="15.756" y="-17.901" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="h" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="i" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="j" width="56.045" height="63.649" x="-27.636" y="-22.853" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="k" width="54.814" height="64.646" x="20.116" y="-38.415" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="l" width="33.541" height="35.313" x="24.641" y="-11.323" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="m" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="n" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="o" width="54.814" height="64.646" x="8.244" y="-2.416" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="p" width="39.409" height="43.623" x="18.713" y="10.588" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter></defs></svg>
|
package/dist/icons.svg
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<symbol id="bluesky-icon" viewBox="0 0 16 17">
|
|
3
|
+
<g clip-path="url(#bluesky-clip)"><path fill="#08060d" d="M7.75 7.735c-.693-1.348-2.58-3.86-4.334-5.097-1.68-1.187-2.32-.981-2.74-.79C.188 2.065.1 2.812.1 3.251s.241 3.602.398 4.13c.52 1.744 2.367 2.333 4.07 2.145-2.495.37-4.71 1.278-1.805 4.512 3.196 3.309 4.38-.71 4.987-2.746.608 2.036 1.307 5.91 4.93 2.746 2.72-2.746.747-4.143-1.747-4.512 1.702.189 3.55-.4 4.07-2.145.156-.528.397-3.691.397-4.13s-.088-1.186-.575-1.406c-.42-.19-1.06-.395-2.741.79-1.755 1.24-3.64 3.752-4.334 5.099"/></g>
|
|
4
|
+
<defs><clipPath id="bluesky-clip"><path fill="#fff" d="M.1.85h15.3v15.3H.1z"/></clipPath></defs>
|
|
5
|
+
</symbol>
|
|
6
|
+
<symbol id="discord-icon" viewBox="0 0 20 19">
|
|
7
|
+
<path fill="#08060d" d="M16.224 3.768a14.5 14.5 0 0 0-3.67-1.153c-.158.286-.343.67-.47.976a13.5 13.5 0 0 0-4.067 0c-.128-.306-.317-.69-.476-.976A14.4 14.4 0 0 0 3.868 3.77C1.546 7.28.916 10.703 1.231 14.077a14.7 14.7 0 0 0 4.5 2.306q.545-.748.965-1.587a9.5 9.5 0 0 1-1.518-.74q.191-.14.372-.293c2.927 1.369 6.107 1.369 8.999 0q.183.152.372.294-.723.437-1.52.74.418.838.963 1.588a14.6 14.6 0 0 0 4.504-2.308c.37-3.911-.63-7.302-2.644-10.309m-9.13 8.234c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.894 0 1.614.82 1.599 1.82.001 1-.705 1.82-1.6 1.82m5.91 0c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.893 0 1.614.82 1.599 1.82 0 1-.706 1.82-1.6 1.82"/>
|
|
8
|
+
</symbol>
|
|
9
|
+
<symbol id="documentation-icon" viewBox="0 0 21 20">
|
|
10
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="m15.5 13.333 1.533 1.322c.645.555.967.833.967 1.178s-.322.623-.967 1.179L15.5 18.333m-3.333-5-1.534 1.322c-.644.555-.966.833-.966 1.178s.322.623.966 1.179l1.534 1.321"/>
|
|
11
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M17.167 10.836v-4.32c0-1.41 0-2.117-.224-2.68-.359-.906-1.118-1.621-2.08-1.96-.599-.21-1.349-.21-2.848-.21-2.623 0-3.935 0-4.983.369-1.684.591-3.013 1.842-3.641 3.428C3 6.449 3 7.684 3 10.154v2.122c0 2.558 0 3.838.706 4.726q.306.383.713.671c.76.536 1.79.64 3.581.66"/>
|
|
12
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M3 10a2.78 2.78 0 0 1 2.778-2.778c.555 0 1.209.097 1.748-.047.48-.129.854-.503.982-.982.145-.54.048-1.194.048-1.749a2.78 2.78 0 0 1 2.777-2.777"/>
|
|
13
|
+
</symbol>
|
|
14
|
+
<symbol id="github-icon" viewBox="0 0 19 19">
|
|
15
|
+
<path fill="#08060d" fill-rule="evenodd" d="M9.356 1.85C5.05 1.85 1.57 5.356 1.57 9.694a7.84 7.84 0 0 0 5.324 7.44c.387.079.528-.168.528-.376 0-.182-.013-.805-.013-1.454-2.165.467-2.616-.935-2.616-.935-.349-.91-.864-1.143-.864-1.143-.71-.48.051-.48.051-.48.787.051 1.2.805 1.2.805.695 1.194 1.817.857 2.268.649.064-.507.27-.857.49-1.052-1.728-.182-3.545-.857-3.545-3.87 0-.857.31-1.558.8-2.104-.078-.195-.349-1 .077-2.078 0 0 .657-.208 2.14.805a7.5 7.5 0 0 1 1.946-.26c.657 0 1.328.092 1.946.26 1.483-1.013 2.14-.805 2.14-.805.426 1.078.155 1.883.078 2.078.502.546.799 1.247.799 2.104 0 3.013-1.818 3.675-3.558 3.87.284.247.528.714.528 1.454 0 1.052-.012 1.896-.012 2.156 0 .208.142.455.528.377a7.84 7.84 0 0 0 5.324-7.441c.013-4.338-3.48-7.844-7.773-7.844" clip-rule="evenodd"/>
|
|
16
|
+
</symbol>
|
|
17
|
+
<symbol id="social-icon" viewBox="0 0 20 20">
|
|
18
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M12.5 6.667a4.167 4.167 0 1 0-8.334 0 4.167 4.167 0 0 0 8.334 0"/>
|
|
19
|
+
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M2.5 16.667a5.833 5.833 0 0 1 8.75-5.053m3.837.474.513 1.035c.07.144.257.282.414.309l.93.155c.596.1.736.536.307.965l-.723.73a.64.64 0 0 0-.152.531l.207.903c.164.715-.213.991-.84.618l-.872-.52a.63.63 0 0 0-.577 0l-.872.52c-.624.373-1.003.094-.84-.618l.207-.903a.64.64 0 0 0-.152-.532l-.723-.729c-.426-.43-.289-.864.306-.964l.93-.156a.64.64 0 0 0 .412-.31l.513-1.034c.28-.562.735-.562 1.012 0"/>
|
|
20
|
+
</symbol>
|
|
21
|
+
<symbol id="x-icon" viewBox="0 0 19 19">
|
|
22
|
+
<path fill="#08060d" fill-rule="evenodd" d="M1.893 1.98c.052.072 1.245 1.769 2.653 3.77l2.892 4.114c.183.261.333.48.333.486s-.068.089-.152.183l-.522.593-.765.867-3.597 4.087c-.375.426-.734.834-.798.905a1 1 0 0 0-.118.148c0 .01.236.017.664.017h.663l.729-.83c.4-.457.796-.906.879-.999a692 692 0 0 0 1.794-2.038c.034-.037.301-.34.594-.675l.551-.624.345-.392a7 7 0 0 1 .34-.374c.006 0 .93 1.306 2.052 2.903l2.084 2.965.045.063h2.275c1.87 0 2.273-.003 2.266-.021-.008-.02-1.098-1.572-3.894-5.547-2.013-2.862-2.28-3.246-2.273-3.266.008-.019.282-.332 2.085-2.38l2-2.274 1.567-1.782c.022-.028-.016-.03-.65-.03h-.674l-.3.342a871 871 0 0 1-1.782 2.025c-.067.075-.405.458-.75.852a100 100 0 0 1-.803.91c-.148.172-.299.344-.99 1.127-.304.343-.32.358-.345.327-.015-.019-.904-1.282-1.976-2.808L6.365 1.85H1.8zm1.782.91 8.078 11.294c.772 1.08 1.413 1.973 1.425 1.984.016.017.241.02 1.05.017l1.03-.004-2.694-3.766L7.796 5.75 5.722 2.852l-1.039-.004-1.039-.004z" clip-rule="evenodd"/>
|
|
23
|
+
</symbol>
|
|
24
|
+
</svg>
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>div.deck</title>
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-CXZACp-f.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-Cupwm8gy.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="root"></div>
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import fs from "node:fs";
|
|
4
|
+
import { exec } from "node:child_process";
|
|
5
|
+
import { createInterface } from "node:readline/promises";
|
|
6
|
+
import { startServer } from "./start.js";
|
|
7
|
+
const COMMAND_TEMPLATE = `---
|
|
8
|
+
description: Launch the div.deck presentation editor
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
Start the div.deck slide editor for the presentations in this project.
|
|
12
|
+
|
|
13
|
+
1. Run \`npx div-deck __DIR__\` in the background
|
|
14
|
+
2. Wait a moment for the server to start
|
|
15
|
+
3. Open http://localhost:3001 in the browser
|
|
16
|
+
4. Tell the user the editor is running and they can access it at http://localhost:3001
|
|
17
|
+
`;
|
|
18
|
+
function printUsage() {
|
|
19
|
+
console.log(`
|
|
20
|
+
div.deck — Browser-based HTML slide deck editor
|
|
21
|
+
|
|
22
|
+
Usage:
|
|
23
|
+
div-deck [directory] Start the editor (default: ./presentations)
|
|
24
|
+
div-deck init Interactive setup for your project
|
|
25
|
+
|
|
26
|
+
Options:
|
|
27
|
+
--port, -p <number> Server port (default: 3001)
|
|
28
|
+
--help, -h Show this help message
|
|
29
|
+
`);
|
|
30
|
+
}
|
|
31
|
+
function openBrowser(url) {
|
|
32
|
+
const cmd = process.platform === "darwin"
|
|
33
|
+
? "open"
|
|
34
|
+
: process.platform === "win32"
|
|
35
|
+
? "start"
|
|
36
|
+
: "xdg-open";
|
|
37
|
+
exec(`${cmd} ${url}`);
|
|
38
|
+
}
|
|
39
|
+
async function prompt(question, defaultValue) {
|
|
40
|
+
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
41
|
+
const answer = await rl.question(`${question} (${defaultValue}): `);
|
|
42
|
+
rl.close();
|
|
43
|
+
return answer.trim() || defaultValue;
|
|
44
|
+
}
|
|
45
|
+
async function runInit() {
|
|
46
|
+
console.log("\n div.deck — Project Setup\n");
|
|
47
|
+
const dir = await prompt(" Presentations directory?", "./presentations");
|
|
48
|
+
// Create presentations directory if needed
|
|
49
|
+
const absDir = path.resolve(dir);
|
|
50
|
+
if (!fs.existsSync(absDir)) {
|
|
51
|
+
fs.mkdirSync(absDir, { recursive: true });
|
|
52
|
+
console.log(` Created ${dir}/`);
|
|
53
|
+
}
|
|
54
|
+
// Add script to package.json
|
|
55
|
+
const pkgPath = path.resolve("package.json");
|
|
56
|
+
if (fs.existsSync(pkgPath)) {
|
|
57
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
|
|
58
|
+
pkg.scripts = pkg.scripts || {};
|
|
59
|
+
pkg.scripts.deck = `div-deck ${dir}`;
|
|
60
|
+
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + "\n", "utf-8");
|
|
61
|
+
console.log(` Added "deck" script to package.json`);
|
|
62
|
+
}
|
|
63
|
+
// Create Claude Code command
|
|
64
|
+
const commandDir = path.resolve(".claude", "commands");
|
|
65
|
+
const commandPath = path.join(commandDir, "presentations.md");
|
|
66
|
+
if (!fs.existsSync(commandDir)) {
|
|
67
|
+
fs.mkdirSync(commandDir, { recursive: true });
|
|
68
|
+
}
|
|
69
|
+
const commandContent = COMMAND_TEMPLATE.replace("__DIR__", dir);
|
|
70
|
+
fs.writeFileSync(commandPath, commandContent, "utf-8");
|
|
71
|
+
console.log(` Created .claude/commands/presentations.md`);
|
|
72
|
+
console.log(`
|
|
73
|
+
Setup complete! You can now:
|
|
74
|
+
npm run deck Start the editor
|
|
75
|
+
/presentations Use in Claude Code
|
|
76
|
+
`);
|
|
77
|
+
}
|
|
78
|
+
function parseArgs(args) {
|
|
79
|
+
let command = "serve";
|
|
80
|
+
let dir = "./presentations";
|
|
81
|
+
let port = 3001;
|
|
82
|
+
const positional = [];
|
|
83
|
+
for (let i = 0; i < args.length; i++) {
|
|
84
|
+
const arg = args[i];
|
|
85
|
+
if (arg === "--help" || arg === "-h") {
|
|
86
|
+
printUsage();
|
|
87
|
+
process.exit(0);
|
|
88
|
+
}
|
|
89
|
+
else if (arg === "--port" || arg === "-p") {
|
|
90
|
+
port = parseInt(args[++i], 10);
|
|
91
|
+
if (isNaN(port)) {
|
|
92
|
+
console.error("Error: --port requires a number");
|
|
93
|
+
process.exit(1);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
else if (!arg.startsWith("-")) {
|
|
97
|
+
positional.push(arg);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (positional[0] === "init") {
|
|
101
|
+
command = "init";
|
|
102
|
+
}
|
|
103
|
+
else if (positional.length > 0) {
|
|
104
|
+
dir = positional[0];
|
|
105
|
+
}
|
|
106
|
+
return { command, dir, port };
|
|
107
|
+
}
|
|
108
|
+
async function main() {
|
|
109
|
+
const { command, dir, port } = parseArgs(process.argv.slice(2));
|
|
110
|
+
if (command === "init") {
|
|
111
|
+
await runInit();
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
const presentationsDir = path.resolve(dir);
|
|
115
|
+
if (!fs.existsSync(presentationsDir)) {
|
|
116
|
+
console.error(`Error: Directory not found: ${presentationsDir}`);
|
|
117
|
+
console.error(`Run "div-deck init" to set up your project, or create the directory first.`);
|
|
118
|
+
process.exit(1);
|
|
119
|
+
}
|
|
120
|
+
startServer(presentationsDir, port);
|
|
121
|
+
// Open browser after a short delay for server startup
|
|
122
|
+
setTimeout(() => openBrowser(`http://localhost:${port}`), 500);
|
|
123
|
+
}
|
|
124
|
+
main().catch((err) => {
|
|
125
|
+
console.error(err);
|
|
126
|
+
process.exit(1);
|
|
127
|
+
});
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Router } from "express";
|
|
2
|
+
import fs from "node:fs/promises";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
function isValidFilename(name) {
|
|
5
|
+
return /^[a-zA-Z0-9_\-. ]+\.html$/.test(name) && !name.includes("..");
|
|
6
|
+
}
|
|
7
|
+
export function createPresentationsRouter(presentationsDir) {
|
|
8
|
+
const router = Router();
|
|
9
|
+
// List all .html files
|
|
10
|
+
router.get("/", async (_req, res) => {
|
|
11
|
+
try {
|
|
12
|
+
const entries = await fs.readdir(presentationsDir, {
|
|
13
|
+
withFileTypes: true,
|
|
14
|
+
});
|
|
15
|
+
const files = await Promise.all(entries
|
|
16
|
+
.filter((e) => e.isFile() && e.name.endsWith(".html"))
|
|
17
|
+
.map(async (e) => {
|
|
18
|
+
const stat = await fs.stat(path.join(presentationsDir, e.name));
|
|
19
|
+
return {
|
|
20
|
+
name: e.name,
|
|
21
|
+
size: stat.size,
|
|
22
|
+
modified: stat.mtime.toISOString(),
|
|
23
|
+
};
|
|
24
|
+
}));
|
|
25
|
+
files.sort((a, b) => b.modified.localeCompare(a.modified));
|
|
26
|
+
res.json({ files });
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
res.status(500).json({ error: "Failed to list presentations" });
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
// Read a single presentation
|
|
33
|
+
router.get("/:filename", async (req, res) => {
|
|
34
|
+
const { filename } = req.params;
|
|
35
|
+
if (!isValidFilename(filename)) {
|
|
36
|
+
return res.status(400).json({ error: "Invalid filename" });
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
const content = await fs.readFile(path.join(presentationsDir, filename), "utf-8");
|
|
40
|
+
res.type("text/html").send(content);
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
res.status(404).json({ error: "File not found" });
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
// Write a presentation (atomic, same-directory temp file for cross-filesystem safety)
|
|
47
|
+
router.put("/:filename", async (req, res) => {
|
|
48
|
+
const { filename } = req.params;
|
|
49
|
+
if (!isValidFilename(filename)) {
|
|
50
|
+
return res.status(400).json({ error: "Invalid filename" });
|
|
51
|
+
}
|
|
52
|
+
try {
|
|
53
|
+
const html = req.body;
|
|
54
|
+
const filePath = path.join(presentationsDir, filename);
|
|
55
|
+
const tmpPath = path.join(presentationsDir, `.tmp-${Date.now()}-${filename}`);
|
|
56
|
+
await fs.writeFile(tmpPath, html, "utf-8");
|
|
57
|
+
await fs.rename(tmpPath, filePath);
|
|
58
|
+
res.json({ ok: true });
|
|
59
|
+
}
|
|
60
|
+
catch {
|
|
61
|
+
res.status(500).json({ error: "Failed to save presentation" });
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
// Delete a presentation
|
|
65
|
+
router.delete("/:filename", async (req, res) => {
|
|
66
|
+
const { filename } = req.params;
|
|
67
|
+
if (!isValidFilename(filename)) {
|
|
68
|
+
return res.status(400).json({ error: "Invalid filename" });
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
await fs.unlink(path.join(presentationsDir, filename));
|
|
72
|
+
res.json({ ok: true });
|
|
73
|
+
}
|
|
74
|
+
catch {
|
|
75
|
+
res.status(404).json({ error: "File not found" });
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
return router;
|
|
79
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import express from "express";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { createPresentationsRouter } from "./routes/presentations.js";
|
|
4
|
+
export function startServer(presentationsDir, port) {
|
|
5
|
+
const app = express();
|
|
6
|
+
app.use(express.text({ type: "text/html", limit: "10mb" }));
|
|
7
|
+
app.use(express.json());
|
|
8
|
+
// Serve built frontend
|
|
9
|
+
const staticDir = path.resolve(import.meta.dirname, "..", "dist");
|
|
10
|
+
app.use(express.static(staticDir));
|
|
11
|
+
// Serve presentation files statically for iframe src
|
|
12
|
+
app.use("/presentations", express.static(presentationsDir));
|
|
13
|
+
// API routes
|
|
14
|
+
app.use("/api/presentations", createPresentationsRouter(presentationsDir));
|
|
15
|
+
// SPA fallback — serve index.html for any unmatched route
|
|
16
|
+
app.get("*", (_req, res) => {
|
|
17
|
+
res.sendFile(path.join(staticDir, "index.html"));
|
|
18
|
+
});
|
|
19
|
+
app.listen(port, () => {
|
|
20
|
+
console.log(`div.deck running at http://localhost:${port}`);
|
|
21
|
+
console.log(`Presentations: ${presentationsDir}`);
|
|
22
|
+
});
|
|
23
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "div-deck",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Browser-based editor for HTML slide decks",
|
|
6
|
+
"bin": {
|
|
7
|
+
"div-deck": "dist-server/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/",
|
|
11
|
+
"dist-server/"
|
|
12
|
+
],
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=20.11.0"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"dev": "concurrently \"vite\" \"tsx watch server/index.ts\"",
|
|
18
|
+
"dev:client": "vite",
|
|
19
|
+
"dev:server": "tsx watch server/index.ts",
|
|
20
|
+
"build": "tsc -b && vite build",
|
|
21
|
+
"build:client": "vite build",
|
|
22
|
+
"build:server": "tsc -p tsconfig.server.json",
|
|
23
|
+
"build:all": "npm run build:client && npm run build:server",
|
|
24
|
+
"prepublishOnly": "npm run build:all",
|
|
25
|
+
"test": "vitest run",
|
|
26
|
+
"test:watch": "vitest",
|
|
27
|
+
"lint": "eslint .",
|
|
28
|
+
"preview": "vite preview"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"cors": "^2.8.5",
|
|
32
|
+
"express": "^4.21.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@cloudflare/kumo": "^1.16.0",
|
|
36
|
+
"@dnd-kit/core": "^6.3.0",
|
|
37
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
38
|
+
"@dnd-kit/utilities": "^3.2.0",
|
|
39
|
+
"@eslint/js": "^9.39.4",
|
|
40
|
+
"@phosphor-icons/react": "^2.1.0",
|
|
41
|
+
"@tailwindcss/vite": "^4.1.0",
|
|
42
|
+
"@types/cors": "^2.8.17",
|
|
43
|
+
"@types/express": "^5.0.0",
|
|
44
|
+
"@types/node": "^24.12.0",
|
|
45
|
+
"@types/react": "^19.2.14",
|
|
46
|
+
"@types/react-dom": "^19.2.3",
|
|
47
|
+
"@types/uuid": "^10.0.0",
|
|
48
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
49
|
+
"concurrently": "^9.1.0",
|
|
50
|
+
"echarts": "^6.0.0",
|
|
51
|
+
"eslint": "^9.39.4",
|
|
52
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
53
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
54
|
+
"globals": "^17.4.0",
|
|
55
|
+
"jsdom": "^26.1.0",
|
|
56
|
+
"prettier": "^3.8.1",
|
|
57
|
+
"react": "^19.2.4",
|
|
58
|
+
"react-dom": "^19.2.4",
|
|
59
|
+
"tailwindcss": "^4.1.0",
|
|
60
|
+
"tsx": "^4.19.0",
|
|
61
|
+
"typescript": "~5.9.3",
|
|
62
|
+
"typescript-eslint": "^8.57.0",
|
|
63
|
+
"uuid": "^11.1.0",
|
|
64
|
+
"vite": "^8.0.1",
|
|
65
|
+
"vitest": "^3.1.0",
|
|
66
|
+
"zod": "^4.0.0",
|
|
67
|
+
"zustand": "^5.0.0"
|
|
68
|
+
}
|
|
69
|
+
}
|