summaryrefslogtreecommitdiff
path: root/src/client/app/dev/views/app.vue
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-29 20:32:18 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-29 20:32:18 +0900
commitcf33e483f7e6f40e8cbbbc0118a7df70bdaf651f (patch)
tree318279530d3392ee40d91968477fc0e78d5cf0f7 /src/client/app/dev/views/app.vue
parentUpdate .travis.yml (diff)
downloadmisskey-cf33e483f7e6f40e8cbbbc0118a7df70bdaf651f.tar.gz
misskey-cf33e483f7e6f40e8cbbbc0118a7df70bdaf651f.tar.bz2
misskey-cf33e483f7e6f40e8cbbbc0118a7df70bdaf651f.zip
整理した
Diffstat (limited to 'src/client/app/dev/views/app.vue')
-rw-r--r--src/client/app/dev/views/app.vue39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/client/app/dev/views/app.vue b/src/client/app/dev/views/app.vue
new file mode 100644
index 0000000000..a35b032b73
--- /dev/null
+++ b/src/client/app/dev/views/app.vue
@@ -0,0 +1,39 @@
+<template>
+<mk-ui>
+ <p v-if="fetching">読み込み中</p>
+ <b-card v-if="!fetching" :header="app.name">
+ <b-form-group label="App Secret">
+ <b-input :value="app.secret" readonly/>
+ </b-form-group>
+ </b-card>
+</mk-ui>
+</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', {
+ appId: this.$route.params.id
+ }).then(app => {
+ this.app = app;
+ this.fetching = false;
+ });
+ }
+ }
+});
+</script>