kasaframe 0.0.0-stage → 0.1.3
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/LICENSE +21 -0
- package/NOTICE +148 -0
- package/README.md +92 -2
- package/app/package.json +12 -0
- package/app/server/engine.ts +533 -0
- package/app/server/main.ts +209 -0
- package/app/web/env.d.ts +2 -0
- package/app/web/icons.ts +31 -0
- package/app/web/index.html +21 -0
- package/app/web/main.ts +1195 -0
- package/app/web/style.css +463 -0
- package/bin/hooks.mjs +64 -0
- package/bin/kf.mjs +32 -0
- package/docs/AGENTS.md +286 -0
- package/music/README.md +37 -0
- package/package.json +44 -4
- package/packages/adapters/package.json +36 -0
- package/packages/adapters/src/css.ts +11 -0
- package/packages/adapters/src/gsap.ts +26 -0
- package/packages/adapters/src/index.ts +9 -0
- package/packages/adapters/src/lottie.ts +22 -0
- package/packages/adapters/src/media.ts +59 -0
- package/packages/adapters/src/page.ts +229 -0
- package/packages/adapters/src/project.ts +214 -0
- package/packages/adapters/src/react.ts +36 -0
- package/packages/adapters/src/svelte.ts +22 -0
- package/packages/adapters/src/three.ts +18 -0
- package/packages/adapters/src/vue.ts +27 -0
- package/packages/check/package.json +19 -0
- package/packages/check/src/check.ts +280 -0
- package/packages/check/src/cli.ts +70 -0
- package/packages/check/src/image.ts +146 -0
- package/packages/check/src/index.ts +9 -0
- package/packages/check/src/ocr.swift +37 -0
- package/packages/check/src/probe.ts +328 -0
- package/packages/check/src/report.ts +44 -0
- package/packages/check/src/rules/assets.ts +45 -0
- package/packages/check/src/rules/beats.ts +212 -0
- package/packages/check/src/rules/camera.ts +217 -0
- package/packages/check/src/rules/captions.ts +49 -0
- package/packages/check/src/rules/flash.ts +235 -0
- package/packages/check/src/rules/frames.ts +136 -0
- package/packages/check/src/rules/layout.ts +281 -0
- package/packages/check/src/rules/page.ts +87 -0
- package/packages/check/src/rules/runs.ts +20 -0
- package/packages/check/src/rules/text.ts +326 -0
- package/packages/check/src/scan.ts +240 -0
- package/packages/check/src/serve.ts +67 -0
- package/packages/check/src/types.ts +80 -0
- package/packages/check/src/video.ts +137 -0
- package/packages/cli/package.json +30 -0
- package/packages/cli/src/blur.ts +80 -0
- package/packages/cli/src/browser.ts +203 -0
- package/packages/cli/src/command.ts +44 -0
- package/packages/cli/src/commands/app.ts +25 -0
- package/packages/cli/src/commands/beats.ts +36 -0
- package/packages/cli/src/commands/bench.ts +123 -0
- package/packages/cli/src/commands/blender.ts +293 -0
- package/packages/cli/src/commands/check.ts +25 -0
- package/packages/cli/src/commands/direct.ts +210 -0
- package/packages/cli/src/commands/doctor.ts +30 -0
- package/packages/cli/src/commands/gen.ts +173 -0
- package/packages/cli/src/commands/look.ts +46 -0
- package/packages/cli/src/commands/lyrics.ts +157 -0
- package/packages/cli/src/commands/make.ts +1121 -0
- package/packages/cli/src/commands/music.ts +78 -0
- package/packages/cli/src/commands/narrate.ts +238 -0
- package/packages/cli/src/commands/new.ts +185 -0
- package/packages/cli/src/commands/preview.ts +43 -0
- package/packages/cli/src/commands/render.ts +250 -0
- package/packages/cli/src/commands/series.ts +110 -0
- package/packages/cli/src/commands/setup.ts +102 -0
- package/packages/cli/src/commands/sheet.ts +114 -0
- package/packages/cli/src/commands/skill.ts +43 -0
- package/packages/cli/src/commands/still.ts +40 -0
- package/packages/cli/src/commands/theme.ts +172 -0
- package/packages/cli/src/commands/transitions.ts +40 -0
- package/packages/cli/src/deps.ts +122 -0
- package/packages/cli/src/ffmpeg.ts +81 -0
- package/packages/cli/src/index.ts +8 -0
- package/packages/cli/src/kf.ts +64 -0
- package/packages/cli/src/lock.ts +72 -0
- package/packages/cli/src/mix.ts +131 -0
- package/packages/cli/src/out.ts +13 -0
- package/packages/cli/src/pool.ts +34 -0
- package/packages/cli/src/segments.ts +402 -0
- package/packages/cli/src/serve.ts +124 -0
- package/packages/clock/package.json +14 -0
- package/packages/clock/src/index.ts +25 -0
- package/packages/clock/src/install.ts +351 -0
- package/packages/clock/src/types.ts +45 -0
- package/packages/core/package.json +9 -0
- package/packages/core/src/beats.ts +283 -0
- package/packages/core/src/ease.ts +87 -0
- package/packages/core/src/frame.ts +99 -0
- package/packages/core/src/index.ts +27 -0
- package/packages/core/src/project.ts +157 -0
- package/packages/core/src/rand.ts +56 -0
- package/packages/core/src/spring.ts +52 -0
- package/packages/core/src/style.ts +100 -0
- package/packages/core/src/time.ts +88 -0
- package/packages/director/package.json +23 -0
- package/packages/director/src/assemble.ts +361 -0
- package/packages/director/src/brief.ts +122 -0
- package/packages/director/src/catalog.ts +49 -0
- package/packages/director/src/content.ts +343 -0
- package/packages/director/src/fallback.ts +58 -0
- package/packages/director/src/index.ts +13 -0
- package/packages/director/src/pattern.ts +90 -0
- package/packages/director/src/patterns/fill/cells.ts +115 -0
- package/packages/director/src/patterns/formula/stack.ts +93 -0
- package/packages/director/src/patterns/util.ts +58 -0
- package/packages/director/src/scene.ts +62 -0
- package/packages/director/src/select.ts +163 -0
- package/packages/director/src/transitions.ts +115 -0
- package/packages/gen/PROVIDERS.md +90 -0
- package/packages/gen/package.json +9 -0
- package/packages/gen/src/ask.ts +132 -0
- package/packages/gen/src/audio.ts +91 -0
- package/packages/gen/src/blender.ts +54 -0
- package/packages/gen/src/capabilities.ts +151 -0
- package/packages/gen/src/generate.ts +206 -0
- package/packages/gen/src/image/codex.ts +117 -0
- package/packages/gen/src/image/og.ts +133 -0
- package/packages/gen/src/index.ts +26 -0
- package/packages/gen/src/keys.ts +86 -0
- package/packages/gen/src/media.ts +150 -0
- package/packages/gen/src/music/elevenlabs.ts +41 -0
- package/packages/gen/src/music/index.ts +120 -0
- package/packages/gen/src/music/library.ts +73 -0
- package/packages/gen/src/music/lyria.ts +52 -0
- package/packages/gen/src/music/types.ts +28 -0
- package/packages/gen/src/plan.ts +106 -0
- package/packages/gen/src/registry.ts +54 -0
- package/packages/gen/src/seam.ts +103 -0
- package/packages/gen/src/tts/dashscope.ts +64 -0
- package/packages/gen/src/tts/elevenlabs.ts +84 -0
- package/packages/gen/src/tts/gemini.ts +73 -0
- package/packages/gen/src/tts/index.ts +241 -0
- package/packages/gen/src/tts/local.ts +42 -0
- package/packages/gen/src/tts/types.ts +44 -0
- package/packages/gen/src/types.ts +90 -0
- package/packages/gen/src/video/fal.ts +140 -0
- package/packages/gen/src/video/h3.ts +112 -0
- package/packages/gen/src/video/http.ts +44 -0
- package/packages/gen/src/video/ltx.ts +60 -0
- package/packages/gen/src/video/minimax.ts +55 -0
- package/packages/gen/src/video/veo.ts +71 -0
- package/packages/jizura/package.json +16 -0
- package/packages/jizura/src/deny.ts +73 -0
- package/packages/jizura/src/index.ts +7 -0
- package/packages/jizura/src/install.ts +269 -0
- package/packages/jizura/src/layer.ts +325 -0
- package/packages/jizura/src/lyrics.ts +81 -0
- package/packages/jizura/src/pin.ts +8 -0
- package/packages/jizura/src/vendor.ts +140 -0
- package/packages/jizura/src/vite.ts +63 -0
- package/packages/jizura/vendor/JIZURA_LICENSE.txt +21 -0
- package/packages/jizura/vendor/NOTICE +43 -0
- package/packages/jizura/vendor/engine.json +47 -0
- package/packages/jizura/vendor/fonts/BlackHanSans-Regular.woff2 +0 -0
- package/packages/jizura/vendor/fonts/DotGothic16-Regular.woff2 +0 -0
- package/packages/jizura/vendor/fonts/GowunBatang-Bold.woff2 +0 -0
- package/packages/jizura/vendor/fonts/IBMPlexMono-Medium.ttf +0 -0
- package/packages/jizura/vendor/fonts/IBMPlexMono-SemiBold.ttf +0 -0
- package/packages/jizura/vendor/fonts/NotoSansKR-VF.woff2 +0 -0
- package/packages/jizura/vendor/fonts/NotoSerifKR-VF.woff2 +0 -0
- package/packages/jizura/vendor/fonts/OFL-blackhansans.txt +93 -0
- package/packages/jizura/vendor/fonts/OFL-dotgothic16.txt +93 -0
- package/packages/jizura/vendor/fonts/OFL-gowunbatang.txt +94 -0
- package/packages/jizura/vendor/fonts/OFL-ibmplexmono.txt +93 -0
- package/packages/jizura/vendor/fonts/OFL-notosanskr.txt +93 -0
- package/packages/jizura/vendor/fonts/OFL-notoserifkr.txt +94 -0
- package/packages/jizura/vendor/fonts/fonts.json +52 -0
- package/packages/jizura/vendor/jizura_engine.js +35024 -0
- package/packages/motion/README.md +153 -0
- package/packages/motion/package.json +30 -0
- package/packages/motion/src/camera.ts +97 -0
- package/packages/motion/src/captions.ts +487 -0
- package/packages/motion/src/enter.ts +128 -0
- package/packages/motion/src/hangul.ts +129 -0
- package/packages/motion/src/impact.ts +100 -0
- package/packages/motion/src/index.ts +17 -0
- package/packages/motion/src/moves/brushWipe.ts +103 -0
- package/packages/motion/src/moves/cloneArray.ts +111 -0
- package/packages/motion/src/moves/curtains.ts +81 -0
- package/packages/motion/src/moves/dress.ts +191 -0
- package/packages/motion/src/moves/echoStack.ts +70 -0
- package/packages/motion/src/moves/fit.ts +70 -0
- package/packages/motion/src/moves/flood.ts +61 -0
- package/packages/motion/src/moves/ghostStack.ts +88 -0
- package/packages/motion/src/moves/gridFloor.ts +100 -0
- package/packages/motion/src/moves/imageSwarm.ts +113 -0
- package/packages/motion/src/moves/index.ts +38 -0
- package/packages/motion/src/moves/irisBlades.ts +113 -0
- package/packages/motion/src/moves/karaokeLine.ts +108 -0
- package/packages/motion/src/moves/ledBoard.ts +94 -0
- package/packages/motion/src/moves/liquidTab.ts +72 -0
- package/packages/motion/src/moves/markerWrite.ts +63 -0
- package/packages/motion/src/moves/menu.ts +138 -0
- package/packages/motion/src/moves/morphBox.ts +96 -0
- package/packages/motion/src/moves/neonSign.ts +78 -0
- package/packages/motion/src/moves/panelPop.ts +78 -0
- package/packages/motion/src/moves/paperTear.ts +75 -0
- package/packages/motion/src/moves/path.ts +64 -0
- package/packages/motion/src/moves/pathText.ts +107 -0
- package/packages/motion/src/moves/pointSphere.ts +109 -0
- package/packages/motion/src/moves/ransomLetters.ts +73 -0
- package/packages/motion/src/moves/shapeMorph.ts +143 -0
- package/packages/motion/src/moves/slamWords.ts +96 -0
- package/packages/motion/src/moves/sparkTrail.ts +130 -0
- package/packages/motion/src/moves/speedLines.ts +91 -0
- package/packages/motion/src/moves/splitFlap.ts +149 -0
- package/packages/motion/src/moves/stepWords.ts +128 -0
- package/packages/motion/src/moves/strikeOut.ts +98 -0
- package/packages/motion/src/moves/sunburst.ts +58 -0
- package/packages/motion/src/moves/tickerRows.ts +91 -0
- package/packages/motion/src/moves/tokenPicker.ts +115 -0
- package/packages/motion/src/moves/truchet.ts +85 -0
- package/packages/motion/src/moves/wordWall.ts +78 -0
- package/packages/motion/src/moves/worldRoll.ts +32 -0
- package/packages/motion/src/particles.ts +102 -0
- package/packages/motion/src/react/index.tsx +21 -0
- package/packages/motion/src/react/parts.tsx +431 -0
- package/packages/motion/src/react/time.tsx +97 -0
- package/packages/motion/src/text.ts +103 -0
- package/packages/motion/src/transition.ts +82 -0
- package/packages/motion/src/transition3d/cards.ts +65 -0
- package/packages/motion/src/transition3d/chain.ts +84 -0
- package/packages/motion/src/transition3d/dive.ts +181 -0
- package/packages/motion/src/transition3d/fold.ts +110 -0
- package/packages/motion/src/transition3d/gl.ts +219 -0
- package/packages/motion/src/transition3d/index.ts +235 -0
- package/packages/motion/src/transition3d/live.ts +70 -0
- package/packages/motion/src/transition3d/portal.ts +115 -0
- package/packages/motion/src/transition3d/react.tsx +29 -0
- package/packages/motion/src/transition3d/rig.ts +600 -0
- package/packages/motion/src/transition3d/shatter.ts +104 -0
- package/packages/motion/src/transition3d/space.ts +173 -0
- package/packages/motion/src/transition3d/whip.ts +78 -0
- package/packages/motion/src/transition3d/world.ts +737 -0
- package/packages/motion/src/transition3d/zoomOut.ts +114 -0
- package/packages/motion/src/transitions2d/catalog.ts +127 -0
- package/packages/motion/src/transitions2d/css.d.ts +2 -0
- package/packages/motion/src/transitions2d/cult-ui/LICENSE.md +9 -0
- package/packages/motion/src/transitions2d/cult-ui/RollingNumber.tsx +43 -0
- package/packages/motion/src/transitions2d/gl-transitions/LICENSE +25 -0
- package/packages/motion/src/transitions2d/gl-transitions/shaders.ts +1931 -0
- package/packages/motion/src/transitions2d/index.ts +2 -0
- package/packages/motion/src/transitions2d/kokonutui/LICENSE +21 -0
- package/packages/motion/src/transitions2d/kokonutui/MatrixText.css +16 -0
- package/packages/motion/src/transitions2d/kokonutui/MatrixText.tsx +94 -0
- package/packages/motion/src/transitions2d/magicui/HyperText.css +15 -0
- package/packages/motion/src/transitions2d/magicui/HyperText.tsx +115 -0
- package/packages/motion/src/transitions2d/magicui/LICENSE.md +21 -0
- package/packages/motion/src/transitions2d/magicui/MorphingText.css +25 -0
- package/packages/motion/src/transitions2d/magicui/MorphingText.tsx +130 -0
- package/packages/motion/src/transitions2d/magicui/WordRotate.tsx +42 -0
- package/packages/motion/src/transitions2d/react.ts +13 -0
- package/packages/motion/src/transitions2d/skiper-ui/ClipDiv.css +39 -0
- package/packages/motion/src/transitions2d/skiper-ui/ClipDiv.tsx +32 -0
- package/packages/motion/src/transitions2d/smoothui/LICENSE +21 -0
- package/packages/motion/src/transitions2d/smoothui/SharedAxisY.tsx +50 -0
- package/packages/motion/src/transitions2d/smoothui/TextMorph.tsx +90 -0
- package/packages/motion/src/transitions2d/smoothui/shaders.ts +223 -0
- package/packages/motion/src/transitions2d/unlumen/LICENSE +21 -0
- package/packages/motion/src/transitions2d/unlumen/ScrambleText.tsx +114 -0
- package/packages/motion/src/transitions2d/vengeance-ui/LICENSE +21 -0
- package/packages/motion/src/transitions2d/vengeance-ui/MorphText.css +69 -0
- package/packages/motion/src/transitions2d/vengeance-ui/MorphText.tsx +45 -0
- package/packages/motion/src/type.ts +131 -0
- package/packages/motion/src/ui.ts +172 -0
- package/packages/patterns/package.json +15 -0
- package/packages/patterns/src/bars/rank.ts +119 -0
- package/packages/patterns/src/before-after/shrink.ts +127 -0
- package/packages/patterns/src/before-after/strike.ts +125 -0
- package/packages/patterns/src/code/terminal.ts +133 -0
- package/packages/patterns/src/compare/bars.ts +142 -0
- package/packages/patterns/src/compare/duel.ts +103 -0
- package/packages/patterns/src/end/lockup.ts +85 -0
- package/packages/patterns/src/end/slam.ts +91 -0
- package/packages/patterns/src/flow/graph.ts +250 -0
- package/packages/patterns/src/hook-number/counter.ts +101 -0
- package/packages/patterns/src/hook-number/roll.ts +179 -0
- package/packages/patterns/src/hook-number/slam.ts +91 -0
- package/packages/patterns/src/index.ts +38 -0
- package/packages/patterns/src/kit.ts +449 -0
- package/packages/patterns/src/limit/gauge.ts +117 -0
- package/packages/patterns/src/list/cards.ts +131 -0
- package/packages/patterns/src/list/cycle.ts +22 -0
- package/packages/patterns/src/media/panels.ts +100 -0
- package/packages/patterns/src/objects.ts +234 -0
- package/packages/patterns/src/quote/karaoke.ts +126 -0
- package/packages/patterns/src/quote/slam.ts +22 -0
- package/packages/patterns/src/screen/focus.ts +85 -0
- package/packages/patterns/src/steps/path.ts +137 -0
- package/packages/patterns/src/steps/stack.ts +111 -0
- package/packages/patterns/src/term-reveal/chips.ts +92 -0
- package/packages/patterns/src/term-reveal/expand.ts +127 -0
- package/packages/patterns/src/timeline/axis.ts +144 -0
- package/packages/patterns/src/title/mask.ts +85 -0
- package/packages/patterns/src/title/slam.ts +23 -0
- package/packages/patterns/src/toggle-sim/switch.ts +92 -0
- package/packages/patterns/src/trend/columns.ts +108 -0
- package/packages/patterns/src/trend/draw.ts +140 -0
- package/packages/patterns/src/types.ts +67 -0
- package/packages/patterns/src/words/moves.ts +42 -0
- package/packages/patterns/src/words/slam.ts +4 -0
- package/packages/plan/package.json +15 -0
- package/packages/plan/src/asks.ts +256 -0
- package/packages/plan/src/brief.ts +383 -0
- package/packages/plan/src/captions.ts +78 -0
- package/packages/plan/src/detect.ts +93 -0
- package/packages/plan/src/index.ts +27 -0
- package/packages/plan/src/layout.ts +176 -0
- package/packages/plan/src/llm.ts +172 -0
- package/packages/plan/src/look.ts +222 -0
- package/packages/plan/src/plan.ts +179 -0
- package/packages/plan/src/request.ts +55 -0
- package/packages/plan/src/series.ts +76 -0
- package/packages/plan/src/studio.ts +53 -0
- package/packages/plan/src/templates.ts +42 -0
- package/packages/plan/src/themes.ts +48 -0
- package/packages/plan/src/types.ts +157 -0
- package/packages/studio/package.json +12 -0
- package/packages/studio/src/index.ts +1 -0
- package/packages/studio/src/plugin.ts +236 -0
- package/packages/studio/src/ui/main.ts +503 -0
- package/packages/studio/src/ui/studio.css +165 -0
- package/packages/studio/src/ui/timeline.ts +317 -0
- package/packages/themes/kit/THEME-MAKE.md +68 -0
- package/packages/themes/kit/THEME.md +30 -0
- package/packages/themes/kit/briefs/og-intro-15s/brief.json +16 -0
- package/packages/themes/kit/briefs/og-intro-15s/facts.ts +29 -0
- package/packages/themes/kit/briefs/og-intro-15s/logo.svg +12 -0
- package/packages/themes/kit/effects.ts +5 -0
- package/packages/themes/kit/sample/index.html +11 -0
- package/packages/themes/kit/sample/main.ts +9 -0
- package/packages/themes/kit/sample/scenes/scene.ts +15 -0
- package/packages/themes/package.json +19 -0
- package/packages/themes/src/factory.ts +296 -0
- package/packages/themes/src/fx.ts +14 -0
- package/packages/themes/src/index.ts +114 -0
- package/packages/themes/src/slotkit.ts +79 -0
- package/packages/themes/src/slots.ts +46 -0
- package/packages/themes/src/stage3d.ts +197 -0
- package/packages/themes/src/types.ts +58 -0
- package/presets/kawaii-pastel.json +94 -0
- package/presets/neutral-dark.json +82 -0
- package/presets/og.json +98 -0
- package/series/og-shorts.json +14 -0
- package/skills/kasaframe/SKILL.md +33 -0
- package/templates/_shared/project/index.html +11 -0
- package/templates/_shared/project/lib/react.ts +22 -0
- package/templates/_shared/project/lib/stage.ts +292 -0
- package/templates/_shared/project/main.ts +9 -0
- package/templates/_shared/scenes/default.ts +21 -0
- package/templates/_shared/scenes/drop.ts +33 -0
- package/templates/_shared/scenes/end.ts +26 -0
- package/templates/_shared/scenes/hook.ts +18 -0
- package/templates/_shared/scenes/seam.ts +41 -0
- package/templates/_shared/scenes/step.ts +49 -0
- package/templates/ad/preview.png +0 -0
- package/templates/ad/template.json +151 -0
- package/templates/demo/preview.png +0 -0
- package/templates/demo/template.json +141 -0
- package/templates/explainer/preview.png +0 -0
- package/templates/explainer/template.json +193 -0
- package/templates/launch/preview.png +0 -0
- package/templates/launch/template.json +163 -0
- package/templates/mv/preview.png +0 -0
- package/templates/mv/scenes/default.ts +98 -0
- package/templates/mv/template.json +178 -0
- package/templates/promo/preview.png +0 -0
- package/templates/promo/template.json +185 -0
- package/templates/shorts/preview.png +0 -0
- package/templates/shorts/scenes/hook.ts +37 -0
- package/templates/shorts/template.json +196 -0
- package/templates/square/preview.png +0 -0
- package/templates/square/template.json +133 -0
- package/themes/debug-hud/THEME.md +39 -0
- package/themes/debug-hud/effects.ts +389 -0
- package/themes/debug-hud/sample/assets/og/logo.svg +12 -0
- package/themes/debug-hud/sample/beats.json +1 -0
- package/themes/debug-hud/sample/index.html +11 -0
- package/themes/debug-hud/sample/kf.json +59 -0
- package/themes/debug-hud/sample/lib/hudkit.ts +49 -0
- package/themes/debug-hud/sample/lib/og.ts +29 -0
- package/themes/debug-hud/sample/main.ts +9 -0
- package/themes/debug-hud/sample/scenes/end.ts +62 -0
- package/themes/debug-hud/sample/scenes/gather.ts +67 -0
- package/themes/debug-hud/sample/scenes/models.ts +70 -0
- package/themes/debug-hud/sample/scenes/price.ts +79 -0
- package/themes/debug-hud/sample/style.json +91 -0
- package/themes/debug-hud/slots.ts +99 -0
- package/themes/debug-hud/still.png +0 -0
- package/themes/debug-hud/style.json +91 -0
- package/themes/debug-hud/theme.json +68 -0
- package/themes/og-measure/THEME.md +47 -0
- package/themes/og-measure/effects.ts +432 -0
- package/themes/og-measure/sample/assets/brand/og-logo-full.svg +12 -0
- package/themes/og-measure/sample/assets/brand/og-logo.svg +12 -0
- package/themes/og-measure/sample/assets/data/measure.json +353 -0
- package/themes/og-measure/sample/beats.json +1 -0
- package/themes/og-measure/sample/index.html +11 -0
- package/themes/og-measure/sample/kf.json +66 -0
- package/themes/og-measure/sample/lib/data.ts +62 -0
- package/themes/og-measure/sample/main.ts +9 -0
- package/themes/og-measure/sample/measure.ts +78 -0
- package/themes/og-measure/sample/scenes/end.ts +47 -0
- package/themes/og-measure/sample/scenes/gather.ts +51 -0
- package/themes/og-measure/sample/scenes/models.ts +34 -0
- package/themes/og-measure/sample/scenes/one.ts +39 -0
- package/themes/og-measure/sample/scenes/price.ts +56 -0
- package/themes/og-measure/sample/style.json +97 -0
- package/themes/og-measure/slots.ts +88 -0
- package/themes/og-measure/still.png +0 -0
- package/themes/og-measure/style.json +97 -0
- package/themes/og-measure/theme.json +79 -0
- package/themes/riso-zine/THEME.md +43 -0
- package/themes/riso-zine/effects.ts +321 -0
- package/themes/riso-zine/sample/assets/og/logo.svg +12 -0
- package/themes/riso-zine/sample/beats.json +1 -0
- package/themes/riso-zine/sample/index.html +11 -0
- package/themes/riso-zine/sample/kf.json +59 -0
- package/themes/riso-zine/sample/lib/og.ts +29 -0
- package/themes/riso-zine/sample/lib/shot.ts +86 -0
- package/themes/riso-zine/sample/lib/zine.ts +42 -0
- package/themes/riso-zine/sample/main.ts +9 -0
- package/themes/riso-zine/sample/scenes/end.ts +61 -0
- package/themes/riso-zine/sample/scenes/gather.ts +62 -0
- package/themes/riso-zine/sample/scenes/models.ts +52 -0
- package/themes/riso-zine/sample/scenes/price.ts +82 -0
- package/themes/riso-zine/sample/style.json +99 -0
- package/themes/riso-zine/slots.ts +81 -0
- package/themes/riso-zine/still.png +0 -0
- package/themes/riso-zine/style.json +99 -0
- package/themes/riso-zine/theme.json +75 -0
- package/tools/beats/beats.py +372 -0
- package/tools/beats/requirements.txt +3 -0
- package/tools/lyrics/align.py +164 -0
- package/tools/lyrics/requirements.txt +9 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { createReadStream, createWriteStream, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
|
|
2
|
+
import { createServer, type IncomingMessage, type ServerResponse } from "node:http";
|
|
3
|
+
import { basename, extname, join, normalize, resolve } from "node:path";
|
|
4
|
+
import { pipeline } from "node:stream/promises";
|
|
5
|
+
import { fileURLToPath } from "node:url";
|
|
6
|
+
import { createServer as createVite } from "vite";
|
|
7
|
+
import { dataDir, Engine, templatePreview } from "./engine.ts";
|
|
8
|
+
|
|
9
|
+
// 작업실 = 이 엔진 서버(API + SSE) + 그 API 만 쓰는 웹 화면. Electron·컨테이너로 갈 때도 이 파일만 감싼다.
|
|
10
|
+
|
|
11
|
+
const port = Number(process.env.KF_APP_PORT ?? 5150);
|
|
12
|
+
const host = process.env.KF_APP_HOST ?? "127.0.0.1";
|
|
13
|
+
const webRoot = fileURLToPath(new URL("../web/", import.meta.url));
|
|
14
|
+
const uploads = join(dataDir, "uploads");
|
|
15
|
+
// 곡 모음 — kf make 와 같은 자리(레포 music/, KF_MUSIC_DIR 이 있으면 그쪽)
|
|
16
|
+
const musicDir = process.env.KF_MUSIC_DIR || fileURLToPath(new URL("../../music/", import.meta.url));
|
|
17
|
+
mkdirSync(uploads, { recursive: true });
|
|
18
|
+
|
|
19
|
+
const engine = new Engine();
|
|
20
|
+
// 이 기계에서는 fs 이벤트 감시가 바뀐 파일을 못 알려 옛 모듈을 내줬다 — 작은 폴더라 훑기로 본다
|
|
21
|
+
const vite = await createVite({ root: webRoot, configFile: false, logLevel: "warn", clearScreen: false, server: { middlewareMode: true, hmr: { port: port + 9 }, watch: { usePolling: true, interval: 1000 } }, appType: "spa" });
|
|
22
|
+
|
|
23
|
+
const TYPES: Record<string, string> = { ".jpg": "image/jpeg", ".jpeg": "image/jpeg", ".webp": "image/webp", ".gif": "image/gif", ".svg": "image/svg+xml", ".webm": "video/webm", ".m4v": "video/mp4", ".mp4": "video/mp4", ".png": "image/png", ".json": "application/json", ".srt": "text/plain; charset=utf-8", ".vtt": "text/vtt", ".mov": "video/quicktime", ".mp3": "audio/mpeg", ".wav": "audio/wav" };
|
|
24
|
+
const AUDIO = /\.(mp3|wav|m4a|aac|flac|ogg)$/i;
|
|
25
|
+
const IMAGE = /\.(png|jpe?g|webp|gif|svg)$/i;
|
|
26
|
+
const VIDEO = /\.(mp4|mov|webm|m4v)$/i;
|
|
27
|
+
|
|
28
|
+
function send(res: ServerResponse, status: number, body: unknown): void {
|
|
29
|
+
res.writeHead(status, { "content-type": "application/json; charset=utf-8" });
|
|
30
|
+
res.end(JSON.stringify(body));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
async function body<T>(req: IncomingMessage): Promise<T> {
|
|
34
|
+
const chunks: Buffer[] = [];
|
|
35
|
+
for await (const c of req) chunks.push(c as Buffer);
|
|
36
|
+
return (chunks.length ? JSON.parse(Buffer.concat(chunks).toString("utf8")) : {}) as T;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// 폰 사파리는 Range 를 못 받으면 영상을 안 튼다
|
|
40
|
+
function serveFile(req: IncomingMessage, res: ServerResponse, file: string): void {
|
|
41
|
+
const size = statSync(file).size;
|
|
42
|
+
const type = TYPES[extname(file).toLowerCase()] ?? "application/octet-stream";
|
|
43
|
+
const range = req.headers.range?.match(/bytes=(\d*)-(\d*)/);
|
|
44
|
+
const disposition = new URL(req.url ?? "", "http://x").searchParams.has("download") ? { "content-disposition": `attachment; filename="${basename(file)}"` } : {};
|
|
45
|
+
if (range) {
|
|
46
|
+
const start = range[1] ? Number(range[1]) : 0;
|
|
47
|
+
const end = range[2] ? Math.min(Number(range[2]), size - 1) : size - 1;
|
|
48
|
+
res.writeHead(206, { "content-type": type, "content-range": `bytes ${start}-${end}/${size}`, "accept-ranges": "bytes", "content-length": end - start + 1, ...disposition });
|
|
49
|
+
createReadStream(file, { start, end }).pipe(res);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
res.writeHead(200, { "content-type": type, "content-length": size, "accept-ranges": "bytes", "cache-control": "no-store", ...disposition });
|
|
53
|
+
createReadStream(file).pipe(res);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function sse(req: IncomingMessage, res: ServerResponse, jobId?: string): void {
|
|
57
|
+
res.writeHead(200, { "content-type": "text/event-stream", "cache-control": "no-store", connection: "keep-alive" });
|
|
58
|
+
const write = (event: string, data: unknown) => res.write(`event: ${event}\ndata: ${JSON.stringify(data)}\n\n`);
|
|
59
|
+
if (jobId) {
|
|
60
|
+
write("state", engine.view(jobId));
|
|
61
|
+
for (const line of engine.logOf(jobId).slice(-200)) write("log", line);
|
|
62
|
+
}
|
|
63
|
+
const onState = (v: { id: string }) => (!jobId || v.id === jobId) && write("state", v);
|
|
64
|
+
const onLog = (id: string, line: string) => jobId === id && write("log", line);
|
|
65
|
+
engine.on("state", onState);
|
|
66
|
+
engine.on("log", onLog);
|
|
67
|
+
const ping = setInterval(() => res.write(": ping\n\n"), 15000);
|
|
68
|
+
req.on("close", () => {
|
|
69
|
+
clearInterval(ping);
|
|
70
|
+
engine.off("state", onState);
|
|
71
|
+
engine.off("log", onLog);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
async function api(req: IncomingMessage, res: ServerResponse, path: string): Promise<void> {
|
|
76
|
+
const method = req.method ?? "GET";
|
|
77
|
+
const m = path.match(/^\/api\/jobs\/([\w-]+)(?:\/(.*))?$/);
|
|
78
|
+
if (path === "/api/templates") return send(res, 200, engine.templates());
|
|
79
|
+
const still = path.match(/^\/api\/templates\/([a-z]+)\/still\.png$/);
|
|
80
|
+
if (still) {
|
|
81
|
+
const f = templatePreview(still[1]);
|
|
82
|
+
return existsSync(f) ? serveFile(req, res, f) : send(res, 404, { error: "대표 그림이 없다 — node templates/_shared/previews.ts" });
|
|
83
|
+
}
|
|
84
|
+
if (path === "/api/plan" && method === "POST") {
|
|
85
|
+
const b = await body<{ request: string; purpose?: never; theme?: string }>(req);
|
|
86
|
+
// purpose: 틀 id 면 그 틀로, "auto" 거나 없으면 요청 글로 판별. theme: id 나 "auto"
|
|
87
|
+
return send(res, 200, await engine.plan(b.request ?? "", b.purpose, b.theme));
|
|
88
|
+
}
|
|
89
|
+
if (path === "/api/themes" && method === "GET") {
|
|
90
|
+
const q = new URL(req.url ?? "", "http://x").searchParams;
|
|
91
|
+
return send(res, 200, engine.themes({ all: q.get("all") === "1", purpose: q.get("purpose") ?? undefined, aspect: q.get("aspect") ?? undefined }));
|
|
92
|
+
}
|
|
93
|
+
if (path === "/api/themes/suggest" && method === "POST") {
|
|
94
|
+
const b = await body<{ request: string; purpose: never }>(req);
|
|
95
|
+
return send(res, 200, engine.suggest(b.request ?? "", b.purpose));
|
|
96
|
+
}
|
|
97
|
+
if (path === "/api/themes/new" && method === "POST") return send(res, 200, await engine.themeNew(await body(req)));
|
|
98
|
+
const themeAct = path.match(/^\/api\/themes\/([\w-]+)\/(review|approve)$/);
|
|
99
|
+
if (themeAct) {
|
|
100
|
+
const [, id, act] = themeAct;
|
|
101
|
+
if (act === "review") return send(res, method === "POST" ? 202 : 200, method === "POST" ? engine.themeReview(id) : engine.themeTask(id));
|
|
102
|
+
if (method === "POST") return send(res, 200, await engine.themeApprove(id));
|
|
103
|
+
}
|
|
104
|
+
const themeFile = path.match(/^\/api\/themes\/([\w-]+)\/(still|sample)$/);
|
|
105
|
+
if (themeFile) {
|
|
106
|
+
const f = engine.themeFile(themeFile[1], themeFile[2] as "still" | "sample");
|
|
107
|
+
return f && existsSync(f) ? serveFile(req, res, f) : send(res, 404, { error: "테마 견본이 없다" });
|
|
108
|
+
}
|
|
109
|
+
if (path === "/api/events") return sse(req, res);
|
|
110
|
+
if (path === "/api/jobs" && method === "GET") return send(res, 200, engine.list());
|
|
111
|
+
if (path === "/api/jobs" && method === "POST") {
|
|
112
|
+
const b = await body<Parameters<Engine["create"]>[0]>(req);
|
|
113
|
+
if (!b.request?.trim()) return send(res, 400, { error: "요청 글이 비었다" });
|
|
114
|
+
return send(res, 201, engine.view(engine.create(b).id));
|
|
115
|
+
}
|
|
116
|
+
if (path === "/api/jobs/attach" && method === "POST") {
|
|
117
|
+
const job = engine.attach(await body(req));
|
|
118
|
+
return send(res, 200, { id: job.id, url: `http://${req.headers.host}/?job=${job.id}` });
|
|
119
|
+
}
|
|
120
|
+
if (path === "/api/music") {
|
|
121
|
+
const lib = musicDir;
|
|
122
|
+
// url 은 미리 듣기(Range) — 올린 곡은 /api/uploads, 곡 모음은 /api/music/<파일>
|
|
123
|
+
const list = (dir: string | undefined, base: string) =>
|
|
124
|
+
dir && existsSync(dir) ? readdirSync(dir).filter((f) => AUDIO.test(f)).map((f) => ({ name: f.replace(/^[a-z0-9]+-(?=.)/, base === "uploads" ? "" : "$&"), path: join(dir, f), url: `/api/${base}/${encodeURIComponent(f)}` })) : [];
|
|
125
|
+
return send(res, 200, [...list(uploads, "uploads"), ...list(lib, "music")]);
|
|
126
|
+
}
|
|
127
|
+
const song = path.match(/^\/api\/music\/(.+)$/);
|
|
128
|
+
if (song && method === "GET") {
|
|
129
|
+
const f = join(musicDir, basename(decodeURIComponent(song[1])));
|
|
130
|
+
return f && existsSync(f) ? serveFile(req, res, f) : send(res, 404, { error: "곡이 없다" });
|
|
131
|
+
}
|
|
132
|
+
// 올린 그림·영상 — POST /api/jobs 의 assets 로 다시 보낸다
|
|
133
|
+
if (path === "/api/assets") {
|
|
134
|
+
const list = readdirSync(uploads).filter((f) => IMAGE.test(f) || VIDEO.test(f)).map((f) => ({
|
|
135
|
+
name: f.replace(/^[a-z0-9]+-/, ""),
|
|
136
|
+
path: join(uploads, f),
|
|
137
|
+
kind: IMAGE.test(f) ? "image" : "video",
|
|
138
|
+
size: statSync(join(uploads, f)).size,
|
|
139
|
+
url: `/api/uploads/${encodeURIComponent(f)}`,
|
|
140
|
+
}));
|
|
141
|
+
return send(res, 200, list);
|
|
142
|
+
}
|
|
143
|
+
const up = path.match(/^\/api\/uploads\/(.+)$/);
|
|
144
|
+
if (up && method === "GET") {
|
|
145
|
+
const f = join(uploads, basename(decodeURIComponent(up[1])));
|
|
146
|
+
return existsSync(f) ? serveFile(req, res, f) : send(res, 404, { error: "파일이 없다" });
|
|
147
|
+
}
|
|
148
|
+
if (path === "/api/upload" && method === "POST") {
|
|
149
|
+
const name = basename(new URL(req.url ?? "", "http://x").searchParams.get("name") ?? "upload.bin").replace(/[^\w.\-가-힣]/g, "_");
|
|
150
|
+
const file = join(uploads, `${Date.now().toString(36)}-${name}`);
|
|
151
|
+
await pipeline(req, createWriteStream(file));
|
|
152
|
+
return send(res, 201, { name, path: file });
|
|
153
|
+
}
|
|
154
|
+
if (!m) return send(res, 404, { error: "없는 길" });
|
|
155
|
+
const [, id, rest = ""] = m;
|
|
156
|
+
if (!rest && method === "GET") return send(res, 200, engine.view(id));
|
|
157
|
+
if (rest === "events") return sse(req, res, id);
|
|
158
|
+
if (rest === "log") return send(res, 200, engine.logOf(id));
|
|
159
|
+
if (rest === "progress" && method === "POST") {
|
|
160
|
+
engine.progress(id, await body(req));
|
|
161
|
+
return send(res, 200, { ok: true });
|
|
162
|
+
}
|
|
163
|
+
if (rest === "preview") return send(res, 200, { url: engine.previewFor(id) ?? null });
|
|
164
|
+
if (rest === "stop" && method === "POST") {
|
|
165
|
+
engine.stop(id);
|
|
166
|
+
return send(res, 200, { ok: true });
|
|
167
|
+
}
|
|
168
|
+
if (rest === "render" && method === "POST") return send(res, 200, engine.view(engine.rerender(id, await body<{ captions?: "on" | "off" }>(req)).id));
|
|
169
|
+
if (rest === "rewrite" && method === "POST") {
|
|
170
|
+
const b = await body<{ scenes: string[]; pattern?: Record<string, string>; seed?: Record<string, string> }>(req);
|
|
171
|
+
return send(res, 200, engine.view(engine.rewrite(id, b.scenes ?? [], { pattern: b.pattern, seed: b.seed }).id));
|
|
172
|
+
}
|
|
173
|
+
if (rest === "redo" && method === "POST") return send(res, 200, engine.view(engine.redo(id, (await body<{ scenes: string[] }>(req)).scenes ?? []).id));
|
|
174
|
+
const scene = rest.match(/^scenes\/([\w-]+)$/);
|
|
175
|
+
if (scene && method === "GET") return send(res, 200, engine.sceneDetail(id, scene[1]));
|
|
176
|
+
if (scene && method === "PATCH") return send(res, 200, engine.editScene(id, scene[1], await body(req)));
|
|
177
|
+
const sceneAsset = rest.match(/^scenes\/([\w-]+)\/asset$/);
|
|
178
|
+
if (sceneAsset && method === "PUT") return send(res, 200, engine.replaceAsset(id, sceneAsset[1], await body(req)));
|
|
179
|
+
const file = rest.match(/^files\/(.+)$/);
|
|
180
|
+
if (file && method === "GET") {
|
|
181
|
+
const dir = engine.view(id).dir;
|
|
182
|
+
const p = resolve(dir, normalize(decodeURIComponent(file[1])));
|
|
183
|
+
if (!p.startsWith(dir) || !existsSync(p) || statSync(p).isDirectory()) return send(res, 404, { error: "파일이 없다" });
|
|
184
|
+
return serveFile(req, res, p);
|
|
185
|
+
}
|
|
186
|
+
return send(res, 404, { error: "없는 길" });
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
const server = createServer(async (req, res) => {
|
|
190
|
+
const path = new URL(req.url ?? "/", "http://x").pathname;
|
|
191
|
+
if (!path.startsWith("/api/")) return vite.middlewares(req, res);
|
|
192
|
+
try {
|
|
193
|
+
await api(req, res, path);
|
|
194
|
+
} catch (e) {
|
|
195
|
+
const err = e as Error & { status?: number };
|
|
196
|
+
if (!res.headersSent) send(res, err.status ?? 500, { error: err.message });
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
server.listen(port, host, () => console.log(`작업실 http://${host === "0.0.0.0" ? "127.0.0.1" : host}:${port}/ (일 폴더 ${dataDir})`));
|
|
201
|
+
|
|
202
|
+
const shutdown = async () => {
|
|
203
|
+
await engine.close();
|
|
204
|
+
await vite.close();
|
|
205
|
+
server.close();
|
|
206
|
+
process.exit(0);
|
|
207
|
+
};
|
|
208
|
+
process.on("SIGINT", shutdown);
|
|
209
|
+
process.on("SIGTERM", shutdown);
|
package/app/web/env.d.ts
ADDED
package/app/web/icons.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// 선 굵기 하나(1.75)·둥근 끝으로 맞춘 24px 아이콘. 이모지 대신 쓴다.
|
|
2
|
+
const PATHS = {
|
|
3
|
+
back: '<path d="M15 6l-6 6 6 6"/>',
|
|
4
|
+
next: '<path d="M9 6l6 6-6 6"/>',
|
|
5
|
+
arrow: '<path d="M5 12h14M13 6l6 6-6 6"/>',
|
|
6
|
+
upload: '<path d="M12 15V4M7 9l5-5 5 5"/><path d="M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3"/>',
|
|
7
|
+
music: '<path d="M9 18V6l11-2v12"/><circle cx="6.5" cy="18" r="2.5"/><circle cx="17.5" cy="16" r="2.5"/>',
|
|
8
|
+
image: '<rect x="3.5" y="4.5" width="17" height="15" rx="2"/><circle cx="9" cy="10" r="1.75"/><path d="M20.5 15.5l-5-5-9 9"/>',
|
|
9
|
+
video: '<rect x="3" y="6" width="13" height="12" rx="2"/><path d="M16 10.5l5-3v9l-5-3z"/>',
|
|
10
|
+
play: '<path d="M8 5.5v13l10.5-6.5z" fill="currentColor" stroke="none"/>',
|
|
11
|
+
pause: '<path d="M7.5 5.5h3v13h-3zM13.5 5.5h3v13h-3z" fill="currentColor" stroke="none"/>',
|
|
12
|
+
close: '<path d="M6 6l12 12M18 6L6 18"/>',
|
|
13
|
+
check: '<path d="M5 12.5l4.5 4.5L19 7.5"/>',
|
|
14
|
+
download: '<path d="M12 4v11M7 10l5 5 5-5"/><path d="M4 18v1a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-1"/>',
|
|
15
|
+
redo: '<path d="M20 11a8 8 0 1 0-2.3 5.6"/><path d="M20 4v7h-7"/>',
|
|
16
|
+
stop: '<rect x="6.5" y="6.5" width="11" height="11" rx="1.5" fill="currentColor" stroke="none"/>',
|
|
17
|
+
history: '<path d="M3.5 12a8.5 8.5 0 1 0 2.5-6"/><path d="M3.5 4.5V9H8"/><path d="M12 8v4.5l3 2"/>',
|
|
18
|
+
caption: '<rect x="3" y="5.5" width="18" height="13" rx="2"/><path d="M10 10.5a2 2 0 1 0 0 3M17 10.5a2 2 0 1 0 0 3"/>',
|
|
19
|
+
warn: '<path d="M12 4l9 16H3z"/><path d="M12 10v4M12 17v.5"/>',
|
|
20
|
+
edit: '<path d="M4 20h4L19 9l-4-4L4 16z"/><path d="M13.5 6.5l4 4"/>',
|
|
21
|
+
plus: '<path d="M12 5v14M5 12h14"/>',
|
|
22
|
+
copy: '<rect x="8.5" y="8.5" width="11" height="11" rx="2"/><path d="M15.5 8.5V6a1.5 1.5 0 0 0-1.5-1.5H6A1.5 1.5 0 0 0 4.5 6v8A1.5 1.5 0 0 0 6 15.5h2.5"/>',
|
|
23
|
+
} as const;
|
|
24
|
+
|
|
25
|
+
export type IconName = keyof typeof PATHS;
|
|
26
|
+
|
|
27
|
+
export function icon(name: IconName, size = 18): SVGSVGElement {
|
|
28
|
+
const t = document.createElement("template");
|
|
29
|
+
t.innerHTML = `<svg viewBox="0 0 24 24" width="${size}" height="${size}" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${PATHS[name]}</svg>`;
|
|
30
|
+
return t.content.firstChild as SVGSVGElement;
|
|
31
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="ko">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
6
|
+
<meta name="theme-color" content="#0c0d10" />
|
|
7
|
+
<title>kasaframe 작업실</title>
|
|
8
|
+
<link rel="preconnect" href="https://cdn.jsdelivr.net" />
|
|
9
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css" />
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<header class="top">
|
|
13
|
+
<a class="mark" href="/" aria-label="kasaframe 작업실 처음으로">kasaframe</a>
|
|
14
|
+
<nav class="rail" id="rail" aria-label="단계"></nav>
|
|
15
|
+
<button class="ghost jobs-btn" id="jobs-toggle" type="button" aria-expanded="false" aria-controls="jobs"></button>
|
|
16
|
+
</header>
|
|
17
|
+
<aside id="jobs" class="jobs" hidden aria-label="지난 작업"></aside>
|
|
18
|
+
<main id="view" class="view"></main>
|
|
19
|
+
<script type="module" src="./main.ts"></script>
|
|
20
|
+
</body>
|
|
21
|
+
</html>
|