✌️
This commit is contained in:
parent
ea2ddf3a4d
commit
dbc421cb57
15 changed files with 272 additions and 377 deletions
25
src/web/app/auth/script.ts
Normal file
25
src/web/app/auth/script.ts
Normal 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 },
|
||||
]);
|
||||
});
|
||||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue