summaryrefslogtreecommitdiff
path: root/frontend/src/api
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2017-07-25 00:08:26 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2017-07-25 00:08:26 +0200
commitcf67eff86ef9a027c3247463d13b340644a0bb8c (patch)
tree5f4faa42ccb8308bbefe6fe55eea74294be053a8 /frontend/src/api
parentImprove sevenWondersApi and types (diff)
downloadseven-wonders-cf67eff86ef9a027c3247463d13b340644a0bb8c.tar.gz
seven-wonders-cf67eff86ef9a027c3247463d13b340644a0bb8c.tar.bz2
seven-wonders-cf67eff86ef9a027c3247463d13b340644a0bb8c.zip
Organize imports and format JS files
Diffstat (limited to 'frontend/src/api')
-rw-r--r--frontend/src/api/sevenWondersApi.js6
-rw-r--r--frontend/src/api/websocket.js2
2 files changed, 5 insertions, 3 deletions
diff --git a/frontend/src/api/sevenWondersApi.js b/frontend/src/api/sevenWondersApi.js
index 9a68ec66..058408eb 100644
--- a/frontend/src/api/sevenWondersApi.js
+++ b/frontend/src/api/sevenWondersApi.js
@@ -1,7 +1,9 @@
// @flow
+import type {
+ ApiError, ApiLobby, ApiPlayer, ApiPlayerMove, ApiPlayerTurnInfo, ApiPreparedCard, ApiTable,
+} from './model';
+import type { JsonStompClient, SubscribeFn } from './websocket';
import { createJsonStompClient } from './websocket';
-import type { JsonStompClient, SubscribeFn } from './websocket'
-import type { ApiError, ApiLobby, ApiPlayer, ApiPlayerMove, ApiPlayerTurnInfo, ApiPreparedCard, ApiTable } from './model';
const wsURL = '/seven-wonders-websocket';
diff --git a/frontend/src/api/websocket.js b/frontend/src/api/websocket.js
index 8a893a87..0cf0689a 100644
--- a/frontend/src/api/websocket.js
+++ b/frontend/src/api/websocket.js
@@ -1,7 +1,7 @@
// @flow
import SockJS from 'sockjs-client';
-import Stomp from 'webstomp-client';
import type { Client, Frame, Options, Subscription } from 'webstomp-client';
+import Stomp from 'webstomp-client';
const DEFAULT_DEBUG_OPTIONS = {
debug: process.env.NODE_ENV !== 'production',
bgstack15