]>
git.r.bdr.sh - rbdr/dasein/blob - app/dasein.js
2 import VueRouter
from 'vue-router';
4 import AuthService
from './services/auth';
6 import LoginComponent
from './components/login';
7 import WelcomeComponent
from './components/welcome';
8 import PostsComponent
from './components/posts';
14 export default internals
.Dasein
= {
20 internals
.authService
= new AuthService();
23 router: this._setupRouter(),
28 return internals
.authService
.authenticated
;
35 // Initializes vue options
49 component: WelcomeComponent
53 component: PostsComponent
56 path: '/login-callback',
57 component: LoginComponent
,
61 oAuthToken: route
.query
.oauth_token
,
62 oAuthVerifier: route
.query
.oauth_verifier
68 const router
= new VueRouter({
78 internals
.run = function () {
80 internals
.Dasein
.start();
83 window
.addEventListener('load', internals
.run
);