From 41cf856e263f48570555513f7d3ec78370b1f6a2 Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Sat, 18 Aug 2018 04:13:25 +0900 Subject: [PATCH] Fix #2301 --- src/client/app/common/scripts/{get-kao.ts => get-face.ts} | 4 ++-- src/client/app/desktop/views/components/post-form.vue | 4 ++-- src/client/app/mobile/views/components/post-form.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename src/client/app/common/scripts/{get-kao.ts => get-face.ts} (62%) diff --git a/src/client/app/common/scripts/get-kao.ts b/src/client/app/common/scripts/get-face.ts similarity index 62% rename from src/client/app/common/scripts/get-kao.ts rename to src/client/app/common/scripts/get-face.ts index 2c9280c9b6..79cf7a1be4 100644 --- a/src/client/app/common/scripts/get-kao.ts +++ b/src/client/app/common/scripts/get-face.ts @@ -1,4 +1,4 @@ -const kaos = [ +const faces = [ '(=^・・^=)', 'v(\'ω\')v', '🐡( \'-\' 🐡 )フグパンチ!!!!', @@ -7,4 +7,4 @@ const kaos = [ '(Δ・x・Δ)' ]; -export default () => kaos[Math.floor(Math.random() * kaos.length)]; +export default () => faces[Math.floor(Math.random() * faces.length)]; diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index d5d160bd8f..bacaea65ee 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -58,7 +58,7 @@ import Vue from 'vue'; import insertTextAtCursor from 'insert-text-at-cursor'; import * as XDraggable from 'vuedraggable'; -import getKao from '../../../common/scripts/get-kao'; +import getFace from '../../../common/scripts/get-face'; import MkVisibilityChooser from '../../../common/views/components/visibility-chooser.vue'; import parse from '../../../../../mfm/parse'; import { host } from '../../../config'; @@ -421,7 +421,7 @@ export default Vue.extend({ }, kao() { - this.text += getKao(); + this.text += getFace(); } } }); diff --git a/src/client/app/mobile/views/components/post-form.vue b/src/client/app/mobile/views/components/post-form.vue index 466ca393d5..a74df67c0a 100644 --- a/src/client/app/mobile/views/components/post-form.vue +++ b/src/client/app/mobile/views/components/post-form.vue @@ -56,7 +56,7 @@ import Vue from 'vue'; import insertTextAtCursor from 'insert-text-at-cursor'; import * as XDraggable from 'vuedraggable'; import MkVisibilityChooser from '../../../common/views/components/visibility-chooser.vue'; -import getKao from '../../../common/scripts/get-kao'; +import getFace from '../../../common/scripts/get-face'; import parse from '../../../../../mfm/parse'; import { host } from '../../../config'; @@ -313,7 +313,7 @@ export default Vue.extend({ }, kao() { - this.text += getKao(); + this.text += getFace(); } } });