}) {
+ return this.$store;
+ },
+ });
+ },
+};
diff --git a/client/src/util.ts b/client/src/util.ts
index 3304943cb..76f395b4b 100644
--- a/client/src/util.ts
+++ b/client/src/util.ts
@@ -1,10 +1,11 @@
import { SetSfx } from "@port-of-mars/shared/game/responses";
import { Sfx } from "@port-of-mars/shared/game/responses";
+import { SERVER_URL_HTTP } from "@port-of-mars/shared/settings";
import { Howl } from "howler";
export function url(path: string) {
// workaround to connect to localhost:2567 server endpoints
- return `${process.env.SERVER_URL_HTTP}${path}`;
+ return `${SERVER_URL_HTTP}${path}`;
}
export function getAssetUrl(path: string) {
diff --git a/client/src/views/FreePlayLobby.vue b/client/src/views/FreePlayLobby.vue
index eb00f2708..6957026f4 100644
--- a/client/src/views/FreePlayLobby.vue
+++ b/client/src/views/FreePlayLobby.vue
@@ -26,7 +26,6 @@ import { FreePlayLobbyRequestAPI } from "@port-of-mars/client/api/lobby/request"
import { AccountAPI } from "@port-of-mars/client/api/account/request";
import { FREE_PLAY_LOBBY_NAME } from "@port-of-mars/shared/lobby";
import { GAME_PAGE, CONSENT_PAGE, MANUAL_PAGE } from "@port-of-mars/shared/routes";
-import { Constants } from "@port-of-mars/shared/settings";
import Countdown from "@port-of-mars/client/components/global/Countdown.vue";
import HelpPanel from "@port-of-mars/client/components/lobby/HelpPanel.vue";
import Messages from "@port-of-mars/client/components/global/Messages.vue";
@@ -47,10 +46,6 @@ export default class FreePlayLobby extends Vue {
manual = { name: MANUAL_PAGE };
consent = { name: CONSENT_PAGE };
- get constants() {
- return Constants;
- }
-
async created() {
this.accountApi = new AccountAPI(this.$store, this.$ajax);
await this.checkCanPlay();
diff --git a/client/src/views/Home.vue b/client/src/views/Home.vue
index 996a7c482..a2697a80d 100644
--- a/client/src/views/Home.vue
+++ b/client/src/views/Home.vue
@@ -78,7 +78,7 @@
class="p-1"
type="iframe"
aspect="16by9"
- :src="constants.TUTORIAL_VIDEO_URL"
+ :src="$settings.TUTORIAL_VIDEO_URL"
allowfullscreen
>
@@ -88,7 +88,7 @@
class="p-1"
type="iframe"
aspect="16by9"
- :src="constants.TRAILER_VIDEO_URL"
+ :src="$settings.TRAILER_VIDEO_URL"
allowfullscreen
>
@@ -117,7 +117,7 @@
Community
Discuss the game, find a game to play, or connect with other players in our
- community Discord.
+ community Discord.
Keep track of your performance with your
@@ -155,7 +155,6 @@ import {
TOURNAMENT_DASHBOARD_PAGE,
MANUAL_PAGE,
} from "@port-of-mars/shared/routes";
-import { Constants } from "@port-of-mars/shared/settings";
import Footer from "@port-of-mars/client/components/global/Footer.vue";
import CharCarousel from "@port-of-mars/client/components/global/CharCarousel.vue";
import AgeTooltip from "@port-of-mars/client/components/global/AgeTooltip.vue";
@@ -185,10 +184,6 @@ export default class Home extends Vue {
solo = { name: SOLO_GAME_PAGE };
manual = { name: MANUAL_PAGE };
- get constants() {
- return Constants;
- }
-
get shouldShowTournamentBanner() {
return this.$tstore.state.isTournamentEnabled && this.$tstore.getters.tournamentStatus;
}
diff --git a/client/src/views/Privacy.vue b/client/src/views/Privacy.vue
index 186b5b6fb..824f5d25b 100644
--- a/client/src/views/Privacy.vue
+++ b/client/src/views/Privacy.vue
@@ -78,7 +78,7 @@
If you have any questions or concerns about our Privacy Policy or the collection, use, or
sharing of your personal information, please contact us at
- {{ constants.CONTACT_EMAIL }}{{ $settings.CONTACT_EMAIL }}.
@@ -88,7 +88,6 @@