tienjs-chartbrew-plugin-strapi 0.1.6 → 0.1.8
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-BftiVk-V.mjs → App-BpC7R0_j.mjs} +3 -2
- package/dist/_chunks/{App-_lqSdzUQ.js → App-lt6HG6qW.js} +3 -2
- package/dist/_chunks/{Setup-DNgrFnNJ.mjs → Setup-BMdCvgpv.mjs} +2 -2
- package/dist/_chunks/{Setup-DSsGCjUH.js → Setup-DxewPleY.js} +2 -2
- package/dist/_chunks/{index-CZ_FBbWI.js → index-B3p4mN2L.js} +2 -2
- package/dist/_chunks/{index-C_my_82h.mjs → index-CoefDbt4.mjs} +2 -2
- package/dist/_chunks/{store-lQQvVa-y.js → store-CoBqW3WZ.js} +3 -2
- package/dist/_chunks/{store-DyL5T_l2.mjs → store-ubI4wW6m.mjs} +3 -2
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +3 -2
|
@@ -4,9 +4,10 @@ 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-CoefDbt4.mjs";
|
|
8
|
+
import { g as getSettings, s as setSettings, i as instance } from "./store-ubI4wW6m.mjs";
|
|
9
9
|
import "js-cookie";
|
|
10
|
+
import "tldts";
|
|
10
11
|
async function login() {
|
|
11
12
|
const { host, token } = await getSettings();
|
|
12
13
|
return fetch(`${host}/user/relog`, {
|
|
@@ -6,9 +6,10 @@ 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-B3p4mN2L.js");
|
|
10
|
+
const store = require("./store-CoBqW3WZ.js");
|
|
11
11
|
require("js-cookie");
|
|
12
|
+
require("tldts");
|
|
12
13
|
async function login() {
|
|
13
14
|
const { host, token } = await store.getSettings();
|
|
14
15
|
return fetch(`${host}/user/relog`, {
|
|
@@ -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-CoefDbt4.mjs";
|
|
8
|
+
import { g as getSettings, s as setSettings } from "./store-ubI4wW6m.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-B3p4mN2L.js");
|
|
10
|
+
const store = require("./store-CoBqW3WZ.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;
|
|
@@ -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-lt6HG6qW.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-DxewPleY.js"));
|
|
63
63
|
return Setup;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -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-BpC7R0_j.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-BMdCvgpv.mjs");
|
|
62
62
|
return Setup;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const Cookies = require("js-cookie");
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-B3p4mN2L.js");
|
|
4
|
+
const tldts = require("tldts");
|
|
4
5
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
5
6
|
const Cookies__default = /* @__PURE__ */ _interopDefault(Cookies);
|
|
6
7
|
function bind(fn, thisArg) {
|
|
@@ -2503,7 +2504,7 @@ async function getSettings() {
|
|
|
2503
2504
|
Cookies__default.default.set("brewToken", token, {
|
|
2504
2505
|
sameSite: "None",
|
|
2505
2506
|
secure: true,
|
|
2506
|
-
domain:
|
|
2507
|
+
domain: `.${tldts.parse(settings.data.strapiHost).domain}`
|
|
2507
2508
|
});
|
|
2508
2509
|
return settings.data;
|
|
2509
2510
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Cookies from "js-cookie";
|
|
2
|
-
import { P as PLUGIN_ID } from "./index-
|
|
2
|
+
import { P as PLUGIN_ID } from "./index-CoefDbt4.mjs";
|
|
3
|
+
import { parse } from "tldts";
|
|
3
4
|
function bind(fn, thisArg) {
|
|
4
5
|
return function wrap() {
|
|
5
6
|
return fn.apply(thisArg, arguments);
|
|
@@ -2500,7 +2501,7 @@ async function getSettings() {
|
|
|
2500
2501
|
Cookies.set("brewToken", token, {
|
|
2501
2502
|
sameSite: "None",
|
|
2502
2503
|
secure: true,
|
|
2503
|
-
domain:
|
|
2504
|
+
domain: `.${parse(settings.data.strapiHost).domain}`
|
|
2504
2505
|
});
|
|
2505
2506
|
return settings.data;
|
|
2506
2507
|
}
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tienjs-chartbrew-plugin-strapi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Chartbrew brings data visualization to your Strapi dashboard",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/chartbrew/strapi-plugin-chartbrew#readme",
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
"nanoid": "^5.0.7",
|
|
47
47
|
"react-intl": "^6.7.2",
|
|
48
48
|
"request": "^2.88.2",
|
|
49
|
-
"request-promise": "^4.2.6"
|
|
49
|
+
"request-promise": "^4.2.6",
|
|
50
|
+
"tldts": "^7.0.17"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
53
|
"@strapi/sdk-plugin": "^5.3.2",
|