diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-28 00:11:28 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-28 00:11:28 +0900 |
| commit | dbc421cb571f69a4c71691c00b094925006b95fe (patch) | |
| tree | 02a7e77b1545d120494a3b7f0487b45e1078f723 /src/web/app/dev/views/app.vue | |
| parent | v3917 (diff) | |
| download | misskey-dbc421cb571f69a4c71691c00b094925006b95fe.tar.gz misskey-dbc421cb571f69a4c71691c00b094925006b95fe.tar.bz2 misskey-dbc421cb571f69a4c71691c00b094925006b95fe.zip | |
:v:
Diffstat (limited to 'src/web/app/dev/views/app.vue')
| -rw-r--r-- | src/web/app/dev/views/app.vue | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/web/app/dev/views/app.vue b/src/web/app/dev/views/app.vue new file mode 100644 index 0000000000..9eddabbec2 --- /dev/null +++ b/src/web/app/dev/views/app.vue @@ -0,0 +1,43 @@ +<template> +<div> + <p v-if="fetching">読み込み中</p> + <main v-if="!fetching"> + <header> + <h1>{{ app.name }}</h1> + </header> + <div class="body"> + <p>App Secret</p> + <input :value="app.secret" readonly/> + </div> + </main> +</div> +</template> + +<script lang="ts"> +import Vue from 'vue'; +export default Vue.extend({ + data() { + return { + fetching: true, + app: null + }; + }, + watch: { + $route: 'fetch' + }, + mounted() { + this.fetch(); + }, + methods: { + fetch() { + this.fetching = true; + (this as any).api('app/show', { + app_id: this.$route.params.id + }).then(app => { + this.app = app; + this.fetching = false; + }); + } + } +}); +</script> |