@machinemetrics/mm-react-tools 4.10.0-4 → 4.10.0-6
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/mm-react-tools.es.js +45 -29
- package/package.json +1 -1
|
@@ -19282,21 +19282,21 @@ const cv = CC(), kC = () => /* @__PURE__ */ bt(
|
|
|
19282
19282
|
background: "#fff",
|
|
19283
19283
|
borderRadius: "12px",
|
|
19284
19284
|
boxShadow: "0 2px 16px rgba(0,0,0,0.10)",
|
|
19285
|
-
padding: "
|
|
19286
|
-
maxWidth: "
|
|
19285
|
+
padding: "64px",
|
|
19286
|
+
maxWidth: "550px",
|
|
19287
19287
|
width: "100%",
|
|
19288
19288
|
textAlign: "center",
|
|
19289
19289
|
fontFamily: "sans-serif"
|
|
19290
19290
|
}, lv = {
|
|
19291
19291
|
color: "#555",
|
|
19292
|
-
fontSize: "
|
|
19292
|
+
fontSize: "16px",
|
|
19293
19293
|
lineHeight: "1.6",
|
|
19294
19294
|
margin: "16px 0 24px"
|
|
19295
19295
|
}, fv = {
|
|
19296
19296
|
display: "inline-block",
|
|
19297
19297
|
padding: "11px 24px",
|
|
19298
|
-
fontSize: "
|
|
19299
|
-
fontWeight: "
|
|
19298
|
+
fontSize: "16px",
|
|
19299
|
+
fontWeight: "500",
|
|
19300
19300
|
borderRadius: "6px",
|
|
19301
19301
|
border: "none",
|
|
19302
19302
|
cursor: "pointer",
|
|
@@ -19322,30 +19322,46 @@ const cv = CC(), kC = () => /* @__PURE__ */ bt(
|
|
|
19322
19322
|
}, []);
|
|
19323
19323
|
return Mt(() => () => {
|
|
19324
19324
|
a.current && clearInterval(a.current);
|
|
19325
|
-
}, []), e ? /* @__PURE__ */ bt(EO, {}) : cv && e === !1 ? /* @__PURE__ */ bt(
|
|
19326
|
-
|
|
19327
|
-
|
|
19328
|
-
|
|
19329
|
-
|
|
19330
|
-
"
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
|
|
19334
|
-
|
|
19335
|
-
|
|
19336
|
-
|
|
19337
|
-
|
|
19338
|
-
|
|
19339
|
-
|
|
19340
|
-
|
|
19341
|
-
|
|
19342
|
-
|
|
19343
|
-
|
|
19344
|
-
|
|
19345
|
-
|
|
19346
|
-
|
|
19347
|
-
|
|
19348
|
-
|
|
19325
|
+
}, []), e ? /* @__PURE__ */ bt(EO, {}) : cv && e === !1 ? /* @__PURE__ */ bt(
|
|
19326
|
+
"div",
|
|
19327
|
+
{
|
|
19328
|
+
style: {
|
|
19329
|
+
display: "flex",
|
|
19330
|
+
justifyContent: "center",
|
|
19331
|
+
alignItems: "center",
|
|
19332
|
+
height: "100vh",
|
|
19333
|
+
background: "#f0f0f0"
|
|
19334
|
+
},
|
|
19335
|
+
children: /* @__PURE__ */ nc("div", { style: AC, children: [
|
|
19336
|
+
/* @__PURE__ */ bt("div", { style: { width: "300px", margin: "0 auto 4px" }, children: /* @__PURE__ */ bt(kC, {}) }),
|
|
19337
|
+
t === "CLIENT_ID" ? /* @__PURE__ */ nc(Mo, { children: [
|
|
19338
|
+
/* @__PURE__ */ bt("p", { style: lv, children: "You need to create an OAuth client before you can connect your MachineMetrics account. Once complete, you will receive credentials to paste back into your agent or configuration file to continue building." }),
|
|
19339
|
+
/* @__PURE__ */ bt(
|
|
19340
|
+
"button",
|
|
19341
|
+
{
|
|
19342
|
+
onClick: () => window.open(
|
|
19343
|
+
`${n.appUrl}/settings/oauth-clients`,
|
|
19344
|
+
"mm-oauth-setup",
|
|
19345
|
+
"popup,width=900,height=700"
|
|
19346
|
+
),
|
|
19347
|
+
style: { ...fv, background: "#5c6bc0", color: "#fff" },
|
|
19348
|
+
children: "Create OAuth Client"
|
|
19349
|
+
}
|
|
19350
|
+
)
|
|
19351
|
+
] }) : /* @__PURE__ */ nc(Mo, { children: [
|
|
19352
|
+
/* @__PURE__ */ bt("p", { style: lv, children: "Your OAuth client is set up and your credentials are ready. Log in to MachineMetrics to complete authorization and start building." }),
|
|
19353
|
+
/* @__PURE__ */ bt(
|
|
19354
|
+
"button",
|
|
19355
|
+
{
|
|
19356
|
+
onClick: u,
|
|
19357
|
+
style: { ...fv, background: "#16a500", color: "#fff" },
|
|
19358
|
+
children: "Log In to MachineMetrics"
|
|
19359
|
+
}
|
|
19360
|
+
)
|
|
19361
|
+
] })
|
|
19362
|
+
] })
|
|
19363
|
+
}
|
|
19364
|
+
) : /* @__PURE__ */ bt("div", {});
|
|
19349
19365
|
}, Mw = "%[a-f0-9]{2}", hv = new RegExp("(" + Mw + ")|([^%]+?)", "gi"), dv = new RegExp("(" + Mw + ")+", "gi");
|
|
19350
19366
|
function Dd(r, e) {
|
|
19351
19367
|
try {
|
package/package.json
CHANGED