strapi-plugin-matomo 1.0.0 → 1.0.1

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  <div align="center" width="150px">
2
- <img style="width: 150px; height: auto;" src="public/assets/logo.png" alt="Logo - Strapi Matomo plugin" />
2
+ <img style="width: 150px; height: auto;" src="https://raw.githubusercontent.com/TobeyTG/strapi-plugin-matomo/master/assets/logo.png" alt="Logo - Strapi Matomo plugin" />
3
3
  </div>
4
4
  <div align="center">
5
5
  <h1>Strapi v5 - Matomo plugin</h1>
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Page } from "@strapi/strapi/admin";
3
3
  import { Routes, Route } from "react-router-dom";
4
4
  import { Suspense, lazy } from "react";
5
- const Dashboard = lazy(() => import("./Dashboard-C9FKj-j8.mjs"));
5
+ const Dashboard = lazy(() => import("./Dashboard-CBCcLNJi.mjs"));
6
6
  const HomePage = () => {
7
7
  return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Page.Loading, {}), children: /* @__PURE__ */ jsx(Dashboard, {}) });
8
8
  };
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const admin = require("@strapi/strapi/admin");
5
5
  const reactRouterDom = require("react-router-dom");
6
6
  const react = require("react");
7
- const Dashboard = react.lazy(() => Promise.resolve().then(() => require("./Dashboard-DdFVwM_o.js")));
7
+ const Dashboard = react.lazy(() => Promise.resolve().then(() => require("./Dashboard-D_U2f9RI.js")));
8
8
  const HomePage = () => {
9
9
  return /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(admin.Page.Loading, {}), children: /* @__PURE__ */ jsxRuntime.jsx(Dashboard, {}) });
10
10
  };
@@ -9,7 +9,6 @@ const Dashboard = () => {
9
9
  (async () => {
10
10
  const res = await get(`/${PLUGIN_ID}/config`);
11
11
  const config = res.data;
12
- console.log(config.config);
13
12
  setUrl(config.config.widgetURL);
14
13
  })();
15
14
  }, []);
@@ -11,7 +11,6 @@ const Dashboard = () => {
11
11
  (async () => {
12
12
  const res = await get(`/${PLUGIN_ID}/config`);
13
13
  const config = res.data;
14
- console.log(config.config);
15
14
  setUrl(config.config.widgetURL);
16
15
  })();
17
16
  }, []);
@@ -25,7 +25,7 @@ const Initializer = ({ setPlugin }) => {
25
25
  }, []);
26
26
  return null;
27
27
  };
