@articles-media/articles-dev-box 1.0.16 → 1.0.22
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/README.md +10 -5
- package/dist/Ad-Ck5UdTq3.js +387 -0
- package/dist/Ad-DYtftKNV.cjs +1 -0
- package/dist/Ad.cjs +1 -1
- package/dist/Ad.js +2 -604
- package/dist/AdConfirmExitModal-CJ-HtcVC.js +56 -0
- package/dist/AdConfirmExitModal-CRCnzYQM.cjs +1 -0
- package/dist/AdDetailsModal-DRNRTL2W.js +108 -0
- package/dist/AdDetailsModal-g0n7LiV6.cjs +1 -0
- package/dist/ArticlesAd.cjs +1 -1
- package/dist/ArticlesAd.js +16 -15
- package/dist/Button-BlAdEbSd.js +30 -0
- package/dist/Button-CbpRj01E.cjs +1 -0
- package/dist/CreditsModal.cjs +1 -0
- package/dist/CreditsModal.js +56 -0
- package/dist/DarkModeHandler.cjs +1 -0
- package/dist/DarkModeHandler.js +18 -0
- package/dist/FriendsList.cjs +1 -1
- package/dist/FriendsList.js +77 -121
- package/dist/GameScoreboard-CBY3JsFa.js +165 -0
- package/dist/GameScoreboard-DdOCRxON.cjs +1 -0
- package/dist/GameScoreboard.cjs +1 -1
- package/dist/GameScoreboard.js +2 -190
- package/dist/GlobalBody.cjs +33 -1
- package/dist/GlobalBody.js +36 -7
- package/dist/GlobalHead.cjs +1 -1
- package/dist/GlobalHead.js +10 -12
- package/dist/Link-MFZblBb4.js +17 -0
- package/dist/Link-c7exNCJ3.cjs +1 -0
- package/dist/Modal-BX1s6CCU.js +1631 -0
- package/dist/Modal-DP9CeAVD.cjs +3 -0
- package/dist/ReturnToLauncherButton.cjs +1 -1
- package/dist/ReturnToLauncherButton.js +39 -54
- package/dist/SettingsModal--sWLmLGp.cjs +1 -0
- package/dist/SettingsModal-XI2dMI09.js +247 -0
- package/dist/SettingsModal.cjs +1 -0
- package/dist/SettingsModal.js +2 -0
- package/dist/StatusModal-D7WDDR9P.cjs +1 -0
- package/dist/StatusModal-elrPJvX1.js +70 -0
- package/dist/ViewUserModal-DDjWLpyM.js +3094 -0
- package/dist/ViewUserModal-DPVcjXNU.cjs +1 -0
- package/dist/ViewUserModal.cjs +1 -1
- package/dist/ViewUserModal.js +3 -3189
- package/dist/articles-dev-box.css +2 -1
- package/dist/chunk-350yNsax.cjs +1 -0
- package/dist/classnames-DP6dWde5.js +31 -0
- package/dist/classnames-pS64X3rL.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +16 -24
- package/dist/jsx-runtime-VZk6y-ec.js +191 -0
- package/dist/jsx-runtime-hCcDh67y.cjs +6 -0
- package/dist/numberWithCommas-BSKBdR-e.js +18 -0
- package/dist/numberWithCommas-D9tgiUnq.cjs +1 -0
- package/dist/useAuthSiteStatus-1rHjYC4N.js +29 -0
- package/dist/useAuthSiteStatus-P5kHc_Bz.cjs +1 -0
- package/dist/useFullscreen.cjs +1 -0
- package/dist/useFullscreen.js +24 -0
- package/dist/useUserDetails.cjs +1 -1
- package/dist/useUserDetails.js +22 -32
- package/dist/useUserFriends.cjs +1 -1
- package/dist/useUserFriends.js +29 -51
- package/dist/useUserToken.cjs +1 -1
- package/dist/useUserToken.js +16 -21
- package/package.json +25 -10
- 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/Button-0ZK0NKiK.cjs +0 -1
- package/dist/Button-_Quon8UV.js +0 -54
- package/dist/GlobalBody-BQ2qC81K.cjs +0 -33
- package/dist/GlobalBody-tmIC_GWn.js +0 -123
- package/dist/Modal-C9oYRgI1.js +0 -2073
- package/dist/Modal-Wmqy9fOm.cjs +0 -2
- package/dist/StatusModal-BlwaI-2B.cjs +0 -1
- package/dist/StatusModal-CAVxWCUq.js +0 -71
- 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/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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@articles-media/articles-dev-box",
|
|
3
3
|
"description": "Shared code, functions, and components for different Articles Media projects.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.22",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"imports": {
|
|
7
7
|
"#root/src/*": "./src/*"
|
|
@@ -48,6 +48,18 @@
|
|
|
48
48
|
"import": "./dist/ViewUserModal.js",
|
|
49
49
|
"require": "./dist/ViewUserModal.cjs"
|
|
50
50
|
},
|
|
51
|
+
"./SettingsModal": {
|
|
52
|
+
"import": "./dist/SettingsModal.js",
|
|
53
|
+
"require": "./dist/SettingsModal.cjs"
|
|
54
|
+
},
|
|
55
|
+
"./CreditsModal": {
|
|
56
|
+
"import": "./dist/CreditsModal.js",
|
|
57
|
+
"require": "./dist/CreditsModal.cjs"
|
|
58
|
+
},
|
|
59
|
+
"./DarkModeHandler": {
|
|
60
|
+
"import": "./dist/DarkModeHandler.js",
|
|
61
|
+
"require": "./dist/DarkModeHandler.cjs"
|
|
62
|
+
},
|
|
51
63
|
"./FriendsList": {
|
|
52
64
|
"import": "./dist/FriendsList.js",
|
|
53
65
|
"require": "./dist/FriendsList.cjs"
|
|
@@ -64,6 +76,10 @@
|
|
|
64
76
|
"import": "./dist/useUserFriends.js",
|
|
65
77
|
"require": "./dist/useUserFriends.cjs"
|
|
66
78
|
},
|
|
79
|
+
"./useFullscreen": {
|
|
80
|
+
"import": "./dist/useFullscreen.js",
|
|
81
|
+
"require": "./dist/useFullscreen.cjs"
|
|
82
|
+
},
|
|
67
83
|
"./dist/style.css": "./dist/articles-dev-box.css",
|
|
68
84
|
"./dist/articles-dev-box.css": "./dist/articles-dev-box.css"
|
|
69
85
|
},
|
|
@@ -79,20 +95,19 @@
|
|
|
79
95
|
"license": "ISC",
|
|
80
96
|
"peerDependencies": {
|
|
81
97
|
"react": ">=19.2.3",
|
|
82
|
-
"react-dom": ">=19.2.3"
|
|
98
|
+
"react-dom": ">=19.2.3",
|
|
99
|
+
"swr": "^2.0.0",
|
|
100
|
+
"date-fns": "^4.0.0",
|
|
101
|
+
"react-intersection-observer": "^10.0.0",
|
|
102
|
+
"react-bootstrap": "^2.0.0"
|
|
83
103
|
},
|
|
84
104
|
"devDependencies": {
|
|
85
|
-
"@vitejs/plugin-react": "^
|
|
105
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
86
106
|
"classnames": "^2.5.1",
|
|
87
107
|
"nodemon": "^3.1.11",
|
|
88
108
|
"react-bootstrap": "^2.10.10",
|
|
89
109
|
"sass": "^1.97.2",
|
|
90
|
-
"vite": "^
|
|
110
|
+
"vite": "^8.0.3"
|
|
91
111
|
},
|
|
92
|
-
"dependencies": {
|
|
93
|
-
"axios": "^1.13.2",
|
|
94
|
-
"date-fns": "^4.1.0",
|
|
95
|
-
"react-intersection-observer": "^10.0.0",
|
|
96
|
-
"swr": "^2.3.8"
|
|
97
|
-
}
|
|
112
|
+
"dependencies": {}
|
|
98
113
|
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
-
import { useEffect as l } from "react";
|
|
3
|
-
import { L as n } from "./numberWithCommas-DnAkiOFL.js";
|
|
4
|
-
import { M as s } from "./Modal-C9oYRgI1.js";
|
|
5
|
-
import { A as i } from "./Button-_Quon8UV.js";
|
|
6
|
-
function x(t) {
|
|
7
|
-
let { setModalShow: r, ad: o, previewData: d } = t;
|
|
8
|
-
l(() => {
|
|
9
|
-
console.log("Mounted");
|
|
10
|
-
}, []);
|
|
11
|
-
const a = () => {
|
|
12
|
-
r(!1);
|
|
13
|
-
};
|
|
14
|
-
return /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
15
|
-
s,
|
|
16
|
-
{
|
|
17
|
-
show: !0,
|
|
18
|
-
backdropClassName: "ad-details-modal-backdrop",
|
|
19
|
-
className: "articles-modal",
|
|
20
|
-
centered: !0,
|
|
21
|
-
onHide: a,
|
|
22
|
-
size: "md",
|
|
23
|
-
children: [
|
|
24
|
-
/* @__PURE__ */ e.jsx(s.Header, { className: "align-items-center", closeButton: !0, children: /* @__PURE__ */ e.jsx(s.Title, { children: "Confirm Exit" }) }),
|
|
25
|
-
/* @__PURE__ */ e.jsxs(
|
|
26
|
-
s.Body,
|
|
27
|
-
{
|
|
28
|
-
className: "",
|
|
29
|
-
children: [
|
|
30
|
-
/* @__PURE__ */ e.jsx("div", { className: "ratio ratio-16x9 bg-black mb-2" }),
|
|
31
|
-
/* @__PURE__ */ e.jsx("p", { className: "mb-1", children: "This advertiser has been approved and verified to display ads but always be cautious when interacting with ads. Any offsite interactions are at your own risk and should be approached with caution. We can not be held responsible for any issues that may arise." })
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
),
|
|
35
|
-
/* @__PURE__ */ e.jsxs(s.Footer, { className: "d-flex justify-content-between", children: [
|
|
36
|
-
/* @__PURE__ */ e.jsxs(
|
|
37
|
-
i,
|
|
38
|
-
{
|
|
39
|
-
variant: "articles",
|
|
40
|
-
onClick: a,
|
|
41
|
-
children: [
|
|
42
|
-
/* @__PURE__ */ e.jsx("i", { className: "fad fa-times" }),
|
|
43
|
-
"Close"
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
),
|
|
47
|
-
/* @__PURE__ */ e.jsx(
|
|
48
|
-
n,
|
|
49
|
-
{
|
|
50
|
-
href: o?.website,
|
|
51
|
-
newPage: !0,
|
|
52
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
53
|
-
i,
|
|
54
|
-
{
|
|
55
|
-
variant: "articles",
|
|
56
|
-
onClick: a,
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ e.jsx("i", { className: "fad fa-link" }),
|
|
59
|
-
"Proceed"
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
}
|
|
64
|
-
)
|
|
65
|
-
] })
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
) });
|
|
69
|
-
}
|
|
70
|
-
export {
|
|
71
|
-
x as default
|
|
72
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-nZSsnGb7.cjs"),n=require("react"),l=require("./numberWithCommas-CRgrb58X.cjs"),s=require("./Modal-Wmqy9fOm.cjs"),i=require("./Button-0ZK0NKiK.cjs");function d(a){let{setModalShow:r,ad:o,previewData:c}=a;n.useEffect(()=>{console.log("Mounted")},[]);const t=()=>{r(!1)};return e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsxs(s.Modal,{show:!0,backdropClassName:"ad-details-modal-backdrop",className:"articles-modal",centered:!0,onHide:t,size:"md",children:[e.jsxRuntimeExports.jsx(s.Modal.Header,{className:"align-items-center",closeButton:!0,children:e.jsxRuntimeExports.jsx(s.Modal.Title,{children:"Confirm Exit"})}),e.jsxRuntimeExports.jsxs(s.Modal.Body,{className:"",children:[e.jsxRuntimeExports.jsx("div",{className:"ratio ratio-16x9 bg-black mb-2"}),e.jsxRuntimeExports.jsx("p",{className:"mb-1",children:"This advertiser has been approved and verified to display ads but always be cautious when interacting with ads. Any offsite interactions are at your own risk and should be approached with caution. We can not be held responsible for any issues that may arise."})]}),e.jsxRuntimeExports.jsxs(s.Modal.Footer,{className:"d-flex justify-content-between",children:[e.jsxRuntimeExports.jsxs(i.ArticlesButton,{variant:"articles",onClick:t,children:[e.jsxRuntimeExports.jsx("i",{className:"fad fa-times"}),"Close"]}),e.jsxRuntimeExports.jsx(l.Link,{href:o?.website,newPage:!0,children:e.jsxRuntimeExports.jsxs(i.ArticlesButton,{variant:"articles",onClick:t,children:[e.jsxRuntimeExports.jsx("i",{className:"fad fa-link"}),"Proceed"]})})]})]})})}exports.default=d;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { j as s } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
-
import { useEffect as t } from "react";
|
|
3
|
-
import { L as n } from "./numberWithCommas-DnAkiOFL.js";
|
|
4
|
-
import { M as i } from "./Modal-C9oYRgI1.js";
|
|
5
|
-
import { A as l } from "./Button-_Quon8UV.js";
|
|
6
|
-
function b(d) {
|
|
7
|
-
let { setModalShow: r, ad: e, previewData: c } = d;
|
|
8
|
-
t(() => {
|
|
9
|
-
console.log("Mounted");
|
|
10
|
-
}, []);
|
|
11
|
-
const a = () => {
|
|
12
|
-
r(!1);
|
|
13
|
-
};
|
|
14
|
-
return /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsxs(
|
|
15
|
-
i,
|
|
16
|
-
{
|
|
17
|
-
show: !0,
|
|
18
|
-
backdropClassName: "ad-details-modal-backdrop",
|
|
19
|
-
className: "articles-modal",
|
|
20
|
-
centered: !0,
|
|
21
|
-
onHide: a,
|
|
22
|
-
size: "md",
|
|
23
|
-
children: [
|
|
24
|
-
/* @__PURE__ */ s.jsx(i.Header, { className: "align-items-center", closeButton: !0, children: /* @__PURE__ */ s.jsx(i.Title, { children: "Ad Details" }) }),
|
|
25
|
-
/* @__PURE__ */ s.jsxs(
|
|
26
|
-
i.Body,
|
|
27
|
-
{
|
|
28
|
-
className: "",
|
|
29
|
-
children: [
|
|
30
|
-
/* @__PURE__ */ s.jsxs("p", { className: "mb-1", children: [
|
|
31
|
-
"Advertiser: ",
|
|
32
|
-
/* @__PURE__ */ s.jsx("b", { children: e?.business })
|
|
33
|
-
] }),
|
|
34
|
-
/* @__PURE__ */ s.jsxs("p", { className: "mb-0", children: [
|
|
35
|
-
"Ad ID: ",
|
|
36
|
-
/* @__PURE__ */ s.jsx("b", { children: c?._id || e._id })
|
|
37
|
-
] }),
|
|
38
|
-
/* @__PURE__ */ s.jsx("hr", {}),
|
|
39
|
-
/* @__PURE__ */ s.jsx("div", { className: "mb-1", children: "This ad is being shown to you for the following reasons" }),
|
|
40
|
-
e.city ? /* @__PURE__ */ s.jsxs("div", { children: [
|
|
41
|
-
/* @__PURE__ */ s.jsx("div", { className: "h4 mb-1", children: e.business }),
|
|
42
|
-
/* @__PURE__ */ s.jsx("div", { children: "Is advertising to all zip codes within a" }),
|
|
43
|
-
/* @__PURE__ */ s.jsx("span", { children: /* @__PURE__ */ s.jsx("div", { className: "badge bg-black shadow-articles", children: "15 Mile Radius" }) }),
|
|
44
|
-
/* @__PURE__ */ s.jsx("div", { children: "of it's business" }),
|
|
45
|
-
/* @__PURE__ */ s.jsx("hr", { className: "border w-50 border-white" }),
|
|
46
|
-
/* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
47
|
-
/* @__PURE__ */ s.jsx("div", { children: "Your Zip code" }),
|
|
48
|
-
/* @__PURE__ */ s.jsx("div", { className: "badge bg-black shadow-articles ms-2", children: "00000" }),
|
|
49
|
-
/* @__PURE__ */ s.jsx("div", { className: "ms-2", children: "is" }),
|
|
50
|
-
/* @__PURE__ */ s.jsx("div", { className: "badge bg-black shadow-articles ms-2", children: "4.2 miles away" })
|
|
51
|
-
] })
|
|
52
|
-
] }) : /* @__PURE__ */ s.jsxs("div", { children: [
|
|
53
|
-
/* @__PURE__ */ s.jsx("div", { className: "h4 mb-1", children: e.business }),
|
|
54
|
-
/* @__PURE__ */ s.jsx("div", { children: "Is advertising to all users" })
|
|
55
|
-
] }),
|
|
56
|
-
/* @__PURE__ */ s.jsx("div", { className: "grow" }),
|
|
57
|
-
/* @__PURE__ */ s.jsx("hr", { className: "w-100" }),
|
|
58
|
-
/* @__PURE__ */ s.jsx("div", { className: "reason lh-sm mb-2", children: "Ads we display to you will always be transparent as to why you are seeing them." }),
|
|
59
|
-
/* @__PURE__ */ s.jsx(n, { href: "https://articles.media/settings/account", newPage: !0, className: "", children: /* @__PURE__ */ s.jsx(
|
|
60
|
-
l,
|
|
61
|
-
{
|
|
62
|
-
small: !0,
|
|
63
|
-
children: "Settings"
|
|
64
|
-
}
|
|
65
|
-
) })
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
),
|
|
69
|
-
/* @__PURE__ */ s.jsx(i.Footer, { className: "d-flex justify-content-center", children: /* @__PURE__ */ s.jsx(
|
|
70
|
-
l,
|
|
71
|
-
{
|
|
72
|
-
variant: "articles",
|
|
73
|
-
onClick: a,
|
|
74
|
-
children: "Close"
|
|
75
|
-
}
|
|
76
|
-
) })
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
) });
|
|
80
|
-
}
|
|
81
|
-
export {
|
|
82
|
-
b as default
|
|
83
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./jsx-runtime-nZSsnGb7.cjs"),o=require("react"),x=require("./numberWithCommas-CRgrb58X.cjs"),t=require("./Modal-Wmqy9fOm.cjs"),r=require("./Button-0ZK0NKiK.cjs");function d(n){let{setModalShow:a,ad:e,previewData:l}=n;o.useEffect(()=>{console.log("Mounted")},[]);const i=()=>{a(!1)};return s.jsxRuntimeExports.jsx("div",{children:s.jsxRuntimeExports.jsxs(t.Modal,{show:!0,backdropClassName:"ad-details-modal-backdrop",className:"articles-modal",centered:!0,onHide:i,size:"md",children:[s.jsxRuntimeExports.jsx(t.Modal.Header,{className:"align-items-center",closeButton:!0,children:s.jsxRuntimeExports.jsx(t.Modal.Title,{children:"Ad Details"})}),s.jsxRuntimeExports.jsxs(t.Modal.Body,{className:"",children:[s.jsxRuntimeExports.jsxs("p",{className:"mb-1",children:["Advertiser: ",s.jsxRuntimeExports.jsx("b",{children:e?.business})]}),s.jsxRuntimeExports.jsxs("p",{className:"mb-0",children:["Ad ID: ",s.jsxRuntimeExports.jsx("b",{children:l?._id||e._id})]}),s.jsxRuntimeExports.jsx("hr",{}),s.jsxRuntimeExports.jsx("div",{className:"mb-1",children:"This ad is being shown to you for the following reasons"}),e.city?s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("div",{className:"h4 mb-1",children:e.business}),s.jsxRuntimeExports.jsx("div",{children:"Is advertising to all zip codes within a"}),s.jsxRuntimeExports.jsx("span",{children:s.jsxRuntimeExports.jsx("div",{className:"badge bg-black shadow-articles",children:"15 Mile Radius"})}),s.jsxRuntimeExports.jsx("div",{children:"of it's business"}),s.jsxRuntimeExports.jsx("hr",{className:"border w-50 border-white"}),s.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("div",{children:"Your Zip code"}),s.jsxRuntimeExports.jsx("div",{className:"badge bg-black shadow-articles ms-2",children:"00000"}),s.jsxRuntimeExports.jsx("div",{className:"ms-2",children:"is"}),s.jsxRuntimeExports.jsx("div",{className:"badge bg-black shadow-articles ms-2",children:"4.2 miles away"})]})]}):s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("div",{className:"h4 mb-1",children:e.business}),s.jsxRuntimeExports.jsx("div",{children:"Is advertising to all users"})]}),s.jsxRuntimeExports.jsx("div",{className:"grow"}),s.jsxRuntimeExports.jsx("hr",{className:"w-100"}),s.jsxRuntimeExports.jsx("div",{className:"reason lh-sm mb-2",children:"Ads we display to you will always be transparent as to why you are seeing them."}),s.jsxRuntimeExports.jsx(x.Link,{href:"https://articles.media/settings/account",newPage:!0,className:"",children:s.jsxRuntimeExports.jsx(r.ArticlesButton,{small:!0,children:"Settings"})})]}),s.jsxRuntimeExports.jsx(t.Modal.Footer,{className:"d-flex justify-content-center",children:s.jsxRuntimeExports.jsx(r.ArticlesButton,{variant:"articles",onClick:i,children:"Close"})})]})})}exports.default=d;
|
package/dist/Button-0ZK0NKiK.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const N=require("./jsx-runtime-nZSsnGb7.cjs"),R=require("react"),j=require("./index-BlP2-uOi.cjs"),o=R.forwardRef((t,c)=>{const{size:e,variant:s,style:i,small:r,large:a,onClick:l,className:n,disabled:u,active:b,type:m,onMouseDown:d,onMouseUp:x,onMouseLeave:h,onTouchStart:v,onTouchEnd:y,...p}=t;return N.jsxRuntimeExports.jsx("button",{ref:c,...m&&{type:"submit"},disabled:u,style:i,onMouseDown:d,onMouseUp:x,onMouseLeave:h,onTouchStart:v,onTouchEnd:y,className:j.classNames(`btn ${s?`btn-${s}`:"btn-articles"}`,{[n]:n,"btn-lg":a,"btn-sm":r,active:b,[`btn-${e}`]:e}),onClick:l,children:t.children})});o.displayName="ArticlesButton";exports.ArticlesButton=o;
|
package/dist/Button-_Quon8UV.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { j as v } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
-
import { forwardRef as x } from "react";
|
|
3
|
-
import { c as y } from "./index-YnD2EP-S.js";
|
|
4
|
-
const N = x((t, n) => {
|
|
5
|
-
const {
|
|
6
|
-
size: s,
|
|
7
|
-
variant: e,
|
|
8
|
-
style: a,
|
|
9
|
-
// Can just use small instead of size="sm"
|
|
10
|
-
small: r,
|
|
11
|
-
large: i,
|
|
12
|
-
onClick: c,
|
|
13
|
-
className: o,
|
|
14
|
-
disabled: l,
|
|
15
|
-
active: m,
|
|
16
|
-
type: u,
|
|
17
|
-
onMouseDown: b,
|
|
18
|
-
onMouseUp: d,
|
|
19
|
-
onMouseLeave: p,
|
|
20
|
-
onTouchStart: f,
|
|
21
|
-
onTouchEnd: h,
|
|
22
|
-
...j
|
|
23
|
-
} = t;
|
|
24
|
-
return /* @__PURE__ */ v.jsx(
|
|
25
|
-
"button",
|
|
26
|
-
{
|
|
27
|
-
ref: n,
|
|
28
|
-
...u && { type: "submit" },
|
|
29
|
-
disabled: l,
|
|
30
|
-
style: a,
|
|
31
|
-
onMouseDown: b,
|
|
32
|
-
onMouseUp: d,
|
|
33
|
-
onMouseLeave: p,
|
|
34
|
-
onTouchStart: f,
|
|
35
|
-
onTouchEnd: h,
|
|
36
|
-
className: y(
|
|
37
|
-
`btn ${e ? `btn-${e}` : "btn-articles"}`,
|
|
38
|
-
{
|
|
39
|
-
[o]: o,
|
|
40
|
-
"btn-lg": i,
|
|
41
|
-
"btn-sm": r,
|
|
42
|
-
active: m,
|
|
43
|
-
[`btn-${s}`]: s
|
|
44
|
-
}
|
|
45
|
-
),
|
|
46
|
-
onClick: c,
|
|
47
|
-
children: t.children
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
});
|
|
51
|
-
N.displayName = "ArticlesButton";
|
|
52
|
-
export {
|
|
53
|
-
N as A
|
|
54
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
@keyframes grow-shrink {
|
|
3
|
-
0% { transform: translateY(-50px); }
|
|
4
|
-
50% { transform: translateY(0px); }
|
|
5
|
-
100% { transform: translateY(-50px); }
|
|
6
|
-
}
|
|
7
|
-
.articles-global-body {
|
|
8
|
-
transform: translateY(-40px);
|
|
9
|
-
z-index: 1055!important;
|
|
10
|
-
position: absolute;
|
|
11
|
-
top: 0;
|
|
12
|
-
left: 0;
|
|
13
|
-
display: flex;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
align-items: center;
|
|
16
|
-
width: 50px;
|
|
17
|
-
height: 50px;
|
|
18
|
-
margin: 0;
|
|
19
|
-
padding: 0;
|
|
20
|
-
background-color: yellow;
|
|
21
|
-
color: #FFFFFF;
|
|
22
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
23
|
-
animation: grow-shrink 2s ease-in;
|
|
24
|
-
border: 4px solid red;
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
}
|
|
27
|
-
.articles-global-body.main-connected {
|
|
28
|
-
background-color: green;
|
|
29
|
-
}
|
|
30
|
-
.articles-global-body.auth-connected {
|
|
31
|
-
border-color: blue;
|
|
32
|
-
}
|
|
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;
|
|
@@ -1,123 +0,0 @@
|
|
|
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
|
-
};
|