]>
git.r.bdr.sh - rbdr/dasein/blob - app/dasein.js
6b3fd951e8143df8eebb6df20b024dd0d55e09ae
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(),
26 login: LoginComponent
,
27 welcome: WelcomeComponent
35 return internals
.authService
.authenticated
;
42 // Initializes vue options
56 component: WelcomeComponent
60 component: PostsComponent
63 path: '/login-callback',
64 component: LoginComponent
,
68 oAuthToken: route
.query
.oauth_token
,
69 oAuthVerifier: route
.query
.oauth_verifier
75 const router
= new VueRouter({
85 internals
.run = function () {
87 internals
.Dasein
.start();
90 window
.addEventListener('load', internals
.run
);