feat: add photo booth functionality with shooting, uploading, and printing steps
- Implemented PrintStepView for displaying countdown and photo results. - Created SelectSourceView for choosing between shooting new photos or uploading existing ones. - Developed ShootingView for capturing photos using the device camera. - Added UploadView for selecting and previewing uploaded photos. - Configured TypeScript settings with tsconfig files for app and node environments. - Set up Vite configuration with PWA support for the application.
This commit is contained in:
45
src/router/index.ts
Normal file
45
src/router/index.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import HomeView from '../views/HomeView.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
component: HomeView,
|
||||
},
|
||||
{
|
||||
path: '/frame',
|
||||
name: 'frame',
|
||||
component: () => import('../views/FrameView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/selectsource',
|
||||
name: 'selectsource',
|
||||
component: () => import('../views/SelectSourceView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/shooting',
|
||||
name: 'shooting',
|
||||
component: () => import('../views/ShootingView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/upload',
|
||||
name: 'upload',
|
||||
component: () => import('../views/UploadView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/printstep',
|
||||
name: 'printstep',
|
||||
component: () => import('../views/PrintStepView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/pickup',
|
||||
name: 'pickup',
|
||||
component: () => import('../views/PickupView.vue'),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user