summaryrefslogtreecommitdiff
path: root/src/web/app/common
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-09 00:11:16 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-09 00:11:16 +0900
commitbc1698e755cbfa33257360f5bdff781e8ecef517 (patch)
tree195b3b9654fcd13ccc708a508ccb55f2d2fee91a /src/web/app/common
parentRefactor: Clean up (diff)
downloadmisskey-bc1698e755cbfa33257360f5bdff781e8ecef517.tar.gz
misskey-bc1698e755cbfa33257360f5bdff781e8ecef517.tar.bz2
misskey-bc1698e755cbfa33257360f5bdff781e8ecef517.zip
nanka iroiro
Diffstat (limited to 'src/web/app/common')
-rw-r--r--src/web/app/common/tags/authorized-apps.tag34
-rw-r--r--src/web/app/common/tags/index.js1
2 files changed, 35 insertions, 0 deletions
diff --git a/src/web/app/common/tags/authorized-apps.tag b/src/web/app/common/tags/authorized-apps.tag
new file mode 100644
index 0000000000..aedfc78fd9
--- /dev/null
+++ b/src/web/app/common/tags/authorized-apps.tag
@@ -0,0 +1,34 @@
+<mk-authorized-apps>
+ <p class="none" if={ apps.length == 0 }>連携しているアプリケーションはありません。</p>
+ <div class="apps" if={ apps.length != 0 }>
+ <div each={ apps }>
+ <p><b>{ app.name }</b></p>
+ <p>{ app.description }</p>
+ </div>
+ </div>
+ <style type="stylus">
+ :scope
+ display block
+
+ > .apps
+ > div
+ padding 16px 0 0 0
+ border-bottom solid 1px #eee
+
+ </style>
+ <script>
+ @mixin \api
+
+ @apps = []
+ @fetching = true
+
+ @on \mount ~>
+ @api \i/authorized_apps
+ .then (apps) ~>
+ @apps = apps
+ @fetching = false
+ @update!
+ .catch (err) ~>
+ console.error err
+ </script>
+</mk-authorized-apps>
diff --git a/src/web/app/common/tags/index.js b/src/web/app/common/tags/index.js
index a27dc11987..ef61d51ba4 100644
--- a/src/web/app/common/tags/index.js
+++ b/src/web/app/common/tags/index.js
@@ -17,3 +17,4 @@ require('./copyright.tag');
require('./signin-history.tag');
require('./api-info.tag');
require('./twitter-setting.tag');
+require('./authorized-apps.tag');