summaryrefslogtreecommitdiff
path: root/src/web/app/dev/script.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-02-28 00:11:28 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-02-28 00:11:28 +0900
commitdbc421cb571f69a4c71691c00b094925006b95fe (patch)
tree02a7e77b1545d120494a3b7f0487b45e1078f723 /src/web/app/dev/script.ts
parentv3917 (diff)
downloadsharkey-dbc421cb571f69a4c71691c00b094925006b95fe.tar.gz
sharkey-dbc421cb571f69a4c71691c00b094925006b95fe.tar.bz2
sharkey-dbc421cb571f69a4c71691c00b094925006b95fe.zip
:v:
Diffstat (limited to 'src/web/app/dev/script.ts')
-rw-r--r--src/web/app/dev/script.ts18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/web/app/dev/script.ts b/src/web/app/dev/script.ts
index bb43411195..757bfca490 100644
--- a/src/web/app/dev/script.ts
+++ b/src/web/app/dev/script.ts
@@ -5,11 +5,25 @@
// Style
import './style.styl';
-require('./tags');
import init from '../init';
+import Index from './views/index.vue';
+import Apps from './views/apps.vue';
+import AppNew from './views/new-app.vue';
+import App from './views/app.vue';
+
/**
* init
*/
-init(() => {
+init(launch => {
+ // Launch the app
+ const [app] = launch();
+
+ // Routing
+ app.$router.addRoutes([
+ { path: '/', component: Index },
+ { path: '/app', component: Apps },
+ { path: '/app/new', component: AppNew },
+ { path: '/app/:id', component: App },
+ ]);
});