@strapi/plugin-cloud 5.9.0 → 5.10.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/admin/chunks/App-BcMkGcCg.mjs +522 -0
- package/dist/admin/chunks/App-BcMkGcCg.mjs.map +1 -0
- package/dist/admin/chunks/App-CwT9IBBa.js +524 -0
- package/dist/admin/chunks/App-CwT9IBBa.js.map +1 -0
- package/dist/admin/chunks/en-DHxfjovA.mjs +20 -0
- package/dist/admin/chunks/en-DHxfjovA.mjs.map +1 -0
- package/dist/admin/chunks/en-uuzupUSq.js +22 -0
- package/dist/admin/chunks/en-uuzupUSq.js.map +1 -0
- package/dist/admin/chunks/fr-QQbSxlps.js +22 -0
- package/dist/admin/chunks/fr-QQbSxlps.js.map +1 -0
- package/dist/admin/chunks/fr-XFxvAMHP.mjs +20 -0
- package/dist/admin/chunks/fr-XFxvAMHP.mjs.map +1 -0
- package/dist/admin/chunks/index--dqXZZcY.mjs +80 -0
- package/dist/admin/chunks/index--dqXZZcY.mjs.map +1 -0
- package/dist/admin/chunks/index-DBuRsSPK.js +83 -0
- package/dist/admin/chunks/index-DBuRsSPK.js.map +1 -0
- package/dist/admin/index.js +9 -3
- package/dist/admin/index.js.map +1 -0
- package/dist/admin/index.mjs +4 -5
- package/dist/admin/index.mjs.map +1 -0
- package/package.json +13 -9
- package/dist/_chunks/App--lRY3waP.js +0 -400
- package/dist/_chunks/App-Dzr5m4eZ.mjs +0 -400
- package/dist/_chunks/en-DqzxMgb_.mjs +0 -20
- package/dist/_chunks/en-j5SB1oBn.js +0 -20
- package/dist/_chunks/fr-3fwSSssz.mjs +0 -20
- package/dist/_chunks/fr-Y8WZfiox.js +0 -20
- package/dist/_chunks/index-BffHmSEO.mjs +0 -82
- package/dist/_chunks/index-QfA5Ue0X.js +0 -81
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const fr = {
|
|
4
|
-
"Plugin.name": "Déploiement",
|
|
5
|
-
"Homepage.title": "Hébergement cloud entièrement géré pour votre projet Strapi",
|
|
6
|
-
"Homepage.subTitle": "Suivez ce processus en 2 étapes pour obtenir tout ce dont vous avez besoin pour exécuter Strapi en production.",
|
|
7
|
-
"Homepage.githubBox.title.versioned": "Projet uploadé sur GitHub",
|
|
8
|
-
"Homepage.githubBox.title.not-versioned": "Upload ton projet sur GitHub",
|
|
9
|
-
"Homepage.githubBox.subTitle.versioned": "Bien joué ! Il ne manque plus qu'une étape pour déployer ton projet sur Strapi Cloud",
|
|
10
|
-
"Homepage.githubBox.subTitle.not-versioned": "Ton projet doit être versionné sur GitHub avant d'être déployé sur Strapi Cloud.",
|
|
11
|
-
"Homepage.githubBox.buttonText": "Upload sur GitHub",
|
|
12
|
-
"Homepage.cloudBox.title": "Deploie sur Strapi Cloud",
|
|
13
|
-
"Homepage.cloudBox.subTitle": "Profitez d'une stack opptimisé pour Strapi comprenant une base de données, un email provider et un CDN.",
|
|
14
|
-
"Homepage.cloudBox.buttonText": "Deploie sur Strapi Cloud",
|
|
15
|
-
"Homepage.textBox.label.versioned": "Essaies Strapi Cloud gratuitement !",
|
|
16
|
-
"Homepage.textBox.label.not-versioned": "Pourquoi uploader mon projet sur GitHub ?",
|
|
17
|
-
"Homepage.textBox.text.versioned": "Strapi Cloud propose un essai gratuit de 14 jours pour te permettre d'expérimenter ton projet sur le cloud !",
|
|
18
|
-
"Homepage.textBox.text.not-versioned": "Strapi Cloud récupérera et déploiera ton projet à partir de ton repo GitHub. C’est la meilleure façon de versionner, gérer et déployer votre projet. Suivez les étapes sur GitHub pour l'uploader avec succès"
|
|
19
|
-
};
|
|
20
|
-
exports.default = fr;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { Cloud } from "@strapi/icons";
|
|
2
|
-
import { useRef, useEffect } from "react";
|
|
3
|
-
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
4
|
-
const v = glob[path];
|
|
5
|
-
if (v) {
|
|
6
|
-
return typeof v === "function" ? v() : Promise.resolve(v);
|
|
7
|
-
}
|
|
8
|
-
return new Promise((_, reject) => {
|
|
9
|
-
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
|
10
|
-
reject.bind(
|
|
11
|
-
null,
|
|
12
|
-
new Error(
|
|
13
|
-
"Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
|
|
14
|
-
)
|
|
15
|
-
)
|
|
16
|
-
);
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
const pluginId = "cloud";
|
|
20
|
-
const Initializer = ({ setPlugin }) => {
|
|
21
|
-
const ref = useRef(setPlugin);
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
ref.current(pluginId);
|
|
24
|
-
}, []);
|
|
25
|
-
return null;
|
|
26
|
-
};
|
|
27
|
-
const prefixPluginTranslations = (trad, pluginId2) => {
|
|
28
|
-
return Object.keys(trad).reduce((acc, current) => {
|
|
29
|
-
acc[`${pluginId2}.${current}`] = trad[current];
|
|
30
|
-
return acc;
|
|
31
|
-
}, {});
|
|
32
|
-
};
|
|
33
|
-
const name = "Deploy";
|
|
34
|
-
const index = {
|
|
35
|
-
register(app) {
|
|
36
|
-
const { backendURL } = window.strapi;
|
|
37
|
-
if (backendURL?.includes("localhost")) {
|
|
38
|
-
app.addMenuLink({
|
|
39
|
-
to: `plugins/${pluginId}`,
|
|
40
|
-
icon: Cloud,
|
|
41
|
-
intlLabel: {
|
|
42
|
-
id: `${pluginId}.plugin.name`,
|
|
43
|
-
defaultMessage: name
|
|
44
|
-
},
|
|
45
|
-
Component: async () => {
|
|
46
|
-
const { App } = await import("./App-Dzr5m4eZ.mjs");
|
|
47
|
-
return App;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
const plugin = {
|
|
51
|
-
id: pluginId,
|
|
52
|
-
initializer: Initializer,
|
|
53
|
-
isReady: false,
|
|
54
|
-
name
|
|
55
|
-
};
|
|
56
|
-
app.registerPlugin(plugin);
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
async registerTrads(app) {
|
|
60
|
-
const { locales } = app;
|
|
61
|
-
const importedTrads = await Promise.all(
|
|
62
|
-
locales.map((locale) => {
|
|
63
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("./en-DqzxMgb_.mjs"), "./translations/fr.json": () => import("./fr-3fwSSssz.mjs") }), `./translations/${locale}.json`, 3).then(({ default: data }) => {
|
|
64
|
-
return {
|
|
65
|
-
data: prefixPluginTranslations(data, pluginId),
|
|
66
|
-
locale
|
|
67
|
-
};
|
|
68
|
-
}).catch(() => {
|
|
69
|
-
return {
|
|
70
|
-
data: {},
|
|
71
|
-
locale
|
|
72
|
-
};
|
|
73
|
-
});
|
|
74
|
-
})
|
|
75
|
-
);
|
|
76
|
-
return Promise.resolve(importedTrads);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
export {
|
|
80
|
-
index as i,
|
|
81
|
-
pluginId as p
|
|
82
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const icons = require("@strapi/icons");
|
|
3
|
-
const react = require("react");
|
|
4
|
-
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
5
|
-
const v = glob[path];
|
|
6
|
-
if (v) {
|
|
7
|
-
return typeof v === "function" ? v() : Promise.resolve(v);
|
|
8
|
-
}
|
|
9
|
-
return new Promise((_, reject) => {
|
|
10
|
-
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
|
11
|
-
reject.bind(
|
|
12
|
-
null,
|
|
13
|
-
new Error(
|
|
14
|
-
"Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
|
|
15
|
-
)
|
|
16
|
-
)
|
|
17
|
-
);
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
const pluginId = "cloud";
|
|
21
|
-
const Initializer = ({ setPlugin }) => {
|
|
22
|
-
const ref = react.useRef(setPlugin);
|
|
23
|
-
react.useEffect(() => {
|
|
24
|
-
ref.current(pluginId);
|
|
25
|
-
}, []);
|
|
26
|
-
return null;
|
|
27
|
-
};
|
|
28
|
-
const prefixPluginTranslations = (trad, pluginId2) => {
|
|
29
|
-
return Object.keys(trad).reduce((acc, current) => {
|
|
30
|
-
acc[`${pluginId2}.${current}`] = trad[current];
|
|
31
|
-
return acc;
|
|
32
|
-
}, {});
|
|
33
|
-
};
|
|
34
|
-
const name = "Deploy";
|
|
35
|
-
const index = {
|
|
36
|
-
register(app) {
|
|
37
|
-
const { backendURL } = window.strapi;
|
|
38
|
-
if (backendURL?.includes("localhost")) {
|
|
39
|
-
app.addMenuLink({
|
|
40
|
-
to: `plugins/${pluginId}`,
|
|
41
|
-
icon: icons.Cloud,
|
|
42
|
-
intlLabel: {
|
|
43
|
-
id: `${pluginId}.plugin.name`,
|
|
44
|
-
defaultMessage: name
|
|
45
|
-
},
|
|
46
|
-
Component: async () => {
|
|
47
|
-
const { App } = await Promise.resolve().then(() => require("./App--lRY3waP.js"));
|
|
48
|
-
return App;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
const plugin = {
|
|
52
|
-
id: pluginId,
|
|
53
|
-
initializer: Initializer,
|
|
54
|
-
isReady: false,
|
|
55
|
-
name
|
|
56
|
-
};
|
|
57
|
-
app.registerPlugin(plugin);
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
async registerTrads(app) {
|
|
61
|
-
const { locales } = app;
|
|
62
|
-
const importedTrads = await Promise.all(
|
|
63
|
-
locales.map((locale) => {
|
|
64
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-j5SB1oBn.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-Y8WZfiox.js")) }), `./translations/${locale}.json`, 3).then(({ default: data }) => {
|
|
65
|
-
return {
|
|
66
|
-
data: prefixPluginTranslations(data, pluginId),
|
|
67
|
-
locale
|
|
68
|
-
};
|
|
69
|
-
}).catch(() => {
|
|
70
|
-
return {
|
|
71
|
-
data: {},
|
|
72
|
-
locale
|
|
73
|
-
};
|
|
74
|
-
});
|
|
75
|
-
})
|
|
76
|
-
);
|
|
77
|
-
return Promise.resolve(importedTrads);
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
exports.index = index;
|
|
81
|
-
exports.pluginId = pluginId;
|