@articles-media/articles-dev-box 1.0.23 → 1.0.25

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