@inspirer-dev/crm-dashboard 1.0.4 → 1.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.
@@ -13,7 +13,7 @@ import {
13
13
  Badge,
14
14
  Switch,
15
15
  } from '@strapi/design-system';
16
- import { Plus, Trash, CirclePlus } from '@strapi/icons';
16
+ import { Plus, Trash, Layout } from '@strapi/icons';
17
17
  import { useTheme } from 'styled-components';
18
18
 
19
19
  import type {
@@ -432,7 +432,7 @@ const RuleGroupComponent: React.FC<RuleGroupComponentProps> = ({
432
432
  <Button
433
433
  variant="tertiary"
434
434
  size="S"
435
- startIcon={<CirclePlus />}
435
+ startIcon={<Layout />}
436
436
  onClick={handleAddGroup}
437
437
  disabled={disabled}
438
438
  >
@@ -61,7 +61,7 @@ const LogsTable: React.FC = () => {
61
61
  if (filterUserId) params.set('userId', filterUserId);
62
62
  if (filterStatus) params.set('status', filterStatus);
63
63
 
64
- const backendUrl = process.env.STRAPI_ADMIN_BACKEND_URL || 'http://localhost:4000';
64
+ const backendUrl = process.env.API_URL || 'http://localhost:3100';
65
65
  const res = await fetch(`${backendUrl}/crm/logs?${params}`);
66
66
  if (res.ok) {
67
67
  const data = await res.json();
@@ -224,7 +224,7 @@ const AntiSpamLogsTable: React.FC = () => {
224
224
  pageSize: '20',
225
225
  });
226
226
 
227
- const backendUrl = process.env.STRAPI_ADMIN_BACKEND_URL || 'http://localhost:4000';
227
+ const backendUrl = process.env.API_URL || 'http://localhost:3100';
228
228
  const res = await fetch(`${backendUrl}/crm/anti-spam-logs?${params}`);
229
229
  if (res.ok) {
230
230
  const data = await res.json();
@@ -355,7 +355,7 @@ const StatsView: React.FC = () => {
355
355
  const fetchStats = useCallback(async () => {
356
356
  setLoading(true);
357
357
  try {
358
- const backendUrl = process.env.STRAPI_ADMIN_BACKEND_URL || 'http://localhost:4000';
358
+ const backendUrl = process.env.API_URL || 'http://localhost:3100';
359
359
  const res = await fetch(`${backendUrl}/crm/stats`);
360
360
  if (res.ok) {
361
361
  const data = await res.json();
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import React__default, { forwardRef, useState, useMemo, useCallback } from "react";
3
3
  import { Field, Flex, Badge, Button, Box, Typography, Tooltip, IconButton, SingleSelect, SingleSelectOption, Switch, TextInput } from "@strapi/design-system";
4
- import { Trash, Plus, CirclePlus } from "@strapi/icons";
4
+ import { Trash, Plus, Layout } from "@strapi/icons";
5
5
  import { useTheme } from "styled-components";
6
6
  const OPERATORS = [
7
7
  { value: "$eq", label: "=", description: "Equals" },
@@ -775,7 +775,7 @@ const RuleGroupComponent = ({
775
775
  {
776
776
  variant: "tertiary",
777
777
  size: "S",
778
- startIcon: /* @__PURE__ */ jsx(CirclePlus, {}),
778
+ startIcon: /* @__PURE__ */ jsx(Layout, {}),
779
779
  onClick: handleAddGroup,
780
780
  disabled,
781
781
  children: [
@@ -16965,7 +16965,7 @@ const LogsTable = () => {
16965
16965
  });
16966
16966
  if (filterUserId) params.set("userId", filterUserId);
16967
16967
  if (filterStatus) params.set("status", filterStatus);
16968
- const backendUrl = process.env.STRAPI_ADMIN_BACKEND_URL || "http://localhost:4000";
16968
+ const backendUrl = process.env.API_URL || "http://localhost:3100";
16969
16969
  const res = await fetch(`${backendUrl}/crm/logs?${params}`);
16970
16970
  if (res.ok) {
16971
16971
  const data = await res.json();
@@ -17091,7 +17091,7 @@ const AntiSpamLogsTable = () => {
17091
17091
  page: String(page),
17092
17092
  pageSize: "20"
17093
17093
  });
17094
- const backendUrl = process.env.STRAPI_ADMIN_BACKEND_URL || "http://localhost:4000";
17094
+ const backendUrl = process.env.API_URL || "http://localhost:3100";
17095
17095
  const res = await fetch(`${backendUrl}/crm/anti-spam-logs?${params}`);
17096
17096
  if (res.ok) {
17097
17097
  const data = await res.json();
@@ -17185,7 +17185,7 @@ const StatsView = () => {
17185
17185
  const fetchStats = useCallback(async () => {
17186
17186
  setLoading(true);
17187
17187
  try {
17188
- const backendUrl = process.env.STRAPI_ADMIN_BACKEND_URL || "http://localhost:4000";
17188
+ const backendUrl = process.env.API_URL || "http://localhost:3100";
17189
17189
  const res = await fetch(`${backendUrl}/crm/stats`);
17190
17190
  if (res.ok) {
17191
17191
  const data = await res.json();
@@ -779,7 +779,7 @@ const RuleGroupComponent = ({
779
779
  {
780
780
  variant: "tertiary",
781
781
  size: "S",
782
- startIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.CirclePlus, {}),
782
+ startIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.Layout, {}),
783
783
  onClick: handleAddGroup,
784
784
  disabled,
785
785
  children: [
@@ -16986,7 +16986,7 @@ const LogsTable = () => {
16986
16986
  });
16987
16987
  if (filterUserId) params.set("userId", filterUserId);
16988
16988
  if (filterStatus) params.set("status", filterStatus);
16989
- const backendUrl = process.env.STRAPI_ADMIN_BACKEND_URL || "http://localhost:4000";
16989
+ const backendUrl = process.env.API_URL || "http://localhost:3100";
16990
16990
  const res = await fetch(`${backendUrl}/crm/logs?${params}`);
16991
16991
  if (res.ok) {
16992
16992
  const data = await res.json();
@@ -17112,7 +17112,7 @@ const AntiSpamLogsTable = () => {
17112
17112
  page: String(page),
17113
17113
  pageSize: "20"
17114
17114
  });
17115
- const backendUrl = process.env.STRAPI_ADMIN_BACKEND_URL || "http://localhost:4000";
17115
+ const backendUrl = process.env.API_URL || "http://localhost:3100";
17116
17116
  const res = await fetch(`${backendUrl}/crm/anti-spam-logs?${params}`);
17117
17117
  if (res.ok) {
17118
17118
  const data = await res.json();
@@ -17206,7 +17206,7 @@ const StatsView = () => {
17206
17206
  const fetchStats = React.useCallback(async () => {
17207
17207
  setLoading(true);
17208
17208
  try {
17209
- const backendUrl = process.env.STRAPI_ADMIN_BACKEND_URL || "http://localhost:4000";
17209
+ const backendUrl = process.env.API_URL || "http://localhost:3100";
17210
17210
  const res = await fetch(`${backendUrl}/crm/stats`);
17211
17211
  if (res.ok) {
17212
17212
  const data = await res.json();
@@ -36,7 +36,7 @@ const index = {
36
36
  components: {
37
37
  Input: async () => Promise.resolve().then(() => require(
38
38
  /* webpackChunkName: "crm-rules-builder" */
39
- "../_chunks/index-Nq4q4Hr3.js"
39
+ "../_chunks/index-DIwnSzER.js"
40
40
  ))
41
41
  },
42
42
  options: {
@@ -54,7 +54,7 @@ const index = {
54
54
  Component: async () => {
55
55
  const component = await Promise.resolve().then(() => require(
56
56
  /* webpackChunkName: "crm-dashboard-page" */
57
- "../_chunks/index-BYtwkTin.js"
57
+ "../_chunks/index-DunT1W5g.js"
58
58
  ));
59
59
  return component;
60
60
  },
@@ -35,7 +35,7 @@ const index = {
35
35
  components: {
36
36
  Input: async () => import(
37
37
  /* webpackChunkName: "crm-rules-builder" */
38
- "../_chunks/index-NUUXMwL7.mjs"
38
+ "../_chunks/index-CNvqpnNt.mjs"
39
39
  )
40
40
  },
41
41
  options: {
@@ -53,7 +53,7 @@ const index = {
53
53
  Component: async () => {
54
54
  const component = await import(
55
55
  /* webpackChunkName: "crm-dashboard-page" */
56
- "../_chunks/index-9qOMKawN.mjs"
56
+ "../_chunks/index-CRahU8DK.mjs"
57
57
  );
58
58
  return component;
59
59
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inspirer-dev/crm-dashboard",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "CRM Dashboard and Tools",
5
5
  "strapi": {
6
6
  "name": "crm-dashboard",