This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Learn more about the recommended Project Setup and IDE Support in the Vue Docs TypeScript Guide.
This project consumes the generated WebF Cupertino UI Vue typings package:
- Local dependency:
@openwebf/vue-cupertino-ui(file:../packages/vue-cupertino-ui) - Global component types are loaded via
src/env.d.ts(imports@openwebf/vue-cupertino-ui) - Vue compiler is configured to treat
webf-*/flutter-*tags as custom elements invite.config.ts
This app also includes route demos using @openwebf/vue-router.
These demos are intended to run inside the WebF environment where webf.hybridHistory and
<webf-router-link> are available.
This repo mirrors the page/folder structure (and route paths) from ../use_cases:
- Routes:
src/routes.ts - Pages:
src/pages/(placeholders to be ported from the React implementation)
This project enables vue-router debug logs by default in src/main.ts.
If you want to disable them, remove:
// @ts-ignore
globalThis.__WEBF_VUE_ROUTER_DEBUG__ = true;- Route configuration:
src/routes.ts - Pages:
src/pages/ - Legacy router demo components (not wired by default):
src/components/RouterDemoHome.vuesrc/components/RouterDemoUser.vuesrc/components/RouterDemoFiles.vuesrc/components/RouterDemoNotFound.vue