reqct-gamehub-module 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/dist/index.mjs +1 -1
- package/dist/style.css +2581 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2481,6 +2481,7 @@ var PlatformerGame_default = PlatformerGame;
|
|
|
2481
2481
|
|
|
2482
2482
|
// src/components/GameHubNode/GameHubNode.js
|
|
2483
2483
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
2484
|
+
var import_meta = {};
|
|
2484
2485
|
var MENU_SIZE = { width: 560, height: 520 };
|
|
2485
2486
|
var GAME_NODE_SIZES = {
|
|
2486
2487
|
snake: { width: 700, height: 1e3 },
|
|
@@ -2490,7 +2491,7 @@ var GAME_NODE_SIZES = {
|
|
|
2490
2491
|
pong: { width: 760, height: 780 },
|
|
2491
2492
|
platformer: { width: 980, height: 750 }
|
|
2492
2493
|
};
|
|
2493
|
-
var STATS_API_BASE = process.env.REACT_APP_STATS_API_URL || "http://localhost:4000";
|
|
2494
|
+
var STATS_API_BASE = typeof import_meta !== "undefined" && import_meta.env && import_meta.env.VITE_STATS_API_URL || typeof process !== "undefined" && process.env && process.env.REACT_APP_STATS_API_URL || "http://localhost:4000";
|
|
2494
2495
|
function getAuthFromStorage() {
|
|
2495
2496
|
const token = localStorage.getItem("jwt") || localStorage.getItem("token") || localStorage.getItem("access_token") || localStorage.getItem("accessToken") || "";
|
|
2496
2497
|
let user = null;
|
package/dist/index.mjs
CHANGED
|
@@ -2455,7 +2455,7 @@ var GAME_NODE_SIZES = {
|
|
|
2455
2455
|
pong: { width: 760, height: 780 },
|
|
2456
2456
|
platformer: { width: 980, height: 750 }
|
|
2457
2457
|
};
|
|
2458
|
-
var STATS_API_BASE = process.env.REACT_APP_STATS_API_URL || "http://localhost:4000";
|
|
2458
|
+
var STATS_API_BASE = typeof import.meta !== "undefined" && import.meta.env && import.meta.env.VITE_STATS_API_URL || typeof process !== "undefined" && process.env && process.env.REACT_APP_STATS_API_URL || "http://localhost:4000";
|
|
2459
2459
|
function getAuthFromStorage() {
|
|
2460
2460
|
const token = localStorage.getItem("jwt") || localStorage.getItem("token") || localStorage.getItem("access_token") || localStorage.getItem("accessToken") || "";
|
|
2461
2461
|
let user = null;
|