RENAME: bbs -> channel

This commit is contained in:
syuilo
2017-10-31 21:42:11 +09:00
parent 0e95cdb04c
commit dc9fddf839
8 changed files with 65 additions and 67 deletions

View File

@@ -61,7 +61,7 @@ require('./pages/user.tag');
require('./pages/post.tag');
require('./pages/search.tag');
require('./pages/not-found.tag');
require('./pages/bbs.tag');
require('./pages/channels.tag');
require('./autocomplete-suggestion.tag');
require('./progress-dialog.tag');
require('./user-preview.tag');

View File

@@ -1,4 +1,4 @@
<mk-bbs-page>
<mk-channels-page>
<mk-ui ref="ui">
<main>
<h1>%i18n:desktop.tags.mk-bbs-page.title%</h1>
@@ -18,13 +18,13 @@
});
this.new = () => {
const title = window.prompt('%i18n:desktop.tags.mk-bbs-page.thread-title%');
const title = window.prompt('%i18n:desktop.tags.mk-bbs-page.channel-title%');
this.api('bbs/threads/create', {
this.api('bbs/channels/create', {
title: title
}).then(thread => {
location.href = '/bbs/' + thread.id;
}).then(channel => {
location.href = '/bbs/' + channel.id;
});
};
</script>
</mk-bbs-page>
</mk-channels-page>