@articles-media/articles-dev-box 1.0.17 → 1.0.23
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/README.md +6 -5
- package/dist/Ad-Ck5UdTq3.js +387 -0
- package/dist/Ad.js +2 -604
- package/dist/AdConfirmExitModal-CJ-HtcVC.js +56 -0
- package/dist/AdDetailsModal-DRNRTL2W.js +108 -0
- package/dist/ArticlesAd.js +16 -15
- package/dist/Button-BlAdEbSd.js +30 -0
- package/dist/CreditsModal.js +56 -0
- package/dist/DarkModeHandler.js +17 -16
- package/dist/FriendsList.js +77 -121
- package/dist/GameScoreboard-CBY3JsFa.js +165 -0
- package/dist/GameScoreboard.js +2 -190
- package/dist/GlobalBody.js +36 -7
- package/dist/GlobalHead.js +10 -12
- package/dist/Link-MFZblBb4.js +17 -0
- package/dist/Modal-BX1s6CCU.js +1631 -0
- package/dist/ReturnToLauncherButton.js +39 -54
- package/dist/SettingsModal-XI2dMI09.js +247 -0
- package/dist/SettingsModal.js +2 -658
- package/dist/StatusModal-elrPJvX1.js +70 -0
- package/dist/ViewUserModal-DDjWLpyM.js +3094 -0
- package/dist/ViewUserModal.js +3 -3149
- package/dist/articles-dev-box.css +2 -1
- package/dist/classnames-DP6dWde5.js +31 -0
- package/dist/index.js +16 -28
- package/dist/jsx-runtime-VZk6y-ec.js +191 -0
- package/dist/numberWithCommas-BSKBdR-e.js +18 -0
- package/dist/useAuthSiteStatus-1rHjYC4N.js +29 -0
- package/dist/useFullscreen.js +24 -0
- package/dist/useUserDetails.js +22 -32
- package/dist/useUserFriends.js +29 -51
- package/dist/useUserToken.js +16 -21
- package/package.json +26 -67
- package/dist/Ad.cjs +0 -1
- package/dist/AdConfirmExitModal-Bhz-lt9w.js +0 -72
- package/dist/AdConfirmExitModal-N3Lvhb4y.cjs +0 -1
- package/dist/AdDetailsModal-BMj8DjV0.cjs +0 -1
- package/dist/AdDetailsModal-DXvfmyKK.js +0 -83
- package/dist/ArticlesAd.cjs +0 -1
- package/dist/Button-0ZK0NKiK.cjs +0 -1
- package/dist/Button-_Quon8UV.js +0 -54
- package/dist/DarkModeHandler.cjs +0 -1
- package/dist/ElementChildren-DN3RWY2E.js +0 -51
- package/dist/ElementChildren-eAwIENLl.cjs +0 -1
- package/dist/FriendsList.cjs +0 -1
- package/dist/GameScoreboard.cjs +0 -1
- package/dist/GlobalBody-BrrtfBBs.js +0 -123
- package/dist/GlobalBody-weON_TbJ.cjs +0 -33
- package/dist/GlobalBody.cjs +0 -1
- package/dist/GlobalHead.cjs +0 -1
- package/dist/Modal-Bdhkgkwr.cjs +0 -2
- package/dist/Modal-nux8R77F.js +0 -2087
- package/dist/ReturnToLauncherButton.cjs +0 -1
- package/dist/SettingsModal.cjs +0 -1
- package/dist/StatusModal-B086BgSW.js +0 -71
- package/dist/StatusModal-CzPyqQQA.cjs +0 -1
- package/dist/ViewUserModal.cjs +0 -1
- package/dist/index-BlP2-uOi.cjs +0 -1
- package/dist/index-C8MeSLnR.js +0 -2504
- package/dist/index-DWV8myok.cjs +0 -6
- package/dist/index-YnD2EP-S.js +0 -43
- package/dist/index.cjs +0 -1
- package/dist/jsx-runtime-nZSsnGb7.cjs +0 -6
- package/dist/jsx-runtime-tc70JA_2.js +0 -264
- package/dist/numberWithCommas-CRgrb58X.cjs +0 -1
- package/dist/numberWithCommas-DnAkiOFL.js +0 -1256
- package/dist/useUserDetails.cjs +0 -1
- package/dist/useUserFriends.cjs +0 -1
- package/dist/useUserToken.cjs +0 -1
|
@@ -1,55 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
id: a,
|
|
39
|
-
style: {
|
|
40
|
-
zIndex: 10,
|
|
41
|
-
position: "relative"
|
|
42
|
-
},
|
|
43
|
-
onClick: () => {
|
|
44
|
-
window.location.href = "https://games.articles.media";
|
|
45
|
-
},
|
|
46
|
-
children: [
|
|
47
|
-
/* @__PURE__ */ e.jsx("i", { className: "fad fa-gamepad" }),
|
|
48
|
-
"View our other games"
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
);
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as e } from "./jsx-runtime-VZk6y-ec.js";
|
|
3
|
+
import { t } from "./Button-BlAdEbSd.js";
|
|
4
|
+
import { useEffect as n, useState as r } from "react";
|
|
5
|
+
//#region src/components/Games/ReturnToLauncherButton.jsx
|
|
6
|
+
var i = e();
|
|
7
|
+
function a({ className: e, id: a }) {
|
|
8
|
+
let [o, s] = r(!1);
|
|
9
|
+
if (n(() => {
|
|
10
|
+
s(!0);
|
|
11
|
+
}, []), !o) return null;
|
|
12
|
+
let c = new URLSearchParams(window.location.search), { launcher_mode: l } = Object.fromEntries(c);
|
|
13
|
+
return l = l === "1", l ? /* @__PURE__ */ (0, i.jsxs)(t, {
|
|
14
|
+
className: `${e} w-100`,
|
|
15
|
+
id: a,
|
|
16
|
+
small: !0,
|
|
17
|
+
style: {
|
|
18
|
+
zIndex: 10,
|
|
19
|
+
position: "relative"
|
|
20
|
+
},
|
|
21
|
+
onClick: () => {
|
|
22
|
+
window.location.href = "https://games.articles.media";
|
|
23
|
+
},
|
|
24
|
+
children: [/* @__PURE__ */ (0, i.jsx)("i", { className: "fad fa-gamepad" }), "Return to Games"]
|
|
25
|
+
}) : /* @__PURE__ */ (0, i.jsxs)(t, {
|
|
26
|
+
className: `${e} w-100`,
|
|
27
|
+
small: !0,
|
|
28
|
+
id: a,
|
|
29
|
+
style: {
|
|
30
|
+
zIndex: 10,
|
|
31
|
+
position: "relative"
|
|
32
|
+
},
|
|
33
|
+
onClick: () => {
|
|
34
|
+
window.location.href = "https://games.articles.media";
|
|
35
|
+
},
|
|
36
|
+
children: [/* @__PURE__ */ (0, i.jsx)("i", { className: "fad fa-gamepad" }), "View our other games"]
|
|
37
|
+
});
|
|
52
38
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
};
|
|
39
|
+
//#endregion
|
|
40
|
+
export { a as default };
|
|
@@ -0,0 +1,247 @@
|
|
|
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 };
|