diff --git a/public/img/shortcuts/play-144x144.png b/public/img/shortcuts/play-144x144.png new file mode 100644 index 0000000..0bce91e Binary files /dev/null and b/public/img/shortcuts/play-144x144.png differ diff --git a/public/img/shortcuts/play-192x192.png b/public/img/shortcuts/play-192x192.png new file mode 100644 index 0000000..fe3812a Binary files /dev/null and b/public/img/shortcuts/play-192x192.png differ diff --git a/src/router/index.ts b/src/router/index.ts index 043c87b..8ff5b62 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,14 +1,15 @@ import Vue from 'vue' import VueRouter, { RouteConfig } from 'vue-router' -import Home from '../views/Home.vue' +import Home from '@/views/Home.vue' Vue.use(VueRouter) -const routes: Array = [ +const routes: RouteConfig[] = [ { path: '/', name: 'Home', - component: Home + component: Home, + props: (route) => ({ play: route.query.play }) } ] diff --git a/src/views/Home.vue b/src/views/Home.vue index 99106b0..20896b2 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -47,7 +47,7 @@ @play="start" @pause="pause" /> -