From 6b54f277c3218f3d605801c838f23f4f1ccea830 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 17 Jun 2018 08:10:54 +0900 Subject: [PATCH] reversi :white_flower: :100: --- locales/de.yml | 2 +- locales/en.yml | 4 +- locales/es.yml | 2 +- locales/fr.yml | 2 +- locales/it.yml | 2 +- locales/ja.yml | 2 +- locales/ko.yml | 2 +- locales/pl.yml | 2 +- locales/pt.yml | 2 +- locales/ru.yml | 2 +- locales/zh.yml | 2 +- .../common/scripts/compose-notification.ts | 2 +- .../{othello-game.ts => reversi-game.ts} | 4 +- .../streaming/{othello.ts => reversi.ts} | 8 +-- .../app/common/views/components/index.ts | 4 +- .../{othello.game.vue => reversi.game.vue} | 14 ++-- ...ello.gameroom.vue => reversi.gameroom.vue} | 8 +-- .../{othello.room.vue => reversi.room.vue} | 2 +- .../components/{othello.vue => reversi.vue} | 34 +++++----- src/client/app/desktop/script.ts | 10 +-- .../desktop/views/components/game-window.vue | 6 +- .../views/components/ui.header.nav.vue | 12 ++-- .../views/pages/{othello.vue => reversi.vue} | 6 +- src/client/app/mios.ts | 8 +-- src/client/app/mobile/script.ts | 6 +- .../app/mobile/views/components/ui.header.vue | 12 ++-- .../app/mobile/views/components/ui.nav.vue | 14 ++-- .../views/pages/{othello.vue => reversi.vue} | 10 +-- ...{othello-put-me.mp3 => reversi-put-me.mp3} | 0 ...thello-put-you.mp3 => reversi-put-you.mp3} | 0 src/config/types.ts | 2 +- .../{othello-game.ts => reversi-game.ts} | 12 ++-- ...thello-matching.ts => reversi-matching.ts} | 4 +- src/publishers/stream.ts | 12 ++-- src/{othello => reversi}/ai/back.ts | 14 ++-- src/{othello => reversi}/ai/front.ts | 34 +++++----- src/{othello => reversi}/ai/index.ts | 0 src/{othello => reversi}/core.ts | 4 +- src/{othello => reversi}/maps.ts | 2 +- src/server/api/endpoints.ts | 10 +-- .../endpoints/{othello => reversi}/games.ts | 4 +- .../{othello => reversi}/games/show.ts | 8 +-- .../{othello => reversi}/invitations.ts | 2 +- .../endpoints/{othello => reversi}/match.ts | 18 +++--- .../{othello => reversi}/match/cancel.ts | 2 +- .../{othello-game.ts => reversi-game.ts} | 64 +++++++++---------- .../api/stream/{othello.ts => reversi.ts} | 8 +-- src/server/api/streaming.ts | 10 +-- 48 files changed, 197 insertions(+), 197 deletions(-) rename src/client/app/common/scripts/streaming/{othello-game.ts => reversi-game.ts} (66%) rename src/client/app/common/scripts/streaming/{othello.ts => reversi.ts} (66%) rename src/client/app/common/views/components/{othello.game.vue => reversi.game.vue} (95%) rename src/client/app/common/views/components/{othello.gameroom.vue => reversi.gameroom.vue} (75%) rename src/client/app/common/views/components/{othello.room.vue => reversi.room.vue} (99%) rename src/client/app/common/views/components/{othello.vue => reversi.vue} (85%) rename src/client/app/desktop/views/pages/{othello.vue => reversi.vue} (80%) rename src/client/app/mobile/views/pages/{othello.vue => reversi.vue} (71%) rename src/client/assets/{othello-put-me.mp3 => reversi-put-me.mp3} (100%) rename src/client/assets/{othello-put-you.mp3 => reversi-put-you.mp3} (100%) rename src/models/{othello-game.ts => reversi-game.ts} (89%) rename src/models/{othello-matching.ts => reversi-matching.ts} (90%) rename src/{othello => reversi}/ai/back.ts (97%) rename src/{othello => reversi}/ai/front.ts (83%) rename src/{othello => reversi}/ai/index.ts (100%) rename src/{othello => reversi}/core.ts (99%) rename src/{othello => reversi}/maps.ts (99%) rename src/server/api/endpoints/{othello => reversi}/games.ts (92%) rename src/server/api/endpoints/{othello => reversi}/games/show.ts (75%) rename src/server/api/endpoints/{othello => reversi}/invitations.ts (94%) rename src/server/api/endpoints/{othello => reversi}/match.ts (77%) rename src/server/api/endpoints/{othello => reversi}/match/cancel.ts (68%) rename src/server/api/stream/{othello-game.ts => reversi-game.ts} (78%) rename src/server/api/stream/{othello.ts => reversi.ts} (77%) diff --git a/locales/de.yml b/locales/de.yml index 0a53d7465..dd6deed0f 100644 --- a/locales/de.yml +++ b/locales/de.yml @@ -333,7 +333,7 @@ desktop/views/components/friends-maker.vue: refresh: "Mehr" close: "Schließen" desktop/views/components/game-window.vue: - game: "Othello" + game: "Reversi" desktop/views/components/home.vue: done: "Verbunden" add-widget: "Widget hinzufügen:" diff --git a/locales/en.yml b/locales/en.yml index 9d2e2e76b..4a452dc12 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -333,7 +333,7 @@ desktop/views/components/friends-maker.vue: refresh: "More" close: "Close" desktop/views/components/game-window.vue: - game: "Othello" + game: "Reversi" desktop/views/components/home.vue: done: "Submit" add-widget: "Add widget:" @@ -549,7 +549,7 @@ desktop/views/components/ui.header.nav.vue: home: "Home" deck: "Deck" messaging: "Messages" - game: "Play Othello" + game: "Play Reversi" desktop/views/components/ui.header.notifications.vue: title: "Notifications" desktop/views/components/ui.header.post.vue: diff --git a/locales/es.yml b/locales/es.yml index 4d6b34865..add325829 100644 --- a/locales/es.yml +++ b/locales/es.yml @@ -333,7 +333,7 @@ desktop/views/components/friends-maker.vue: refresh: "もっと見る" close: "閉じる" desktop/views/components/game-window.vue: - game: "オセロ" + game: "リバーシ" desktop/views/components/home.vue: done: "完了" add-widget: "ウィジェットを追加:" diff --git a/locales/fr.yml b/locales/fr.yml index e618a876c..0af534bc6 100644 --- a/locales/fr.yml +++ b/locales/fr.yml @@ -333,7 +333,7 @@ desktop/views/components/friends-maker.vue: refresh: "Plus" close: "Fermer" desktop/views/components/game-window.vue: - game: "Othello" + game: "Reversi" desktop/views/components/home.vue: done: "Envoyer" add-widget: "Ajouter un widget" diff --git a/locales/it.yml b/locales/it.yml index 4d6b34865..add325829 100644 --- a/locales/it.yml +++ b/locales/it.yml @@ -333,7 +333,7 @@ desktop/views/components/friends-maker.vue: refresh: "もっと見る" close: "閉じる" desktop/views/components/game-window.vue: - game: "オセロ" + game: "リバーシ" desktop/views/components/home.vue: done: "完了" add-widget: "ウィジェットを追加:" diff --git a/locales/ja.yml b/locales/ja.yml index 86b16adaa..29decefe6 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -384,7 +384,7 @@ desktop/views/components/friends-maker.vue: close: "閉じる" desktop/views/components/game-window.vue: - game: "オセロ" + game: "リバーシ" desktop/views/components/home.vue: done: "完了" diff --git a/locales/ko.yml b/locales/ko.yml index 4d6b34865..add325829 100644 --- a/locales/ko.yml +++ b/locales/ko.yml @@ -333,7 +333,7 @@ desktop/views/components/friends-maker.vue: refresh: "もっと見る" close: "閉じる" desktop/views/components/game-window.vue: - game: "オセロ" + game: "リバーシ" desktop/views/components/home.vue: done: "完了" add-widget: "ウィジェットを追加:" diff --git a/locales/pl.yml b/locales/pl.yml index 7c0d41e69..8febac051 100644 --- a/locales/pl.yml +++ b/locales/pl.yml @@ -333,7 +333,7 @@ desktop/views/components/friends-maker.vue: refresh: "Więcej" close: "Zamknij" desktop/views/components/game-window.vue: - game: "Othello" + game: "Reversi" desktop/views/components/home.vue: done: "Wyślij" add-widget: "Dodaj widżet:" diff --git a/locales/pt.yml b/locales/pt.yml index 141209396..a195c4d9b 100644 --- a/locales/pt.yml +++ b/locales/pt.yml @@ -333,7 +333,7 @@ desktop/views/components/friends-maker.vue: refresh: "もっと見る" close: "閉じる" desktop/views/components/game-window.vue: - game: "オセロ" + game: "リバーシ" desktop/views/components/home.vue: done: "完了" add-widget: "ウィジェットを追加:" diff --git a/locales/ru.yml b/locales/ru.yml index 57d9f905d..05992e931 100644 --- a/locales/ru.yml +++ b/locales/ru.yml @@ -333,7 +333,7 @@ desktop/views/components/friends-maker.vue: refresh: "もっと見る" close: "閉じる" desktop/views/components/game-window.vue: - game: "オセロ" + game: "リバーシ" desktop/views/components/home.vue: done: "完了" add-widget: "ウィジェットを追加:" diff --git a/locales/zh.yml b/locales/zh.yml index 655d7e9fe..cec6ff64a 100644 --- a/locales/zh.yml +++ b/locales/zh.yml @@ -333,7 +333,7 @@ desktop/views/components/friends-maker.vue: refresh: "もっと見る" close: "閉じる" desktop/views/components/game-window.vue: - game: "オセロ" + game: "リバーシ" desktop/views/components/home.vue: done: "完了" add-widget: "ウィジェットを追加:" diff --git a/src/client/app/common/scripts/compose-notification.ts b/src/client/app/common/scripts/compose-notification.ts index c19b1c5ad..cc28f7599 100644 --- a/src/client/app/common/scripts/compose-notification.ts +++ b/src/client/app/common/scripts/compose-notification.ts @@ -55,7 +55,7 @@ export default function(type, data): Notification { icon: data.user.avatarUrl + '?thumbnail&size=64' }; - case 'othello_invited': + case 'reversi_invited': return { title: '対局への招待があります', body: `${getUserName(data.parent)}さんから`, diff --git a/src/client/app/common/scripts/streaming/othello-game.ts b/src/client/app/common/scripts/streaming/reversi-game.ts similarity index 66% rename from src/client/app/common/scripts/streaming/othello-game.ts rename to src/client/app/common/scripts/streaming/reversi-game.ts index 9e36f647b..5638b3013 100644 --- a/src/client/app/common/scripts/streaming/othello-game.ts +++ b/src/client/app/common/scripts/streaming/reversi-game.ts @@ -1,9 +1,9 @@ import Stream from './stream'; import MiOS from '../../../mios'; -export class OthelloGameStream extends Stream { +export class ReversiGameStream extends Stream { constructor(os: MiOS, me, game) { - super(os, 'othello-game', { + super(os, 'reversi-game', { i: me ? me.token : null, game: game.id }); diff --git a/src/client/app/common/scripts/streaming/othello.ts b/src/client/app/common/scripts/streaming/reversi.ts similarity index 66% rename from src/client/app/common/scripts/streaming/othello.ts rename to src/client/app/common/scripts/streaming/reversi.ts index 8f4f217e3..2e4395f0f 100644 --- a/src/client/app/common/scripts/streaming/othello.ts +++ b/src/client/app/common/scripts/streaming/reversi.ts @@ -2,15 +2,15 @@ import StreamManager from './stream-manager'; import Stream from './stream'; import MiOS from '../../../mios'; -export class OthelloStream extends Stream { +export class ReversiStream extends Stream { constructor(os: MiOS, me) { - super(os, 'othello', { + super(os, 'reversi', { i: me.token }); } } -export class OthelloStreamManager extends StreamManager { +export class ReversiStreamManager extends StreamManager { private me; private os: MiOS; @@ -23,7 +23,7 @@ export class OthelloStreamManager extends StreamManager { public getConnection() { if (this.connection == null) { - this.connection = new OthelloStream(this.os, this.me); + this.connection = new ReversiStream(this.os, this.me); } return this.connection; diff --git a/src/client/app/common/views/components/index.ts b/src/client/app/common/views/components/index.ts index b91008f71..5b2fa084f 100644 --- a/src/client/app/common/views/components/index.ts +++ b/src/client/app/common/views/components/index.ts @@ -27,7 +27,7 @@ import urlPreview from './url-preview.vue'; import twitterSetting from './twitter-setting.vue'; import fileTypeIcon from './file-type-icon.vue'; import Switch from './switch.vue'; -import Othello from './othello.vue'; +import Reversi from './reversi.vue'; import welcomeTimeline from './welcome-timeline.vue'; import uiInput from './ui/input.vue'; import uiButton from './ui/button.vue'; @@ -65,7 +65,7 @@ Vue.component('mk-url-preview', urlPreview); Vue.component('mk-twitter-setting', twitterSetting); Vue.component('mk-file-type-icon', fileTypeIcon); Vue.component('mk-switch', Switch); -Vue.component('mk-othello', Othello); +Vue.component('mk-reversi', Reversi); Vue.component('mk-welcome-timeline', welcomeTimeline); Vue.component('ui-input', uiInput); Vue.component('ui-button', uiButton); diff --git a/src/client/app/common/views/components/othello.game.vue b/src/client/app/common/views/components/reversi.game.vue similarity index 95% rename from src/client/app/common/views/components/othello.game.vue rename to src/client/app/common/views/components/reversi.game.vue index 4c63bd18b..dc79c95bb 100644 --- a/src/client/app/common/views/components/othello.game.vue +++ b/src/client/app/common/views/components/reversi.game.vue @@ -43,7 +43,7 @@