This commit is contained in:
syuilo 2018-02-28 00:11:28 +09:00
parent ea2ddf3a4d
commit dbc421cb57
15 changed files with 272 additions and 377 deletions

View file

@ -0,0 +1,25 @@
/**
* Authorize Form
*/
// Style
import './style.styl';
import init from '../init';
import Index from './views/index.vue';
/**
* init
*/
init(async (launch) => {
document.title = 'Misskey | アプリの連携';
// Launch the app
const [app] = launch();
// Routing
app.$router.addRoutes([
{ path: '/:token', component: Index },
]);
});

View file

@ -42,10 +42,14 @@ export default Vue.extend({
return {
state: null,
session: null,
fetching: true,
token: window.location.href.split('/').pop()
fetching: true
};
},
computed: {
token(): string {
return this.$route.params.token;
}
},
mounted() {
if (!this.$root.$data.os.isSignedIn) return;