summaryrefslogtreecommitdiff
path: root/src/client/app
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-07-07 19:01:33 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-07-07 19:01:33 +0900
commit865fd25af1cb2d9d1fd9752795f36482226d36a7 (patch)
tree75045ec1b717ef4a5708aff1c85443427a1a7376 /src/client/app
parent:v: (diff)
downloadmisskey-865fd25af1cb2d9d1fd9752795f36482226d36a7.tar.gz
misskey-865fd25af1cb2d9d1fd9752795f36482226d36a7.tar.bz2
misskey-865fd25af1cb2d9d1fd9752795f36482226d36a7.zip
Refactorijg
Diffstat (limited to 'src/client/app')
-rw-r--r--src/client/app/common/views/components/reversi.game.vue2
-rw-r--r--src/client/app/common/views/components/reversi.room.vue2
-rw-r--r--src/client/app/common/views/components/reversi.vue14
-rw-r--r--src/client/app/desktop/views/pages/reversi.vue2
-rw-r--r--src/client/app/mobile/views/pages/reversi.vue2
5 files changed, 11 insertions, 11 deletions
diff --git a/src/client/app/common/views/components/reversi.game.vue b/src/client/app/common/views/components/reversi.game.vue
index a2a6fd0dc1..c4dd42dc63 100644
--- a/src/client/app/common/views/components/reversi.game.vue
+++ b/src/client/app/common/views/components/reversi.game.vue
@@ -58,7 +58,7 @@
<script lang="ts">
import Vue from 'vue';
import * as CRC32 from 'crc-32';
-import Reversi, { Color } from '../../../../../reversi/core';
+import Reversi, { Color } from '../../../../../games/reversi/core';
import { url } from '../../../config';
export default Vue.extend({
diff --git a/src/client/app/common/views/components/reversi.room.vue b/src/client/app/common/views/components/reversi.room.vue
index 5074845758..7bbeca96d6 100644
--- a/src/client/app/common/views/components/reversi.room.vue
+++ b/src/client/app/common/views/components/reversi.room.vue
@@ -94,7 +94,7 @@
<script lang="ts">
import Vue from 'vue';
-import * as maps from '../../../../../reversi/maps';
+import * as maps from '../../../../../games/reversi/maps';
export default Vue.extend({
props: ['game', 'connection'],
diff --git a/src/client/app/common/views/components/reversi.vue b/src/client/app/common/views/components/reversi.vue
index 61705163ac..6e64710823 100644
--- a/src/client/app/common/views/components/reversi.vue
+++ b/src/client/app/common/views/components/reversi.vue
@@ -99,18 +99,18 @@ export default Vue.extend({
this.connection.on('matched', this.onMatched);
this.connection.on('invited', this.onInvited);
- (this as any).api('reversi/games', {
+ (this as any).api('games/reversi/games', {
my: true
}).then(games => {
this.myGames = games;
});
- (this as any).api('reversi/games').then(games => {
+ (this as any).api('games/reversi/games').then(games => {
this.games = games;
this.gamesFetching = false;
});
- (this as any).api('reversi/invitations').then(invitations => {
+ (this as any).api('games/reversi/invitations').then(invitations => {
this.invitations = this.invitations.concat(invitations);
});
@@ -132,7 +132,7 @@ export default Vue.extend({
},
methods: {
go(game) {
- (this as any).api('reversi/games/show', {
+ (this as any).api('games/reversi/games/show', {
gameId: game.id
}).then(game => {
this.matching = null;
@@ -146,7 +146,7 @@ export default Vue.extend({
(this as any).api('users/show', {
username
}).then(user => {
- (this as any).api('reversi/match', {
+ (this as any).api('games/reversi/match', {
userId: user.id
}).then(res => {
if (res == null) {
@@ -160,10 +160,10 @@ export default Vue.extend({
},
cancel() {
this.matching = null;
- (this as any).api('reversi/match/cancel');
+ (this as any).api('games/reversi/match/cancel');
},
accept(invitation) {
- (this as any).api('reversi/match', {
+ (this as any).api('games/reversi/match', {
userId: invitation.parent.id
}).then(game => {
if (game) {
diff --git a/src/client/app/desktop/views/pages/reversi.vue b/src/client/app/desktop/views/pages/reversi.vue
index 098fc41f1c..b484b81b5d 100644
--- a/src/client/app/desktop/views/pages/reversi.vue
+++ b/src/client/app/desktop/views/pages/reversi.vue
@@ -33,7 +33,7 @@ export default Vue.extend({
Progress.start();
this.fetching = true;
- (this as any).api('reversi/games/show', {
+ (this as any).api('games/reversi/games/show', {
gameId: this.$route.params.game
}).then(game => {
this.game = game;
diff --git a/src/client/app/mobile/views/pages/reversi.vue b/src/client/app/mobile/views/pages/reversi.vue
index e2f0db6d87..0cff1317aa 100644
--- a/src/client/app/mobile/views/pages/reversi.vue
+++ b/src/client/app/mobile/views/pages/reversi.vue
@@ -33,7 +33,7 @@ export default Vue.extend({
Progress.start();
this.fetching = true;
- (this as any).api('reversi/games/show', {
+ (this as any).api('games/reversi/games/show', {
gameId: this.$route.params.game
}).then(game => {
this.game = game;