@articles-media/articles-dev-box 1.4.1 → 1.4.2
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/InfoModal.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Modal } from "react-bootstrap";
|
|
|
5
5
|
//#region src/components/Games/InfoModal.jsx
|
|
6
6
|
function InfoModal({ show, setShow, useStore, packageInfo, infoModalConfig }) {
|
|
7
7
|
const [showModal, setShowModal] = useState(true);
|
|
8
|
-
|
|
8
|
+
useStore((state) => state.darkMode);
|
|
9
9
|
useRef([]);
|
|
10
10
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Modal, {
|
|
11
11
|
className: "articles-modal games-info-modal",
|
|
@@ -24,21 +24,32 @@ function InfoModal({ show, setShow, useStore, packageInfo, infoModalConfig }) {
|
|
|
24
24
|
closeButton: true,
|
|
25
25
|
children: /* @__PURE__ */ jsxs(Modal.Title, { children: [process.env.NEXT_PUBLIC_GAME_NAME, " Info"] })
|
|
26
26
|
}),
|
|
27
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ jsx(Modal.Body, {
|
|
28
28
|
className: "flex-column p-0",
|
|
29
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
29
|
+
children: infoModalConfig?.contentOverride ? /* @__PURE__ */ jsx(Fragment, { children: infoModalConfig?.contentOverride }) : /* @__PURE__ */ jsxs(Fragment, { children: [!infoModalConfig?.hidePreviewImage && /* @__PURE__ */ jsx("div", {
|
|
30
30
|
className: "ratio ratio-16x9",
|
|
31
|
-
children:
|
|
31
|
+
children: /* @__PURE__ */ jsx("img", {
|
|
32
|
+
src: infoModalConfig?.previewImage,
|
|
33
|
+
alt: "Game Preview",
|
|
34
|
+
style: { objectFit: infoModalConfig?.previewImageObjectFit || "cover" }
|
|
35
|
+
})
|
|
32
36
|
}), /* @__PURE__ */ jsxs("div", {
|
|
33
37
|
className: "p-3",
|
|
34
|
-
children: [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
children: [
|
|
39
|
+
infoModalConfig?.prependContent && /* @__PURE__ */ jsx("div", {
|
|
40
|
+
className: "mt-2",
|
|
41
|
+
children: infoModalConfig.prependContent
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ jsx("div", {
|
|
44
|
+
className: "",
|
|
45
|
+
children: packageInfo?.description
|
|
46
|
+
}),
|
|
47
|
+
infoModalConfig?.appendContent && /* @__PURE__ */ jsx("div", {
|
|
48
|
+
className: "mt-2",
|
|
49
|
+
children: infoModalConfig.appendContent
|
|
50
|
+
})
|
|
51
|
+
]
|
|
52
|
+
})] })
|
|
42
53
|
}),
|
|
43
54
|
/* @__PURE__ */ jsxs(Modal.Footer, {
|
|
44
55
|
className: "justify-content-between",
|
|
@@ -119,16 +119,13 @@ function PageTemplateLandingPage({ useStore, useSocketStore, RotatingMascot, Lin
|
|
|
119
119
|
game: process.env.NEXT_PUBLIC_GAME_NAME,
|
|
120
120
|
style: "Default",
|
|
121
121
|
darkMode: darkMode ? true : false,
|
|
122
|
-
prepend: RotatingMascot && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
children: /* @__PURE__ */ jsx(RotatingMascot, {})
|
|
131
|
-
}) }),
|
|
122
|
+
prepend: typeof RotatingMascot === "function" && RotatingMascot ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { style: {
|
|
123
|
+
width: "100%",
|
|
124
|
+
height: "200px",
|
|
125
|
+
display: "flex",
|
|
126
|
+
justifyContent: "center",
|
|
127
|
+
alignItems: "center"
|
|
128
|
+
} }) }) : /* @__PURE__ */ jsx(Fragment, { children: RotatingMascot }),
|
|
132
129
|
...gameScoreboardConfig
|
|
133
130
|
}),
|
|
134
131
|
!disableAd && /* @__PURE__ */ jsx(Ad, {
|
|
@@ -246,7 +246,7 @@ function OtherTab({ useStore, config }) {
|
|
|
246
246
|
var package_default = {
|
|
247
247
|
name: "@articles-media/articles-dev-box",
|
|
248
248
|
description: "Shared code, functions, and components for different Articles Media projects.",
|
|
249
|
-
version: "1.4.
|
|
249
|
+
version: "1.4.2",
|
|
250
250
|
type: "module",
|
|
251
251
|
sideEffects: false,
|
|
252
252
|
imports: { "#root/src/*": "./src/*" },
|
package/dist/SettingsModal.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SettingsModal } from "./SettingsModal-
|
|
1
|
+
import { t as SettingsModal } from "./SettingsModal-CE0b-t05.js";
|
|
2
2
|
export { SettingsModal as default };
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import { t as GameScoreboard } from "./GameScoreboard-BvE_sIDW.js";
|
|
|
16
16
|
import PageTemplateLandingPage from "./PageTemplateLandingPage.js";
|
|
17
17
|
import GlobalHead from "./GlobalHead.js";
|
|
18
18
|
import GlobalBody_default from "./GlobalBody.js";
|
|
19
|
-
import { t as SettingsModal } from "./SettingsModal-
|
|
19
|
+
import { t as SettingsModal } from "./SettingsModal-CE0b-t05.js";
|
|
20
20
|
import CreditsModal from "./CreditsModal.js";
|
|
21
21
|
import InfoModal from "./InfoModal.js";
|
|
22
22
|
import DarkModeHandler from "./DarkModeHandler.js";
|
package/package.json
CHANGED