tienjs-chartbrew-plugin-strapi 0.1.4 → 0.1.5
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/_chunks/{App-MJAOBwBX.mjs → App-CZqPHB0f.mjs} +7 -3
- package/dist/_chunks/{App-DYsrUWaq.js → App-DSC2kgiX.js} +7 -3
- package/dist/_chunks/{Setup-BBCrCEZR.mjs → Setup-C8OVk4-q.mjs} +2 -2
- package/dist/_chunks/{Setup-BCxwweFO.js → Setup-D8qqF_69.js} +2 -2
- package/dist/_chunks/{index-Ob7hTXVE.mjs → index-BDl1QGlA.mjs} +2 -2
- package/dist/_chunks/{index-BU939xMZ.js → index-DLMKLG2u.js} +2 -2
- package/dist/_chunks/{store-D2CP2hEa.js → store-CcXWjkY_.js} +1 -1
- package/dist/_chunks/{store-BD7p4pKs.mjs → store-CoX04Dgx.mjs} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -4,8 +4,8 @@ import { Link, Routes, Route } from "react-router-dom";
|
|
|
4
4
|
import { Layouts, Page } from "@strapi/strapi/admin";
|
|
5
5
|
import { LinkButton, Loader, Box, Flex, Typography, SingleSelect, SingleSelectOption, EmptyStateLayout, Alert, Link as Link$1, Checkbox, Grid, Button, Divider, Combobox, ComboboxOption } from "@strapi/design-system";
|
|
6
6
|
import { ChartCircle, Plus, ExternalLink, ArrowLeft } from "@strapi/icons";
|
|
7
|
-
import { P as PLUGIN_ID } from "./index-
|
|
8
|
-
import { g as getSettings, s as setSettings, i as instance } from "./store-
|
|
7
|
+
import { P as PLUGIN_ID } from "./index-BDl1QGlA.mjs";
|
|
8
|
+
import { g as getSettings, s as setSettings, i as instance } from "./store-CoX04Dgx.mjs";
|
|
9
9
|
import "js-cookie";
|
|
10
10
|
async function login() {
|
|
11
11
|
const { host, token } = await getSettings();
|
|
@@ -176,7 +176,6 @@ function Dashboard() {
|
|
|
176
176
|
if (selectedProject2) {
|
|
177
177
|
setDropdownProject(`${selectedProject2.name}-${selectedProject2.id}`);
|
|
178
178
|
setSelectedProject(selectedProject2);
|
|
179
|
-
_sendAuthToken(store.token);
|
|
180
179
|
}
|
|
181
180
|
}
|
|
182
181
|
}
|
|
@@ -380,6 +379,11 @@ function Dashboard() {
|
|
|
380
379
|
{
|
|
381
380
|
ref: iframeRef,
|
|
382
381
|
src: `${store.clientHost}/report/${selectedProject.brewName}?removeHeader=${removeHeader}&removeStyling=${removeStyling}`,
|
|
382
|
+
onLoad: () => {
|
|
383
|
+
if (store?.token) {
|
|
384
|
+
_sendAuthToken(store?.token);
|
|
385
|
+
}
|
|
386
|
+
},
|
|
383
387
|
width: "100%",
|
|
384
388
|
height: "100%",
|
|
385
389
|
style: { border: "none", borderRadius: "10px" }
|
|
@@ -6,8 +6,8 @@ const reactRouterDom = require("react-router-dom");
|
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
7
7
|
const designSystem = require("@strapi/design-system");
|
|
8
8
|
const icons = require("@strapi/icons");
|
|
9
|
-
const index = require("./index-
|
|
10
|
-
const store = require("./store-
|
|
9
|
+
const index = require("./index-DLMKLG2u.js");
|
|
10
|
+
const store = require("./store-CcXWjkY_.js");
|
|
11
11
|
require("js-cookie");
|
|
12
12
|
async function login() {
|
|
13
13
|
const { host, token } = await store.getSettings();
|
|
@@ -178,7 +178,6 @@ function Dashboard() {
|
|
|
178
178
|
if (selectedProject2) {
|
|
179
179
|
setDropdownProject(`${selectedProject2.name}-${selectedProject2.id}`);
|
|
180
180
|
setSelectedProject(selectedProject2);
|
|
181
|
-
_sendAuthToken(store$1.token);
|
|
182
181
|
}
|
|
183
182
|
}
|
|
184
183
|
}
|
|
@@ -382,6 +381,11 @@ function Dashboard() {
|
|
|
382
381
|
{
|
|
383
382
|
ref: iframeRef,
|
|
384
383
|
src: `${store$1.clientHost}/report/${selectedProject.brewName}?removeHeader=${removeHeader}&removeStyling=${removeStyling}`,
|
|
384
|
+
onLoad: () => {
|
|
385
|
+
if (store$1?.token) {
|
|
386
|
+
_sendAuthToken(store$1?.token);
|
|
387
|
+
}
|
|
388
|
+
},
|
|
385
389
|
width: "100%",
|
|
386
390
|
height: "100%",
|
|
387
391
|
style: { border: "none", borderRadius: "10px" }
|
|
@@ -4,8 +4,8 @@ import { LinkButton, Box, Typography, Tabs, Field, Button, Link, Flex, Alert } f
|
|
|
4
4
|
import { useNotification, Layouts } from "@strapi/strapi/admin";
|
|
5
5
|
import { ExternalLink, Magic, Check, Cross, ChevronRight } from "@strapi/icons";
|
|
6
6
|
import { Link as Link$1 } from "react-router-dom";
|
|
7
|
-
import { P as PLUGIN_ID } from "./index-
|
|
8
|
-
import { g as getSettings, s as setSettings } from "./store-
|
|
7
|
+
import { P as PLUGIN_ID } from "./index-BDl1QGlA.mjs";
|
|
8
|
+
import { g as getSettings, s as setSettings } from "./store-CoX04Dgx.mjs";
|
|
9
9
|
const defaultHost = "https://api.chartbrew.com";
|
|
10
10
|
const defaultClientHost = "https://app.chartbrew.com";
|
|
11
11
|
const strapiHostEnv = process.env.STRAPI_ADMIN_BACKEND_URL;
|
|
@@ -6,8 +6,8 @@ const designSystem = require("@strapi/design-system");
|
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
7
7
|
const icons = require("@strapi/icons");
|
|
8
8
|
const reactRouterDom = require("react-router-dom");
|
|
9
|
-
const index = require("./index-
|
|
10
|
-
const store = require("./store-
|
|
9
|
+
const index = require("./index-DLMKLG2u.js");
|
|
10
|
+
const store = require("./store-CcXWjkY_.js");
|
|
11
11
|
const defaultHost = "https://api.chartbrew.com";
|
|
12
12
|
const defaultClientHost = "https://app.chartbrew.com";
|
|
13
13
|
const strapiHostEnv = process.env.STRAPI_ADMIN_BACKEND_URL;
|
|
@@ -37,7 +37,7 @@ const index = {
|
|
|
37
37
|
defaultMessage: "Chartbrew"
|
|
38
38
|
},
|
|
39
39
|
Component: async () => {
|
|
40
|
-
const { App } = await import("./App-
|
|
40
|
+
const { App } = await import("./App-CZqPHB0f.mjs");
|
|
41
41
|
return App;
|
|
42
42
|
}
|
|
43
43
|
});
|
|
@@ -58,7 +58,7 @@ const index = {
|
|
|
58
58
|
id: "settings",
|
|
59
59
|
to: `/settings/${PLUGIN_ID}`,
|
|
60
60
|
Component: async () => {
|
|
61
|
-
const { Setup } = await import("./Setup-
|
|
61
|
+
const { Setup } = await import("./Setup-C8OVk4-q.mjs");
|
|
62
62
|
return Setup;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -38,7 +38,7 @@ const index = {
|
|
|
38
38
|
defaultMessage: "Chartbrew"
|
|
39
39
|
},
|
|
40
40
|
Component: async () => {
|
|
41
|
-
const { App } = await Promise.resolve().then(() => require("./App-
|
|
41
|
+
const { App } = await Promise.resolve().then(() => require("./App-DSC2kgiX.js"));
|
|
42
42
|
return App;
|
|
43
43
|
}
|
|
44
44
|
});
|
|
@@ -59,7 +59,7 @@ const index = {
|
|
|
59
59
|
id: "settings",
|
|
60
60
|
to: `/settings/${PLUGIN_ID}`,
|
|
61
61
|
Component: async () => {
|
|
62
|
-
const { Setup } = await Promise.resolve().then(() => require("./Setup-
|
|
62
|
+
const { Setup } = await Promise.resolve().then(() => require("./Setup-D8qqF_69.js"));
|
|
63
63
|
return Setup;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const Cookies = require("js-cookie");
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-DLMKLG2u.js");
|
|
4
4
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
5
5
|
const Cookies__default = /* @__PURE__ */ _interopDefault(Cookies);
|
|
6
6
|
function bind(fn, thisArg) {
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
package/package.json
CHANGED