strapi-cache 1.4.3 → 1.4.4
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/de-CBzKPGsY.mjs +14 -0
- package/dist/_chunks/de-CjN-9Obj.js +14 -0
- package/dist/_chunks/{en-D3udXrSa.mjs → en-BDlRjAzq.mjs} +2 -3
- package/dist/_chunks/{en-CcRrGOBv.js → en-D24wwyGh.js} +2 -3
- package/dist/admin/index.js +69 -134
- package/dist/admin/index.mjs +71 -136
- package/dist/admin/src/components/PurgeCacheButton/index.d.ts +1 -1
- package/dist/admin/src/components/PurgeEntityButton/index.d.ts +1 -1
- package/dist/admin/src/components/PurgeModal/PurgeButton/index.d.ts +4 -0
- package/dist/admin/src/components/PurgeModal/index.d.ts +7 -0
- package/dist/server/index.js +0 -1
- package/dist/server/index.mjs +0 -1
- package/package.json +1 -1
- package/dist/_chunks/en-B9bQFCLY.mjs +0 -18
- package/dist/_chunks/en-B9bQFCLY.mjs.map +0 -1
- package/dist/_chunks/en-BPx_Feq_.mjs +0 -17
- package/dist/_chunks/en-BPx_Feq_.mjs.map +0 -1
- package/dist/_chunks/en-BdzOe-Jv.mjs +0 -16
- package/dist/_chunks/en-BdzOe-Jv.mjs.map +0 -1
- package/dist/_chunks/en-Bev8UGB9.js +0 -14
- package/dist/_chunks/en-Bev8UGB9.js.map +0 -1
- package/dist/_chunks/en-BgoZyxl0.mjs +0 -10
- package/dist/_chunks/en-BgoZyxl0.mjs.map +0 -1
- package/dist/_chunks/en-BkqNXvi0.mjs +0 -18
- package/dist/_chunks/en-BkqNXvi0.mjs.map +0 -1
- package/dist/_chunks/en-C0JeH0S_.js +0 -17
- package/dist/_chunks/en-C0JeH0S_.js.map +0 -1
- package/dist/_chunks/en-C0qeO9FB.mjs +0 -15
- package/dist/_chunks/en-C0qeO9FB.mjs.map +0 -1
- package/dist/_chunks/en-CBPjpI-y.js +0 -18
- package/dist/_chunks/en-CBPjpI-y.js.map +0 -1
- package/dist/_chunks/en-CIN0kRXJ.js +0 -10
- package/dist/_chunks/en-CIN0kRXJ.js.map +0 -1
- package/dist/_chunks/en-CVjURV1W.js +0 -11
- package/dist/_chunks/en-CVjURV1W.js.map +0 -1
- package/dist/_chunks/en-CWf_jLFj.js +0 -18
- package/dist/_chunks/en-CWf_jLFj.js.map +0 -1
- package/dist/_chunks/en-C_x7qEgd.mjs +0 -11
- package/dist/_chunks/en-C_x7qEgd.mjs.map +0 -1
- package/dist/_chunks/en-CcRrGOBv.js.map +0 -1
- package/dist/_chunks/en-Cq54r800.mjs +0 -18
- package/dist/_chunks/en-Cq54r800.mjs.map +0 -1
- package/dist/_chunks/en-D3udXrSa.mjs.map +0 -1
- package/dist/_chunks/en-DZzRFINn.js +0 -16
- package/dist/_chunks/en-DZzRFINn.js.map +0 -1
- package/dist/_chunks/en-D_Fd-4QS.js +0 -15
- package/dist/_chunks/en-D_Fd-4QS.js.map +0 -1
- package/dist/_chunks/en-DdVULHeC.mjs +0 -14
- package/dist/_chunks/en-DdVULHeC.mjs.map +0 -1
- package/dist/_chunks/en-DehLWejq.mjs +0 -18
- package/dist/_chunks/en-DehLWejq.mjs.map +0 -1
- package/dist/_chunks/en-Do3Kh30d.js +0 -18
- package/dist/_chunks/en-Do3Kh30d.js.map +0 -1
- package/dist/_chunks/en-N9VY0B4k.mjs +0 -18
- package/dist/_chunks/en-N9VY0B4k.mjs.map +0 -1
- package/dist/_chunks/en-O03hkb40.js +0 -18
- package/dist/_chunks/en-O03hkb40.js.map +0 -1
- package/dist/_chunks/en-TyY2Xkua.js +0 -18
- package/dist/_chunks/en-TyY2Xkua.js.map +0 -1
- package/dist/_chunks/en-eba6oPnU.mjs +0 -18
- package/dist/_chunks/en-eba6oPnU.mjs.map +0 -1
- package/dist/_chunks/en-wt3vH-k4.js +0 -18
- package/dist/_chunks/en-wt3vH-k4.js.map +0 -1
- package/dist/admin/index.js.map +0 -1
- package/dist/admin/index.mjs.map +0 -1
- package/dist/server/index.js.map +0 -1
- package/dist/server/index.mjs.map +0 -1
- package/dist/server/src/destroy.d.ts +0 -5
- package/dist/server/src/routes/content-api.d.ts +0 -9
- package/dist/server/src/services/service.d.ts +0 -6
- package/dist/server/src/utils/etag.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const en = {
|
|
2
|
-
"strapi-cache.name": "Strapi Cache",
|
|
3
|
-
"strapi-cache.settings": "Cache Settings",
|
|
4
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
5
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
6
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
7
|
-
"strapi-cache.cache.purge.entity": "Purge Entity Cache",
|
|
8
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
9
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
10
|
-
"strapi-cache.cache.purge.confirmation": "This purges all keys where {key} is part of the key. Are you sure you want to purge the cache?",
|
|
11
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully",
|
|
12
|
-
"strapi-cache.cache.purge.error": "Error purging cache",
|
|
13
|
-
"strapi-cache.cache.purge.no-content-type": "No content type found"
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
en as default
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=en-B9bQFCLY.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-B9bQFCLY.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const en = {
|
|
2
|
-
"strapi-cache.name": "Strapi Cache",
|
|
3
|
-
"strapi-cache.settings": "Cache Settings",
|
|
4
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
5
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
6
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
7
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
8
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
9
|
-
"strapi-cache.cache.purge.confirmation": "Are you sure you want to purge the cache?",
|
|
10
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully",
|
|
11
|
-
"strapi-cache.cache.purge.error": "Error purging cache",
|
|
12
|
-
"strapi-cache.cache.purge.no-content-type": "No content type found"
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
en as default
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=en-BPx_Feq_.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-BPx_Feq_.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const en = {
|
|
2
|
-
"strapi-cache.name": "Strapi Cache",
|
|
3
|
-
"strapi-cache.settings": "Cache Settings",
|
|
4
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
5
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
6
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
7
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
8
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
9
|
-
"strapi-cache.cache.purge.confirmation": "Are you sure you want to purge the cache?",
|
|
10
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully",
|
|
11
|
-
"strapi-cache.cache.purge.error": "Error purging cache"
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
en as default
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=en-BdzOe-Jv.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-BdzOe-Jv.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const en = {
|
|
4
|
-
"strapi-cache.name": "Strapi Cache",
|
|
5
|
-
"strapi-cache.settings": "Cache Settings",
|
|
6
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
7
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
8
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
9
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
10
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
11
|
-
"strapi-cache.cache.purge.confirmation": "Are you sure you want to purge the cache?"
|
|
12
|
-
};
|
|
13
|
-
exports.default = en;
|
|
14
|
-
//# sourceMappingURL=en-Bev8UGB9.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-Bev8UGB9.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const en = {
|
|
2
|
-
"strapi-cache.name": "Strapi Cache",
|
|
3
|
-
"strapi-cache.settings": "Cache Settings",
|
|
4
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
5
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache"
|
|
6
|
-
};
|
|
7
|
-
export {
|
|
8
|
-
en as default
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=en-BgoZyxl0.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-BgoZyxl0.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const en = {
|
|
2
|
-
"strapi-cache.name": "Strapi Cache",
|
|
3
|
-
"strapi-cache.settings": "Cache Settings",
|
|
4
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
5
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
6
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
7
|
-
"strapi-cache.cache.purge.entity": "Purge Entity Cache",
|
|
8
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
9
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
10
|
-
"strapi-cache.cache.purge.confirmation": "This purges all keys where '{key}' is part of the key. Are you sure you want to purge the cache?",
|
|
11
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully",
|
|
12
|
-
"strapi-cache.cache.purge.error": "Error purging cache",
|
|
13
|
-
"strapi-cache.cache.purge.no-content-type": "No content type found"
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
en as default
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=en-BkqNXvi0.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-BkqNXvi0.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const en = {
|
|
4
|
-
"strapi-cache.name": "Strapi Cache",
|
|
5
|
-
"strapi-cache.settings": "Cache Settings",
|
|
6
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
7
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
8
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
9
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
10
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
11
|
-
"strapi-cache.cache.purge.confirmation": "Are you sure you want to purge the cache?",
|
|
12
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully",
|
|
13
|
-
"strapi-cache.cache.purge.error": "Error purging cache",
|
|
14
|
-
"strapi-cache.cache.purge.no-content-type": "No content type found"
|
|
15
|
-
};
|
|
16
|
-
exports.default = en;
|
|
17
|
-
//# sourceMappingURL=en-C0JeH0S_.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-C0JeH0S_.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const en = {
|
|
2
|
-
"strapi-cache.name": "Strapi Cache",
|
|
3
|
-
"strapi-cache.settings": "Cache Settings",
|
|
4
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
5
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
6
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
7
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
8
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
9
|
-
"strapi-cache.cache.purge.confirmation": "Are you sure you want to purge the cache?",
|
|
10
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully"
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
en as default
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=en-C0qeO9FB.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-C0qeO9FB.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const en = {
|
|
4
|
-
"strapi-cache.name": "Strapi Cache",
|
|
5
|
-
"strapi-cache.settings": "Cache Settings",
|
|
6
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
7
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
8
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
9
|
-
"strapi-cache.cache.purge.entity": "Purge Entity Cache",
|
|
10
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
11
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
12
|
-
"strapi-cache.cache.purge.confirmation": "This purges all keys where {{key}} is part of the key. Are you sure you want to purge the cache?",
|
|
13
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully",
|
|
14
|
-
"strapi-cache.cache.purge.error": "Error purging cache",
|
|
15
|
-
"strapi-cache.cache.purge.no-content-type": "No content type found"
|
|
16
|
-
};
|
|
17
|
-
exports.default = en;
|
|
18
|
-
//# sourceMappingURL=en-CBPjpI-y.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-CBPjpI-y.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const en = {
|
|
4
|
-
"strapi-cache.name": "Strapi Cache",
|
|
5
|
-
"strapi-cache.settings": "Cache Settings",
|
|
6
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
7
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache"
|
|
8
|
-
};
|
|
9
|
-
exports.default = en;
|
|
10
|
-
//# sourceMappingURL=en-CIN0kRXJ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-CIN0kRXJ.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const en = {
|
|
4
|
-
"strapi-cache.name": "Strapi Cache",
|
|
5
|
-
"strapi-cache.settings": "Cache Settings",
|
|
6
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
7
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
8
|
-
"strapi-cache.cache.purge": "Purge Cache"
|
|
9
|
-
};
|
|
10
|
-
exports.default = en;
|
|
11
|
-
//# sourceMappingURL=en-CVjURV1W.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-CVjURV1W.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const en = {
|
|
4
|
-
"strapi-cache.name": "Strapi Cache",
|
|
5
|
-
"strapi-cache.settings": "Cache Settings",
|
|
6
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
7
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
8
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
9
|
-
"strapi-cache.cache.purge.entity": "Purge Entity Cache",
|
|
10
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
11
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
12
|
-
"strapi-cache.cache.purge.confirmation": "This purges all keys where '{key}' is part of the key. Are you sure you want to purge the cache?",
|
|
13
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully",
|
|
14
|
-
"strapi-cache.cache.purge.error": "Error purging cache",
|
|
15
|
-
"strapi-cache.cache.purge.no-content-type": "No content type found"
|
|
16
|
-
};
|
|
17
|
-
exports.default = en;
|
|
18
|
-
//# sourceMappingURL=en-CWf_jLFj.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-CWf_jLFj.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const en = {
|
|
2
|
-
"strapi-cache.name": "Strapi Cache",
|
|
3
|
-
"strapi-cache.settings": "Cache Settings",
|
|
4
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
5
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
6
|
-
"strapi-cache.cache.purge": "Purge Cache"
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
en as default
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=en-C_x7qEgd.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-C_x7qEgd.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-CcRrGOBv.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const en = {
|
|
2
|
-
"strapi-cache.name": "Strapi Cache",
|
|
3
|
-
"strapi-cache.settings": "Cache Settings",
|
|
4
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
5
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
6
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
7
|
-
"strapi-cache.cache.purge.entity": "Purge Entity Cache",
|
|
8
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
9
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
10
|
-
"strapi-cache.cache.purge.confirmation": "This purges all keys where {{key}} is part of the key. Are you sure you want to purge the cache?",
|
|
11
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully",
|
|
12
|
-
"strapi-cache.cache.purge.error": "Error purging cache",
|
|
13
|
-
"strapi-cache.cache.purge.no-content-type": "No content type found"
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
en as default
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=en-Cq54r800.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-Cq54r800.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-D3udXrSa.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const en = {
|
|
4
|
-
"strapi-cache.name": "Strapi Cache",
|
|
5
|
-
"strapi-cache.settings": "Cache Settings",
|
|
6
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
7
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
8
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
9
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
10
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
11
|
-
"strapi-cache.cache.purge.confirmation": "Are you sure you want to purge the cache?",
|
|
12
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully",
|
|
13
|
-
"strapi-cache.cache.purge.error": "Error purging cache"
|
|
14
|
-
};
|
|
15
|
-
exports.default = en;
|
|
16
|
-
//# sourceMappingURL=en-DZzRFINn.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-DZzRFINn.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const en = {
|
|
4
|
-
"strapi-cache.name": "Strapi Cache",
|
|
5
|
-
"strapi-cache.settings": "Cache Settings",
|
|
6
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
7
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
8
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
9
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
10
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
11
|
-
"strapi-cache.cache.purge.confirmation": "Are you sure you want to purge the cache?",
|
|
12
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully"
|
|
13
|
-
};
|
|
14
|
-
exports.default = en;
|
|
15
|
-
//# sourceMappingURL=en-D_Fd-4QS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-D_Fd-4QS.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const en = {
|
|
2
|
-
"strapi-cache.name": "Strapi Cache",
|
|
3
|
-
"strapi-cache.settings": "Cache Settings",
|
|
4
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
5
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
6
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
7
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
8
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
9
|
-
"strapi-cache.cache.purge.confirmation": "Are you sure you want to purge the cache?"
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
en as default
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=en-DdVULHeC.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-DdVULHeC.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const en = {
|
|
2
|
-
"strapi-cache.name": "Strapi Cache",
|
|
3
|
-
"strapi-cache.settings": "Cache Settings",
|
|
4
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
5
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
6
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
7
|
-
"strapi-cache.cache.purge.entity": "Purge Cache",
|
|
8
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
9
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
10
|
-
"strapi-cache.cache.purge.confirmation": "Are you sure you want to purge the cache?",
|
|
11
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully",
|
|
12
|
-
"strapi-cache.cache.purge.error": "Error purging cache",
|
|
13
|
-
"strapi-cache.cache.purge.no-content-type": "No content type found"
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
en as default
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=en-DehLWejq.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-DehLWejq.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const en = {
|
|
4
|
-
"strapi-cache.name": "Strapi Cache",
|
|
5
|
-
"strapi-cache.settings": "Cache Settings",
|
|
6
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
7
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
8
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
9
|
-
"strapi-cache.cache.purge.entity": "Purge Cache",
|
|
10
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
11
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
12
|
-
"strapi-cache.cache.purge.confirmation": "Are you sure you want to purge the cache?",
|
|
13
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully",
|
|
14
|
-
"strapi-cache.cache.purge.error": "Error purging cache",
|
|
15
|
-
"strapi-cache.cache.purge.no-content-type": "No content type found"
|
|
16
|
-
};
|
|
17
|
-
exports.default = en;
|
|
18
|
-
//# sourceMappingURL=en-Do3Kh30d.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-Do3Kh30d.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const en = {
|
|
2
|
-
"strapi-cache.name": "Strapi Cache",
|
|
3
|
-
"strapi-cache.settings": "Cache Settings",
|
|
4
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
5
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
6
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
7
|
-
"strapi-cache.cache.purge.entity": "Purge Entity Cache",
|
|
8
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
9
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
10
|
-
"strapi-cache.cache.purge.confirmation": "This purges all keys where {'key'} is part of the key. Are you sure you want to purge the cache?",
|
|
11
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully",
|
|
12
|
-
"strapi-cache.cache.purge.error": "Error purging cache",
|
|
13
|
-
"strapi-cache.cache.purge.no-content-type": "No content type found"
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
en as default
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=en-N9VY0B4k.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-N9VY0B4k.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const en = {
|
|
4
|
-
"strapi-cache.name": "Strapi Cache",
|
|
5
|
-
"strapi-cache.settings": "Cache Settings",
|
|
6
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
7
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
8
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
9
|
-
"strapi-cache.cache.purge.entity": "Purge Entity Cache",
|
|
10
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
11
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
12
|
-
"strapi-cache.cache.purge.confirmation": "Are you sure you want to purge the cache?",
|
|
13
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully",
|
|
14
|
-
"strapi-cache.cache.purge.error": "Error purging cache",
|
|
15
|
-
"strapi-cache.cache.purge.no-content-type": "No content type found"
|
|
16
|
-
};
|
|
17
|
-
exports.default = en;
|
|
18
|
-
//# sourceMappingURL=en-O03hkb40.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-O03hkb40.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const en = {
|
|
4
|
-
"strapi-cache.name": "Strapi Cache",
|
|
5
|
-
"strapi-cache.settings": "Cache Settings",
|
|
6
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
7
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
8
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
9
|
-
"strapi-cache.cache.purge.entity": "Purge Entity Cache",
|
|
10
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
11
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
12
|
-
"strapi-cache.cache.purge.confirmation": "This purges all keys where {key} is part of the key. Are you sure you want to purge the cache?",
|
|
13
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully",
|
|
14
|
-
"strapi-cache.cache.purge.error": "Error purging cache",
|
|
15
|
-
"strapi-cache.cache.purge.no-content-type": "No content type found"
|
|
16
|
-
};
|
|
17
|
-
exports.default = en;
|
|
18
|
-
//# sourceMappingURL=en-TyY2Xkua.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-TyY2Xkua.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const en = {
|
|
2
|
-
"strapi-cache.name": "Strapi Cache",
|
|
3
|
-
"strapi-cache.settings": "Cache Settings",
|
|
4
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
5
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
6
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
7
|
-
"strapi-cache.cache.purge.entity": "Purge Entity Cache",
|
|
8
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
9
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
10
|
-
"strapi-cache.cache.purge.confirmation": "Are you sure you want to purge the cache?",
|
|
11
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully",
|
|
12
|
-
"strapi-cache.cache.purge.error": "Error purging cache",
|
|
13
|
-
"strapi-cache.cache.purge.no-content-type": "No content type found"
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
en as default
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=en-eba6oPnU.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-eba6oPnU.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const en = {
|
|
4
|
-
"strapi-cache.name": "Strapi Cache",
|
|
5
|
-
"strapi-cache.settings": "Cache Settings",
|
|
6
|
-
"strapi-cache.view.settings.title": "Strapi Cache Settings",
|
|
7
|
-
"strapi-cache.view.settings.subtitle": "Configure what to cache",
|
|
8
|
-
"strapi-cache.cache.purge": "Purge Cache",
|
|
9
|
-
"strapi-cache.cache.purge.entity": "Purge Entity Cache",
|
|
10
|
-
"strapi-cache.cache.cancel": "No, cancel",
|
|
11
|
-
"strapi-cache.cache.confirm": "Yes, purge",
|
|
12
|
-
"strapi-cache.cache.purge.confirmation": "This purges all keys where {'key'} is part of the key. Are you sure you want to purge the cache?",
|
|
13
|
-
"strapi-cache.cache.purge.success": "Cache purged successfully",
|
|
14
|
-
"strapi-cache.cache.purge.error": "Error purging cache",
|
|
15
|
-
"strapi-cache.cache.purge.no-content-type": "No content type found"
|
|
16
|
-
};
|
|
17
|
-
exports.default = en;
|
|
18
|
-
//# sourceMappingURL=en-wt3vH-k4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-wt3vH-k4.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
package/dist/admin/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../admin/src/pluginId.ts","../../admin/src/components/Initializer.tsx","../../admin/src/permission.ts","../../admin/src/components/PurgeCacheButton/index.tsx","../../admin/src/components/PurgeEntityButton/index.tsx","../../admin/src/index.ts"],"sourcesContent":["export const PLUGIN_ID = 'strapi-cache';\n","import { useEffect, useRef } from 'react';\n\nimport { PLUGIN_ID } from '../pluginId';\n\ntype InitializerProps = {\n setPlugin: (id: string) => void;\n};\n\nconst Initializer = ({ setPlugin }: InitializerProps) => {\n const ref = useRef(setPlugin);\n\n useEffect(() => {\n ref.current(PLUGIN_ID);\n }, []);\n\n return null;\n};\n\nexport { Initializer };\n","export const pluginPermissions = {\n purge: [{ action: 'plugin::strapi-cache.purge-cache', subject: null }],\n};\n","import { useIntl } from 'react-intl';\nimport { Archive } from '@strapi/icons';\nimport { Button, Modal } from '@strapi/design-system';\nimport { useRBAC } from '@strapi/strapi/admin';\nimport { pluginPermissions } from '../../permission';\nimport { Typography } from '@strapi/design-system';\nimport { useFetchClient } from '@strapi/strapi/admin';\nimport { unstable_useContentManagerContext as useContentManagerContext } from '@strapi/strapi/admin';\nimport { useNotification } from '@strapi/strapi/admin';\nimport { useEffect, useState } from 'react';\n\nfunction PurgeCacheButton() {\n const { allowedActions } = useRBAC(pluginPermissions);\n const formatMessage = useIntl().formatMessage;\n const { post, get } = useFetchClient();\n const { toggleNotification } = useNotification();\n const { contentType } = useContentManagerContext();\n const [cacheableRoutes, setCacheableRoutes] = useState<string[]>();\n const pluralName = contentType?.info.pluralName;\n\n useEffect(() => {\n if (!allowedActions.canPurgeCache) {\n return;\n }\n const fetchCacheableRoutes = async () => {\n try {\n const { data } = await get('/strapi-cache/cacheable-routes');\n return data;\n } catch (error) {\n console.error('Error fetching cacheable routes:', error);\n return undefined;\n }\n };\n fetchCacheableRoutes().then((data) => {\n setCacheableRoutes(data);\n });\n }, [allowedActions.canPurgeCache]);\n\n const clearCache = () => {\n if (!pluralName) {\n toggleNotification({\n type: 'warning',\n message: formatMessage({\n id: 'strapi-cache.cache.purge.no-content-type',\n defaultMessage: 'No content type found',\n }),\n });\n return;\n }\n\n post(`/strapi-cache/purge-cache/${pluralName}`, undefined, {\n headers: {\n 'Content-Type': 'application/json',\n },\n })\n .then(() => {\n toggleNotification({\n type: 'success',\n message:\n formatMessage({\n id: 'strapi-cache.cache.purge.success',\n defaultMessage: 'Cache purged successfully',\n }) + `: ${pluralName}`,\n });\n })\n .catch(() => {\n toggleNotification({\n type: 'danger',\n message:\n formatMessage({\n id: 'strapi-cache.cache.purge.error',\n defaultMessage: 'Error purging cache',\n }) + `: ${pluralName}`,\n });\n });\n };\n\n const isCacheableRoute = () => {\n if (!pluralName || !cacheableRoutes) {\n return false;\n }\n\n return (\n cacheableRoutes.length === 0 ||\n cacheableRoutes.some((route) => {\n return route.includes(pluralName);\n })\n );\n };\n\n if (!allowedActions.canPurgeCache || !isCacheableRoute()) {\n return null;\n }\n\n return (\n <>\n <Modal.Root>\n <Modal.Trigger>\n <Button startIcon={<Archive />} variant=\"danger\">\n {formatMessage({\n id: 'strapi-cache.cache.purge',\n defaultMessage: 'Purge Cache',\n })}\n </Button>\n </Modal.Trigger>\n <Modal.Content>\n <Modal.Header>\n <Modal.Title>\n {formatMessage({\n id: 'strapi-cache.cache.purge',\n defaultMessage: 'Purge Cache',\n })}\n </Modal.Title>\n </Modal.Header>\n <Modal.Body>\n <Typography variant=\"omega\">\n {formatMessage(\n {\n id: 'strapi-cache.cache.purge.confirmation',\n defaultMessage: 'Are you sure you want to purge the cache?',\n },\n {\n key: `\"${pluralName}\"`,\n }\n )}\n </Typography>\n </Modal.Body>\n <Modal.Footer>\n <Modal.Close>\n <Button variant=\"tertiary\">\n {formatMessage({\n id: 'strapi-cache.cache.cancel',\n defaultMessage: 'No, cancel',\n })}\n </Button>\n </Modal.Close>\n <Modal.Close>\n <Button onClick={clearCache}>\n {formatMessage({\n id: 'strapi-cache.cache.confirm',\n defaultMessage: 'Yes, confirm',\n })}\n </Button>\n </Modal.Close>\n </Modal.Footer>\n </Modal.Content>\n </Modal.Root>\n </>\n );\n}\n\nexport default PurgeCacheButton;\n","//TODO: refactor and rid of duplicated code (PurgeEntityButton and PurgeCacheButton)\n\nimport { useIntl } from 'react-intl';\nimport { Archive } from '@strapi/icons';\nimport { Button, Modal } from '@strapi/design-system';\nimport { useRBAC } from '@strapi/strapi/admin';\nimport { pluginPermissions } from '../../permission';\nimport { Typography } from '@strapi/design-system';\nimport { useFetchClient } from '@strapi/strapi/admin';\nimport { unstable_useContentManagerContext as useContentManagerContext } from '@strapi/strapi/admin';\nimport { useNotification } from '@strapi/strapi/admin';\nimport { useEffect, useState } from 'react';\n\nfunction PurgeEntityButton() {\n const { allowedActions } = useRBAC(pluginPermissions);\n const formatMessage = useIntl().formatMessage;\n const { post, get } = useFetchClient();\n const { toggleNotification } = useNotification();\n const { contentType, id } = useContentManagerContext();\n const [cacheableRoutes, setCacheableRoutes] = useState<string[]>();\n const pluralName = contentType?.info.pluralName;\n\n useEffect(() => {\n if (!allowedActions.canPurgeCache) {\n return;\n }\n const fetchCacheableRoutes = async () => {\n try {\n const { data } = await get('/strapi-cache/cacheable-routes');\n return data;\n } catch (error) {\n console.error('Error fetching cacheable routes:', error);\n return undefined;\n }\n };\n fetchCacheableRoutes().then((data) => {\n setCacheableRoutes(data);\n });\n }, [allowedActions.canPurgeCache]);\n\n const clearCache = () => {\n if (!pluralName) {\n toggleNotification({\n type: 'warning',\n message: formatMessage({\n id: 'strapi-cache.cache.purge.no-content-type',\n defaultMessage: 'No content type found',\n }),\n });\n return;\n }\n\n post(`/strapi-cache/purge-cache/${id}`, undefined, {\n headers: {\n 'Content-Type': 'application/json',\n },\n })\n .then(() => {\n toggleNotification({\n type: 'success',\n message:\n formatMessage({\n id: 'strapi-cache.cache.purge.success',\n defaultMessage: 'Cache purged successfully',\n }) + `: ${pluralName}`,\n });\n })\n .catch(() => {\n toggleNotification({\n type: 'danger',\n message:\n formatMessage({\n id: 'strapi-cache.cache.purge.error',\n defaultMessage: 'Error purging cache',\n }) + `: ${pluralName}`,\n });\n });\n };\n\n const isCacheableRoute = () => {\n if (!pluralName || !cacheableRoutes) {\n return false;\n }\n\n return (\n cacheableRoutes.length === 0 ||\n cacheableRoutes.some((route) => {\n return route.includes(pluralName);\n })\n );\n };\n\n if (!allowedActions.canPurgeCache || !isCacheableRoute()) {\n return null;\n }\n\n return (\n <>\n <Modal.Root>\n <Modal.Trigger>\n <Button width={'100%'} startIcon={<Archive />} variant=\"danger\">\n {formatMessage({\n id: 'strapi-cache.cache.purge.entity',\n defaultMessage: 'Purge Entity Cache',\n })}\n </Button>\n </Modal.Trigger>\n <Modal.Content>\n <Modal.Header>\n <Modal.Title>\n {formatMessage({\n id: 'strapi-cache.cache.purge.entity',\n defaultMessage: 'Purge Entity Cache',\n })}\n </Modal.Title>\n </Modal.Header>\n <Modal.Body>\n <Typography variant=\"omega\">\n {formatMessage(\n {\n id: 'strapi-cache.cache.purge.confirmation',\n defaultMessage: 'Are you sure you want to purge the cache?',\n },\n { key: `\"${id}\"` }\n )}\n </Typography>\n </Modal.Body>\n <Modal.Footer>\n <Modal.Close>\n <Button variant=\"tertiary\">\n {formatMessage({\n id: 'strapi-cache.cache.cancel',\n defaultMessage: 'No, cancel',\n })}\n </Button>\n </Modal.Close>\n <Modal.Close>\n <Button onClick={clearCache}>\n {formatMessage({\n id: 'strapi-cache.cache.confirm',\n defaultMessage: 'Yes, confirm',\n })}\n </Button>\n </Modal.Close>\n </Modal.Footer>\n </Modal.Content>\n </Modal.Root>\n </>\n );\n}\n\nexport default PurgeEntityButton;\n","import { PLUGIN_ID } from './pluginId';\nimport { Initializer } from './components/Initializer';\nimport PurgeCacheButton from './components/PurgeCacheButton';\nimport PurgeEntityButton from './components/PurgeEntityButton';\n\nexport default {\n register(app: any) {\n app.registerPlugin({\n id: PLUGIN_ID,\n initializer: Initializer,\n isReady: false,\n name: PLUGIN_ID,\n });\n\n app.getPlugin('content-manager').injectComponent('listView', 'actions', {\n name: PurgeCacheButton,\n Component: PurgeCacheButton,\n });\n\n app.getPlugin('content-manager').injectComponent('editView', 'right-links', {\n name: PurgeEntityButton,\n Component: PurgeEntityButton,\n });\n },\n\n async registerTrads({ locales }: { locales: string[] }) {\n return Promise.all(\n locales.map(async (locale) => {\n try {\n const { default: data } = await import(`./translations/${locale}.json`);\n\n return { data, locale };\n } catch {\n return { data: {}, locale };\n }\n })\n );\n },\n};\n"],"names":["useRef","useEffect","useRBAC","useIntl","useFetchClient","useNotification","useContentManagerContext","useState","jsx","Fragment","jsxs","Modal","Button","Archive","Typography"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAO,MAAM,YAAY;ACQzB,MAAM,cAAc,CAAC,EAAE,gBAAkC;AACjD,QAAA,MAAMA,aAAO,SAAS;AAE5BC,QAAAA,UAAU,MAAM;AACd,QAAI,QAAQ,SAAS;AAAA,EACvB,GAAG,EAAE;AAEE,SAAA;AACT;AChBO,MAAM,oBAAoB;AAAA,EAC/B,OAAO,CAAC,EAAE,QAAQ,oCAAoC,SAAS,KAAM,CAAA;AACvE;ACSA,SAAS,mBAAmB;AAC1B,QAAM,EAAE,eAAA,IAAmBC,MAAA,QAAQ,iBAAiB;AAC9C,QAAA,gBAAgBC,oBAAU;AAChC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