@localazy/strapi-plugin 1.1.0 → 1.1.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/dist/_chunks/{FetchIdentity-DfV1OWMB.js → FetchIdentity-CevvxeEj.js} +73 -46
- package/dist/_chunks/{FetchIdentity-lkoWjYjn.mjs → FetchIdentity-DeThazz9.mjs} +43 -16
- package/dist/_chunks/{LanguagesSelector-BmWfSZq6.js → LanguagesSelector-BExpl4Vx.js} +15 -3
- package/dist/_chunks/{LanguagesSelector-vSZvVGUT.mjs → LanguagesSelector-D62gLZsM.mjs} +15 -3
- package/dist/_chunks/{LocalazyApp-st8mwIbM.mjs → LocalazyApp-Czkb4s5J.mjs} +791 -61
- package/dist/_chunks/{LocalazyApp-BUfYt7UL.js → LocalazyApp-DIcO748C.js} +791 -59
- package/dist/_chunks/{LocalazyContentTransferSetup-BjLBgqFO.js → LocalazyContentTransferSetup-DAyZdwi9.js} +13 -10
- package/dist/_chunks/{LocalazyContentTransferSetup-D2YvBYs_.mjs → LocalazyContentTransferSetup-Dx0Z6DXc.mjs} +13 -10
- package/dist/_chunks/{LocalazyGlobalSettings-DHCU2_RH.mjs → LocalazyGlobalSettings-DWMBqlN4.mjs} +149 -12
- package/dist/_chunks/{LocalazyGlobalSettings-Do5tOyhB.js → LocalazyGlobalSettings-DjrXGVxl.js} +148 -11
- package/dist/_chunks/{LocalazyPanel-CulgT97p.mjs → LocalazyPanel-B-0HBTL_.mjs} +4 -4
- package/dist/_chunks/{LocalazyPanel-BDxUI_RH.js → LocalazyPanel-nBOpQo5B.js} +4 -4
- package/dist/_chunks/{LocalazyStatusColumn-DoTWD2eL.mjs → LocalazyStatusColumn-CpO3yccG.mjs} +9 -7
- package/dist/_chunks/{LocalazyStatusColumn-Dpwoc5Ig.js → LocalazyStatusColumn-cGsUDMlX.js} +9 -7
- package/dist/_chunks/{RequireLocalazyAuth-BzM7C6Yw.js → RequireLocalazyAuth-56K8HUNR.js} +4 -4
- package/dist/_chunks/{RequireLocalazyAuth-CqHrZ1Ah.mjs → RequireLocalazyAuth-Dh-mAMcg.mjs} +4 -4
- package/dist/_chunks/{entry-exclusion-service-DWFMKgkA.mjs → entry-exclusion-service-Dm5_iP7I.mjs} +1 -1
- package/dist/_chunks/{entry-exclusion-service-Cvu8PQUI.js → entry-exclusion-service-Rf4Tr0zW.js} +1 -1
- package/dist/_chunks/{has-model-changed-CWdMNRB1.mjs → has-model-changed-6p1lR-Ho.mjs} +2 -2
- package/dist/_chunks/{has-model-changed-D1f6is8z.js → has-model-changed-CGyDQARr.js} +2 -2
- package/dist/_chunks/{i18n-DaBjUC3Y.js → i18n-CAsbU4pi.js} +62 -4
- package/dist/_chunks/{i18n-Bga-GG_Z.mjs → i18n-QelOdIB2.mjs} +62 -4
- package/dist/_chunks/{index-BSNW1ypR.js → index-BK7lmZSN.js} +57 -19
- package/dist/_chunks/{index-CtvR-R3c.mjs → index-Bpf1Mw2A.mjs} +8 -8
- package/dist/_chunks/{index-BgPI2yQD.js → index-BsQ_ie4C.js} +8 -8
- package/dist/_chunks/{index-BIHAiJnE.mjs → index-CHjIMO9T.mjs} +78 -40
- package/dist/_chunks/{strapi-api-base-CturxOqD.mjs → strapi-api-base-Bem_CGuz.mjs} +2 -2
- package/dist/_chunks/{strapi-api-base-CN6q5tPh.js → strapi-api-base-W_bUTSlY.js} +2 -2
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/PluginErrorBoundary.d.ts +5 -0
- package/dist/admin/src/modules/@common/locale/en.d.ts +4 -0
- package/dist/admin/src/modules/@common/services/project-service.d.ts +9 -0
- package/dist/admin/src/modules/@common/styles/heading-fix.d.ts +7 -0
- package/dist/admin/src/modules/@common/utils/export-json.d.ts +1 -0
- package/dist/admin/src/modules/@common/utils/redirect-to-plugin-route.d.ts +1 -0
- package/dist/admin/src/modules/activity-logs/components/HighlightMatch.d.ts +6 -0
- package/dist/admin/src/modules/activity-logs/components/SessionMetadata.d.ts +7 -0
- package/dist/admin/src/modules/activity-logs/components/SessionsTable.d.ts +17 -0
- package/dist/admin/src/modules/activity-logs/components/SortableHeader.d.ts +10 -0
- package/dist/admin/src/modules/activity-logs/components/StatusLabel.d.ts +6 -0
- package/dist/admin/src/modules/activity-logs/hooks/use-debounced-search.d.ts +6 -0
- package/dist/admin/src/modules/activity-logs/locale/en.d.ts +33 -0
- package/dist/admin/src/modules/activity-logs/models/activity-logs.d.ts +19 -0
- package/dist/admin/src/modules/activity-logs/services/activity-logs-service.d.ts +6 -0
- package/dist/admin/src/modules/activity-logs/utils/export-logs.d.ts +1 -0
- package/dist/admin/src/modules/activity-logs/utils/format-utils.d.ts +4 -0
- package/dist/admin/src/modules/plugin-settings/components/WebhookSetup.d.ts +2 -0
- package/dist/admin/src/modules/plugin-settings/locale/en.d.ts +21 -0
- package/dist/admin/src/pages/ActivityLogDetail.d.ts +7 -0
- package/dist/admin/src/pages/ActivityLogs.d.ts +7 -0
- package/dist/server/index.js +392 -47
- package/dist/server/index.mjs +392 -47
- package/dist/server/src/controllers/activity-logs-controller.d.ts +10 -0
- package/dist/server/src/controllers/index.d.ts +12 -1
- package/dist/server/src/controllers/localazy-project-controller.d.ts +4 -1
- package/dist/server/src/core/index.d.ts +13 -0
- package/dist/server/src/db/model/activity-logs.d.ts +20 -0
- package/dist/server/src/db/model/plugin-settings.d.ts +14 -0
- package/dist/server/src/index.d.ts +27 -1
- package/dist/server/src/routes/activity-logs-routes.d.ts +9 -0
- package/dist/server/src/services/activity-logs-service.d.ts +17 -0
- package/dist/server/src/services/index.d.ts +15 -0
- package/dist/server/src/services/localazy-pubapi-service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const strapiApiBase = require("./strapi-api-base-
|
|
2
|
+
const strapiApiBase = require("./strapi-api-base-W_bUTSlY.js");
|
|
3
|
+
const index = require("./index-BK7lmZSN.js");
|
|
4
|
+
const styled = require("styled-components");
|
|
3
5
|
const React = require("react");
|
|
4
6
|
const jsxRuntime = require("react/jsx-runtime");
|
|
5
7
|
const emptyIdentity = {
|
|
@@ -108,6 +110,29 @@ class LocalazyUserService {
|
|
|
108
110
|
}
|
|
109
111
|
}
|
|
110
112
|
}
|
|
113
|
+
const THEME_KEY = "STRAPI_THEME";
|
|
114
|
+
const getDefaultThemeName = () => {
|
|
115
|
+
const persistedTheme = localStorage.getItem(THEME_KEY);
|
|
116
|
+
return persistedTheme || "system";
|
|
117
|
+
};
|
|
118
|
+
const getDefaultTheme = () => {
|
|
119
|
+
const themeName = getDefaultThemeName();
|
|
120
|
+
return themeName === "system" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? index.darkTheme : index.lightTheme : themeName === "dark" ? index.darkTheme : index.lightTheme;
|
|
121
|
+
};
|
|
122
|
+
const HeadingFixGlobalStyle = styled.createGlobalStyle`
|
|
123
|
+
[data-strapi-header] h1,
|
|
124
|
+
[data-strapi-header] h2 {
|
|
125
|
+
font-size: 3.2rem !important;
|
|
126
|
+
font-weight: 600 !important;
|
|
127
|
+
line-height: 1.25 !important;
|
|
128
|
+
}
|
|
129
|
+
[data-strapi-header-sticky] h1,
|
|
130
|
+
[data-strapi-header-sticky] h2 {
|
|
131
|
+
font-size: 1.8rem !important;
|
|
132
|
+
font-weight: 600 !important;
|
|
133
|
+
line-height: 1.22 !important;
|
|
134
|
+
}
|
|
135
|
+
`;
|
|
111
136
|
var isArray = Array.isArray;
|
|
112
137
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
113
138
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
@@ -257,10 +282,10 @@ function hashSet(key, value) {
|
|
|
257
282
|
return this;
|
|
258
283
|
}
|
|
259
284
|
function Hash(entries) {
|
|
260
|
-
var
|
|
285
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
261
286
|
this.clear();
|
|
262
|
-
while (++
|
|
263
|
-
var entry = entries[
|
|
287
|
+
while (++index2 < length) {
|
|
288
|
+
var entry = entries[index2];
|
|
264
289
|
this.set(entry[0], entry[1]);
|
|
265
290
|
}
|
|
266
291
|
}
|
|
@@ -288,41 +313,41 @@ function assocIndexOf(array, key) {
|
|
|
288
313
|
var arrayProto = Array.prototype;
|
|
289
314
|
var splice = arrayProto.splice;
|
|
290
315
|
function listCacheDelete(key) {
|
|
291
|
-
var data = this.__data__,
|
|
292
|
-
if (
|
|
316
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
317
|
+
if (index2 < 0) {
|
|
293
318
|
return false;
|
|
294
319
|
}
|
|
295
320
|
var lastIndex = data.length - 1;
|
|
296
|
-
if (
|
|
321
|
+
if (index2 == lastIndex) {
|
|
297
322
|
data.pop();
|
|
298
323
|
} else {
|
|
299
|
-
splice.call(data,
|
|
324
|
+
splice.call(data, index2, 1);
|
|
300
325
|
}
|
|
301
326
|
--this.size;
|
|
302
327
|
return true;
|
|
303
328
|
}
|
|
304
329
|
function listCacheGet(key) {
|
|
305
|
-
var data = this.__data__,
|
|
306
|
-
return
|
|
330
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
331
|
+
return index2 < 0 ? void 0 : data[index2][1];
|
|
307
332
|
}
|
|
308
333
|
function listCacheHas(key) {
|
|
309
334
|
return assocIndexOf(this.__data__, key) > -1;
|
|
310
335
|
}
|
|
311
336
|
function listCacheSet(key, value) {
|
|
312
|
-
var data = this.__data__,
|
|
313
|
-
if (
|
|
337
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
338
|
+
if (index2 < 0) {
|
|
314
339
|
++this.size;
|
|
315
340
|
data.push([key, value]);
|
|
316
341
|
} else {
|
|
317
|
-
data[
|
|
342
|
+
data[index2][1] = value;
|
|
318
343
|
}
|
|
319
344
|
return this;
|
|
320
345
|
}
|
|
321
346
|
function ListCache(entries) {
|
|
322
|
-
var
|
|
347
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
323
348
|
this.clear();
|
|
324
|
-
while (++
|
|
325
|
-
var entry = entries[
|
|
349
|
+
while (++index2 < length) {
|
|
350
|
+
var entry = entries[index2];
|
|
326
351
|
this.set(entry[0], entry[1]);
|
|
327
352
|
}
|
|
328
353
|
}
|
|
@@ -366,10 +391,10 @@ function mapCacheSet(key, value) {
|
|
|
366
391
|
return this;
|
|
367
392
|
}
|
|
368
393
|
function MapCache(entries) {
|
|
369
|
-
var
|
|
394
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
370
395
|
this.clear();
|
|
371
|
-
while (++
|
|
372
|
-
var entry = entries[
|
|
396
|
+
while (++index2 < length) {
|
|
397
|
+
var entry = entries[index2];
|
|
373
398
|
this.set(entry[0], entry[1]);
|
|
374
399
|
}
|
|
375
400
|
}
|
|
@@ -420,9 +445,9 @@ var stringToPath = memoizeCapped(function(string) {
|
|
|
420
445
|
return result;
|
|
421
446
|
});
|
|
422
447
|
function arrayMap(array, iteratee) {
|
|
423
|
-
var
|
|
424
|
-
while (++
|
|
425
|
-
result[
|
|
448
|
+
var index2 = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
449
|
+
while (++index2 < length) {
|
|
450
|
+
result[index2] = iteratee(array[index2], index2, array);
|
|
426
451
|
}
|
|
427
452
|
return result;
|
|
428
453
|
}
|
|
@@ -465,10 +490,10 @@ function setCacheHas(value) {
|
|
|
465
490
|
return this.__data__.has(value);
|
|
466
491
|
}
|
|
467
492
|
function SetCache(values) {
|
|
468
|
-
var
|
|
493
|
+
var index2 = -1, length = values == null ? 0 : values.length;
|
|
469
494
|
this.__data__ = new MapCache();
|
|
470
|
-
while (++
|
|
471
|
-
this.add(values[
|
|
495
|
+
while (++index2 < length) {
|
|
496
|
+
this.add(values[index2]);
|
|
472
497
|
}
|
|
473
498
|
}
|
|
474
499
|
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
@@ -478,9 +503,9 @@ function cacheHas(cache, key) {
|
|
|
478
503
|
}
|
|
479
504
|
var Set = getNative(root, "Set");
|
|
480
505
|
function setToArray(set2) {
|
|
481
|
-
var
|
|
506
|
+
var index2 = -1, result = Array(set2.size);
|
|
482
507
|
set2.forEach(function(value) {
|
|
483
|
-
result[++
|
|
508
|
+
result[++index2] = value;
|
|
484
509
|
});
|
|
485
510
|
return result;
|
|
486
511
|
}
|
|
@@ -525,9 +550,9 @@ Stack.prototype.get = stackGet;
|
|
|
525
550
|
Stack.prototype.has = stackHas;
|
|
526
551
|
Stack.prototype.set = stackSet;
|
|
527
552
|
function arrayEach(array, iteratee) {
|
|
528
|
-
var
|
|
529
|
-
while (++
|
|
530
|
-
if (iteratee(array[
|
|
553
|
+
var index2 = -1, length = array == null ? 0 : array.length;
|
|
554
|
+
while (++index2 < length) {
|
|
555
|
+
if (iteratee(array[index2], index2, array) === false) {
|
|
531
556
|
break;
|
|
532
557
|
}
|
|
533
558
|
}
|
|
@@ -562,9 +587,9 @@ function assignValue(object, key, value) {
|
|
|
562
587
|
}
|
|
563
588
|
}
|
|
564
589
|
function baseTimes(n, iteratee) {
|
|
565
|
-
var
|
|
566
|
-
while (++
|
|
567
|
-
result[
|
|
590
|
+
var index2 = -1, result = Array(n);
|
|
591
|
+
while (++index2 < n) {
|
|
592
|
+
result[index2] = iteratee(index2);
|
|
568
593
|
}
|
|
569
594
|
return result;
|
|
570
595
|
}
|
|
@@ -686,10 +711,10 @@ function cloneBuffer(buffer, isDeep) {
|
|
|
686
711
|
}
|
|
687
712
|
}
|
|
688
713
|
function arrayFilter(array, predicate) {
|
|
689
|
-
var
|
|
690
|
-
while (++
|
|
691
|
-
var value = array[
|
|
692
|
-
if (predicate(value,
|
|
714
|
+
var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
715
|
+
while (++index2 < length) {
|
|
716
|
+
var value = array[index2];
|
|
717
|
+
if (predicate(value, index2, array)) {
|
|
693
718
|
result[resIndex++] = value;
|
|
694
719
|
}
|
|
695
720
|
}
|
|
@@ -711,9 +736,9 @@ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
|
711
736
|
});
|
|
712
737
|
};
|
|
713
738
|
function arrayPush(array, values) {
|
|
714
|
-
var
|
|
715
|
-
while (++
|
|
716
|
-
array[offset +
|
|
739
|
+
var index2 = -1, length = values.length, offset = array.length;
|
|
740
|
+
while (++index2 < length) {
|
|
741
|
+
array[offset + index2] = values[index2];
|
|
717
742
|
}
|
|
718
743
|
return array;
|
|
719
744
|
}
|
|
@@ -918,17 +943,17 @@ function baseSet(object, path, value, customizer) {
|
|
|
918
943
|
return object;
|
|
919
944
|
}
|
|
920
945
|
path = castPath(path, object);
|
|
921
|
-
var
|
|
922
|
-
while (nested != null && ++
|
|
923
|
-
var key = toKey(path[
|
|
946
|
+
var index2 = -1, length = path.length, lastIndex = length - 1, nested = object;
|
|
947
|
+
while (nested != null && ++index2 < length) {
|
|
948
|
+
var key = toKey(path[index2]), newValue = value;
|
|
924
949
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
925
950
|
return object;
|
|
926
951
|
}
|
|
927
|
-
if (
|
|
952
|
+
if (index2 != lastIndex) {
|
|
928
953
|
var objValue = nested[key];
|
|
929
954
|
newValue = void 0;
|
|
930
955
|
if (newValue === void 0) {
|
|
931
|
-
newValue = isObject(objValue) ? objValue : isIndex(path[
|
|
956
|
+
newValue = isObject(objValue) ? objValue : isIndex(path[index2 + 1]) ? [] : {};
|
|
932
957
|
}
|
|
933
958
|
}
|
|
934
959
|
assignValue(nested, key, newValue);
|
|
@@ -956,11 +981,12 @@ const FetchIdentity = () => {
|
|
|
956
981
|
setIsFetchingIdentity(false);
|
|
957
982
|
}
|
|
958
983
|
};
|
|
959
|
-
fetchIdentity();
|
|
984
|
+
void fetchIdentity();
|
|
960
985
|
}, [setIdentity, setIsFetchingIdentity]);
|
|
961
986
|
return null;
|
|
962
987
|
};
|
|
963
988
|
exports.FetchIdentity = FetchIdentity;
|
|
989
|
+
exports.HeadingFixGlobalStyle = HeadingFixGlobalStyle;
|
|
964
990
|
exports.LocalazyIdentityProvider = LocalazyIdentityProvider;
|
|
965
991
|
exports.LocalazyUserService = LocalazyUserService;
|
|
966
992
|
exports.PluginSettingsService = PluginSettingsService;
|
|
@@ -976,6 +1002,7 @@ exports.cloneDeep = cloneDeep;
|
|
|
976
1002
|
exports.emptyIdentity = emptyIdentity;
|
|
977
1003
|
exports.eq = eq;
|
|
978
1004
|
exports.getAllKeys = getAllKeys;
|
|
1005
|
+
exports.getDefaultTheme = getDefaultTheme;
|
|
979
1006
|
exports.isArray = isArray;
|
|
980
1007
|
exports.isArrayLike = isArrayLike;
|
|
981
1008
|
exports.isBuffer = isBuffer;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-
|
|
1
|
+
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-Bem_CGuz.mjs";
|
|
2
|
+
import { U as darkTheme, V as lightTheme } from "./index-CHjIMO9T.mjs";
|
|
3
|
+
import { createGlobalStyle } from "styled-components";
|
|
2
4
|
import { useState, useMemo, createContext, useContext, useEffect } from "react";
|
|
3
5
|
import { jsx } from "react/jsx-runtime";
|
|
4
6
|
const emptyIdentity = {
|
|
@@ -107,6 +109,29 @@ class LocalazyUserService {
|
|
|
107
109
|
}
|
|
108
110
|
}
|
|
109
111
|
}
|
|
112
|
+
const THEME_KEY = "STRAPI_THEME";
|
|
113
|
+
const getDefaultThemeName = () => {
|
|
114
|
+
const persistedTheme = localStorage.getItem(THEME_KEY);
|
|
115
|
+
return persistedTheme || "system";
|
|
116
|
+
};
|
|
117
|
+
const getDefaultTheme = () => {
|
|
118
|
+
const themeName = getDefaultThemeName();
|
|
119
|
+
return themeName === "system" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? darkTheme : lightTheme : themeName === "dark" ? darkTheme : lightTheme;
|
|
120
|
+
};
|
|
121
|
+
const HeadingFixGlobalStyle = createGlobalStyle`
|
|
122
|
+
[data-strapi-header] h1,
|
|
123
|
+
[data-strapi-header] h2 {
|
|
124
|
+
font-size: 3.2rem !important;
|
|
125
|
+
font-weight: 600 !important;
|
|
126
|
+
line-height: 1.25 !important;
|
|
127
|
+
}
|
|
128
|
+
[data-strapi-header-sticky] h1,
|
|
129
|
+
[data-strapi-header-sticky] h2 {
|
|
130
|
+
font-size: 1.8rem !important;
|
|
131
|
+
font-weight: 600 !important;
|
|
132
|
+
line-height: 1.22 !important;
|
|
133
|
+
}
|
|
134
|
+
`;
|
|
110
135
|
var isArray = Array.isArray;
|
|
111
136
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
112
137
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
@@ -955,12 +980,13 @@ const FetchIdentity = () => {
|
|
|
955
980
|
setIsFetchingIdentity(false);
|
|
956
981
|
}
|
|
957
982
|
};
|
|
958
|
-
fetchIdentity();
|
|
983
|
+
void fetchIdentity();
|
|
959
984
|
}, [setIdentity, setIsFetchingIdentity]);
|
|
960
985
|
return null;
|
|
961
986
|
};
|
|
962
987
|
export {
|
|
963
988
|
FetchIdentity as F,
|
|
989
|
+
HeadingFixGlobalStyle as H,
|
|
964
990
|
LocalazyIdentityProvider as L,
|
|
965
991
|
PluginSettingsService as P,
|
|
966
992
|
SetCache as S,
|
|
@@ -970,22 +996,23 @@ export {
|
|
|
970
996
|
cloneDeep as c,
|
|
971
997
|
setToArray as d,
|
|
972
998
|
eq as e,
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
999
|
+
getAllKeys as f,
|
|
1000
|
+
getDefaultTheme as g,
|
|
1001
|
+
getTag as h,
|
|
976
1002
|
isBuffer as i,
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
1003
|
+
Stack as j,
|
|
1004
|
+
isTypedArray as k,
|
|
1005
|
+
isArray as l,
|
|
1006
|
+
isObjectLike as m,
|
|
1007
|
+
keys as n,
|
|
1008
|
+
isArrayLike as o,
|
|
1009
|
+
arrayEach as p,
|
|
1010
|
+
isObject as q,
|
|
1011
|
+
castPath as r,
|
|
986
1012
|
set as s,
|
|
987
1013
|
toKey as t,
|
|
988
1014
|
useLocalazyIdentity as u,
|
|
989
|
-
|
|
990
|
-
|
|
1015
|
+
Set as v,
|
|
1016
|
+
LocalazyUserService as w,
|
|
1017
|
+
emptyIdentity as x
|
|
991
1018
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const strapiApiBase = require("./strapi-api-base-
|
|
2
|
+
const strapiApiBase = require("./strapi-api-base-W_bUTSlY.js");
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const FetchIdentity = require("./FetchIdentity-
|
|
6
|
-
const index = require("./index-
|
|
5
|
+
const FetchIdentity = require("./FetchIdentity-CevvxeEj.js");
|
|
6
|
+
const index = require("./index-BK7lmZSN.js");
|
|
7
7
|
const useTranslation = require("./useTranslation-BdIl-aLe.js");
|
|
8
8
|
const strapiApiInstance = strapiApiBase.createStrapiApiAxiosInstance();
|
|
9
9
|
class ProjectService {
|
|
@@ -15,6 +15,18 @@ class ProjectService {
|
|
|
15
15
|
throw e;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
static async getWebhookStatus() {
|
|
19
|
+
const result = await strapiApiInstance.get(`/project/webhooks`);
|
|
20
|
+
return result.data;
|
|
21
|
+
}
|
|
22
|
+
static async setupWebhook(url) {
|
|
23
|
+
const result = await strapiApiInstance.post(`/project/webhooks/setup`, { url });
|
|
24
|
+
return result.data;
|
|
25
|
+
}
|
|
26
|
+
static async getStrapiUrl() {
|
|
27
|
+
const result = await strapiApiInstance.get(`/project/strapi-url`);
|
|
28
|
+
return result.data;
|
|
29
|
+
}
|
|
18
30
|
}
|
|
19
31
|
const LanguagesSelector = (props) => {
|
|
20
32
|
const { t } = useTranslation.useTranslation();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-
|
|
1
|
+
import { c as createStrapiApiAxiosInstance } from "./strapi-api-base-Bem_CGuz.mjs";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
|
-
import { c as cloneDeep } from "./FetchIdentity-
|
|
5
|
-
import { F as Field, M as MultiSelect, b as MultiSelectOption } from "./index-
|
|
4
|
+
import { c as cloneDeep } from "./FetchIdentity-DeThazz9.mjs";
|
|
5
|
+
import { F as Field, M as MultiSelect, b as MultiSelectOption } from "./index-CHjIMO9T.mjs";
|
|
6
6
|
import { u as useTranslation } from "./useTranslation-CZQ4lU1m.mjs";
|
|
7
7
|
const strapiApiInstance = createStrapiApiAxiosInstance();
|
|
8
8
|
class ProjectService {
|
|
@@ -14,6 +14,18 @@ class ProjectService {
|
|
|
14
14
|
throw e;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
+
static async getWebhookStatus() {
|
|
18
|
+
const result = await strapiApiInstance.get(`/project/webhooks`);
|
|
19
|
+
return result.data;
|
|
20
|
+
}
|
|
21
|
+
static async setupWebhook(url) {
|
|
22
|
+
const result = await strapiApiInstance.post(`/project/webhooks/setup`, { url });
|
|
23
|
+
return result.data;
|
|
24
|
+
}
|
|
25
|
+
static async getStrapiUrl() {
|
|
26
|
+
const result = await strapiApiInstance.get(`/project/strapi-url`);
|
|
27
|
+
return result.data;
|
|
28
|
+
}
|
|
17
29
|
}
|
|
18
30
|
const LanguagesSelector = (props) => {
|
|
19
31
|
const { t } = useTranslation();
|