summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-10-30 17:30:32 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-10-30 17:30:32 +0900
commit77528f022d2e9f76298331b55303cfc42359c7af (patch)
tree043b951c7ab28de28f2f4407b9eab6a0cd834019 /src/web
parenti18n (diff)
downloadmisskey-77528f022d2e9f76298331b55303cfc42359c7af.tar.gz
misskey-77528f022d2e9f76298331b55303cfc42359c7af.tar.bz2
misskey-77528f022d2e9f76298331b55303cfc42359c7af.zip
wip
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app/desktop/tags/index.js1
-rw-r--r--src/web/app/desktop/tags/pages/bbs.tag30
-rw-r--r--src/web/app/desktop/tags/ui.tag32
3 files changed, 51 insertions, 12 deletions
diff --git a/src/web/app/desktop/tags/index.js b/src/web/app/desktop/tags/index.js
index 4e286013a1..fa7161ddfa 100644
--- a/src/web/app/desktop/tags/index.js
+++ b/src/web/app/desktop/tags/index.js
@@ -61,6 +61,7 @@ require('./pages/user.tag');
require('./pages/post.tag');
require('./pages/search.tag');
require('./pages/not-found.tag');
+require('./pages/bbs.tag');
require('./autocomplete-suggestion.tag');
require('./progress-dialog.tag');
require('./user-preview.tag');
diff --git a/src/web/app/desktop/tags/pages/bbs.tag b/src/web/app/desktop/tags/pages/bbs.tag
new file mode 100644
index 0000000000..cb58af1934
--- /dev/null
+++ b/src/web/app/desktop/tags/pages/bbs.tag
@@ -0,0 +1,30 @@
+<mk-bbs-page>
+ <mk-ui ref="ui">
+ <main>
+ <h1>%i18n:desktop.tags.mk-bbs-page.title%</h1>
+ <button onclick={ parent.new }>%i18n:desktop.tags.mk-bbs-page.new%</button>
+ </main>
+ </mk-ui>
+ <style>
+ :scope
+ display block
+
+ </style>
+ <script>
+ this.mixin('api');
+
+ this.on('mount', () => {
+ document.title = '%i18n:desktop.tags.mk-bbs-page.title%';
+ });
+
+ this.new = () => {
+ const title = window.prompt('%i18n:desktop.tags.mk-bbs-page.thread-title%');
+
+ this.api('bbs/threads/create', {
+ title: title
+ }).then(thread => {
+ location.href = '/bbs/' + thread.id;
+ });
+ };
+ </script>
+</mk-bbs-page>
diff --git a/src/web/app/desktop/tags/ui.tag b/src/web/app/desktop/tags/ui.tag
index e0d7393b08..452a72c00a 100644
--- a/src/web/app/desktop/tags/ui.tag
+++ b/src/web/app/desktop/tags/ui.tag
@@ -319,18 +319,26 @@
</mk-ui-header-notifications>
<mk-ui-header-nav>
- <ul if={ SIGNIN }>
- <li class="home { active: page == 'home' }">
- <a href={ CONFIG.url }>
- <i class="fa fa-home"></i>
- <p>%i18n:desktop.tags.mk-ui-header-nav.home%</p>
- </a>
- </li>
- <li class="messaging">
- <a onclick={ messaging }>
- <i class="fa fa-comments"></i>
- <p>%i18n:desktop.tags.mk-ui-header-nav.messaging%</p>
- <i class="fa fa-circle" if={ hasUnreadMessagingMessages }></i>
+ <ul>
+ <virtual if={ SIGNIN }>
+ <li class="home { active: page == 'home' }">
+ <a href={ CONFIG.url }>
+ <i class="fa fa-home"></i>
+ <p>%i18n:desktop.tags.mk-ui-header-nav.home%</p>
+ </a>
+ </li>
+ <li class="messaging">
+ <a onclick={ messaging }>
+ <i class="fa fa-comments"></i>
+ <p>%i18n:desktop.tags.mk-ui-header-nav.messaging%</p>
+ <i class="fa fa-circle" if={ hasUnreadMessagingMessages }></i>
+ </a>
+ </li>
+ </virtual>
+ <li class="bbs">
+ <a href={ CONFIG.url + '/bbs' }>
+ <i class="fa fa-coffee"></i>
+ <p>%i18n:desktop.tags.mk-ui-header-nav.bbs%</p>
</a>
</li>
<li class="info">