@articles-media/articles-dev-box 1.0.23 → 1.0.24
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/Ad-BAvmOFcq.js +503 -0
- package/dist/Ad.js +1 -1
- package/dist/AdConfirmExitModal-BNFKKayL.js +55 -0
- package/dist/AdDetailsModal-Cv1ll9G-.js +107 -0
- package/dist/ArticlesAd.js +7 -8
- package/dist/{Button-BlAdEbSd.js → Button-CU11ETla.js} +9 -9
- package/dist/CreditsModal.js +23 -24
- package/dist/DarkModeHandler.js +11 -12
- package/dist/FriendsList.js +40 -41
- package/dist/{GameScoreboard-CBY3JsFa.js → GameScoreboard-Dj5mTFTn.js} +48 -49
- package/dist/GameScoreboard.js +1 -1
- package/dist/GlobalBody.js +20 -20
- package/dist/GlobalHead.js +2 -3
- package/dist/Link-8nSDV4sI.js +16 -0
- package/dist/ReturnToLauncherButton.js +17 -18
- package/dist/SettingsModal-tXcbd23J.js +246 -0
- package/dist/SettingsModal.js +1 -1
- package/dist/StatusModal-CBzdZdAm.js +69 -0
- package/dist/ViewUserModal-C_gWUvXi.js +1544 -0
- package/dist/ViewUserModal.js +1 -1
- package/dist/{classnames-DP6dWde5.js → classnames-CpG5mzJ5.js} +12 -4
- package/dist/index.js +4 -4
- package/dist/numberWithCommas-rN3cZDJL.js +1170 -0
- package/package.json +1 -1
- package/dist/Ad-Ck5UdTq3.js +0 -387
- package/dist/AdConfirmExitModal-CJ-HtcVC.js +0 -56
- package/dist/AdDetailsModal-DRNRTL2W.js +0 -108
- package/dist/Link-MFZblBb4.js +0 -17
- package/dist/Modal-BX1s6CCU.js +0 -1631
- package/dist/SettingsModal-XI2dMI09.js +0 -247
- package/dist/StatusModal-elrPJvX1.js +0 -70
- package/dist/ViewUserModal-DDjWLpyM.js +0 -3094
- package/dist/jsx-runtime-VZk6y-ec.js +0 -191
- package/dist/numberWithCommas-BSKBdR-e.js +0 -18
- /package/dist/{useAuthSiteStatus-1rHjYC4N.js → useAuthSiteStatus-Cj9IjMj7.js} +0 -0
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { t as e } from "./Button-CU11ETla.js";
|
|
2
|
+
import { useState as t } from "react";
|
|
3
|
+
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
import { Form as a, Modal as o } from "react-bootstrap";
|
|
5
|
+
//#region src/components/Games/Settings/GraphicsTab.jsx
|
|
6
|
+
function s({ useStore: t }) {
|
|
7
|
+
let a = t((e) => e?.darkMode), o = t((e) => e?.setDarkMode), s = t((e) => e?.graphicsQuality), c = t((e) => e?.setGraphicsQuality), l = t((e) => e?.landingAnimation), u = t((e) => e?.setLandingAnimation);
|
|
8
|
+
return /* @__PURE__ */ i(n, { children: [
|
|
9
|
+
/* @__PURE__ */ r("div", { children: "Dark Mode" }),
|
|
10
|
+
/* @__PURE__ */ r("div", {
|
|
11
|
+
className: "mb-3",
|
|
12
|
+
children: [!1, !0].map((t, n) => /* @__PURE__ */ r(e, {
|
|
13
|
+
active: a === t,
|
|
14
|
+
onClick: () => {
|
|
15
|
+
o(t);
|
|
16
|
+
},
|
|
17
|
+
children: t ? "On" : "Off"
|
|
18
|
+
}, n))
|
|
19
|
+
}),
|
|
20
|
+
/* @__PURE__ */ r("div", { children: "Graphics Quality" }),
|
|
21
|
+
/* @__PURE__ */ r("div", {
|
|
22
|
+
className: "mb-3",
|
|
23
|
+
children: [
|
|
24
|
+
"Low",
|
|
25
|
+
"Medium",
|
|
26
|
+
"High"
|
|
27
|
+
].map((t) => /* @__PURE__ */ r(e, {
|
|
28
|
+
active: s === t,
|
|
29
|
+
onClick: () => {
|
|
30
|
+
c(t);
|
|
31
|
+
},
|
|
32
|
+
children: t
|
|
33
|
+
}, t))
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ r("div", { children: "Landing Animation" }),
|
|
36
|
+
/* @__PURE__ */ i("div", {
|
|
37
|
+
className: "mb-3",
|
|
38
|
+
children: [/* @__PURE__ */ r(e, {
|
|
39
|
+
active: l === !1,
|
|
40
|
+
onClick: () => {
|
|
41
|
+
u(!1);
|
|
42
|
+
},
|
|
43
|
+
children: "Disabled"
|
|
44
|
+
}), /* @__PURE__ */ r(e, {
|
|
45
|
+
active: l === !0,
|
|
46
|
+
onClick: () => {
|
|
47
|
+
u(!0);
|
|
48
|
+
},
|
|
49
|
+
children: "Enabled"
|
|
50
|
+
})]
|
|
51
|
+
})
|
|
52
|
+
] });
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/components/Games/Settings/AudioTab.jsx
|
|
56
|
+
function c({ useAudioStore: t, config: o }) {
|
|
57
|
+
let s = t((e) => e?.audioSettings), c = t((e) => e?.setAudioSettings);
|
|
58
|
+
return /* @__PURE__ */ i(n, { children: [
|
|
59
|
+
/* @__PURE__ */ r("div", { children: "Sound" }),
|
|
60
|
+
/* @__PURE__ */ i("div", {
|
|
61
|
+
className: "mb-3",
|
|
62
|
+
children: [/* @__PURE__ */ r(e, {
|
|
63
|
+
active: !s?.enabled,
|
|
64
|
+
onClick: () => {
|
|
65
|
+
c({
|
|
66
|
+
...s,
|
|
67
|
+
enabled: !1
|
|
68
|
+
});
|
|
69
|
+
},
|
|
70
|
+
children: "Disabled"
|
|
71
|
+
}), /* @__PURE__ */ r(e, {
|
|
72
|
+
active: s?.enabled,
|
|
73
|
+
onClick: () => {
|
|
74
|
+
c({
|
|
75
|
+
...s,
|
|
76
|
+
enabled: !0
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
children: "Enabled"
|
|
80
|
+
})]
|
|
81
|
+
}),
|
|
82
|
+
o?.tabs?.Audio?.sliders?.map((e) => /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r(a.Label, {
|
|
83
|
+
className: "mb-0",
|
|
84
|
+
children: e.label
|
|
85
|
+
}), /* @__PURE__ */ r(a.Range, {
|
|
86
|
+
value: s?.[e.key],
|
|
87
|
+
onChange: (t) => {
|
|
88
|
+
c({
|
|
89
|
+
...s,
|
|
90
|
+
[e.key]: t.target.value
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
})] }, e.key))
|
|
94
|
+
] });
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/components/Games/Settings/MultiplayerTab.jsx
|
|
98
|
+
function l({ useStore: t }) {
|
|
99
|
+
let n = t((e) => e.socketServerHost), o = t((e) => e.setSocketServerHost);
|
|
100
|
+
return /* @__PURE__ */ i("div", {
|
|
101
|
+
className: "p-2",
|
|
102
|
+
children: [
|
|
103
|
+
/* @__PURE__ */ r(a.Label, {
|
|
104
|
+
className: "mb-0",
|
|
105
|
+
children: "Socket Server Host"
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ r(a.Control, {
|
|
108
|
+
type: "text",
|
|
109
|
+
value: n,
|
|
110
|
+
onChange: (e) => o(e.target.value)
|
|
111
|
+
}),
|
|
112
|
+
/* @__PURE__ */ r(a.Label, {
|
|
113
|
+
className: "mb-0",
|
|
114
|
+
children: "Edit this to connect to a different multiplayer host!"
|
|
115
|
+
}),
|
|
116
|
+
/* @__PURE__ */ i("div", {
|
|
117
|
+
className: "mt-3",
|
|
118
|
+
children: [/* @__PURE__ */ r(e, {
|
|
119
|
+
className: "mb-1",
|
|
120
|
+
children: "Retry"
|
|
121
|
+
}), /* @__PURE__ */ i("div", { children: ["Status: ", /* @__PURE__ */ r("span", {
|
|
122
|
+
className: "badge bg-danger",
|
|
123
|
+
children: "Offline"
|
|
124
|
+
})] })]
|
|
125
|
+
})
|
|
126
|
+
]
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/components/Games/Settings/ControlsTab.jsx
|
|
131
|
+
function u({ useTouchControlsStore: e }) {
|
|
132
|
+
return /* @__PURE__ */ i("div", {
|
|
133
|
+
className: "",
|
|
134
|
+
children: [/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("h5", { children: "Control Settings" }), /* @__PURE__ */ r("p", { children: "Configure your key bindings and control preferences here." })] }), e && /* @__PURE__ */ r(d, { useTouchControlsStore: e })]
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function d({ useTouchControlsStore: e }) {
|
|
138
|
+
let t = e((e) => e.touchControls), n = e((e) => e.setTouchControls);
|
|
139
|
+
return /* @__PURE__ */ r("div", {
|
|
140
|
+
className: "mb-3",
|
|
141
|
+
children: [!1, !0].map((e, i) => /* @__PURE__ */ r(ArticlesButton, {
|
|
142
|
+
active: t === e,
|
|
143
|
+
onClick: () => {
|
|
144
|
+
n(e);
|
|
145
|
+
},
|
|
146
|
+
children: e ? "On" : "Off"
|
|
147
|
+
}, i))
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/components/Games/Settings/OtherTab.jsx
|
|
152
|
+
function f({ useStore: t }) {
|
|
153
|
+
let a = t((e) => e?.debug), o = t((e) => e?.setDebug);
|
|
154
|
+
return /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r("div", { children: "Debug Mode" }), /* @__PURE__ */ r("div", {
|
|
155
|
+
className: "mb-3",
|
|
156
|
+
children: [!1, !0].map((t, n) => /* @__PURE__ */ r(e, {
|
|
157
|
+
active: a === t,
|
|
158
|
+
onClick: () => {
|
|
159
|
+
o(t);
|
|
160
|
+
},
|
|
161
|
+
children: t ? "On" : "Off"
|
|
162
|
+
}, n))
|
|
163
|
+
})] });
|
|
164
|
+
}
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region src/components/Games/Settings/SettingsModal.jsx
|
|
167
|
+
function p({ show: n, setShow: a, store: d, useAudioStore: p, config: m }) {
|
|
168
|
+
let [h, g] = t(!1), [_, v] = t("Graphics");
|
|
169
|
+
return d((e) => e.darkMode), d((e) => e.setDarkMode), d((e) => e.arcadeMode), d((e) => e.setArcadeMode), /* @__PURE__ */ i(o, {
|
|
170
|
+
className: "articles-modal",
|
|
171
|
+
size: "md",
|
|
172
|
+
show: n,
|
|
173
|
+
centered: !0,
|
|
174
|
+
scrollable: !0,
|
|
175
|
+
onExited: () => {},
|
|
176
|
+
onHide: () => {
|
|
177
|
+
a(!1);
|
|
178
|
+
},
|
|
179
|
+
children: [
|
|
180
|
+
/* @__PURE__ */ r(o.Header, {
|
|
181
|
+
closeButton: !0,
|
|
182
|
+
children: /* @__PURE__ */ r(o.Title, { children: "Game Settings" })
|
|
183
|
+
}),
|
|
184
|
+
/* @__PURE__ */ i(o.Body, {
|
|
185
|
+
className: "flex-column p-0",
|
|
186
|
+
children: [
|
|
187
|
+
/* @__PURE__ */ r("div", {
|
|
188
|
+
className: "p-2",
|
|
189
|
+
children: [
|
|
190
|
+
"Graphics",
|
|
191
|
+
"Controls",
|
|
192
|
+
"Audio",
|
|
193
|
+
"Multiplayer",
|
|
194
|
+
"Other"
|
|
195
|
+
].map((t) => /* @__PURE__ */ r(e, {
|
|
196
|
+
active: _ == t,
|
|
197
|
+
onClick: () => {
|
|
198
|
+
v(t);
|
|
199
|
+
},
|
|
200
|
+
children: t
|
|
201
|
+
}, t))
|
|
202
|
+
}),
|
|
203
|
+
/* @__PURE__ */ r("hr", { className: "my-0" }),
|
|
204
|
+
/* @__PURE__ */ i("div", {
|
|
205
|
+
className: "p-2",
|
|
206
|
+
children: [
|
|
207
|
+
_ == "Controls" && /* @__PURE__ */ r(u, {
|
|
208
|
+
useStore: d,
|
|
209
|
+
config: m
|
|
210
|
+
}),
|
|
211
|
+
_ == "Graphics" && /* @__PURE__ */ r(s, {
|
|
212
|
+
useStore: d,
|
|
213
|
+
config: m
|
|
214
|
+
}),
|
|
215
|
+
_ == "Audio" && /* @__PURE__ */ r(c, {
|
|
216
|
+
useAudioStore: p,
|
|
217
|
+
config: m
|
|
218
|
+
}),
|
|
219
|
+
_ == "Multiplayer" && /* @__PURE__ */ r(l, {
|
|
220
|
+
useStore: d,
|
|
221
|
+
config: m
|
|
222
|
+
}),
|
|
223
|
+
_ == "Other" && /* @__PURE__ */ r(f, { useStore: d })
|
|
224
|
+
]
|
|
225
|
+
})
|
|
226
|
+
]
|
|
227
|
+
}),
|
|
228
|
+
/* @__PURE__ */ r(o.Footer, {
|
|
229
|
+
className: "justify-content-between",
|
|
230
|
+
children: /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r(e, {
|
|
231
|
+
variant: "outline-dark",
|
|
232
|
+
onClick: () => {
|
|
233
|
+
a(!1);
|
|
234
|
+
},
|
|
235
|
+
children: "Close"
|
|
236
|
+
}), /* @__PURE__ */ r(e, {
|
|
237
|
+
variant: "outline-danger ms-3",
|
|
238
|
+
onClick: () => {},
|
|
239
|
+
children: "Reset"
|
|
240
|
+
})] })
|
|
241
|
+
})
|
|
242
|
+
]
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
//#endregion
|
|
246
|
+
export { p as t };
|
package/dist/SettingsModal.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./SettingsModal-
|
|
1
|
+
import { t as e } from "./SettingsModal-tXcbd23J.js";
|
|
2
2
|
export { e as default };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { t as e } from "./Button-CU11ETla.js";
|
|
2
|
+
import { n as t, t as n } from "./useAuthSiteStatus-Cj9IjMj7.js";
|
|
3
|
+
import { useState as r } from "react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
import { Modal as o } from "react-bootstrap";
|
|
6
|
+
//#region src/components/Global/StatusModal.jsx
|
|
7
|
+
function s({ show: s, setShow: c }) {
|
|
8
|
+
let [l, u] = r(!1), [d, f] = r(!1), p = (e, t, n) => n ? "..." : t ? t.response?.status || "Error" : e ? "200" : "-", { data: m, error: h, isLoading: g, mutate: _ } = t({ disable: process.env.NODE_ENV !== "development" }), { data: v, error: y, isLoading: b, mutate: x } = n({ disable: process.env.NODE_ENV !== "development" });
|
|
9
|
+
return /* @__PURE__ */ a(o, {
|
|
10
|
+
show: s,
|
|
11
|
+
size: "md",
|
|
12
|
+
className: "articles-modal",
|
|
13
|
+
centered: !0,
|
|
14
|
+
onHide: () => c(!1),
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ i(o.Header, { children: /* @__PURE__ */ i(o.Title, { children: "Status Details" }) }),
|
|
17
|
+
/* @__PURE__ */ a(o.Body, { children: [
|
|
18
|
+
/* @__PURE__ */ a("div", {
|
|
19
|
+
className: "d-flex align-items-center mb-2",
|
|
20
|
+
children: [/* @__PURE__ */ a("h5", {
|
|
21
|
+
className: "mb-0 me-2",
|
|
22
|
+
children: ["Main Site Status: ", p(m, h, g)]
|
|
23
|
+
}), /* @__PURE__ */ a(e, {
|
|
24
|
+
variant: "link",
|
|
25
|
+
size: "sm",
|
|
26
|
+
className: "p-0",
|
|
27
|
+
onClick: () => u(!l),
|
|
28
|
+
children: [l ? "Hide" : "View", " More"]
|
|
29
|
+
})]
|
|
30
|
+
}),
|
|
31
|
+
l && /* @__PURE__ */ a("pre", { children: [
|
|
32
|
+
g && "Loading...",
|
|
33
|
+
h && `Error: ${h.message}`,
|
|
34
|
+
m && JSON.stringify(m, null, 2)
|
|
35
|
+
] }),
|
|
36
|
+
/* @__PURE__ */ a("div", {
|
|
37
|
+
className: "d-flex align-items-center mb-2",
|
|
38
|
+
children: [/* @__PURE__ */ a("h5", {
|
|
39
|
+
className: "mb-0 me-2",
|
|
40
|
+
children: ["Auth Site Status: ", p(v, y, b)]
|
|
41
|
+
}), /* @__PURE__ */ a(e, {
|
|
42
|
+
variant: "link",
|
|
43
|
+
size: "sm",
|
|
44
|
+
className: "p-0",
|
|
45
|
+
onClick: () => f(!d),
|
|
46
|
+
children: [d ? "Hide" : "View", " More"]
|
|
47
|
+
})]
|
|
48
|
+
}),
|
|
49
|
+
d && /* @__PURE__ */ a("pre", { children: [
|
|
50
|
+
b && "Loading...",
|
|
51
|
+
y && `Error: ${y.message}`,
|
|
52
|
+
v && JSON.stringify(v, null, 2)
|
|
53
|
+
] })
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ i(o.Footer, {
|
|
56
|
+
className: "justify-content-between",
|
|
57
|
+
children: /* @__PURE__ */ i(e, {
|
|
58
|
+
variant: "articles",
|
|
59
|
+
onClick: () => {
|
|
60
|
+
c(!1);
|
|
61
|
+
},
|
|
62
|
+
children: "Close"
|
|
63
|
+
})
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
export { s as default };
|