Something went wrong. Try again.
AI-organized UGC video generator in a chat box. Cloudflare Workers, Vue, Claude API, ffmpeg.wasm reelity.arjunkrishna.dev
Something went wrong. Try again.
12345678910111213141516171819<script setup lang="ts">import { ref, computed, onMounted, onUnmounted } from "vue";import Chat from "./components/Chat.vue";import Gallery from "./components/Gallery.vue";
const path = ref(location.pathname);const sync = () => (path.value = location.pathname);
onMounted(() => window.addEventListener("popstate", sync));onUnmounted(() => window.removeEventListener("popstate", sync));
const isGallery = computed(() => path.value.startsWith("/gallery"));</script>
<template> <Gallery v-if="isGallery" /> <Chat v-else /></template>