@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 @@
|
|
|
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;
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
};
|
package/package.json
CHANGED