@articles-media/articles-dev-box 1.0.13 → 1.0.14
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.cjs +1 -0
- package/dist/Ad.js +600 -0
- package/dist/AdConfirmExitModal-CKkMAvBK.js +72 -0
- package/dist/AdConfirmExitModal-CcSxmXKT.cjs +1 -0
- package/dist/AdDetailsModal-Bp5hZm9N.js +83 -0
- package/dist/AdDetailsModal-k840vrS2.cjs +1 -0
- package/dist/ArticlesAd.cjs +1 -0
- package/dist/ArticlesAd.js +16 -0
- package/dist/Button-0ZK0NKiK.cjs +1 -0
- package/dist/Button-_Quon8UV.js +54 -0
- package/dist/FriendsList.cjs +1 -0
- package/dist/FriendsList.js +133 -0
- package/dist/GameScoreboard.cjs +1 -0
- package/dist/GameScoreboard.js +182 -0
- package/dist/GlobalBody-BQ2qC81K.cjs +33 -0
- package/dist/GlobalBody-tmIC_GWn.js +123 -0
- package/dist/GlobalBody.cjs +1 -0
- package/dist/GlobalBody.js +7 -0
- package/dist/GlobalHead.cjs +1 -0
- package/dist/GlobalHead.js +13 -0
- package/dist/Modal-C9oYRgI1.js +2073 -0
- package/dist/Modal-Wmqy9fOm.cjs +2 -0
- package/dist/ReturnToLauncherButton.cjs +1 -0
- package/dist/ReturnToLauncherButton.js +50 -0
- package/dist/StatusModal-BlwaI-2B.cjs +1 -0
- package/dist/StatusModal-CAVxWCUq.js +71 -0
- package/dist/ViewUserModal.cjs +1 -0
- package/dist/ViewUserModal.js +3189 -0
- package/dist/articles-dev-box.css +1 -0
- package/dist/index-BlP2-uOi.cjs +1 -0
- package/dist/index-DLYx67wi.js +2394 -0
- package/dist/index-Ddv_TnxK.cjs +6 -0
- package/dist/index-YnD2EP-S.js +43 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +22 -0
- package/dist/jsx-runtime-nZSsnGb7.cjs +6 -0
- package/dist/jsx-runtime-tc70JA_2.js +264 -0
- package/dist/numberWithCommas-CRgrb58X.cjs +1 -0
- package/dist/numberWithCommas-DnAkiOFL.js +1256 -0
- package/dist/useUserDetails.cjs +1 -0
- package/dist/useUserDetails.js +33 -0
- package/dist/useUserToken.cjs +1 -0
- package/dist/useUserToken.js +22 -0
- package/package.json +1 -1
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { u as r, a as l } from "./index-DLYx67wi.js";
|
|
3
|
+
import { c as i } from "./index-YnD2EP-S.js";
|
|
4
|
+
import { lazy as c, memo as d, useState as u, Suspense as m } from "react";
|
|
5
|
+
const p = (s) => l.get(s).then((t) => t.data), f = (s) => {
|
|
6
|
+
const { data: t, error: a, isLoading: o, mutate: n } = r(
|
|
7
|
+
// "http://localhost:3012/api/auth/session",
|
|
8
|
+
process.env.NODE_ENV === "development" && !s?.disable ? "http://localhost:3001/api/config" : null,
|
|
9
|
+
p,
|
|
10
|
+
{
|
|
11
|
+
revalidateOnFocus: !1,
|
|
12
|
+
revalidateOnReconnect: !1,
|
|
13
|
+
shouldRetryOnError: !1
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
return {
|
|
17
|
+
data: t,
|
|
18
|
+
error: a,
|
|
19
|
+
isLoading: o,
|
|
20
|
+
mutate: n
|
|
21
|
+
};
|
|
22
|
+
}, h = (s) => l.get(s).then((t) => t.data), b = (s) => {
|
|
23
|
+
const { data: t, error: a, isLoading: o, mutate: n } = r(
|
|
24
|
+
// "http://localhost:3012/api/auth/session",
|
|
25
|
+
process.env.NODE_ENV === "development" && !s?.disable ? "http://localhost:3012/api/status" : null,
|
|
26
|
+
h,
|
|
27
|
+
{
|
|
28
|
+
revalidateOnFocus: !1,
|
|
29
|
+
revalidateOnReconnect: !1,
|
|
30
|
+
shouldRetryOnError: !1
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
return {
|
|
34
|
+
data: t,
|
|
35
|
+
error: a,
|
|
36
|
+
isLoading: o,
|
|
37
|
+
mutate: n
|
|
38
|
+
};
|
|
39
|
+
}, x = c(() => import("./StatusModal-CAVxWCUq.js"));
|
|
40
|
+
function g(s) {
|
|
41
|
+
const [t, a] = u(!1), {
|
|
42
|
+
data: o
|
|
43
|
+
} = f({
|
|
44
|
+
disable: process.env.NODE_ENV !== "development"
|
|
45
|
+
}), {
|
|
46
|
+
data: n
|
|
47
|
+
} = b({
|
|
48
|
+
disable: process.env.NODE_ENV !== "development"
|
|
49
|
+
});
|
|
50
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
51
|
+
/* @__PURE__ */ e.jsx(
|
|
52
|
+
"link",
|
|
53
|
+
{
|
|
54
|
+
rel: "stylesheet",
|
|
55
|
+
href: "https://cdn.articles.media/fonts/fontawesome/css/all.min.css"
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
process.env.NODE_ENV === "development" && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
59
|
+
/* @__PURE__ */ e.jsx("style", { children: `
|
|
60
|
+
@keyframes grow-shrink {
|
|
61
|
+
0% { transform: translateY(-50px); }
|
|
62
|
+
50% { transform: translateY(0px); }
|
|
63
|
+
100% { transform: translateY(-50px); }
|
|
64
|
+
}
|
|
65
|
+
.articles-global-body {
|
|
66
|
+
transform: translateY(-40px);
|
|
67
|
+
z-index: 1055!important;
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 0;
|
|
70
|
+
left: 0;
|
|
71
|
+
display: flex;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
align-items: center;
|
|
74
|
+
width: 50px;
|
|
75
|
+
height: 50px;
|
|
76
|
+
margin: 0;
|
|
77
|
+
padding: 0;
|
|
78
|
+
background-color: yellow;
|
|
79
|
+
color: #FFFFFF;
|
|
80
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
81
|
+
animation: grow-shrink 2s ease-in;
|
|
82
|
+
border: 4px solid red;
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
}
|
|
85
|
+
.articles-global-body.main-connected {
|
|
86
|
+
background-color: green;
|
|
87
|
+
}
|
|
88
|
+
.articles-global-body.auth-connected {
|
|
89
|
+
border-color: blue;
|
|
90
|
+
}
|
|
91
|
+
` }),
|
|
92
|
+
/* @__PURE__ */ e.jsx(
|
|
93
|
+
"div",
|
|
94
|
+
{
|
|
95
|
+
onClick: () => {
|
|
96
|
+
a(!0);
|
|
97
|
+
},
|
|
98
|
+
className: i(
|
|
99
|
+
"articles-global-body",
|
|
100
|
+
{
|
|
101
|
+
"main-connected": o,
|
|
102
|
+
"auth-connected": n
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx("i", { className: "fas fa-thumbs-up" }) })
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
t && /* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsx(
|
|
109
|
+
x,
|
|
110
|
+
{
|
|
111
|
+
show: t,
|
|
112
|
+
setShow: a
|
|
113
|
+
}
|
|
114
|
+
) })
|
|
115
|
+
] })
|
|
116
|
+
] });
|
|
117
|
+
}
|
|
118
|
+
const E = d(g);
|
|
119
|
+
export {
|
|
120
|
+
E as G,
|
|
121
|
+
b as a,
|
|
122
|
+
f as u
|
|
123
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require("./jsx-runtime-nZSsnGb7.cjs");const e=require("./GlobalBody-BQ2qC81K.cjs");require("./index-BlP2-uOi.cjs");require("react");module.exports=e.GlobalBody_default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./jsx-runtime-nZSsnGb7.cjs");function e(){return s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:s.jsxRuntimeExports.jsx("link",{rel:"stylesheet",href:"https://cdn.articles.media/fonts/fontawesome/css/all.min.css"})})}module.exports=e;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
+
function t() {
|
|
3
|
+
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(
|
|
4
|
+
"link",
|
|
5
|
+
{
|
|
6
|
+
rel: "stylesheet",
|
|
7
|
+
href: "https://cdn.articles.media/fonts/fontawesome/css/all.min.css"
|
|
8
|
+
}
|
|
9
|
+
) });
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
t as default
|
|
13
|
+
};
|