@articles-media/articles-dev-box 1.0.9 → 1.0.10
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/{GlobalBody-BbM8X_Jk.cjs → GlobalBody-BQ2qC81K.cjs} +2 -2
- package/dist/{GlobalBody-Dw17Ik2b.js → GlobalBody-tmIC_GWn.js} +33 -33
- package/dist/GlobalBody.cjs +1 -1
- package/dist/GlobalBody.js +1 -1
- package/dist/{StatusModal-BdAmgekT.cjs → StatusModal-BlwaI-2B.cjs} +1 -1
- package/dist/{StatusModal-C757TssZ.js → StatusModal-CAVxWCUq.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/useUserToken.cjs +1 -1
- package/dist/useUserToken.js +7 -7
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-nZSsnGb7.cjs"),l=require("./index-Ddv_TnxK.cjs"),u=require("./index-BlP2-uOi.cjs"),r=require("react"),d=s=>l.axios.get(s).then(t=>t.data),i=s=>{const{data:t,error:n,isLoading:a,mutate:o}=l.useSWR(process.env.NODE_ENV==="development"&&!s?.disable?"http://localhost:3001/api/config":null,d,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{data:t,error:n,isLoading:a,mutate:o}},m=s=>l.axios.get(s).then(t=>t.data),c=s=>{const{data:t,error:n,isLoading:a,mutate:o}=l.useSWR(process.env.NODE_ENV==="development"&&!s?.disable?"http://localhost:3012/api/status":null,m,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{data:t,error:n,isLoading:a,mutate:o}},p=r.lazy(()=>Promise.resolve().then(()=>require("./StatusModal-
|
|
1
|
+
"use strict";const e=require("./jsx-runtime-nZSsnGb7.cjs"),l=require("./index-Ddv_TnxK.cjs"),u=require("./index-BlP2-uOi.cjs"),r=require("react"),d=s=>l.axios.get(s).then(t=>t.data),i=s=>{const{data:t,error:n,isLoading:a,mutate:o}=l.useSWR(process.env.NODE_ENV==="development"&&!s?.disable?"http://localhost:3001/api/config":null,d,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{data:t,error:n,isLoading:a,mutate:o}},m=s=>l.axios.get(s).then(t=>t.data),c=s=>{const{data:t,error:n,isLoading:a,mutate:o}=l.useSWR(process.env.NODE_ENV==="development"&&!s?.disable?"http://localhost:3012/api/status":null,m,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{data:t,error:n,isLoading:a,mutate:o}},p=r.lazy(()=>Promise.resolve().then(()=>require("./StatusModal-BlwaI-2B.cjs")));function x(s){const[t,n]=r.useState(!1),{data:a}=i({disable:process.env.NODE_ENV!=="development"}),{data:o}=c({disable:process.env.NODE_ENV!=="development"});return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("link",{rel:"stylesheet",href:"https://cdn.articles.media/fonts/fontawesome/css/all.min.css"}),process.env.NODE_ENV==="development"&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("style",{children:`
|
|
2
2
|
@keyframes grow-shrink {
|
|
3
3
|
0% { transform: translateY(-50px); }
|
|
4
4
|
50% { transform: translateY(0px); }
|
|
@@ -30,4 +30,4 @@
|
|
|
30
30
|
.articles-global-body.auth-connected {
|
|
31
31
|
border-color: blue;
|
|
32
32
|
}
|
|
33
|
-
`}),e.jsxRuntimeExports.
|
|
33
|
+
`}),e.jsxRuntimeExports.jsx("div",{onClick:()=>{n(!0)},className:u.classNames("articles-global-body",{"main-connected":a,"auth-connected":o}),children:e.jsxRuntimeExports.jsx("div",{className:"content",children:e.jsxRuntimeExports.jsx("i",{className:"fas fa-thumbs-up"})})}),t&&e.jsxRuntimeExports.jsx(r.Suspense,{children:e.jsxRuntimeExports.jsx(p,{show:t,setShow:n})})]})]})}const h=r.memo(x);exports.GlobalBody_default=h;exports.useAuthSiteStatus=c;exports.useMainSiteStatus=i;
|
|
@@ -36,7 +36,7 @@ const p = (s) => l.get(s).then((t) => t.data), f = (s) => {
|
|
|
36
36
|
isLoading: o,
|
|
37
37
|
mutate: n
|
|
38
38
|
};
|
|
39
|
-
}, x = c(() => import("./StatusModal-
|
|
39
|
+
}, x = c(() => import("./StatusModal-CAVxWCUq.js"));
|
|
40
40
|
function g(s) {
|
|
41
41
|
const [t, a] = u(!1), {
|
|
42
42
|
data: o
|
|
@@ -47,8 +47,16 @@ function g(s) {
|
|
|
47
47
|
} = b({
|
|
48
48
|
disable: process.env.NODE_ENV !== "development"
|
|
49
49
|
});
|
|
50
|
-
return /* @__PURE__ */ e.
|
|
51
|
-
/* @__PURE__ */ e.jsx(
|
|
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: `
|
|
52
60
|
@keyframes grow-shrink {
|
|
53
61
|
0% { transform: translateY(-50px); }
|
|
54
62
|
50% { transform: translateY(0px); }
|
|
@@ -81,39 +89,31 @@ function g(s) {
|
|
|
81
89
|
border-color: blue;
|
|
82
90
|
}
|
|
83
91
|
` }),
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
{
|
|
93
|
-
"main-connected": o,
|
|
94
|
-
"auth-connected": n
|
|
95
|
-
}
|
|
96
|
-
),
|
|
97
|
-
children: [
|
|
98
|
-
/* @__PURE__ */ e.jsx(
|
|
99
|
-
"link",
|
|
92
|
+
/* @__PURE__ */ e.jsx(
|
|
93
|
+
"div",
|
|
94
|
+
{
|
|
95
|
+
onClick: () => {
|
|
96
|
+
a(!0);
|
|
97
|
+
},
|
|
98
|
+
className: i(
|
|
99
|
+
"articles-global-body",
|
|
100
100
|
{
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
"main-connected": o,
|
|
102
|
+
"auth-connected": n
|
|
103
103
|
}
|
|
104
104
|
),
|
|
105
|
-
/* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx("i", { className: "fas fa-thumbs-up" }) })
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
] })
|
|
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
117
|
}
|
|
118
118
|
const E = d(g);
|
|
119
119
|
export {
|
package/dist/GlobalBody.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("./jsx-runtime-nZSsnGb7.cjs");const e=require("./GlobalBody-
|
|
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;
|
package/dist/GlobalBody.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-nZSsnGb7.cjs"),j=require("react"),l=require("./Button-0ZK0NKiK.cjs"),S=require("./GlobalBody-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-nZSsnGb7.cjs"),j=require("react"),l=require("./Button-0ZK0NKiK.cjs"),S=require("./GlobalBody-BQ2qC81K.cjs"),t=require("./Modal-Wmqy9fOm.cjs");function g({show:h,setShow:u}){const[s,p]=j.useState(!1),[i,E]=j.useState(!1),c=(R,m,f)=>f?"...":m?m.response?.status||"Error":R?"200":"-",{data:r,error:n,isLoading:d}=S.useMainSiteStatus({disable:process.env.NODE_ENV!=="development"}),{data:a,error:o,isLoading:x}=S.useAuthSiteStatus({disable:process.env.NODE_ENV!=="development"});return e.jsxRuntimeExports.jsxs(t.Modal,{show:h,size:"md",className:"articles-modal",centered:!0,onHide:()=>u(!1),children:[e.jsxRuntimeExports.jsx(t.Modal.Header,{children:e.jsxRuntimeExports.jsx(t.Modal.Title,{children:"Status Details"})}),e.jsxRuntimeExports.jsxs(t.Modal.Body,{children:[e.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center mb-2",children:[e.jsxRuntimeExports.jsxs("h5",{className:"mb-0 me-2",children:["Main Site Status: ",c(r,n,d)]}),e.jsxRuntimeExports.jsxs(l.ArticlesButton,{variant:"link",size:"sm",className:"p-0",onClick:()=>p(!s),children:[s?"Hide":"View"," More"]})]}),s&&e.jsxRuntimeExports.jsxs("pre",{children:[d&&"Loading...",n&&`Error: ${n.message}`,r&&JSON.stringify(r,null,2)]}),e.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center mb-2",children:[e.jsxRuntimeExports.jsxs("h5",{className:"mb-0 me-2",children:["Auth Site Status: ",c(a,o,x)]}),e.jsxRuntimeExports.jsxs(l.ArticlesButton,{variant:"link",size:"sm",className:"p-0",onClick:()=>E(!i),children:[i?"Hide":"View"," More"]})]}),i&&e.jsxRuntimeExports.jsxs("pre",{children:[x&&"Loading...",o&&`Error: ${o.message}`,a&&JSON.stringify(a,null,2)]})]}),e.jsxRuntimeExports.jsx(t.Modal.Footer,{className:"justify-content-between",children:e.jsxRuntimeExports.jsx(l.ArticlesButton,{variant:"articles",onClick:()=>{u(!1)},children:"Close"})})]})}exports.default=g;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-tc70JA_2.js";
|
|
2
2
|
import { useState as h } from "react";
|
|
3
3
|
import { A as o } from "./Button-_Quon8UV.js";
|
|
4
|
-
import { u as g, a as E } from "./GlobalBody-
|
|
4
|
+
import { u as g, a as E } from "./GlobalBody-tmIC_GWn.js";
|
|
5
5
|
import { M as s } from "./Modal-C9oYRgI1.js";
|
|
6
6
|
function A({
|
|
7
7
|
show: f,
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ReturnToLauncherButton.cjs"),r=require("./ArticlesAd.cjs"),o=require("./Ad.cjs"),t=require("./GameScoreboard.cjs"),s=require("./GlobalHead.cjs"),u=require("./GlobalBody-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ReturnToLauncherButton.cjs"),r=require("./ArticlesAd.cjs"),o=require("./Ad.cjs"),t=require("./GameScoreboard.cjs"),s=require("./GlobalHead.cjs"),u=require("./GlobalBody-BQ2qC81K.cjs"),a=require("./ViewUserModal.cjs"),l=require("./useUserDetails.cjs"),n=require("./useUserToken.cjs");exports.ReturnToLauncherButton=e;exports.ArticlesAd=r;exports.Ad=o;exports.GameScoreboard=t;exports.GlobalHead=s;exports.GlobalBody=u.GlobalBody_default;exports.ViewUserModal=a;exports.useUserDetails=l;exports.useUserToken=n;
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { default as t } from "./ArticlesAd.js";
|
|
|
3
3
|
import { default as s } from "./Ad.js";
|
|
4
4
|
import { default as d } from "./GameScoreboard.js";
|
|
5
5
|
import { default as m } from "./GlobalHead.js";
|
|
6
|
-
import { G as x } from "./GlobalBody-
|
|
6
|
+
import { G as x } from "./GlobalBody-tmIC_GWn.js";
|
|
7
7
|
import { default as G } from "./ViewUserModal.js";
|
|
8
8
|
import { default as c } from "./useUserDetails.js";
|
|
9
9
|
import { default as A } from "./useUserToken.js";
|
package/dist/useUserToken.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./index-Ddv_TnxK.cjs"),
|
|
1
|
+
"use strict";const s=require("./index-Ddv_TnxK.cjs"),a=e=>s.axios.get(e).then(t=>t.data),c=e=>{const{data:t,error:o,isLoading:n,mutate:r}=s.useSWR(process.env.NODE_ENV==="development"?`http://localhost:${e}/api/token`:"/api/token",a,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{data:t,error:o,isLoading:n,mutate:r}};module.exports=c;
|
package/dist/useUserToken.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { u as r, a as n } from "./index-DLYx67wi.js";
|
|
2
|
-
const
|
|
3
|
-
const { data: t, error: a, isLoading:
|
|
2
|
+
const l = (e) => n.get(e).then((t) => t.data), d = (e) => {
|
|
3
|
+
const { data: t, error: a, isLoading: o, mutate: s } = r(
|
|
4
4
|
// "http://localhost:3012/api/auth/session",
|
|
5
|
-
process.env.NODE_ENV === "development" ? `http://localhost:${e}/api/token` : "
|
|
6
|
-
|
|
5
|
+
process.env.NODE_ENV === "development" ? `http://localhost:${e}/api/token` : "/api/token",
|
|
6
|
+
l,
|
|
7
7
|
{
|
|
8
8
|
revalidateOnFocus: !1,
|
|
9
9
|
revalidateOnReconnect: !1,
|
|
@@ -13,10 +13,10 @@ const c = (e) => n.get(e).then((t) => t.data), i = (e) => {
|
|
|
13
13
|
return {
|
|
14
14
|
data: t,
|
|
15
15
|
error: a,
|
|
16
|
-
isLoading:
|
|
17
|
-
mutate:
|
|
16
|
+
isLoading: o,
|
|
17
|
+
mutate: s
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
d as default
|
|
22
22
|
};
|
package/package.json
CHANGED