@strapi/plugin-cloud 0.0.0-next.f6dca5adf05ef6bed9605a1535999ab0bbbf063e → 0.0.0-next.f86041c89a8c1545c6437a881dc613e98bc52bd7
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 +8 -4
- package/dist/admin/components/CLIDeployTabs.js +114 -0
- package/dist/admin/components/CLIDeployTabs.js.map +1 -0
- package/dist/admin/components/CLIDeployTabs.mjs +112 -0
- package/dist/admin/components/CLIDeployTabs.mjs.map +1 -0
- package/dist/admin/components/CloudDeploy.js +207 -0
- package/dist/admin/components/CloudDeploy.js.map +1 -0
- package/dist/admin/components/CloudDeploy.mjs +205 -0
- package/dist/admin/components/CloudDeploy.mjs.map +1 -0
- package/dist/admin/components/CloudFree.js +64 -0
- package/dist/admin/components/CloudFree.js.map +1 -0
- package/dist/admin/components/CloudFree.mjs +62 -0
- package/dist/admin/components/CloudFree.mjs.map +1 -0
- package/dist/admin/components/Initializer.js +15 -0
- package/dist/admin/components/Initializer.js.map +1 -0
- package/dist/admin/components/Initializer.mjs +13 -0
- package/dist/admin/components/Initializer.mjs.map +1 -0
- package/dist/admin/index.js +72 -4
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +67 -4
- package/dist/admin/index.mjs.map +1 -1
- package/dist/admin/pages/App.js +26 -0
- package/dist/admin/pages/App.js.map +1 -0
- package/dist/admin/pages/App.mjs +24 -0
- package/dist/admin/pages/App.mjs.map +1 -0
- package/dist/admin/pages/HomePage.js +66 -0
- package/dist/admin/pages/HomePage.js.map +1 -0
- package/dist/admin/pages/HomePage.mjs +64 -0
- package/dist/admin/pages/HomePage.mjs.map +1 -0
- package/dist/admin/pluginId.js +6 -0
- package/dist/admin/pluginId.js.map +1 -0
- package/dist/admin/pluginId.mjs +4 -0
- package/dist/admin/pluginId.mjs.map +1 -0
- package/dist/admin/src/components/CLIDeployTabs.d.ts +2 -0
- package/dist/admin/src/components/CloudDeploy.d.ts +2 -0
- package/dist/admin/src/components/CloudFree.d.ts +2 -0
- package/dist/admin/src/pages/HomePage.d.ts +1 -2
- package/dist/admin/translations/en.json.js +26 -0
- package/dist/admin/translations/en.json.js.map +1 -0
- package/dist/admin/translations/en.json.mjs +24 -0
- package/dist/admin/translations/en.json.mjs.map +1 -0
- package/dist/admin/translations/es.json.js +26 -0
- package/dist/admin/translations/es.json.js.map +1 -0
- package/dist/admin/translations/es.json.mjs +24 -0
- package/dist/admin/translations/es.json.mjs.map +1 -0
- package/dist/admin/translations/fr.json.js +26 -0
- package/dist/admin/translations/fr.json.js.map +1 -0
- package/dist/admin/translations/fr.json.mjs +24 -0
- package/dist/admin/translations/fr.json.mjs.map +1 -0
- package/dist/admin/translations/it.json.js +26 -0
- package/dist/admin/translations/it.json.js.map +1 -0
- package/dist/admin/translations/it.json.mjs +24 -0
- package/dist/admin/translations/it.json.mjs.map +1 -0
- package/dist/admin/translations/ru.json.js +26 -0
- package/dist/admin/translations/ru.json.js.map +1 -0
- package/dist/admin/translations/ru.json.mjs +24 -0
- package/dist/admin/translations/ru.json.mjs.map +1 -0
- package/dist/admin/translations/uk.json.js +26 -0
- package/dist/admin/translations/uk.json.js.map +1 -0
- package/dist/admin/translations/uk.json.mjs +24 -0
- package/dist/admin/translations/uk.json.mjs.map +1 -0
- package/dist/admin/utils/getTrad.js +8 -0
- package/dist/admin/utils/getTrad.js.map +1 -0
- package/dist/admin/utils/getTrad.mjs +6 -0
- package/dist/admin/utils/getTrad.mjs.map +1 -0
- package/dist/admin/utils/prefixPluginTranslations.js +11 -0
- package/dist/admin/utils/prefixPluginTranslations.js.map +1 -0
- package/dist/admin/utils/prefixPluginTranslations.mjs +9 -0
- package/dist/admin/utils/prefixPluginTranslations.mjs.map +1 -0
- package/package.json +18 -14
- package/dist/_chunks/App-BVExomnj.js +0 -401
- package/dist/_chunks/App-BVExomnj.js.map +0 -1
- package/dist/_chunks/App-CyeD4c2B.mjs +0 -401
- package/dist/_chunks/App-CyeD4c2B.mjs.map +0 -1
- package/dist/_chunks/en-DqzxMgb_.mjs +0 -21
- package/dist/_chunks/en-DqzxMgb_.mjs.map +0 -1
- package/dist/_chunks/en-j5SB1oBn.js +0 -21
- package/dist/_chunks/en-j5SB1oBn.js.map +0 -1
- package/dist/_chunks/fr-3fwSSssz.mjs +0 -21
- package/dist/_chunks/fr-3fwSSssz.mjs.map +0 -1
- package/dist/_chunks/fr-Y8WZfiox.js +0 -21
- package/dist/_chunks/fr-Y8WZfiox.js.map +0 -1
- package/dist/_chunks/index-DCY2sAXr.mjs +0 -76
- package/dist/_chunks/index-DCY2sAXr.mjs.map +0 -1
- package/dist/_chunks/index-DQbVUsE_.js +0 -75
- package/dist/_chunks/index-DQbVUsE_.js.map +0 -1
- package/dist/admin/src/components/Cloud.d.ts +0 -2
- package/dist/admin/src/components/Github.d.ts +0 -2
- package/dist/admin/src/components/Icons/LinkIcon.d.ts +0 -1
- package/dist/admin/src/components/Icons/UploadIcon.d.ts +0 -1
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Box, Flex, Typography, Tabs, Badge, BaseLink, LinkButton, Link } from '@strapi/design-system';
|
|
3
|
+
import { CloudUpload, ExternalLink, Code } from '@strapi/icons';
|
|
4
|
+
import { useIntl } from 'react-intl';
|
|
5
|
+
import { CLIDeployTabs } from './CLIDeployTabs.mjs';
|
|
6
|
+
import { getTrad } from '../utils/getTrad.mjs';
|
|
7
|
+
|
|
8
|
+
const CloudDeploy = ()=>{
|
|
9
|
+
const { formatMessage } = useIntl();
|
|
10
|
+
const documentationLink = formatMessage({
|
|
11
|
+
id: getTrad('Homepage.deploy.documentation'),
|
|
12
|
+
defaultMessage: 'Having trouble? Check our documentation'
|
|
13
|
+
});
|
|
14
|
+
return /*#__PURE__*/ jsxs(Box, {
|
|
15
|
+
paddingBottom: 5,
|
|
16
|
+
children: [
|
|
17
|
+
/*#__PURE__*/ jsx(Flex, {
|
|
18
|
+
direction: "column",
|
|
19
|
+
children: /*#__PURE__*/ jsx(Typography, {
|
|
20
|
+
variant: "delta",
|
|
21
|
+
paddingBottom: 5,
|
|
22
|
+
paddingTop: 2,
|
|
23
|
+
children: formatMessage({
|
|
24
|
+
id: getTrad('Homepage.deploy.title'),
|
|
25
|
+
defaultMessage: 'Choose your preferred deployment method'
|
|
26
|
+
})
|
|
27
|
+
})
|
|
28
|
+
}),
|
|
29
|
+
/*#__PURE__*/ jsxs(Tabs.Root, {
|
|
30
|
+
defaultValue: "cloud",
|
|
31
|
+
variant: "simple",
|
|
32
|
+
children: [
|
|
33
|
+
/*#__PURE__*/ jsx(Flex, {
|
|
34
|
+
direction: "column",
|
|
35
|
+
children: /*#__PURE__*/ jsxs(Tabs.List, {
|
|
36
|
+
"aria-label": formatMessage({
|
|
37
|
+
id: getTrad('Homepage.deploy.ariaLabel'),
|
|
38
|
+
defaultMessage: 'Deployment options'
|
|
39
|
+
}),
|
|
40
|
+
children: [
|
|
41
|
+
/*#__PURE__*/ jsx(Tabs.Trigger, {
|
|
42
|
+
value: "cloud",
|
|
43
|
+
children: /*#__PURE__*/ jsx(Box, {
|
|
44
|
+
minWidth: {
|
|
45
|
+
initial: '10em',
|
|
46
|
+
medium: '20em'
|
|
47
|
+
},
|
|
48
|
+
children: /*#__PURE__*/ jsxs(Flex, {
|
|
49
|
+
direction: "row",
|
|
50
|
+
gap: 2,
|
|
51
|
+
justifyContent: "center",
|
|
52
|
+
children: [
|
|
53
|
+
/*#__PURE__*/ jsx(Typography, {
|
|
54
|
+
variant: "omega",
|
|
55
|
+
children: "Cloud"
|
|
56
|
+
}),
|
|
57
|
+
/*#__PURE__*/ jsx(Badge, {
|
|
58
|
+
active: true,
|
|
59
|
+
children: formatMessage({
|
|
60
|
+
id: getTrad('Homepage.deploy.git.badge'),
|
|
61
|
+
defaultMessage: 'Recommended'
|
|
62
|
+
})
|
|
63
|
+
})
|
|
64
|
+
]
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
}),
|
|
68
|
+
/*#__PURE__*/ jsx(Tabs.Trigger, {
|
|
69
|
+
value: "cli",
|
|
70
|
+
children: /*#__PURE__*/ jsx(Box, {
|
|
71
|
+
minWidth: {
|
|
72
|
+
initial: '10em',
|
|
73
|
+
medium: '20em'
|
|
74
|
+
},
|
|
75
|
+
children: /*#__PURE__*/ jsx(Flex, {
|
|
76
|
+
justifyContent: "center",
|
|
77
|
+
children: /*#__PURE__*/ jsx(Typography, {
|
|
78
|
+
variant: "omega",
|
|
79
|
+
children: "CLI"
|
|
80
|
+
})
|
|
81
|
+
})
|
|
82
|
+
})
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
})
|
|
86
|
+
}),
|
|
87
|
+
/*#__PURE__*/ jsxs(Box, {
|
|
88
|
+
children: [
|
|
89
|
+
/*#__PURE__*/ jsx(Tabs.Content, {
|
|
90
|
+
value: "cloud",
|
|
91
|
+
children: /*#__PURE__*/ jsxs(Flex, {
|
|
92
|
+
direction: "column",
|
|
93
|
+
paddingTop: 6,
|
|
94
|
+
children: [
|
|
95
|
+
/*#__PURE__*/ jsx(Box, {
|
|
96
|
+
children: /*#__PURE__*/ jsx(BaseLink, {
|
|
97
|
+
isExternal: true,
|
|
98
|
+
href: "https://cloud.strapi.io/login?utm_campaign=Strapi%20Cloud%20Plugin&utm_source=In-Product&utm_medium=CTA",
|
|
99
|
+
children: /*#__PURE__*/ jsx(CloudUpload, {
|
|
100
|
+
height: 40,
|
|
101
|
+
width: 40,
|
|
102
|
+
fill: "buttonPrimary600"
|
|
103
|
+
})
|
|
104
|
+
})
|
|
105
|
+
}),
|
|
106
|
+
/*#__PURE__*/ jsx(Box, {
|
|
107
|
+
paddingBottom: 2,
|
|
108
|
+
paddingTop: 5,
|
|
109
|
+
children: /*#__PURE__*/ jsx(Typography, {
|
|
110
|
+
variant: "delta",
|
|
111
|
+
textColor: "neutral1000",
|
|
112
|
+
children: formatMessage({
|
|
113
|
+
id: getTrad('Homepage.deploy.git.title'),
|
|
114
|
+
defaultMessage: 'Deploy to Strapi Cloud'
|
|
115
|
+
})
|
|
116
|
+
})
|
|
117
|
+
}),
|
|
118
|
+
/*#__PURE__*/ jsx(Typography, {
|
|
119
|
+
variant: "omega",
|
|
120
|
+
textColor: "neutral600",
|
|
121
|
+
children: formatMessage({
|
|
122
|
+
id: getTrad('Homepage.deploy.git.subTitle'),
|
|
123
|
+
defaultMessage: 'Deploy a GitHub or GitLab project directly within Strapi Cloud'
|
|
124
|
+
})
|
|
125
|
+
}),
|
|
126
|
+
/*#__PURE__*/ jsx(Box, {
|
|
127
|
+
paddingTop: 8,
|
|
128
|
+
children: /*#__PURE__*/ jsx(LinkButton, {
|
|
129
|
+
variant: "default",
|
|
130
|
+
endIcon: /*#__PURE__*/ jsx(ExternalLink, {
|
|
131
|
+
fill: "neutral0"
|
|
132
|
+
}),
|
|
133
|
+
href: "https://cloud.strapi.io/login?utm_campaign=Strapi%20Cloud%20Plugin&utm_source=In-Product&utm_medium=CTA",
|
|
134
|
+
isExternal: true,
|
|
135
|
+
size: "M",
|
|
136
|
+
children: formatMessage({
|
|
137
|
+
id: getTrad('Homepage.deploy.git.button'),
|
|
138
|
+
defaultMessage: 'Deploy to Strapi Cloud'
|
|
139
|
+
})
|
|
140
|
+
})
|
|
141
|
+
}),
|
|
142
|
+
/*#__PURE__*/ jsx(Box, {
|
|
143
|
+
paddingTop: 5,
|
|
144
|
+
children: /*#__PURE__*/ jsx(Link, {
|
|
145
|
+
isExternal: true,
|
|
146
|
+
href: "https://docs.strapi.io/cloud/getting-started/deployment",
|
|
147
|
+
children: documentationLink
|
|
148
|
+
})
|
|
149
|
+
})
|
|
150
|
+
]
|
|
151
|
+
})
|
|
152
|
+
}),
|
|
153
|
+
/*#__PURE__*/ jsx(Tabs.Content, {
|
|
154
|
+
value: "cli",
|
|
155
|
+
children: /*#__PURE__*/ jsxs(Flex, {
|
|
156
|
+
direction: "column",
|
|
157
|
+
paddingTop: 6,
|
|
158
|
+
children: [
|
|
159
|
+
/*#__PURE__*/ jsx(Code, {
|
|
160
|
+
height: 40,
|
|
161
|
+
width: 40,
|
|
162
|
+
fill: "buttonPrimary600"
|
|
163
|
+
}),
|
|
164
|
+
/*#__PURE__*/ jsx(Box, {
|
|
165
|
+
paddingBottom: 2,
|
|
166
|
+
paddingTop: 5,
|
|
167
|
+
children: /*#__PURE__*/ jsx(Typography, {
|
|
168
|
+
variant: "delta",
|
|
169
|
+
textColor: "neutral1000",
|
|
170
|
+
children: formatMessage({
|
|
171
|
+
id: getTrad('Homepage.deploy.cli.title'),
|
|
172
|
+
defaultMessage: 'Deploy via CLI'
|
|
173
|
+
})
|
|
174
|
+
})
|
|
175
|
+
}),
|
|
176
|
+
/*#__PURE__*/ jsx(Typography, {
|
|
177
|
+
variant: "omega",
|
|
178
|
+
textColor: "neutral600",
|
|
179
|
+
children: formatMessage({
|
|
180
|
+
id: getTrad('Homepage.deploy.cli.subTitle'),
|
|
181
|
+
defaultMessage: 'Use the command line to deploy your Strapi project directly'
|
|
182
|
+
})
|
|
183
|
+
}),
|
|
184
|
+
/*#__PURE__*/ jsx(CLIDeployTabs, {}),
|
|
185
|
+
/*#__PURE__*/ jsx(Box, {
|
|
186
|
+
paddingTop: 5,
|
|
187
|
+
children: /*#__PURE__*/ jsx(Link, {
|
|
188
|
+
isExternal: true,
|
|
189
|
+
href: "https://docs.strapi.io/cloud/getting-started/deployment-cli",
|
|
190
|
+
children: documentationLink
|
|
191
|
+
})
|
|
192
|
+
})
|
|
193
|
+
]
|
|
194
|
+
})
|
|
195
|
+
})
|
|
196
|
+
]
|
|
197
|
+
})
|
|
198
|
+
]
|
|
199
|
+
})
|
|
200
|
+
]
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export { CloudDeploy };
|
|
205
|
+
//# sourceMappingURL=CloudDeploy.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudDeploy.mjs","sources":["../../../admin/src/components/CloudDeploy.tsx"],"sourcesContent":["/*\n *\n * Cloud component\n *\n */\n\nimport {\n Box,\n Flex,\n Typography,\n Link,\n LinkButton,\n Tabs,\n Badge,\n BaseLink,\n} from '@strapi/design-system';\nimport { ExternalLink, CloudUpload, Code } from '@strapi/icons';\nimport { useIntl } from 'react-intl';\n\nimport { CLIDeployTabs } from '../components/CLIDeployTabs';\nimport { getTrad } from '../utils/getTrad';\n\nconst CloudDeploy = () => {\n const { formatMessage } = useIntl();\n\n const documentationLink = formatMessage({\n id: getTrad('Homepage.deploy.documentation'),\n defaultMessage: 'Having trouble? Check our documentation',\n });\n\n return (\n <Box paddingBottom={5}>\n <Flex direction=\"column\">\n <Typography variant=\"delta\" paddingBottom={5} paddingTop={2}>\n {formatMessage({\n id: getTrad('Homepage.deploy.title'),\n defaultMessage: 'Choose your preferred deployment method',\n })}\n </Typography>\n </Flex>\n\n <Tabs.Root defaultValue=\"cloud\" variant=\"simple\">\n <Flex direction=\"column\">\n <Tabs.List\n aria-label={formatMessage({\n id: getTrad('Homepage.deploy.ariaLabel'),\n defaultMessage: 'Deployment options',\n })}\n >\n <Tabs.Trigger value=\"cloud\">\n <Box minWidth={{ initial: '10em', medium: '20em' }}>\n <Flex direction=\"row\" gap={2} justifyContent=\"center\">\n <Typography variant=\"omega\">Cloud</Typography>\n <Badge active>\n {formatMessage({\n id: getTrad('Homepage.deploy.git.badge'),\n defaultMessage: 'Recommended',\n })}\n </Badge>\n </Flex>\n </Box>\n </Tabs.Trigger>\n\n <Tabs.Trigger value=\"cli\">\n <Box minWidth={{ initial: '10em', medium: '20em' }}>\n <Flex justifyContent=\"center\">\n <Typography variant=\"omega\">CLI</Typography>\n </Flex>\n </Box>\n </Tabs.Trigger>\n </Tabs.List>\n </Flex>\n\n <Box>\n <Tabs.Content value=\"cloud\">\n <Flex direction=\"column\" paddingTop={6}>\n <Box>\n <BaseLink\n isExternal\n href=\"https://cloud.strapi.io/login?utm_campaign=Strapi%20Cloud%20Plugin&utm_source=In-Product&utm_medium=CTA\"\n >\n <CloudUpload height={40} width={40} fill=\"buttonPrimary600\" />\n </BaseLink>\n </Box>\n <Box paddingBottom={2} paddingTop={5}>\n <Typography variant=\"delta\" textColor=\"neutral1000\">\n {formatMessage({\n id: getTrad('Homepage.deploy.git.title'),\n defaultMessage: 'Deploy to Strapi Cloud',\n })}\n </Typography>\n </Box>\n <Typography variant=\"omega\" textColor=\"neutral600\">\n {formatMessage({\n id: getTrad('Homepage.deploy.git.subTitle'),\n defaultMessage: 'Deploy a GitHub or GitLab project directly within Strapi Cloud',\n })}\n </Typography>\n <Box paddingTop={8}>\n <LinkButton\n variant=\"default\"\n endIcon={<ExternalLink fill=\"neutral0\" />}\n href=\"https://cloud.strapi.io/login?utm_campaign=Strapi%20Cloud%20Plugin&utm_source=In-Product&utm_medium=CTA\"\n isExternal\n size=\"M\"\n >\n {formatMessage({\n id: getTrad('Homepage.deploy.git.button'),\n defaultMessage: 'Deploy to Strapi Cloud',\n })}\n </LinkButton>\n </Box>\n <Box paddingTop={5}>\n <Link isExternal href=\"https://docs.strapi.io/cloud/getting-started/deployment\">\n {documentationLink}\n </Link>\n </Box>\n </Flex>\n </Tabs.Content>\n\n <Tabs.Content value=\"cli\">\n <Flex direction=\"column\" paddingTop={6}>\n <Code height={40} width={40} fill=\"buttonPrimary600\" />\n <Box paddingBottom={2} paddingTop={5}>\n <Typography variant=\"delta\" textColor=\"neutral1000\">\n {formatMessage({\n id: getTrad('Homepage.deploy.cli.title'),\n defaultMessage: 'Deploy via CLI',\n })}\n </Typography>\n </Box>\n <Typography variant=\"omega\" textColor=\"neutral600\">\n {formatMessage({\n id: getTrad('Homepage.deploy.cli.subTitle'),\n defaultMessage: 'Use the command line to deploy your Strapi project directly',\n })}\n </Typography>\n\n <CLIDeployTabs />\n\n <Box paddingTop={5}>\n <Link isExternal href=\"https://docs.strapi.io/cloud/getting-started/deployment-cli\">\n {documentationLink}\n </Link>\n </Box>\n </Flex>\n </Tabs.Content>\n </Box>\n </Tabs.Root>\n </Box>\n );\n};\n\nexport { CloudDeploy };\n"],"names":["CloudDeploy","formatMessage","useIntl","documentationLink","id","getTrad","defaultMessage","_jsxs","Box","paddingBottom","_jsx","Flex","direction","Typography","variant","paddingTop","Tabs","Root","defaultValue","List","aria-label","Trigger","value","minWidth","initial","medium","gap","justifyContent","Badge","active","Content","BaseLink","isExternal","href","CloudUpload","height","width","fill","textColor","LinkButton","endIcon","ExternalLink","size","Link","Code","CLIDeployTabs"],"mappings":";;;;;;;AAsBA,MAAMA,WAAc,GAAA,IAAA;IAClB,MAAM,EAAEC,aAAa,EAAE,GAAGC,OAAAA,EAAAA;AAE1B,IAAA,MAAMC,oBAAoBF,aAAc,CAAA;AACtCG,QAAAA,EAAAA,EAAIC,OAAQ,CAAA,+BAAA,CAAA;QACZC,cAAgB,EAAA;AAClB,KAAA,CAAA;AAEA,IAAA,qBACEC,IAACC,CAAAA,GAAAA,EAAAA;QAAIC,aAAe,EAAA,CAAA;;0BAClBC,GAACC,CAAAA,IAAAA,EAAAA;gBAAKC,SAAU,EAAA,QAAA;AACd,gBAAA,QAAA,gBAAAF,GAACG,CAAAA,UAAAA,EAAAA;oBAAWC,OAAQ,EAAA,OAAA;oBAAQL,aAAe,EAAA,CAAA;oBAAGM,UAAY,EAAA,CAAA;8BACvDd,aAAc,CAAA;AACbG,wBAAAA,EAAAA,EAAIC,OAAQ,CAAA,uBAAA,CAAA;wBACZC,cAAgB,EAAA;AAClB,qBAAA;;;AAIJ,0BAAAC,IAAA,CAACS,KAAKC,IAAI,EAAA;gBAACC,YAAa,EAAA,OAAA;gBAAQJ,OAAQ,EAAA,QAAA;;kCACtCJ,GAACC,CAAAA,IAAAA,EAAAA;wBAAKC,SAAU,EAAA,QAAA;gDACdL,IAAA,CAACS,KAAKG,IAAI,EAAA;AACRC,4BAAAA,YAAAA,EAAYnB,aAAc,CAAA;AACxBG,gCAAAA,EAAAA,EAAIC,OAAQ,CAA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iC,CAAAA,IAAAA,EAAAA;gDAAKX,UAAU,EAAA,IAAA;gDAACC,IAAK,EAAA,6DAAA;AACnB9B,gDAAAA,QAAAA,EAAAA;;;;;;;;;;;;AASnB;;;;"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var designSystem = require('@strapi/design-system');
|
|
5
|
+
var icons = require('@strapi/icons');
|
|
6
|
+
var reactIntl = require('react-intl');
|
|
7
|
+
var getTrad = require('../utils/getTrad.js');
|
|
8
|
+
|
|
9
|
+
const CloudFree = ()=>{
|
|
10
|
+
const { formatMessage } = reactIntl.useIntl();
|
|
11
|
+
const features = [
|
|
12
|
+
{
|
|
13
|
+
id: 'api',
|
|
14
|
+
message: '2.5K API requests'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: 'storage',
|
|
18
|
+
message: '10 GB storage'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 'bandwidth',
|
|
22
|
+
message: '10 GB asset bandwidth'
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: 'cdn',
|
|
26
|
+
message: 'Global CDN'
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: 'pushToDeploy',
|
|
30
|
+
message: 'Push to deploy'
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
return /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
|
|
34
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
|
|
35
|
+
paddingBottom: 10,
|
|
36
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(designSystem.Flex, {
|
|
37
|
+
direction: "column",
|
|
38
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(designSystem.Flex, {
|
|
39
|
+
direction: "row",
|
|
40
|
+
wrap: "wrap",
|
|
41
|
+
children: features.map(({ id, message })=>/*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
|
|
42
|
+
paddingRight: 5,
|
|
43
|
+
children: [
|
|
44
|
+
/*#__PURE__*/ jsxRuntime.jsx(icons.Check, {
|
|
45
|
+
fill: "primary500"
|
|
46
|
+
}),
|
|
47
|
+
/*#__PURE__*/ jsxRuntime.jsx(designSystem.Typography, {
|
|
48
|
+
variant: "omega",
|
|
49
|
+
paddingLeft: 1,
|
|
50
|
+
children: formatMessage({
|
|
51
|
+
id: getTrad.getTrad(`Homepage.freePlan.${id}`),
|
|
52
|
+
defaultMessage: message
|
|
53
|
+
})
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
}, id))
|
|
57
|
+
})
|
|
58
|
+
})
|
|
59
|
+
})
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
exports.CloudFree = CloudFree;
|
|
64
|
+
//# sourceMappingURL=CloudFree.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudFree.js","sources":["../../../admin/src/components/CloudFree.tsx"],"sourcesContent":["import { Box, Flex, Typography } from '@strapi/design-system';\nimport { Check } from '@strapi/icons';\nimport { useIntl } from 'react-intl';\n\nimport { getTrad } from '../utils/getTrad';\n\nconst CloudFree = () => {\n const { formatMessage } = useIntl();\n\n const features = [\n { id: 'api', message: '2.5K API requests' },\n { id: 'storage', message: '10 GB storage' },\n { id: 'bandwidth', message: '10 GB asset bandwidth' },\n { id: 'cdn', message: 'Global CDN' },\n { id: 'pushToDeploy', message: 'Push to deploy' },\n ];\n\n return (\n <Box>\n <Box paddingBottom={10}>\n <Flex direction=\"column\">\n <Flex direction=\"row\" wrap=\"wrap\">\n {features.map(({ id, message }) => (\n <Flex key={id} paddingRight={5}>\n <Check fill=\"primary500\" />\n <Typography variant=\"omega\" paddingLeft={1}>\n {formatMessage({\n id: getTrad(`Homepage.freePlan.${id}`),\n defaultMessage: message,\n })}\n </Typography>\n </Flex>\n ))}\n </Flex>\n </Flex>\n </Box>\n </Box>\n );\n};\n\nexport { CloudFree };\n"],"names":["CloudFree","formatMessage","useIntl","features","id","message","_jsx","Box","paddingBottom","Flex","direction","wrap","map","_jsxs","paddingRight","Check","fill","Typography","variant","paddingLeft","getTrad","defaultMessage"],"mappings":";;;;;;;;AAMA,MAAMA,SAAY,GAAA,IAAA;IAChB,MAAM,EAAEC,aAAa,EAAE,GAAGC,iBAAAA,EAAAA;AAE1B,IAAA,MAAMC,QAAW,GAAA;AACf,QAAA;YAAEC,EAAI,EAAA,KAAA;YAAOC,OAAS,EAAA;AAAoB,SAAA;AAC1C,QAAA;YAAED,EAAI,EAAA,SAAA;YAAWC,OAAS,EAAA;AAAgB,SAAA;AAC1C,QAAA;YAAED,EAAI,EAAA,WAAA;YAAaC,OAAS,EAAA;AAAwB,SAAA;AACpD,QAAA;YAAED,EAAI,EAAA,KAAA;YAAOC,OAAS,EAAA;AAAa,SAAA;AACnC,QAAA;YAAED,EAAI,EAAA,cAAA;YAAgBC,OAAS,EAAA;AAAiB;AACjD,KAAA;AAED,IAAA,qBACEC,cAACC,CAAAA,gBAAAA,EAAAA;AACC,QAAA,QAAA,gBAAAD,cAACC,CAAAA,gBAAAA,EAAAA;YAAIC,aAAe,EAAA,EAAA;AAClB,YAAA,QAAA,gBAAAF,cAACG,CAAAA,iBAAAA,EAAAA;gBAAKC,SAAU,EAAA,QAAA;AACd,gBAAA,QAAA,gBAAAJ,cAACG,CAAAA,iBAAAA,EAAAA;oBAAKC,SAAU,EAAA,KAAA;oBAAMC,IAAK,EAAA,MAAA;8BACxBR,QAASS,CAAAA,GAAG,CAAC,CAAC,EAAER,EAAE,EAAEC,OAAO,EAAE,iBAC5BQ,eAACJ,CAAAA,iBAAAA,EAAAA;4BAAcK,YAAc,EAAA,CAAA;;8CAC3BR,cAACS,CAAAA,WAAAA,EAAAA;oCAAMC,IAAK,EAAA;;8CACZV,cAACW,CAAAA,uBAAAA,EAAAA;oCAAWC,OAAQ,EAAA,OAAA;oCAAQC,WAAa,EAAA,CAAA;8CACtClB,aAAc,CAAA;AACbG,wCAAAA,EAAAA,EAAIgB,eAAQ,CAAA,CAAC,kBAAkB,EAAEhB,EAAI,CAAA,CAAA,CAAA;wCACrCiB,cAAgBhB,EAAAA;AAClB,qCAAA;;;AANOD,yBAAAA,EAAAA,EAAAA,CAAAA;;;;;AAezB;;;;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { Box, Flex, Typography } from '@strapi/design-system';
|
|
3
|
+
import { Check } from '@strapi/icons';
|
|
4
|
+
import { useIntl } from 'react-intl';
|
|
5
|
+
import { getTrad } from '../utils/getTrad.mjs';
|
|
6
|
+
|
|
7
|
+
const CloudFree = ()=>{
|
|
8
|
+
const { formatMessage } = useIntl();
|
|
9
|
+
const features = [
|
|
10
|
+
{
|
|
11
|
+
id: 'api',
|
|
12
|
+
message: '2.5K API requests'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: 'storage',
|
|
16
|
+
message: '10 GB storage'
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: 'bandwidth',
|
|
20
|
+
message: '10 GB asset bandwidth'
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: 'cdn',
|
|
24
|
+
message: 'Global CDN'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'pushToDeploy',
|
|
28
|
+
message: 'Push to deploy'
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
return /*#__PURE__*/ jsx(Box, {
|
|
32
|
+
children: /*#__PURE__*/ jsx(Box, {
|
|
33
|
+
paddingBottom: 10,
|
|
34
|
+
children: /*#__PURE__*/ jsx(Flex, {
|
|
35
|
+
direction: "column",
|
|
36
|
+
children: /*#__PURE__*/ jsx(Flex, {
|
|
37
|
+
direction: "row",
|
|
38
|
+
wrap: "wrap",
|
|
39
|
+
children: features.map(({ id, message })=>/*#__PURE__*/ jsxs(Flex, {
|
|
40
|
+
paddingRight: 5,
|
|
41
|
+
children: [
|
|
42
|
+
/*#__PURE__*/ jsx(Check, {
|
|
43
|
+
fill: "primary500"
|
|
44
|
+
}),
|
|
45
|
+
/*#__PURE__*/ jsx(Typography, {
|
|
46
|
+
variant: "omega",
|
|
47
|
+
paddingLeft: 1,
|
|
48
|
+
children: formatMessage({
|
|
49
|
+
id: getTrad(`Homepage.freePlan.${id}`),
|
|
50
|
+
defaultMessage: message
|
|
51
|
+
})
|
|
52
|
+
})
|
|
53
|
+
]
|
|
54
|
+
}, id))
|
|
55
|
+
})
|
|
56
|
+
})
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export { CloudFree };
|
|
62
|
+
//# sourceMappingURL=CloudFree.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudFree.mjs","sources":["../../../admin/src/components/CloudFree.tsx"],"sourcesContent":["import { Box, Flex, Typography } from '@strapi/design-system';\nimport { Check } from '@strapi/icons';\nimport { useIntl } from 'react-intl';\n\nimport { getTrad } from '../utils/getTrad';\n\nconst CloudFree = () => {\n const { formatMessage } = useIntl();\n\n const features = [\n { id: 'api', message: '2.5K API requests' },\n { id: 'storage', message: '10 GB storage' },\n { id: 'bandwidth', message: '10 GB asset bandwidth' },\n { id: 'cdn', message: 'Global CDN' },\n { id: 'pushToDeploy', message: 'Push to deploy' },\n ];\n\n return (\n <Box>\n <Box paddingBottom={10}>\n <Flex direction=\"column\">\n <Flex direction=\"row\" wrap=\"wrap\">\n {features.map(({ id, message }) => (\n <Flex key={id} paddingRight={5}>\n <Check fill=\"primary500\" />\n <Typography variant=\"omega\" paddingLeft={1}>\n {formatMessage({\n id: getTrad(`Homepage.freePlan.${id}`),\n defaultMessage: message,\n })}\n </Typography>\n </Flex>\n ))}\n </Flex>\n </Flex>\n </Box>\n </Box>\n );\n};\n\nexport { CloudFree };\n"],"names":["CloudFree","formatMessage","useIntl","features","id","message","_jsx","Box","paddingBottom","Flex","direction","wrap","map","_jsxs","paddingRight","Check","fill","Typography","variant","paddingLeft","getTrad","defaultMessage"],"mappings":";;;;;;AAMA,MAAMA,SAAY,GAAA,IAAA;IAChB,MAAM,EAAEC,aAAa,EAAE,GAAGC,OAAAA,EAAAA;AAE1B,IAAA,MAAMC,QAAW,GAAA;AACf,QAAA;YAAEC,EAAI,EAAA,KAAA;YAAOC,OAAS,EAAA;AAAoB,SAAA;AAC1C,QAAA;YAAED,EAAI,EAAA,SAAA;YAAWC,OAAS,EAAA;AAAgB,SAAA;AAC1C,QAAA;YAAED,EAAI,EAAA,WAAA;YAAaC,OAAS,EAAA;AAAwB,SAAA;AACpD,QAAA;YAAED,EAAI,EAAA,KAAA;YAAOC,OAAS,EAAA;AAAa,SAAA;AACnC,QAAA;YAAED,EAAI,EAAA,cAAA;YAAgBC,OAAS,EAAA;AAAiB;AACjD,KAAA;AAED,IAAA,qBACEC,GAACC,CAAAA,GAAAA,EAAAA;AACC,QAAA,QAAA,gBAAAD,GAACC,CAAAA,GAAAA,EAAAA;YAAIC,aAAe,EAAA,EAAA;AAClB,YAAA,QAAA,gBAAAF,GAACG,CAAAA,IAAAA,EAAAA;gBAAKC,SAAU,EAAA,QAAA;AACd,gBAAA,QAAA,gBAAAJ,GAACG,CAAAA,IAAAA,EAAAA;oBAAKC,SAAU,EAAA,KAAA;oBAAMC,IAAK,EAAA,MAAA;8BACxBR,QAASS,CAAAA,GAAG,CAAC,CAAC,EAAER,EAAE,EAAEC,OAAO,EAAE,iBAC5BQ,IAACJ,CAAAA,IAAAA,EAAAA;4BAAcK,YAAc,EAAA,CAAA;;8CAC3BR,GAACS,CAAAA,KAAAA,EAAAA;oCAAMC,IAAK,EAAA;;8CACZV,GAACW,CAAAA,UAAAA,EAAAA;oCAAWC,OAAQ,EAAA,OAAA;oCAAQC,WAAa,EAAA,CAAA;8CACtClB,aAAc,CAAA;AACbG,wCAAAA,EAAAA,EAAIgB,OAAQ,CAAA,CAAC,kBAAkB,EAAEhB,EAAI,CAAA,CAAA,CAAA;wCACrCiB,cAAgBhB,EAAAA;AAClB,qCAAA;;;AANOD,yBAAAA,EAAAA,EAAAA,CAAAA;;;;;AAezB;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var react = require('react');
|
|
4
|
+
var pluginId = require('../pluginId.js');
|
|
5
|
+
|
|
6
|
+
const Initializer = ({ setPlugin })=>{
|
|
7
|
+
const ref = react.useRef(setPlugin);
|
|
8
|
+
react.useEffect(()=>{
|
|
9
|
+
ref.current(pluginId.pluginId);
|
|
10
|
+
}, []);
|
|
11
|
+
return null;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.Initializer = Initializer;
|
|
15
|
+
//# sourceMappingURL=Initializer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Initializer.js","sources":["../../../admin/src/components/Initializer.tsx"],"sourcesContent":["/**\n *\n * Initializer\n *\n */\n\nimport { useEffect, useRef } from 'react';\n\nimport { pluginId } 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(pluginId);\n }, []);\n\n return null;\n};\n\nexport { Initializer };\n"],"names":["Initializer","setPlugin","ref","useRef","useEffect","current","pluginId"],"mappings":";;;;;AAcA,MAAMA,WAAc,GAAA,CAAC,EAAEC,SAAS,EAAoB,GAAA;AAClD,IAAA,MAAMC,MAAMC,YAAOF,CAAAA,SAAAA,CAAAA;IAEnBG,eAAU,CAAA,IAAA;AACRF,QAAAA,GAAAA,CAAIG,OAAO,CAACC,iBAAAA,CAAAA;AACd,KAAA,EAAG,EAAE,CAAA;IAEL,OAAO,IAAA;AACT;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useRef, useEffect } from 'react';
|
|
2
|
+
import { pluginId } from '../pluginId.mjs';
|
|
3
|
+
|
|
4
|
+
const Initializer = ({ setPlugin })=>{
|
|
5
|
+
const ref = useRef(setPlugin);
|
|
6
|
+
useEffect(()=>{
|
|
7
|
+
ref.current(pluginId);
|
|
8
|
+
}, []);
|
|
9
|
+
return null;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { Initializer };
|
|
13
|
+
//# sourceMappingURL=Initializer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Initializer.mjs","sources":["../../../admin/src/components/Initializer.tsx"],"sourcesContent":["/**\n *\n * Initializer\n *\n */\n\nimport { useEffect, useRef } from 'react';\n\nimport { pluginId } 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(pluginId);\n }, []);\n\n return null;\n};\n\nexport { Initializer };\n"],"names":["Initializer","setPlugin","ref","useRef","useEffect","current","pluginId"],"mappings":";;;AAcA,MAAMA,WAAc,GAAA,CAAC,EAAEC,SAAS,EAAoB,GAAA;AAClD,IAAA,MAAMC,MAAMC,MAAOF,CAAAA,SAAAA,CAAAA;IAEnBG,SAAU,CAAA,IAAA;AACRF,QAAAA,GAAAA,CAAIG,OAAO,CAACC,QAAAA,CAAAA;AACd,KAAA,EAAG,EAAE,CAAA;IAEL,OAAO,IAAA;AACT;;;;"}
|
package/dist/admin/index.js
CHANGED
|
@@ -1,5 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
require(
|
|
4
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var icons = require('@strapi/icons');
|
|
4
|
+
var Initializer = require('./components/Initializer.js');
|
|
5
|
+
var pluginId = require('./pluginId.js');
|
|
6
|
+
var prefixPluginTranslations = require('./utils/prefixPluginTranslations.js');
|
|
7
|
+
|
|
8
|
+
function _interopNamespaceDefaultOnly (e) { return Object.freeze({ __proto__: null, default: e }); }
|
|
9
|
+
|
|
10
|
+
function __variableDynamicImportRuntime1__(path) {
|
|
11
|
+
switch (path) {
|
|
12
|
+
case './translations/en.json': return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespaceDefaultOnly(require('./translations/en.json.js')); });
|
|
13
|
+
case './translations/es.json': return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespaceDefaultOnly(require('./translations/es.json.js')); });
|
|
14
|
+
case './translations/fr.json': return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespaceDefaultOnly(require('./translations/fr.json.js')); });
|
|
15
|
+
case './translations/it.json': return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespaceDefaultOnly(require('./translations/it.json.js')); });
|
|
16
|
+
case './translations/ru.json': return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespaceDefaultOnly(require('./translations/ru.json.js')); });
|
|
17
|
+
case './translations/uk.json': return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespaceDefaultOnly(require('./translations/uk.json.js')); });
|
|
18
|
+
default: return new Promise(function(resolve, reject) {
|
|
19
|
+
(typeof queueMicrotask === 'function' ? queueMicrotask : setTimeout)(
|
|
20
|
+
reject.bind(null, new Error("Unknown variable dynamic import: " + path))
|
|
21
|
+
);
|
|
22
|
+
})
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
const pluginName = 'Deploy';
|
|
26
|
+
// eslint-disable-next-line import/no-default-export
|
|
27
|
+
var index = {
|
|
28
|
+
register (app) {
|
|
29
|
+
const { backendURL } = window.strapi;
|
|
30
|
+
// Only add the plugin menu link and registering it if the project is on development (localhost).
|
|
31
|
+
if (backendURL?.includes('localhost')) {
|
|
32
|
+
app.addMenuLink({
|
|
33
|
+
to: `plugins/${pluginId.pluginId}`,
|
|
34
|
+
icon: icons.Cloud,
|
|
35
|
+
intlLabel: {
|
|
36
|
+
id: `${pluginId.pluginId}.Plugin.name`,
|
|
37
|
+
defaultMessage: pluginName
|
|
38
|
+
},
|
|
39
|
+
Component: async ()=>{
|
|
40
|
+
const { App } = await Promise.resolve().then(function () { return require('./pages/App.js'); });
|
|
41
|
+
return App;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
const plugin = {
|
|
45
|
+
id: pluginId.pluginId,
|
|
46
|
+
initializer: Initializer.Initializer,
|
|
47
|
+
isReady: false,
|
|
48
|
+
name: pluginName
|
|
49
|
+
};
|
|
50
|
+
app.registerPlugin(plugin);
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
async registerTrads (app) {
|
|
54
|
+
const { locales } = app;
|
|
55
|
+
const importedTrads = await Promise.all(locales.map((locale)=>{
|
|
56
|
+
return __variableDynamicImportRuntime1__(`./translations/${locale}.json`).then(({ default: data })=>{
|
|
57
|
+
return {
|
|
58
|
+
data: prefixPluginTranslations.prefixPluginTranslations(data, pluginId.pluginId),
|
|
59
|
+
locale
|
|
60
|
+
};
|
|
61
|
+
}).catch(()=>{
|
|
62
|
+
return {
|
|
63
|
+
data: {},
|
|
64
|
+
locale
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
}));
|
|
68
|
+
return Promise.resolve(importedTrads);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
module.exports = index;
|
|
5
73
|
//# sourceMappingURL=index.js.map
|
package/dist/admin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../admin/src/index.ts"],"sourcesContent":["/* eslint-disable check-file/filename-naming-convention */\n\nimport { Cloud } from '@strapi/icons';\n\nimport { Initializer } from './components/Initializer';\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst pluginName = 'Deploy';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n register(app: any) {\n const { backendURL } = window.strapi;\n\n // Only add the plugin menu link and registering it if the project is on development (localhost).\n if (backendURL?.includes('localhost')) {\n app.addMenuLink({\n to: `plugins/${pluginId}`,\n icon: Cloud,\n intlLabel: {\n id: `${pluginId}.Plugin.name`,\n defaultMessage: pluginName,\n },\n Component: async () => {\n const { App } = await import('./pages/App');\n\n return App;\n },\n });\n const plugin = {\n id: pluginId,\n initializer: Initializer,\n isReady: false,\n name: pluginName,\n };\n\n app.registerPlugin(plugin);\n }\n },\n\n async registerTrads(app: any) {\n const { locales } = app;\n\n const importedTrads = await Promise.all(\n (locales as any[]).map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginName","register","app","backendURL","window","strapi","includes","addMenuLink","to","pluginId","icon","Cloud","intlLabel","id","defaultMessage","Component","App","plugin","initializer","Initializer","isReady","name","registerPlugin","registerTrads","locales","importedTrads","Promise","all","map","locale","then","default","data","prefixPluginTranslations","catch","resolve"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,MAAMA,UAAa,GAAA,QAAA;AAEnB;AACA,YAAe;AACbC,IAAAA,QAAAA,CAAAA,CAASC,GAAQ,EAAA;AACf,QAAA,MAAM,EAAEC,UAAU,EAAE,GAAGC,OAAOC,MAAM;;QAGpC,IAAIF,UAAAA,EAAYG,SAAS,WAAc,CAAA,EAAA;AACrCJ,YAAAA,GAAAA,CAAIK,WAAW,CAAC;gBACdC,EAAI,EAAA,CAAC,QAAQ,EAAEC,iBAAU,CAAA,CAAA;gBACzBC,IAAMC,EAAAA,WAAAA;gBACNC,SAAW,EAAA;oBACTC,EAAI,EAAA,CAAA,EAAGJ,iBAAS,CAAA,YAAY,CAAC;oBAC7BK,cAAgBd,EAAAA;AAClB,iBAAA;gBACAe,SAAW,EAAA,UAAA;AACT,oBAAA,MAAM,EAAEC,GAAG,EAAE,GAAG,MAAM,oDAAO,gBAAA,KAAA;oBAE7B,OAAOA,GAAAA;AACT;AACF,aAAA,CAAA;AACA,YAAA,MAAMC,MAAS,GAAA;gBACbJ,EAAIJ,EAAAA,iBAAAA;gBACJS,WAAaC,EAAAA,uBAAAA;gBACbC,OAAS,EAAA,KAAA;gBACTC,IAAMrB,EAAAA;AACR,aAAA;AAEAE,YAAAA,GAAAA,CAAIoB,cAAc,CAACL,MAAAA,CAAAA;AACrB;AACF,KAAA;AAEA,IAAA,MAAMM,eAAcrB,GAAQ,EAAA;QAC1B,MAAM,EAAEsB,OAAO,EAAE,GAAGtB,GAAAA;QAEpB,MAAMuB,aAAAA,GAAgB,MAAMC,OAAQC,CAAAA,GAAG,CACrC,OAACH,CAAkBI,GAAG,CAAC,CAACC,MAAAA,GAAAA;AACtB,YAAA,OAAO,iCAAM,CAAC,CAAC,eAAe,EAAEA,MAAO,CAAA,KAAK,CAAC,CAAA,CAC1CC,IAAI,CAAC,CAAC,EAAEC,OAAAA,EAASC,IAAI,EAAE,GAAA;gBACtB,OAAO;AACLA,oBAAAA,IAAAA,EAAMC,kDAAyBD,IAAMvB,EAAAA,iBAAAA,CAAAA;AACrCoB,oBAAAA;AACF,iBAAA;AACF,aAAA,CAAA,CACCK,KAAK,CAAC,IAAA;gBACL,OAAO;AACLF,oBAAAA,IAAAA,EAAM,EAAC;AACPH,oBAAAA;AACF,iBAAA;AACF,aAAA,CAAA;AACJ,SAAA,CAAA,CAAA;QAGF,OAAOH,OAAAA,CAAQS,OAAO,CAACV,aAAAA,CAAAA;AACzB;AACF,CAAE;;;;"}
|
package/dist/admin/index.mjs
CHANGED
|
@@ -1,6 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Cloud } from '@strapi/icons';
|
|
2
|
+
import { Initializer } from './components/Initializer.mjs';
|
|
3
|
+
import { pluginId } from './pluginId.mjs';
|
|
4
|
+
import { prefixPluginTranslations } from './utils/prefixPluginTranslations.mjs';
|
|
5
|
+
|
|
6
|
+
function __variableDynamicImportRuntime1__(path) {
|
|
7
|
+
switch (path) {
|
|
8
|
+
case './translations/en.json': return import('./translations/en.json.mjs');
|
|
9
|
+
case './translations/es.json': return import('./translations/es.json.mjs');
|
|
10
|
+
case './translations/fr.json': return import('./translations/fr.json.mjs');
|
|
11
|
+
case './translations/it.json': return import('./translations/it.json.mjs');
|
|
12
|
+
case './translations/ru.json': return import('./translations/ru.json.mjs');
|
|
13
|
+
case './translations/uk.json': return import('./translations/uk.json.mjs');
|
|
14
|
+
default: return new Promise(function(resolve, reject) {
|
|
15
|
+
(typeof queueMicrotask === 'function' ? queueMicrotask : setTimeout)(
|
|
16
|
+
reject.bind(null, new Error("Unknown variable dynamic import: " + path))
|
|
17
|
+
);
|
|
18
|
+
})
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const pluginName = 'Deploy';
|
|
22
|
+
// eslint-disable-next-line import/no-default-export
|
|
23
|
+
var index = {
|
|
24
|
+
register (app) {
|
|
25
|
+
const { backendURL } = window.strapi;
|
|
26
|
+
// Only add the plugin menu link and registering it if the project is on development (localhost).
|
|
27
|
+
if (backendURL?.includes('localhost')) {
|
|
28
|
+
app.addMenuLink({
|
|
29
|
+
to: `plugins/${pluginId}`,
|
|
30
|
+
icon: Cloud,
|
|
31
|
+
intlLabel: {
|
|
32
|
+
id: `${pluginId}.Plugin.name`,
|
|
33
|
+
defaultMessage: pluginName
|
|
34
|
+
},
|
|
35
|
+
Component: async ()=>{
|
|
36
|
+
const { App } = await import('./pages/App.mjs');
|
|
37
|
+
return App;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
const plugin = {
|
|
41
|
+
id: pluginId,
|
|
42
|
+
initializer: Initializer,
|
|
43
|
+
isReady: false,
|
|
44
|
+
name: pluginName
|
|
45
|
+
};
|
|
46
|
+
app.registerPlugin(plugin);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
async registerTrads (app) {
|
|
50
|
+
const { locales } = app;
|
|
51
|
+
const importedTrads = await Promise.all(locales.map((locale)=>{
|
|
52
|
+
return __variableDynamicImportRuntime1__(`./translations/${locale}.json`).then(({ default: data })=>{
|
|
53
|
+
return {
|
|
54
|
+
data: prefixPluginTranslations(data, pluginId),
|
|
55
|
+
locale
|
|
56
|
+
};
|
|
57
|
+
}).catch(()=>{
|
|
58
|
+
return {
|
|
59
|
+
data: {},
|
|
60
|
+
locale
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
}));
|
|
64
|
+
return Promise.resolve(importedTrads);
|
|
65
|
+
}
|
|
5
66
|
};
|
|
67
|
+
|
|
68
|
+
export { index as default };
|
|
6
69
|
//# sourceMappingURL=index.mjs.map
|
package/dist/admin/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../admin/src/index.ts"],"sourcesContent":["/* eslint-disable check-file/filename-naming-convention */\n\nimport { Cloud } from '@strapi/icons';\n\nimport { Initializer } from './components/Initializer';\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst pluginName = 'Deploy';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n register(app: any) {\n const { backendURL } = window.strapi;\n\n // Only add the plugin menu link and registering it if the project is on development (localhost).\n if (backendURL?.includes('localhost')) {\n app.addMenuLink({\n to: `plugins/${pluginId}`,\n icon: Cloud,\n intlLabel: {\n id: `${pluginId}.Plugin.name`,\n defaultMessage: pluginName,\n },\n Component: async () => {\n const { App } = await import('./pages/App');\n\n return App;\n },\n });\n const plugin = {\n id: pluginId,\n initializer: Initializer,\n isReady: false,\n name: pluginName,\n };\n\n app.registerPlugin(plugin);\n }\n },\n\n async registerTrads(app: any) {\n const { locales } = app;\n\n const importedTrads = await Promise.all(\n (locales as any[]).map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginName","register","app","backendURL","window","strapi","includes","addMenuLink","to","pluginId","icon","Cloud","intlLabel","id","defaultMessage","Component","App","plugin","initializer","Initializer","isReady","name","registerPlugin","registerTrads","locales","importedTrads","Promise","all","map","locale","then","default","data","prefixPluginTranslations","catch","resolve"],"mappings":";;;;;;;;;;;;;;;;;;;;AAQA,MAAMA,UAAa,GAAA,QAAA;AAEnB;AACA,YAAe;AACbC,IAAAA,QAAAA,CAAAA,CAASC,GAAQ,EAAA;AACf,QAAA,MAAM,EAAEC,UAAU,EAAE,GAAGC,OAAOC,MAAM;;QAGpC,IAAIF,UAAAA,EAAYG,SAAS,WAAc,CAAA,EAAA;AACrCJ,YAAAA,GAAAA,CAAIK,WAAW,CAAC;gBACdC,EAAI,EAAA,CAAC,QAAQ,EAAEC,QAAU,CAAA,CAAA;gBACzBC,IAAMC,EAAAA,KAAAA;gBACNC,SAAW,EAAA;oBACTC,EAAI,EAAA,CAAA,EAAGJ,QAAS,CAAA,YAAY,CAAC;oBAC7BK,cAAgBd,EAAAA;AAClB,iBAAA;gBACAe,SAAW,EAAA,UAAA;AACT,oBAAA,MAAM,EAAEC,GAAG,EAAE,GAAG,MAAM,OAAO,iBAAA,CAAA;oBAE7B,OAAOA,GAAAA;AACT;AACF,aAAA,CAAA;AACA,YAAA,MAAMC,MAAS,GAAA;gBACbJ,EAAIJ,EAAAA,QAAAA;gBACJS,WAAaC,EAAAA,WAAAA;gBACbC,OAAS,EAAA,KAAA;gBACTC,IAAMrB,EAAAA;AACR,aAAA;AAEAE,YAAAA,GAAAA,CAAIoB,cAAc,CAACL,MAAAA,CAAAA;AACrB;AACF,KAAA;AAEA,IAAA,MAAMM,eAAcrB,GAAQ,EAAA;QAC1B,MAAM,EAAEsB,OAAO,EAAE,GAAGtB,GAAAA;QAEpB,MAAMuB,aAAAA,GAAgB,MAAMC,OAAQC,CAAAA,GAAG,CACrC,OAACH,CAAkBI,GAAG,CAAC,CAACC,MAAAA,GAAAA;AACtB,YAAA,OAAO,iCAAM,CAAC,CAAC,eAAe,EAAEA,MAAO,CAAA,KAAK,CAAC,CAAA,CAC1CC,IAAI,CAAC,CAAC,EAAEC,OAAAA,EAASC,IAAI,EAAE,GAAA;gBACtB,OAAO;AACLA,oBAAAA,IAAAA,EAAMC,yBAAyBD,IAAMvB,EAAAA,QAAAA,CAAAA;AACrCoB,oBAAAA;AACF,iBAAA;AACF,aAAA,CAAA,CACCK,KAAK,CAAC,IAAA;gBACL,OAAO;AACLF,oBAAAA,IAAAA,EAAM,EAAC;AACPH,oBAAAA;AACF,iBAAA;AACF,aAAA,CAAA;AACJ,SAAA,CAAA,CAAA;QAGF,OAAOH,OAAAA,CAAQS,OAAO,CAACV,aAAAA,CAAAA;AACzB;AACF,CAAE;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var admin = require('@strapi/strapi/admin');
|
|
5
|
+
var reactRouterDom = require('react-router-dom');
|
|
6
|
+
var HomePage = require('./HomePage.js');
|
|
7
|
+
|
|
8
|
+
const App = ()=>{
|
|
9
|
+
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
10
|
+
children: /*#__PURE__*/ jsxRuntime.jsxs(reactRouterDom.Routes, {
|
|
11
|
+
children: [
|
|
12
|
+
/*#__PURE__*/ jsxRuntime.jsx(reactRouterDom.Route, {
|
|
13
|
+
index: true,
|
|
14
|
+
element: /*#__PURE__*/ jsxRuntime.jsx(HomePage.HomePage, {})
|
|
15
|
+
}),
|
|
16
|
+
/*#__PURE__*/ jsxRuntime.jsx(reactRouterDom.Route, {
|
|
17
|
+
path: "*",
|
|
18
|
+
element: /*#__PURE__*/ jsxRuntime.jsx(admin.Page.Error, {})
|
|
19
|
+
})
|
|
20
|
+
]
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
exports.App = App;
|
|
26
|
+
//# sourceMappingURL=App.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App.js","sources":["../../../admin/src/pages/App.tsx"],"sourcesContent":["/**\n *\n * This component is the skeleton around the actual pages, and should only\n * contain code that should be seen on all pages. (e.g. navigation bar)\n *\n */\n\nimport { Page } from '@strapi/strapi/admin';\nimport { Routes, Route } from 'react-router-dom';\n\nimport { HomePage } from './HomePage';\n\nconst App = () => {\n return (\n <div>\n <Routes>\n <Route index element={<HomePage />} />\n <Route path=\"*\" element={<Page.Error />} />\n </Routes>\n </div>\n );\n};\n\nexport { App };\n"],"names":["App","_jsx","div","_jsxs","Routes","Route","index","element","HomePage","path","Page","Error"],"mappings":";;;;;;;AAYA,MAAMA,GAAM,GAAA,IAAA;AACV,IAAA,qBACEC,cAACC,CAAAA,KAAAA,EAAAA;AACC,QAAA,QAAA,gBAAAC,eAACC,CAAAA,qBAAAA,EAAAA;;8BACCH,cAACI,CAAAA,oBAAAA,EAAAA;oBAAMC,KAAK,EAAA,IAAA;AAACC,oBAAAA,OAAAA,gBAASN,cAACO,CAAAA,iBAAAA,EAAAA,EAAAA;;8BACvBP,cAACI,CAAAA,oBAAAA,EAAAA;oBAAMI,IAAK,EAAA,GAAA;oBAAIF,OAAS,gBAAAN,cAAA,CAACS,WAAKC,KAAK,EAAA,EAAA;;;;;AAI5C;;;;"}
|