diff --git a/package.json b/package.json index 3a6d1c81de..7b4c80d586 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "misskey", "author": "syuilo ", - "version": "12.0.0-alpha.10", + "version": "12.0.0-alpha.11", "codename": "indigo", "repository": { "type": "git", diff --git a/src/client/components/page/page.vue b/src/client/components/page/page.vue index bd78313475..9ec5da81ed 100644 --- a/src/client/components/page/page.vue +++ b/src/client/components/page/page.vue @@ -1,27 +1,6 @@ @@ -77,16 +56,6 @@ export default Vue.extend({ type: Object, required: true }, - showTitle: { - type: Boolean, - required: false, - default: true - }, - showFooter: { - type: Boolean, - required: false, - default: false - }, }, data() { @@ -113,35 +82,6 @@ export default Vue.extend({ getPageVars() { return collectPageVars(this.page.content); }, - - like() { - this.$root.api('pages/like', { - pageId: this.page.id, - }).then(() => { - this.page.isLiked = true; - this.page.likedCount++; - }); - }, - - unlike() { - this.$root.api('pages/unlike', { - pageId: this.page.id, - }).then(() => { - this.page.isLiked = false; - this.page.likedCount--; - }); - }, - - pin(pin) { - this.$root.api('i/update', { - pinnedPageId: pin ? this.page.id : null, - }).then(() => { - this.$root.dialog({ - type: 'success', - splash: true - }); - }); - } } }); diff --git a/src/client/pages/page.vue b/src/client/pages/page.vue index 72c5101731..f5ed556146 100644 --- a/src/client/pages/page.vue +++ b/src/client/pages/page.vue @@ -3,7 +3,26 @@ {{ page.title || page.name }} - +
+
{{ page.title }}
+
+ +
+ +
@@ -58,6 +77,35 @@ export default Vue.extend({ this.page = page; }); }, + + like() { + this.$root.api('pages/like', { + pageId: this.page.id, + }).then(() => { + this.page.isLiked = true; + this.page.likedCount++; + }); + }, + + unlike() { + this.$root.api('pages/unlike', { + pageId: this.page.id, + }).then(() => { + this.page.isLiked = false; + this.page.likedCount--; + }); + }, + + pin(pin) { + this.$root.api('i/update', { + pinnedPageId: pin ? this.page.id : null, + }).then(() => { + this.$root.dialog({ + type: 'success', + splash: true + }); + }); + } } });