@articles-media/articles-dev-box 1.0.12 → 1.0.13
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/package.json +5 -1
- package/dist/Ad.cjs +0 -1
- package/dist/Ad.js +0 -600
- package/dist/AdConfirmExitModal-CKkMAvBK.js +0 -72
- package/dist/AdConfirmExitModal-CcSxmXKT.cjs +0 -1
- package/dist/AdDetailsModal-Bp5hZm9N.js +0 -83
- package/dist/AdDetailsModal-k840vrS2.cjs +0 -1
- package/dist/ArticlesAd.cjs +0 -1
- package/dist/ArticlesAd.js +0 -16
- package/dist/Button-0ZK0NKiK.cjs +0 -1
- package/dist/Button-_Quon8UV.js +0 -54
- package/dist/GameScoreboard.cjs +0 -1
- package/dist/GameScoreboard.js +0 -182
- package/dist/GlobalBody-BQ2qC81K.cjs +0 -33
- package/dist/GlobalBody-tmIC_GWn.js +0 -123
- package/dist/GlobalBody.cjs +0 -1
- package/dist/GlobalBody.js +0 -7
- package/dist/GlobalHead.cjs +0 -1
- package/dist/GlobalHead.js +0 -13
- package/dist/Modal-C9oYRgI1.js +0 -2073
- package/dist/Modal-Wmqy9fOm.cjs +0 -2
- package/dist/ReturnToLauncherButton.cjs +0 -1
- package/dist/ReturnToLauncherButton.js +0 -50
- package/dist/StatusModal-BlwaI-2B.cjs +0 -1
- package/dist/StatusModal-CAVxWCUq.js +0 -71
- package/dist/ViewUserModal.cjs +0 -1
- package/dist/ViewUserModal.js +0 -3189
- package/dist/articles-dev-box.css +0 -1
- package/dist/index-BlP2-uOi.cjs +0 -1
- package/dist/index-DLYx67wi.js +0 -2394
- package/dist/index-Ddv_TnxK.cjs +0 -6
- package/dist/index-YnD2EP-S.js +0 -43
- package/dist/index.cjs +0 -1
- package/dist/index.js +0 -20
- 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/useUserDetails.js +0 -33
- package/dist/useUserToken.cjs +0 -1
- package/dist/useUserToken.js +0 -22
package/dist/useUserDetails.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("./index-Ddv_TnxK.cjs"),a=e=>s.axios.get(e.url,{params:{token:e.token}}).then(t=>t.data),l=e=>{const{data:t,error:n,isLoading:o,mutate:r}=s.useSWR(e.token?{url:(process.env.NODE_ENV==="development"?"http://localhost:3012":"https://accounts.articles.media")+"/api/auth/session",token:e.token}:null,a,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{data:t,error:n,isLoading:o,mutate:r}};module.exports=l;
|
package/dist/useUserDetails.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { u as n, a as r } from "./index-DLYx67wi.js";
|
|
2
|
-
const l = (e) => r.get(e.url, {
|
|
3
|
-
// headers: {
|
|
4
|
-
// Authorization: `Bearer ${params.token}`
|
|
5
|
-
// },
|
|
6
|
-
params: {
|
|
7
|
-
token: e.token
|
|
8
|
-
}
|
|
9
|
-
}).then((t) => t.data), c = (e) => {
|
|
10
|
-
const { data: t, error: s, isLoading: a, mutate: o } = n(
|
|
11
|
-
e.token ? {
|
|
12
|
-
// url: "/api/details",
|
|
13
|
-
// url: "http://localhost:3012/api/auth/session",
|
|
14
|
-
url: (process.env.NODE_ENV === "development" ? "http://localhost:3012" : "https://accounts.articles.media") + "/api/auth/session",
|
|
15
|
-
token: e.token
|
|
16
|
-
} : null,
|
|
17
|
-
l,
|
|
18
|
-
{
|
|
19
|
-
revalidateOnFocus: !1,
|
|
20
|
-
revalidateOnReconnect: !1,
|
|
21
|
-
shouldRetryOnError: !1
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
return {
|
|
25
|
-
data: t,
|
|
26
|
-
error: s,
|
|
27
|
-
isLoading: a,
|
|
28
|
-
mutate: o
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
c as default
|
|
33
|
-
};
|
package/dist/useUserToken.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { u as r, a as n } from "./index-DLYx67wi.js";
|
|
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
|
-
// "http://localhost:3012/api/auth/session",
|
|
5
|
-
process.env.NODE_ENV === "development" ? `http://localhost:${e}/api/token` : "/api/token",
|
|
6
|
-
l,
|
|
7
|
-
{
|
|
8
|
-
revalidateOnFocus: !1,
|
|
9
|
-
revalidateOnReconnect: !1,
|
|
10
|
-
shouldRetryOnError: !1
|
|
11
|
-
}
|
|
12
|
-
);
|
|
13
|
-
return {
|
|
14
|
-
data: t,
|
|
15
|
-
error: a,
|
|
16
|
-
isLoading: o,
|
|
17
|
-
mutate: s
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export {
|
|
21
|
-
d as default
|
|
22
|
-
};
|