@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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { n as e, t } from "./classnames-CpG5mzJ5.js";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/UI/Button.jsx
|
|
5
|
-
var i = /* @__PURE__ */ e(
|
|
6
|
-
let { size: n, variant:
|
|
7
|
-
return /* @__PURE__ */ (
|
|
5
|
+
var i = /* @__PURE__ */ e(t(), 1), a = n((e, t) => {
|
|
6
|
+
let { size: n, variant: a, style: o, small: s, large: c, onClick: l, className: u, disabled: d, active: f, type: p, onMouseDown: m, onMouseUp: h, onMouseLeave: g, onTouchStart: _, onTouchEnd: v, ...y } = e;
|
|
7
|
+
return /* @__PURE__ */ r("button", {
|
|
8
8
|
ref: t,
|
|
9
9
|
...p && { type: "submit" },
|
|
10
10
|
disabled: d,
|
|
@@ -14,7 +14,7 @@ var i = /* @__PURE__ */ e(n(), 1), a = t(), o = r((e, t) => {
|
|
|
14
14
|
onMouseLeave: g,
|
|
15
15
|
onTouchStart: _,
|
|
16
16
|
onTouchEnd: v,
|
|
17
|
-
className: (0, i.default)(`btn ${
|
|
17
|
+
className: (0, i.default)(`btn ${a ? `btn-${a}` : "btn-articles"}`, {
|
|
18
18
|
[u]: u,
|
|
19
19
|
"btn-lg": c,
|
|
20
20
|
"btn-sm": s,
|
|
@@ -25,6 +25,6 @@ var i = /* @__PURE__ */ e(n(), 1), a = t(), o = r((e, t) => {
|
|
|
25
25
|
children: e.children
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
-
|
|
28
|
+
a.displayName = "ArticlesButton";
|
|
29
29
|
//#endregion
|
|
30
|
-
export {
|
|
30
|
+
export { a as t };
|
package/dist/CreditsModal.js
CHANGED
|
@@ -1,50 +1,49 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import { t } from "
|
|
3
|
-
import {
|
|
4
|
-
import { Modal as
|
|
1
|
+
import { t as e } from "./Button-CU11ETla.js";
|
|
2
|
+
import { useState as t } from "react";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import { Modal as i } from "react-bootstrap";
|
|
5
5
|
//#region src/components/Games/Credits/CreditsModal.jsx
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return /* @__PURE__ */ (0, i.jsxs)(r, {
|
|
6
|
+
function a({ show: a, setShow: o, useStore: s, owner: c, repo: l, developers: u, publisher: d, introText: f }) {
|
|
7
|
+
let [p, m] = t(!1);
|
|
8
|
+
return /* @__PURE__ */ r(i, {
|
|
10
9
|
className: "articles-modal",
|
|
11
10
|
size: "md",
|
|
12
|
-
show:
|
|
11
|
+
show: a,
|
|
13
12
|
centered: !0,
|
|
14
13
|
scrollable: !0,
|
|
15
14
|
onExited: () => {},
|
|
16
15
|
onHide: () => {
|
|
17
|
-
|
|
16
|
+
o(!1);
|
|
18
17
|
},
|
|
19
18
|
children: [
|
|
20
|
-
/* @__PURE__ */ (
|
|
19
|
+
/* @__PURE__ */ n(i.Header, {
|
|
21
20
|
closeButton: !0,
|
|
22
|
-
children: /* @__PURE__ */ (
|
|
21
|
+
children: /* @__PURE__ */ n(i.Title, { children: "Game Credits" })
|
|
23
22
|
}),
|
|
24
|
-
/* @__PURE__ */ (
|
|
23
|
+
/* @__PURE__ */ r(i.Body, {
|
|
25
24
|
className: "flex-column p-3",
|
|
26
25
|
children: [
|
|
27
|
-
|
|
26
|
+
f && /* @__PURE__ */ n("div", {
|
|
28
27
|
className: "mb-3",
|
|
29
|
-
children:
|
|
28
|
+
children: f
|
|
30
29
|
}),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/* @__PURE__ */ (
|
|
34
|
-
|
|
35
|
-
href: `https://github.com/${
|
|
30
|
+
u ? /* @__PURE__ */ n("div", {}) : /* @__PURE__ */ n("div", { children: "Developed by: ArticlesJoey " }),
|
|
31
|
+
d ? /* @__PURE__ */ n("div", {}) : /* @__PURE__ */ n("div", { children: "Published by: Articles Media " }),
|
|
32
|
+
/* @__PURE__ */ n("div", { className: "mb-3" }),
|
|
33
|
+
c && l && /* @__PURE__ */ r("div", { children: [/* @__PURE__ */ n("div", { children: "Attributions:" }), /* @__PURE__ */ n("a", {
|
|
34
|
+
href: `https://github.com/${c}/${l}/blob/main/README.md`,
|
|
36
35
|
target: "_blank",
|
|
37
36
|
rel: "noopener noreferrer",
|
|
38
|
-
children: /* @__PURE__ */ (
|
|
37
|
+
children: /* @__PURE__ */ r(e, { children: [/* @__PURE__ */ n("i", { className: "fab fa-github" }), "View on GitHub"] })
|
|
39
38
|
})] })
|
|
40
39
|
]
|
|
41
40
|
}),
|
|
42
|
-
/* @__PURE__ */ (
|
|
41
|
+
/* @__PURE__ */ r(i.Footer, {
|
|
43
42
|
className: "justify-content-between",
|
|
44
|
-
children: [/* @__PURE__ */ (
|
|
43
|
+
children: [/* @__PURE__ */ n("div", {}), /* @__PURE__ */ n(e, {
|
|
45
44
|
variant: "outline-dark",
|
|
46
45
|
onClick: () => {
|
|
47
|
-
|
|
46
|
+
o(!1);
|
|
48
47
|
},
|
|
49
48
|
children: "Close"
|
|
50
49
|
})]
|
package/dist/DarkModeHandler.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useEffect as e } from "react";
|
|
2
|
+
import { Fragment as t, jsx as n } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/UI/DarkModeHandler.jsx
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
e.getState().setDarkMode(!!t);
|
|
4
|
+
function r({ useStore: r }) {
|
|
5
|
+
let i = r((e) => e.darkMode), a = r((e) => e._hasHydrated);
|
|
6
|
+
return e(() => {
|
|
7
|
+
if (a) {
|
|
8
|
+
if (i == null) {
|
|
9
|
+
let e = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
10
|
+
r.getState().setDarkMode(!!e);
|
|
12
11
|
}
|
|
13
|
-
|
|
12
|
+
i ? document.body.setAttribute("data-bs-theme", "dark") : document.body.setAttribute("data-bs-theme", "light");
|
|
14
13
|
}
|
|
15
|
-
}, [
|
|
14
|
+
}, [i, a]), /* @__PURE__ */ n(t, {});
|
|
16
15
|
}
|
|
17
16
|
//#endregion
|
|
18
17
|
export { r as default };
|
package/dist/FriendsList.js
CHANGED
|
@@ -1,74 +1,73 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import
|
|
3
|
-
import n from "
|
|
4
|
-
import { Modal as
|
|
1
|
+
import { t as e } from "./Button-CU11ETla.js";
|
|
2
|
+
import t from "./useUserFriends.js";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import { Modal as i } from "react-bootstrap";
|
|
5
5
|
//#region src/components/Friends/FriendsList.jsx
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
user_token: u
|
|
6
|
+
function a({ show: a, setShow: o, componentType: s, className: c, style: l = {}, user_id: u, user_token: d, id: f = null, allowInvite: p = !1, inviteFunction: m = null, modalBackdropClassName: h = "" }) {
|
|
7
|
+
let { data: g, error: _, isLoading: v, mutate: y } = t({
|
|
8
|
+
user_id: u,
|
|
9
|
+
user_token: d
|
|
11
10
|
});
|
|
12
|
-
if ((!
|
|
13
|
-
className:
|
|
14
|
-
style:
|
|
15
|
-
children:
|
|
11
|
+
if ((!s || s == "list") && !v && g && g.length > 0) return /* @__PURE__ */ n("ul", {
|
|
12
|
+
className: c,
|
|
13
|
+
style: l,
|
|
14
|
+
children: g.map((e) => /* @__PURE__ */ r("li", { children: [
|
|
16
15
|
e?.populated_user?.username,
|
|
17
16
|
" - ",
|
|
18
17
|
e?.populated_user?.display_name || "No Display Name"
|
|
19
18
|
] }, e.user_id))
|
|
20
19
|
});
|
|
21
|
-
if (
|
|
22
|
-
show:
|
|
20
|
+
if (s.toLowerCase() == "modal") return /* @__PURE__ */ r(i, {
|
|
21
|
+
show: a,
|
|
23
22
|
size: "md",
|
|
24
|
-
className: `articles-modal ${
|
|
25
|
-
modalBackdropClassName:
|
|
23
|
+
className: `articles-modal ${c}`,
|
|
24
|
+
modalBackdropClassName: h,
|
|
26
25
|
centered: !0,
|
|
27
|
-
onHide: () =>
|
|
28
|
-
style:
|
|
29
|
-
id:
|
|
26
|
+
onHide: () => o(!1),
|
|
27
|
+
style: l,
|
|
28
|
+
id: f,
|
|
30
29
|
children: [
|
|
31
|
-
/* @__PURE__ */ (
|
|
32
|
-
/* @__PURE__ */ (
|
|
33
|
-
|
|
30
|
+
/* @__PURE__ */ n(i.Header, { children: /* @__PURE__ */ n(i.Title, { children: "Friends" }) }),
|
|
31
|
+
/* @__PURE__ */ r(i.Body, { children: [
|
|
32
|
+
v && /* @__PURE__ */ r("div", {
|
|
34
33
|
className: "d-flex align-items-center",
|
|
35
|
-
children: [/* @__PURE__ */ (
|
|
34
|
+
children: [/* @__PURE__ */ n("i", { className: "fad fa-spinner-third fa-spin fa-2x" }), /* @__PURE__ */ n("div", { children: "Loading..." })]
|
|
36
35
|
}),
|
|
37
|
-
!
|
|
38
|
-
!
|
|
36
|
+
!v && g && g.length == 0 && /* @__PURE__ */ n("div", { children: "No friends to show." }),
|
|
37
|
+
!v && g && g.length > 0 && /* @__PURE__ */ n("div", { children: g.map((t) => /* @__PURE__ */ r("div", {
|
|
39
38
|
className: "d-flex align-items-center justify-content-between border p-1",
|
|
40
39
|
children: [
|
|
41
|
-
|
|
40
|
+
t?.populated_user?.username,
|
|
42
41
|
" - ",
|
|
43
|
-
|
|
44
|
-
/* @__PURE__ */ (
|
|
42
|
+
t?.populated_user?.display_name || "No Display Name",
|
|
43
|
+
/* @__PURE__ */ r("div", { children: [p && /* @__PURE__ */ n(e, {
|
|
45
44
|
variant: "articles",
|
|
46
45
|
onClick: () => {
|
|
47
|
-
|
|
46
|
+
p(t);
|
|
48
47
|
},
|
|
49
|
-
children: /* @__PURE__ */ (
|
|
50
|
-
}), /* @__PURE__ */ (
|
|
48
|
+
children: /* @__PURE__ */ n("i", { className: "fad fa-comment-check" })
|
|
49
|
+
}), /* @__PURE__ */ n(e, {
|
|
51
50
|
variant: "articles",
|
|
52
51
|
onClick: () => {},
|
|
53
|
-
children: /* @__PURE__ */ (
|
|
52
|
+
children: /* @__PURE__ */ n("i", { className: "fad fa-info" })
|
|
54
53
|
})] })
|
|
55
54
|
]
|
|
56
|
-
},
|
|
55
|
+
}, t.user_id)) })
|
|
57
56
|
] }),
|
|
58
|
-
/* @__PURE__ */ (
|
|
57
|
+
/* @__PURE__ */ r(i.Footer, {
|
|
59
58
|
className: "justify-content-between",
|
|
60
|
-
children: [/* @__PURE__ */ (
|
|
59
|
+
children: [/* @__PURE__ */ r(e, {
|
|
61
60
|
variant: "articles",
|
|
62
61
|
onClick: () => {
|
|
63
|
-
|
|
62
|
+
y();
|
|
64
63
|
},
|
|
65
|
-
children: [/* @__PURE__ */ (
|
|
66
|
-
}), /* @__PURE__ */ (
|
|
64
|
+
children: [/* @__PURE__ */ n("i", { className: "fad fa-redo me-2" }), /* @__PURE__ */ n("span", { children: "Refresh" })]
|
|
65
|
+
}), /* @__PURE__ */ r(e, {
|
|
67
66
|
variant: "articles",
|
|
68
67
|
onClick: () => {
|
|
69
|
-
|
|
68
|
+
o(!1);
|
|
70
69
|
},
|
|
71
|
-
children: [/* @__PURE__ */ (
|
|
70
|
+
children: [/* @__PURE__ */ n("i", { className: "fad fa-times me-2" }), "Close"]
|
|
72
71
|
})]
|
|
73
72
|
})
|
|
74
73
|
]
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { useEffect as i, useState as a } from "react";
|
|
1
|
+
import { t as e } from "./Button-CU11ETla.js";
|
|
2
|
+
import { t } from "./ViewUserModal-C_gWUvXi.js";
|
|
3
|
+
import { useEffect as n, useState as r } from "react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
5
|
import o from "swr";
|
|
6
|
+
import s from "react-bootstrap/Modal";
|
|
7
7
|
//#region src/components/UI/ArticlesSwitch.jsx
|
|
8
|
-
var s = e();
|
|
9
8
|
function c({ setChecked: e, checked: t, readOnly: n }) {
|
|
10
|
-
return /* @__PURE__ */ (
|
|
9
|
+
return /* @__PURE__ */ a("label", {
|
|
11
10
|
className: `articles-switch mb-0 ${t && "checked"}`,
|
|
12
|
-
children: [/* @__PURE__ */ (
|
|
11
|
+
children: [/* @__PURE__ */ i("input", {
|
|
13
12
|
type: "checkbox",
|
|
14
13
|
readOnly: !!n,
|
|
15
14
|
checked: t,
|
|
16
15
|
onChange: () => {}
|
|
17
|
-
}), /* @__PURE__ */ (
|
|
16
|
+
}), /* @__PURE__ */ i("span", {
|
|
18
17
|
onClick: (n) => {
|
|
19
18
|
if (e) {
|
|
20
19
|
e(!t);
|
|
@@ -58,105 +57,105 @@ var l = async (e) => {
|
|
|
58
57
|
};
|
|
59
58
|
//#endregion
|
|
60
59
|
//#region src/components/Games/GameScoreboard.jsx
|
|
61
|
-
function f({ game:
|
|
62
|
-
let [
|
|
63
|
-
return
|
|
64
|
-
|
|
65
|
-
}, [
|
|
60
|
+
function f({ game: o, reloadScoreboard: l, setReloadScoreboard: u, prepend: f, append: p }) {
|
|
61
|
+
let [m, h] = r(!1), [g, _] = r(!1), { data: v, isLoading: y, mutate: b } = d({ game: o });
|
|
62
|
+
return n(() => {}, []), n(() => {
|
|
63
|
+
l && (u(!1), b());
|
|
64
|
+
}, [l]), /* @__PURE__ */ a("div", {
|
|
66
65
|
className: "scoreboard",
|
|
67
66
|
children: [
|
|
68
|
-
/* @__PURE__ */ (
|
|
69
|
-
show:
|
|
67
|
+
/* @__PURE__ */ a(s, {
|
|
68
|
+
show: m,
|
|
70
69
|
size: "md",
|
|
71
70
|
className: "articles-modal",
|
|
72
71
|
centered: !0,
|
|
73
|
-
onHide: () =>
|
|
72
|
+
onHide: () => h(!1),
|
|
74
73
|
children: [
|
|
75
|
-
/* @__PURE__ */ (
|
|
76
|
-
/* @__PURE__ */ (
|
|
74
|
+
/* @__PURE__ */ i(s.Header, { children: /* @__PURE__ */ i(s.Title, { children: "Scoreboard Settings" }) }),
|
|
75
|
+
/* @__PURE__ */ i(s.Body, { children: /* @__PURE__ */ a("div", {
|
|
77
76
|
className: "d-flex justify-content-between align-items-center",
|
|
78
|
-
onClick: () =>
|
|
79
|
-
children: [/* @__PURE__ */ (
|
|
77
|
+
onClick: () => _(!g),
|
|
78
|
+
children: [/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("i", { className: "fas fa-trophy-alt" }), /* @__PURE__ */ i("span", { children: "Join Scoreboard?" })] }), /* @__PURE__ */ i(c, { checked: g })]
|
|
80
79
|
}) }),
|
|
81
|
-
/* @__PURE__ */ (
|
|
80
|
+
/* @__PURE__ */ i(s.Footer, {
|
|
82
81
|
className: "justify-content-between",
|
|
83
|
-
children: /* @__PURE__ */ (
|
|
82
|
+
children: /* @__PURE__ */ i(e, {
|
|
84
83
|
variant: "articles",
|
|
85
84
|
onClick: () => {
|
|
86
|
-
|
|
85
|
+
h(!1);
|
|
87
86
|
},
|
|
88
87
|
children: "Close"
|
|
89
88
|
})
|
|
90
89
|
})
|
|
91
90
|
]
|
|
92
91
|
}),
|
|
93
|
-
/* @__PURE__ */ (
|
|
92
|
+
/* @__PURE__ */ i("div", {
|
|
94
93
|
className: "prepend-container",
|
|
95
|
-
children:
|
|
94
|
+
children: f
|
|
96
95
|
}),
|
|
97
|
-
/* @__PURE__ */ (
|
|
96
|
+
/* @__PURE__ */ a("div", {
|
|
98
97
|
className: "card card-articles card-sm mb-3 mb-lg-0",
|
|
99
98
|
children: [
|
|
100
|
-
/* @__PURE__ */ (
|
|
99
|
+
/* @__PURE__ */ a("div", {
|
|
101
100
|
className: "card-header d-flex justify-content-between align-items-center",
|
|
102
|
-
children: [/* @__PURE__ */ (
|
|
101
|
+
children: [/* @__PURE__ */ a("span", { children: [o, " Scoreboard"] }), /* @__PURE__ */ i(e, {
|
|
103
102
|
onClick: () => {
|
|
104
|
-
|
|
103
|
+
b();
|
|
105
104
|
},
|
|
106
105
|
small: !0,
|
|
107
|
-
children: /* @__PURE__ */ (
|
|
106
|
+
children: /* @__PURE__ */ i("i", { className: "fad fa-redo me-0" })
|
|
108
107
|
})]
|
|
109
108
|
}),
|
|
110
|
-
/* @__PURE__ */ (
|
|
109
|
+
/* @__PURE__ */ a("div", {
|
|
111
110
|
className: "card-body p-0",
|
|
112
|
-
children: [(
|
|
111
|
+
children: [(v?.length || 0) == 0 && /* @__PURE__ */ i("div", {
|
|
113
112
|
className: "small p-2",
|
|
114
113
|
children: "No scores yet"
|
|
115
|
-
}),
|
|
114
|
+
}), v?.map((e, n) => /* @__PURE__ */ a("div", {
|
|
116
115
|
className: "result d-flex flex-column justify-content-between border-bottom p-2",
|
|
117
|
-
children: [/* @__PURE__ */ (
|
|
116
|
+
children: [/* @__PURE__ */ a("div", {
|
|
118
117
|
className: "d-flex justify-content-between lh-sm",
|
|
119
|
-
children: [/* @__PURE__ */ (
|
|
118
|
+
children: [/* @__PURE__ */ a("div", {
|
|
120
119
|
className: "d-flex",
|
|
121
|
-
children: [/* @__PURE__ */ (
|
|
120
|
+
children: [/* @__PURE__ */ i("h5", {
|
|
122
121
|
className: "mb-0 me-3",
|
|
123
|
-
children:
|
|
124
|
-
}), /* @__PURE__ */ (
|
|
122
|
+
children: n + 1
|
|
123
|
+
}), /* @__PURE__ */ i("div", {
|
|
125
124
|
className: "lh-sm",
|
|
126
|
-
children: /* @__PURE__ */ (
|
|
125
|
+
children: /* @__PURE__ */ i(t, {
|
|
127
126
|
populated_user: e.populated_user,
|
|
128
127
|
user_id: e.user_id
|
|
129
128
|
})
|
|
130
129
|
})]
|
|
131
|
-
}), /* @__PURE__ */ (
|
|
130
|
+
}), /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i("h5", {
|
|
132
131
|
className: "mb-0",
|
|
133
132
|
children: e.score || e.total
|
|
134
133
|
}) })]
|
|
135
|
-
}), e.last_play && e.public_last_play && /* @__PURE__ */ (
|
|
134
|
+
}), e.last_play && e.public_last_play && /* @__PURE__ */ a("small", {
|
|
136
135
|
className: "mt-1",
|
|
137
136
|
style: { fontSize: "0.75rem" },
|
|
138
137
|
children: ["Played: ", format(new Date(e.last_play), "MM/d/yy hh:mmaa")]
|
|
139
138
|
})]
|
|
140
139
|
}, e._id))]
|
|
141
140
|
}),
|
|
142
|
-
/* @__PURE__ */ (
|
|
141
|
+
/* @__PURE__ */ a("div", {
|
|
143
142
|
className: "card-footer d-flex justify-content-between align-items-center",
|
|
144
|
-
children: [/* @__PURE__ */ (
|
|
143
|
+
children: [/* @__PURE__ */ i("div", {
|
|
145
144
|
className: "small",
|
|
146
145
|
children: "Play to get on the board!"
|
|
147
|
-
}), /* @__PURE__ */ (
|
|
146
|
+
}), /* @__PURE__ */ i(e, {
|
|
148
147
|
small: !0,
|
|
149
148
|
onClick: () => {
|
|
150
|
-
|
|
149
|
+
h(!0);
|
|
151
150
|
},
|
|
152
|
-
children: /* @__PURE__ */ (
|
|
151
|
+
children: /* @__PURE__ */ i("i", { className: "fad fa-cog me-0" })
|
|
153
152
|
})]
|
|
154
153
|
})
|
|
155
154
|
]
|
|
156
155
|
}),
|
|
157
|
-
/* @__PURE__ */ (
|
|
156
|
+
/* @__PURE__ */ i("div", {
|
|
158
157
|
className: "append-container",
|
|
159
|
-
children:
|
|
158
|
+
children: p
|
|
160
159
|
})
|
|
161
160
|
]
|
|
162
161
|
});
|
package/dist/GameScoreboard.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./GameScoreboard-
|
|
1
|
+
import { t as e } from "./GameScoreboard-Dj5mTFTn.js";
|
|
2
2
|
export { e as default };
|
package/dist/GlobalBody.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { n as e, t } from "./classnames-CpG5mzJ5.js";
|
|
3
|
+
import { n, t as r } from "./useAuthSiteStatus-Cj9IjMj7.js";
|
|
4
|
+
import { Suspense as i, lazy as a, memo as o, useState as s } from "react";
|
|
5
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/Global/GlobalBody.jsx
|
|
7
|
-
var
|
|
8
|
-
function
|
|
9
|
-
let [t,
|
|
10
|
-
return /* @__PURE__ */
|
|
7
|
+
var d = /* @__PURE__ */ e(t(), 1), f = a(() => import("./StatusModal-CBzdZdAm.js"));
|
|
8
|
+
function p(e) {
|
|
9
|
+
let [t, a] = s(!1), { data: o, error: p, isLoading: m, mutate: h } = n({ disable: process.env.NODE_ENV !== "development" }), { data: g, error: _, isLoading: v, mutate: y } = r({ disable: process.env.NODE_ENV !== "development" });
|
|
10
|
+
return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("link", {
|
|
11
11
|
rel: "stylesheet",
|
|
12
12
|
href: "https://cdn.articles.media/fonts/fontawesome/css/all.min.css"
|
|
13
|
-
}), process.env.NODE_ENV === "development" && /* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */ (
|
|
15
|
-
/* @__PURE__ */ (
|
|
13
|
+
}), process.env.NODE_ENV === "development" && /* @__PURE__ */ u(c, { children: [
|
|
14
|
+
/* @__PURE__ */ l("style", { children: " \n @keyframes grow-shrink {\n 0% { transform: translateY(-50px); }\n 50% { transform: translateY(0px); }\n 100% { transform: translateY(-50px); }\n }\n .articles-global-body {\n transform: translateY(-40px);\n z-index: 1055!important;\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 50px;\n height: 50px;\n margin: 0;\n padding: 0;\n background-color: yellow;\n color: #FFFFFF;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n animation: grow-shrink 2s ease-in;\n border: 4px solid red;\n cursor: pointer;\n }\n .articles-global-body.main-connected {\n background-color: green;\n }\n .articles-global-body.auth-connected {\n border-color: blue;\n } \n " }),
|
|
15
|
+
/* @__PURE__ */ l("div", {
|
|
16
16
|
onClick: () => {
|
|
17
|
-
|
|
17
|
+
a(!0);
|
|
18
18
|
},
|
|
19
|
-
className: (0,
|
|
19
|
+
className: (0, d.default)("articles-global-body", {
|
|
20
20
|
"main-connected": o,
|
|
21
|
-
"auth-connected":
|
|
21
|
+
"auth-connected": g
|
|
22
22
|
}),
|
|
23
|
-
children: /* @__PURE__ */ (
|
|
23
|
+
children: /* @__PURE__ */ l("div", {
|
|
24
24
|
className: "content",
|
|
25
|
-
children: /* @__PURE__ */ (
|
|
25
|
+
children: /* @__PURE__ */ l("i", { className: "fas fa-thumbs-up" })
|
|
26
26
|
})
|
|
27
27
|
}),
|
|
28
|
-
t && /* @__PURE__ */ (
|
|
28
|
+
t && /* @__PURE__ */ l(i, { children: /* @__PURE__ */ l(f, {
|
|
29
29
|
show: t,
|
|
30
|
-
setShow:
|
|
30
|
+
setShow: a
|
|
31
31
|
}) })
|
|
32
32
|
] })] });
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var m = o(p);
|
|
35
35
|
//#endregion
|
|
36
|
-
export {
|
|
36
|
+
export { m as default };
|
package/dist/GlobalHead.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as e, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
//#region src/components/Global/GlobalHead.jsx
|
|
3
|
-
var t = e();
|
|
4
3
|
function n() {
|
|
5
|
-
return /* @__PURE__ */
|
|
4
|
+
return /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("link", {
|
|
6
5
|
rel: "stylesheet",
|
|
7
6
|
href: "https://cdn.articles.media/fonts/fontawesome/css/all.min.css"
|
|
8
7
|
}) });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
//#region src/components/UI/Link.jsx
|
|
3
|
+
function t(t) {
|
|
4
|
+
let { href: n, children: r, newPage: i, ...a } = t;
|
|
5
|
+
return /* @__PURE__ */ e("a", {
|
|
6
|
+
href: n,
|
|
7
|
+
...a,
|
|
8
|
+
...i && {
|
|
9
|
+
target: "_blank",
|
|
10
|
+
rel: "noopener noreferrer"
|
|
11
|
+
},
|
|
12
|
+
children: r
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { t };
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./
|
|
3
|
-
import { t } from "
|
|
4
|
-
import {
|
|
2
|
+
import { t as e } from "./Button-CU11ETla.js";
|
|
3
|
+
import { useEffect as t, useState as n } from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/Games/ReturnToLauncherButton.jsx
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
id: a,
|
|
6
|
+
function a({ className: a, id: o }) {
|
|
7
|
+
let [s, c] = n(!1);
|
|
8
|
+
if (t(() => {
|
|
9
|
+
c(!0);
|
|
10
|
+
}, []), !s) return null;
|
|
11
|
+
let l = new URLSearchParams(window.location.search), { launcher_mode: u } = Object.fromEntries(l);
|
|
12
|
+
return u = u === "1", u ? /* @__PURE__ */ i(e, {
|
|
13
|
+
className: `${a} w-100`,
|
|
14
|
+
id: o,
|
|
16
15
|
small: !0,
|
|
17
16
|
style: {
|
|
18
17
|
zIndex: 10,
|
|
@@ -21,11 +20,11 @@ function a({ className: e, id: a }) {
|
|
|
21
20
|
onClick: () => {
|
|
22
21
|
window.location.href = "https://games.articles.media";
|
|
23
22
|
},
|
|
24
|
-
children: [/* @__PURE__ */ (
|
|
25
|
-
}) : /* @__PURE__ */
|
|
26
|
-
className: `${
|
|
23
|
+
children: [/* @__PURE__ */ r("i", { className: "fad fa-gamepad" }), "Return to Games"]
|
|
24
|
+
}) : /* @__PURE__ */ i(e, {
|
|
25
|
+
className: `${a} w-100`,
|
|
27
26
|
small: !0,
|
|
28
|
-
id:
|
|
27
|
+
id: o,
|
|
29
28
|
style: {
|
|
30
29
|
zIndex: 10,
|
|
31
30
|
position: "relative"
|
|
@@ -33,7 +32,7 @@ function a({ className: e, id: a }) {
|
|
|
33
32
|
onClick: () => {
|
|
34
33
|
window.location.href = "https://games.articles.media";
|
|
35
34
|
},
|
|
36
|
-
children: [/* @__PURE__ */ (
|
|
35
|
+
children: [/* @__PURE__ */ r("i", { className: "fad fa-gamepad" }), "View our other games"]
|
|
37
36
|
});
|
|
38
37
|
}
|
|
39
38
|
//#endregion
|