28
- const PluginIcon = () => /* @__PURE__ */ jsxRuntime.jsxs(
28
+ const PluginIcon = () => /* @__PURE__ */ jsxRuntime.jsx(
29
29
  "svg",
30
30
  {
31
31
  xmlns: "http://www.w3.org/2000/svg",
@@ -33,51 +33,38 @@ const PluginIcon = () => /* @__PURE__ */ jsxRuntime.jsxs(
33
33
  width: "100%",
34
34
  height: "100%",
35
35
  viewBox: "-30 0 150 50",
36
- children: [
37
- /* @__PURE__ */ jsxRuntime.jsxs("defs", { children: [
38
- /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "a", transform: "translate(-7.52 -22.83)", children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M0 0h360v99H0z" }) }),
39
- /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "b", transform: "translate(-7.52 -22.83)", children: /* @__PURE__ */ jsxRuntime.jsx(
36
+ children: /* @__PURE__ */ jsxRuntime.jsxs("g", { "data-name": "Layer 1", children: [
37
+ /* @__PURE__ */ jsxRuntime.jsxs("g", { children: [
38
+ /* @__PURE__ */ jsxRuntime.jsx(
40
39
  "path",
41
40
  {
42
- d: "M54.17 39.63a11.74 11.74 0 0 0 3 7.86L71 68.71l.17.27.08.11a11.79 11.79 0 0 0 19.69-13l-.21-.33a.71.71 0 0 1-.1-.14L76 33.45a11.79 11.79 0 0 0-21.84 6.18",
43
- fill: "none"
41
+ d: "M83.38 33.29l-.21-.33a.71.71 0 0 1-.1-.14l-14.59-22.2-18.85 14 13.85 21.26.17.27.08.11a11.8 11.8 0 0 0 19.69-13",
42
+ fill: "#95c748"
44
43
  }
45
- ) }),
46
- /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "c", transform: "translate(-7.52 -22.83)", children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M7.52 22.83h77.52v58.32H7.52z" }) })
44
+ ),
45
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M26.83 39.47a11.8 11.8 0 1 0-11.8 11.8 11.8 11.8 0 0 0 11.8-11.8", fill: "#35bfc0" })
47
46
  ] }),
48
- /* @__PURE__ */ jsxRuntime.jsxs("g", { "clip-path": "url(#a)", "data-name": "Layer 1", style: { clipPath: "url(#clip-path)" }, children: [
49
- /* @__PURE__ */ jsxRuntime.jsxs("g", { "clip-path": "url(#a)", children: [
50
- /* @__PURE__ */ jsxRuntime.jsx(
51
- "path",
52
- {
53
- d: "M83.38 33.29l-.21-.33a.71.71 0 0 1-.1-.14l-14.59-22.2-18.85 14 13.85 21.26.17.27.08.11a11.8 11.8 0 0 0 19.69-13",
54
- fill: "#95c748"
55
- }
56
- ),
57
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M26.83 39.47a11.8 11.8 0 1 0-11.8 11.8 11.8 11.8 0 0 0 11.8-11.8", fill: "#35bfc0" })
58
- ] }),
59
- /* @__PURE__ */ jsxRuntime.jsxs("g", { "clip-path": "url(#b)", children: [
60
- /* @__PURE__ */ jsxRuntime.jsx("g", { "clip-path": "url(#c)", style: { clipPath: "url(#clip-path-5)" }, opacity: ".5" }),
61
- /* @__PURE__ */ jsxRuntime.jsx(
62
- "path",
63
- {
64
- d: "M70.3 16.8a11.81 11.81 0 1 0-21.66 6.48l-9-12.66a11.78 11.78 0 0 0-20.08 0L5.3 32.86a11.79 11.79 0 0 1 19.87.51l9.31 13.09a11.77 11.77 0 0 0 19 0l.1-.15a10.53 10.53 0 0 0 .67-1.06l14-21.83a11.77 11.77 0 0 0 2-6.62m-19.84 8.58l.2.19-.2-.19m1 .88l.23.17-.16-.17m2.58 1.47l.31.11-.31-.11m1.28.43l.42.1-.42-.1m1.37.29l.42.06-.42-.06m9.57-2.77l.31-.29-.31.29m-6.39 2.84l.42-.07-.42.07m1.34-.24l.45-.12-.45.12m1.34-.41a3.57 3.57 0 0 0 .38-.14 3.57 3.57 0 0 1-.38.14m2.66-1.39l.25-.21-.29.22m2-1.77l.25-.27-.25.27M5.01 33.33c.09-.15.17-.29.27-.43l-.28.43z",
65
- fill: "#3253a0"
66
- }
67
- )
68
- ] }),
69
- /* @__PURE__ */ jsxRuntime.jsxs("g", { "clip-path": "url(#a)", children: [
70
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M70.25 16.8a11.8 11.8 0 1 0-11.77 11.8 11.8 11.8 0 0 0 11.8-11.8", fill: "#f38334" }),
71
- /* @__PURE__ */ jsxRuntime.jsx(
72
- "path",
73
- {
74
- d: "M58.48 28.6a11.78 11.78 0 0 1-9.86-5.32l-9-12.66a11.77 11.77 0 0 0-20.07 0L5.25 32.86a11.79 11.79 0 0 1 19.87.51l9.36 13.09a11.77 11.77 0 0 0 19 0l.09-.15.68-1 14-21.84a11.78 11.78 0 0 1-9.77 5.13M4.95 33.33l.26-.43z",
75
- fill: "#3152a0"
76
- }
77
- )
78
- ] })
47
+ /* @__PURE__ */ jsxRuntime.jsxs("g", { children: [
48
+ /* @__PURE__ */ jsxRuntime.jsx("g", { opacity: ".5" }),
49
+ /* @__PURE__ */ jsxRuntime.jsx(
50
+ "path",
51
+ {
52
+ d: "M70.3 16.8a11.81 11.81 0 1 0-21.66 6.48l-9-12.66a11.78 11.78 0 0 0-20.08 0L5.3 32.86a11.79 11.79 0 0 1 19.87.51l9.31 13.09a11.77 11.77 0 0 0 19 0l.1-.15a10.53 10.53 0 0 0 .67-1.06l14-21.83a11.77 11.77 0 0 0 2-6.62m-19.84 8.58l.2.19-.2-.19m1 .88l.23.17-.16-.17m2.58 1.47l.31.11-.31-.11m1.28.43l.42.1-.42-.1m1.37.29l.42.06-.42-.06m9.57-2.77l.31-.29-.31.29m-6.39 2.84l.42-.07-.42.07m1.34-.24l.45-.12-.45.12m1.34-.41a3.57 3.57 0 0 0 .38-.14 3.57 3.57 0 0 1-.38.14m2.66-1.39l.25-.21-.29.22m2-1.77l.25-.27-.25.27M5.01 33.33c.09-.15.17-.29.27-.43l-.28.43z",
53
+ fill: "#3253a0"
54
+ }
55
+ )
56
+ ] }),
57
+ /* @__PURE__ */ jsxRuntime.jsxs("g", { children: [
58
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M70.25 16.8a11.8 11.8 0 1 0-11.77 11.8 11.8 11.8 0 0 0 11.8-11.8", fill: "#f38334" }),
59
+ /* @__PURE__ */ jsxRuntime.jsx(
60
+ "path",
61
+ {
62
+ d: "M58.48 28.6a11.78 11.78 0 0 1-9.86-5.32l-9-12.66a11.77 11.77 0 0 0-20.07 0L5.25 32.86a11.79 11.79 0 0 1 19.87.51l9.36 13.09a11.77 11.77 0 0 0 19 0l.09-.15.68-1 14-21.84a11.78 11.78 0 0 1-9.77 5.13M4.95 33.33l.26-.43z",
63
+ fill: "#3152a0"
64
+ }
65
+ )
79
66
  ] })
80
- ]
67
+ ] })
81
68
  }
82
69
  );
83
70
  const index = {
@@ -90,7 +77,7 @@ const index = {
90
77
  defaultMessage: "Matomo"
91
78
  },
92
79
  Component: async () => {
93
- const { App } = await Promise.resolve().then(() => require("../_chunks/App-BiVY-Oop.js"));
80
+ const { App } = await Promise.resolve().then(() => require("../_chunks/App-DqSIMJjz.js"));
94
81
  return App;
95
82
  }
96
83
  });
@@ -1,5 +1,5 @@
1
1
  import { useRef, useEffect } from "react";
2
- import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
4
4
  const v = glob[path];
5
5
  if (v) {
@@ -24,7 +24,7 @@ const Initializer = ({ setPlugin }) => {
24
24
  }, []);
25
25
  return null;
26
26
  };
27
- const PluginIcon = () => /* @__PURE__ */ jsxs(
27
+ const PluginIcon = () => /* @__PURE__ */ jsx(
28
28
  "svg",
29
29
  {
30
30
  xmlns: "http://www.w3.org/2000/svg",
@@ -32,51 +32,38 @@ const PluginIcon = () => /* @__PURE__ */ jsxs(
32
32
  width: "100%",
33
33
  height: "100%",
34
34
  viewBox: "-30 0 150 50",
35
- children: [
36
- /* @__PURE__ */ jsxs("defs", { children: [
37
- /* @__PURE__ */ jsx("clipPath", { id: "a", transform: "translate(-7.52 -22.83)", children: /* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h360v99H0z" }) }),
38
- /* @__PURE__ */ jsx("clipPath", { id: "b", transform: "translate(-7.52 -22.83)", children: /* @__PURE__ */ jsx(
35
+ children: /* @__PURE__ */ jsxs("g", { "data-name": "Layer 1", children: [
36
+ /* @__PURE__ */ jsxs("g", { children: [
37
+ /* @__PURE__ */ jsx(
39
38
  "path",
40
39
  {
41
- d: "M54.17 39.63a11.74 11.74 0 0 0 3 7.86L71 68.71l.17.27.08.11a11.79 11.79 0 0 0 19.69-13l-.21-.33a.71.71 0 0 1-.1-.14L76 33.45a11.79 11.79 0 0 0-21.84 6.18",
42
- fill: "none"
40
+ d: "M83.38 33.29l-.21-.33a.71.71 0 0 1-.1-.14l-14.59-22.2-18.85 14 13.85 21.26.17.27.08.11a11.8 11.8 0 0 0 19.69-13",
41
+ fill: "#95c748"
43
42
  }
44
- ) }),
45
- /* @__PURE__ */ jsx("clipPath", { id: "c", transform: "translate(-7.52 -22.83)", children: /* @__PURE__ */ jsx("path", { fill: "none", d: "M7.52 22.83h77.52v58.32H7.52z" }) })
43
+ ),
44
+ /* @__PURE__ */ jsx("path", { d: "M26.83 39.47a11.8 11.8 0 1 0-11.8 11.8 11.8 11.8 0 0 0 11.8-11.8", fill: "#35bfc0" })
46
45
  ] }),
47
- /* @__PURE__ */ jsxs("g", { "clip-path": "url(#a)", "data-name": "Layer 1", style: { clipPath: "url(#clip-path)" }, children: [
48
- /* @__PURE__ */ jsxs("g", { "clip-path": "url(#a)", children: [
49
- /* @__PURE__ */ jsx(
50
- "path",
51
- {
52
- d: "M83.38 33.29l-.21-.33a.71.71 0 0 1-.1-.14l-14.59-22.2-18.85 14 13.85 21.26.17.27.08.11a11.8 11.8 0 0 0 19.69-13",
53
- fill: "#95c748"
54
- }
55
- ),
56
- /* @__PURE__ */ jsx("path", { d: "M26.83 39.47a11.8 11.8 0 1 0-11.8 11.8 11.8 11.8 0 0 0 11.8-11.8", fill: "#35bfc0" })
57
- ] }),
58
- /* @__PURE__ */ jsxs("g", { "clip-path": "url(#b)", children: [
59
- /* @__PURE__ */ jsx("g", { "clip-path": "url(#c)", style: { clipPath: "url(#clip-path-5)" }, opacity: ".5" }),
60
- /* @__PURE__ */ jsx(
61
- "path",
62
- {
63
- d: "M70.3 16.8a11.81 11.81 0 1 0-21.66 6.48l-9-12.66a11.78 11.78 0 0 0-20.08 0L5.3 32.86a11.79 11.79 0 0 1 19.87.51l9.31 13.09a11.77 11.77 0 0 0 19 0l.1-.15a10.53 10.53 0 0 0 .67-1.06l14-21.83a11.77 11.77 0 0 0 2-6.62m-19.84 8.58l.2.19-.2-.19m1 .88l.23.17-.16-.17m2.58 1.47l.31.11-.31-.11m1.28.43l.42.1-.42-.1m1.37.29l.42.06-.42-.06m9.57-2.77l.31-.29-.31.29m-6.39 2.84l.42-.07-.42.07m1.34-.24l.45-.12-.45.12m1.34-.41a3.57 3.57 0 0 0 .38-.14 3.57 3.57 0 0 1-.38.14m2.66-1.39l.25-.21-.29.22m2-1.77l.25-.27-.25.27M5.01 33.33c.09-.15.17-.29.27-.43l-.28.43z",
64
- fill: "#3253a0"
65
- }
66
- )
67
- ] }),
68
- /* @__PURE__ */ jsxs("g", { "clip-path": "url(#a)", children: [
69
- /* @__PURE__ */ jsx("path", { d: "M70.25 16.8a11.8 11.8 0 1 0-11.77 11.8 11.8 11.8 0 0 0 11.8-11.8", fill: "#f38334" }),
70
- /* @__PURE__ */ jsx(
71
- "path",
72
- {
73
- d: "M58.48 28.6a11.78 11.78 0 0 1-9.86-5.32l-9-12.66a11.77 11.77 0 0 0-20.07 0L5.25 32.86a11.79 11.79 0 0 1 19.87.51l9.36 13.09a11.77 11.77 0 0 0 19 0l.09-.15.68-1 14-21.84a11.78 11.78 0 0 1-9.77 5.13M4.95 33.33l.26-.43z",
74
- fill: "#3152a0"
75
- }
76
- )
77
- ] })
46
+ /* @__PURE__ */ jsxs("g", { children: [
47
+ /* @__PURE__ */ jsx("g", { opacity: ".5" }),
48
+ /* @__PURE__ */ jsx(
49
+ "path",
50
+ {
51
+ d: "M70.3 16.8a11.81 11.81 0 1 0-21.66 6.48l-9-12.66a11.78 11.78 0 0 0-20.08 0L5.3 32.86a11.79 11.79 0 0 1 19.87.51l9.31 13.09a11.77 11.77 0 0 0 19 0l.1-.15a10.53 10.53 0 0 0 .67-1.06l14-21.83a11.77 11.77 0 0 0 2-6.62m-19.84 8.58l.2.19-.2-.19m1 .88l.23.17-.16-.17m2.58 1.47l.31.11-.31-.11m1.28.43l.42.1-.42-.1m1.37.29l.42.06-.42-.06m9.57-2.77l.31-.29-.31.29m-6.39 2.84l.42-.07-.42.07m1.34-.24l.45-.12-.45.12m1.34-.41a3.57 3.57 0 0 0 .38-.14 3.57 3.57 0 0 1-.38.14m2.66-1.39l.25-.21-.29.22m2-1.77l.25-.27-.25.27M5.01 33.33c.09-.15.17-.29.27-.43l-.28.43z",
52
+ fill: "#3253a0"
53
+ }
54
+ )
55
+ ] }),
56
+ /* @__PURE__ */ jsxs("g", { children: [
57
+ /* @__PURE__ */ jsx("path", { d: "M70.25 16.8a11.8 11.8 0 1 0-11.77 11.8 11.8 11.8 0 0 0 11.8-11.8", fill: "#f38334" }),
58
+ /* @__PURE__ */ jsx(
59
+ "path",
60
+ {
61
+ d: "M58.48 28.6a11.78 11.78 0 0 1-9.86-5.32l-9-12.66a11.77 11.77 0 0 0-20.07 0L5.25 32.86a11.79 11.79 0 0 1 19.87.51l9.36 13.09a11.77 11.77 0 0 0 19 0l.09-.15.68-1 14-21.84a11.78 11.78 0 0 1-9.77 5.13M4.95 33.33l.26-.43z",
62
+ fill: "#3152a0"
63
+ }
64
+ )
78
65
  ] })
79
- ]
66
+ ] })
80
67
  }
81
68
  );
82
69
  const index = {
@@ -89,7 +76,7 @@ const index = {
89
76
  defaultMessage: "Matomo"
90
77
  },
91
78
  Component: async () => {
92
- const { App } = await import("../_chunks/App-S_HgRhsg.mjs");
79
+ const { App } = await import("../_chunks/App-BUfybguc.mjs");
93
80
  return App;
94
81
  }
95
82
  });
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0",
2
+ "version": "1.0.1",
3
3
  "keywords": [],
4
4
  "type": "commonjs",
5
5
  "exports": {
@@ -66,4 +66,4 @@
66
66
  "description": "Add your Matomo analytics dahsboard to Strapi.",
67
67
  "license": "MIT",
68
68
  "author": "Tobias Blättermann <tobias.blaettermann1@gmail.com>"
69
- }
69
+ }
Binary file