@punch-in/strapi-admin 1.0.6 → 1.0.7
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/admin/src/assets/images/logo.png +0 -0
- package/admin/src/assets/images/punch-in-logo-inverted.png +0 -0
- package/admin/src/components/Header/index.js +2 -2
- package/admin/src/components/LeftMenu/LeftMenuHeader/Wrapper.js +1 -1
- package/admin/src/components/NavTopRightWrapper/index.js +3 -1
- package/admin/src/containers/Admin/Logout/components.js +3 -1
- package/admin/src/containers/Admin/index.js +2 -2
- package/admin/src/containers/AuthPage/components/Box/Wrapper.js +5 -5
- package/admin/src/containers/AuthPage/components/Logo/Img.js +0 -1
- package/admin/src/containers/AuthPage/components/Logo/index.js +1 -1
- package/admin/src/containers/HomePage/hooks.js +1 -30
- package/admin/src/containers/LeftMenu/index.js +10 -10
- package/admin/src/containers/LocaleToggle/Wrapper.js +1 -1
- package/admin/src/containers/PluginDispatcher/index.js +1 -1
- package/admin/src/index.html +1 -1
- package/admin/src/themes/colors.js +1 -1
- package/admin/src/translations/en.json +13 -13
- package/admin/src/translations/fr.json +5 -5
- package/admin/src/translations/it.json +5 -5
- package/index.js +3 -3
- package/package.json +1 -1
- package/admin/src/assets/images/logo_strapi.png +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -12,11 +12,11 @@ const Header = styled.div`
|
|
|
12
12
|
height: ${props => props.theme.main.sizes.header.height};
|
|
13
13
|
|
|
14
14
|
position: fixed;
|
|
15
|
-
z-index:
|
|
15
|
+
z-index: -10;
|
|
16
16
|
left: ${props => props.theme.main.sizes.leftMenu.width};
|
|
17
17
|
|
|
18
18
|
box-shadow: 0 1px 2px 0 rgba(40, 42, 49, 0.16);
|
|
19
|
-
background-color: ${props => props.theme.main.colors.
|
|
19
|
+
background-color: ${props => props.theme.main.colors.leftMenu['background-header-link']};};
|
|
20
20
|
|
|
21
21
|
line-height: ${props => props.theme.main.sizes.header.height};
|
|
22
22
|
`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
|
|
4
|
-
import Logo from '../../../assets/images/logo-
|
|
4
|
+
import Logo from '../../../assets/images/punch-in-logo-inverted.png';
|
|
5
5
|
|
|
6
6
|
const Wrapper = styled.div`
|
|
7
7
|
background-color: ${(props) =>
|
|
@@ -24,11 +24,13 @@ const Wrapper = styled.div`
|
|
|
24
24
|
text-align: right;
|
|
25
25
|
cursor: pointer;
|
|
26
26
|
transition: background 0.2s ease-out;
|
|
27
|
+
background-color: #007eff;
|
|
28
|
+
color: #fff;
|
|
27
29
|
|
|
28
30
|
&:hover,
|
|
29
31
|
&:focus,
|
|
30
32
|
&:active {
|
|
31
|
-
color: #
|
|
33
|
+
color: #007eff;
|
|
32
34
|
background-color: #fafafb !important;
|
|
33
35
|
z-index: 9;
|
|
34
36
|
}
|
|
@@ -277,11 +277,11 @@ export class Admin extends React.Component {
|
|
|
277
277
|
<InstalledPluginsPage />
|
|
278
278
|
</CheckPagePermissions>
|
|
279
279
|
</Route>
|
|
280
|
-
|
|
280
|
+
{/*<Route path="/marketplace">
|
|
281
281
|
<CheckPagePermissions permissions={adminPermissions.marketplace.main}>
|
|
282
282
|
<MarketplacePage />
|
|
283
283
|
</CheckPagePermissions>
|
|
284
|
-
</Route>
|
|
284
|
+
</Route> */}
|
|
285
285
|
<Route
|
|
286
286
|
path={`${SETTINGS_BASE_URL || '/settings'}/:settingId`}
|
|
287
287
|
component={SettingsPage}
|
|
@@ -3,11 +3,11 @@ import styled from 'styled-components';
|
|
|
3
3
|
const Wrapper = styled.div`
|
|
4
4
|
margin: auto;
|
|
5
5
|
width: 41.6rem;
|
|
6
|
-
padding: 20px 30px 25px
|
|
7
|
-
border-radius:
|
|
8
|
-
border-top: 2px solid
|
|
9
|
-
background-color:
|
|
10
|
-
box-shadow:
|
|
6
|
+
padding: 20px 30px 25px;
|
|
7
|
+
border-radius: 2px;
|
|
8
|
+
border-top: 2px solid rgb(183 219 255);
|
|
9
|
+
background-color: rgb(255, 255, 255);
|
|
10
|
+
box-shadow: rgb(181 193 213) 3px 5px 4px 2px;
|
|
11
11
|
`;
|
|
12
12
|
|
|
13
13
|
export default Wrapper;
|
|
@@ -12,36 +12,7 @@ const useFetch = () => {
|
|
|
12
12
|
useEffect(() => {
|
|
13
13
|
const CancelToken = axios.CancelToken;
|
|
14
14
|
const source = CancelToken.source();
|
|
15
|
-
|
|
16
|
-
const fetchData = async () => {
|
|
17
|
-
try {
|
|
18
|
-
const { data } = await axios.get(
|
|
19
|
-
'https://strapi.io/api/blog-posts?_limit=2&_sort=publishedAt:desc',
|
|
20
|
-
{
|
|
21
|
-
cancelToken: source.token,
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
const posts = data.reduce((acc, curr) => {
|
|
26
|
-
acc.push({
|
|
27
|
-
title: curr.seo.metaTitle,
|
|
28
|
-
link: curr.slug,
|
|
29
|
-
content: curr.seo.metaDescription,
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
return acc;
|
|
33
|
-
}, []);
|
|
34
|
-
|
|
35
|
-
setState({ isLoading: false, posts, error: false });
|
|
36
|
-
} catch (err) {
|
|
37
|
-
if (isMounted.current) {
|
|
38
|
-
setState({ isLoading: false, error: true, posts: [] });
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
fetchData();
|
|
44
|
-
|
|
15
|
+
setState({ isLoading: false, error: true, posts: [] });
|
|
45
16
|
return () => {
|
|
46
17
|
isMounted.current = false;
|
|
47
18
|
source.cancel('abort');
|
|
@@ -47,6 +47,16 @@ const LeftMenu = ({ shouldUpdateStrapi, version, plugins, setUpdateMenu }) => {
|
|
|
47
47
|
<Loader show={isLoading} />
|
|
48
48
|
<LeftMenuHeader />
|
|
49
49
|
<LinksContainer>
|
|
50
|
+
{pluginsSectionLinks.length > 0 && (
|
|
51
|
+
<LeftMenuLinksSection
|
|
52
|
+
section="plugins"
|
|
53
|
+
name="plugins"
|
|
54
|
+
links={pluginsSectionLinks}
|
|
55
|
+
location={location}
|
|
56
|
+
searchable={false}
|
|
57
|
+
emptyLinksListMessage="app.components.LeftMenuLinkContainer.noPluginsInstalled"
|
|
58
|
+
/>
|
|
59
|
+
)}
|
|
50
60
|
{filteredCollectionTypeLinks.length > 0 && (
|
|
51
61
|
<LeftMenuLinksSection
|
|
52
62
|
section="collectionType"
|
|
@@ -66,16 +76,6 @@ const LeftMenu = ({ shouldUpdateStrapi, version, plugins, setUpdateMenu }) => {
|
|
|
66
76
|
/>
|
|
67
77
|
)}
|
|
68
78
|
|
|
69
|
-
{pluginsSectionLinks.length > 0 && (
|
|
70
|
-
<LeftMenuLinksSection
|
|
71
|
-
section="plugins"
|
|
72
|
-
name="plugins"
|
|
73
|
-
links={pluginsSectionLinks}
|
|
74
|
-
location={location}
|
|
75
|
-
searchable={false}
|
|
76
|
-
emptyLinksListMessage="app.components.LeftMenuLinkContainer.noPluginsInstalled"
|
|
77
|
-
/>
|
|
78
|
-
)}
|
|
79
79
|
{generalSectionLinks.length > 0 && (
|
|
80
80
|
<LeftMenuLinksSection
|
|
81
81
|
section="general"
|
package/admin/src/index.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<!-- Make the page mobile compatible -->
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
8
|
<meta name="mobile-web-app-capable" content="yes">
|
|
9
|
-
<title>
|
|
9
|
+
<title>Punch-in Admin Portal</title>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<!-- The app hooks into this div -->
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"Auth.form.button.forgot-password": "Send Email",
|
|
6
6
|
"Auth.form.button.go-home": "GO BACK HOME",
|
|
7
7
|
"Auth.form.button.login": "Log in",
|
|
8
|
-
"Auth.form.button.login.strapi": "LOG IN VIA
|
|
8
|
+
"Auth.form.button.login.strapi": "LOG IN VIA Punch-in",
|
|
9
9
|
"Auth.form.button.login.providers.see-more": "See more",
|
|
10
10
|
"Auth.form.button.login.providers.error": "We cannot connect you through the selected provider.",
|
|
11
11
|
"Auth.form.button.register": "LET'S START",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"HomePage.helmet.title": "Homepage",
|
|
56
56
|
"HomePage.roadmap": "See our roadmap",
|
|
57
57
|
"HomePage.welcome.congrats": "Congrats!",
|
|
58
|
-
"HomePage.welcome.congrats.content": "You are logged in as the first administrator. To discover the powerful features provided by
|
|
58
|
+
"HomePage.welcome.congrats.content": "You are logged in as the first administrator. To discover the powerful features provided by Punch-in,",
|
|
59
59
|
"HomePage.welcome.congrats.content.bold": "we recommend you to create your first Collection-Type.",
|
|
60
60
|
"Media Library": "Media Library",
|
|
61
61
|
"New entry": "New entry",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"Settings.application.description": "See your project's details",
|
|
75
75
|
"Settings.application.link-pricing": "See all pricing",
|
|
76
76
|
"Settings.application.link-upgrade": "Upgrade your project",
|
|
77
|
-
"Settings.application.strapi-version": "
|
|
77
|
+
"Settings.application.strapi-version": "Punch-in VERSION",
|
|
78
78
|
"Settings.application.node-version": "NODE VERSION",
|
|
79
79
|
"Settings.application.edition-title": "CURRENT PLAN",
|
|
80
80
|
"Settings.PageTitle": "Settings - {name}",
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"app.components.HomePage.welcome": "Welcome on board!",
|
|
201
201
|
"app.components.HomePage.welcome.again": "Welcome ",
|
|
202
202
|
"app.components.HomePage.welcomeBlock.content": "We are happy to have you as part of the community. We are constantly looking for feedback so feel free to send us DM on ",
|
|
203
|
-
"app.components.HomePage.welcomeBlock.content.again": "We hope you are making progress on your project... Feel free to read the latest news about
|
|
203
|
+
"app.components.HomePage.welcomeBlock.content.again": "We hope you are making progress on your project... Feel free to read the latest news about Punch-in. We are giving our best to improve the product based on your feedback.",
|
|
204
204
|
"app.components.HomePage.welcomeBlock.content.issues": "issues.",
|
|
205
205
|
"app.components.HomePage.welcomeBlock.content.raise": " or raise ",
|
|
206
206
|
"app.components.ImgPreview.hint": "Drag & drop your file into this area or {browse} for a file to upload",
|
|
@@ -213,8 +213,8 @@
|
|
|
213
213
|
"app.components.InstallPluginPage.Download.description": "It might take a few seconds to download and install the plugin.",
|
|
214
214
|
"app.components.InstallPluginPage.Download.title": "Downloading...",
|
|
215
215
|
"app.components.InstallPluginPage.description": "Extend your app effortlessly.",
|
|
216
|
-
"app.components.InstallPluginPage.helmet": "Marketplace -
|
|
217
|
-
"app.components.InstallPluginPage.title": "Marketplace -
|
|
216
|
+
"app.components.InstallPluginPage.helmet": "Marketplace - Modules",
|
|
217
|
+
"app.components.InstallPluginPage.title": "Marketplace - Modules",
|
|
218
218
|
"app.components.LeftMenuFooter.documentation": "Documentation",
|
|
219
219
|
"app.components.LeftMenuFooter.help": "Help",
|
|
220
220
|
"app.components.LeftMenuFooter.poweredBy": "Powered by ",
|
|
@@ -222,19 +222,19 @@
|
|
|
222
222
|
"app.components.LeftMenuLinkContainer.configuration": "Configurations",
|
|
223
223
|
"app.components.LeftMenuLinkContainer.general": "General",
|
|
224
224
|
"app.components.LeftMenuLinkContainer.installNewPlugin": "Marketplace",
|
|
225
|
-
"app.components.LeftMenuLinkContainer.listPlugins": "
|
|
225
|
+
"app.components.LeftMenuLinkContainer.listPlugins": "Modules",
|
|
226
226
|
"app.components.LeftMenuLinkContainer.noPluginsInstalled": "No plugins installed yet",
|
|
227
|
-
"app.components.LeftMenuLinkContainer.plugins": "
|
|
227
|
+
"app.components.LeftMenuLinkContainer.plugins": "Modules",
|
|
228
228
|
"app.components.LeftMenuLinkContainer.settings": "Settings",
|
|
229
229
|
"app.components.LeftMenuLinkContainer.singleTypes": "Single Types",
|
|
230
230
|
"app.components.ListPluginsPage.deletePlugin.description": "It might take a few seconds to uninstall the plugin.",
|
|
231
231
|
"app.components.ListPluginsPage.deletePlugin.title": "Uninstalling",
|
|
232
232
|
"app.components.ListPluginsPage.description": "List of the installed plugins in the project.",
|
|
233
233
|
"app.components.ListPluginsPage.helmet.title": "List plugins",
|
|
234
|
-
"app.components.ListPluginsPage.title": "
|
|
234
|
+
"app.components.ListPluginsPage.title": "Modules",
|
|
235
235
|
"app.components.Logout.logout": "Logout",
|
|
236
236
|
"app.components.Logout.profile": "Profile",
|
|
237
|
-
"app.components.MarketplaceBanner": "Discover plugins built by the community, and many more awesome things to kickstart your project, on
|
|
237
|
+
"app.components.MarketplaceBanner": "Discover plugins built by the community, and many more awesome things to kickstart your project, on Punch-in Awesome.",
|
|
238
238
|
"app.components.MarketplaceBanner.image.alt": "a strapi rocket logo",
|
|
239
239
|
"app.components.MarketplaceBanner.link": "Check it out now",
|
|
240
240
|
"app.components.NotFoundPage.back": "Back to homepage",
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
"app.components.UpgradePlanModal.text-ce": "Community Edition",
|
|
257
257
|
"app.components.UpgradePlanModal.text-ee": "Enterprise Edition",
|
|
258
258
|
"app.components.UpgradePlanModal.text-power": "Unlock the full power",
|
|
259
|
-
"app.components.UpgradePlanModal.text-strapi": "of
|
|
259
|
+
"app.components.UpgradePlanModal.text-strapi": "of Punch-in by upgrading your plan to the",
|
|
260
260
|
"app.components.Users.MagicLink.connect": "Send this link to the user for them to connect.",
|
|
261
261
|
"app.components.Users.MagicLink.connect.sso": "Send this link to the user, the first login can be made via a SSO provider",
|
|
262
262
|
"app.components.Users.ModalCreateBody.block-title.details": "Details",
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
"app.utils.select-all": "Select all",
|
|
300
300
|
"app.utils.unpublish": "Unpublish",
|
|
301
301
|
"component.Input.error.validation.integer": "The value must be an integer",
|
|
302
|
-
"components.AutoReloadBlocker.description": "Run
|
|
302
|
+
"components.AutoReloadBlocker.description": "Run Punch-in with one of the following commands:",
|
|
303
303
|
"components.AutoReloadBlocker.header": "Reload feature is required for this plugin.",
|
|
304
304
|
"components.ErrorBoundary.title": "Something went wrong...",
|
|
305
305
|
"components.FilterOptions.FILTER_TYPES.=": "is",
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
"notification.permission.not-allowed-read": "You are not allowed to see this document",
|
|
375
375
|
"notification.success.delete": "The item has been deleted",
|
|
376
376
|
"notification.success.saved": "Saved",
|
|
377
|
-
"notification.version.update.message": "A new version of
|
|
377
|
+
"notification.version.update.message": "A new version of Punch-in is available!",
|
|
378
378
|
"notification.version.update.link": "See more",
|
|
379
379
|
"request.error.model.unknown": "This model doesn't exist"
|
|
380
380
|
}
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
"app.components.InstallPluginPage.Download.description": "L'installation d'un plugin peut prendre quelques secondes.",
|
|
106
106
|
"app.components.InstallPluginPage.Download.title": "Téléchargement en cours...",
|
|
107
107
|
"app.components.InstallPluginPage.description": "Améliorez votre app sans efforts",
|
|
108
|
-
"app.components.InstallPluginPage.helmet": "Marketplace -
|
|
109
|
-
"app.components.InstallPluginPage.title": "Marketplace -
|
|
108
|
+
"app.components.InstallPluginPage.helmet": "Marketplace - Modules",
|
|
109
|
+
"app.components.InstallPluginPage.title": "Marketplace - Modules",
|
|
110
110
|
"app.components.LeftMenuLinkContainer.collectionTypes": "Base des donnés",
|
|
111
111
|
"app.components.LeftMenuFooter.documentation": "Documentation",
|
|
112
112
|
"app.components.LeftMenuFooter.help": "Aide",
|
|
@@ -114,9 +114,9 @@
|
|
|
114
114
|
"app.components.LeftMenuLinkContainer.configuration": "Configurations",
|
|
115
115
|
"app.components.LeftMenuLinkContainer.general": "Général",
|
|
116
116
|
"app.components.LeftMenuLinkContainer.installNewPlugin": "Marketplaces",
|
|
117
|
-
"app.components.LeftMenuLinkContainer.listPlugins": "
|
|
117
|
+
"app.components.LeftMenuLinkContainer.listPlugins": "Modules",
|
|
118
118
|
"app.components.LeftMenuLinkContainer.noPluginsInstalled": "Aucun plugin installé",
|
|
119
|
-
"app.components.LeftMenuLinkContainer.plugins": "
|
|
119
|
+
"app.components.LeftMenuLinkContainer.plugins": "Modules",
|
|
120
120
|
"app.components.LeftMenuLinkContainer.settings": "Paramètres",
|
|
121
121
|
"app.components.Users.MagicLink.connect": "Envoyez ce lien à l'utilisateur pour qu'il se connecte.",
|
|
122
122
|
"app.components.Users.ModalCreateBody.block-title.details": "Détails",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"app.components.Users.SortPicker.sortby.username_desc": "Nom d'utilisateur (Z à A)",
|
|
133
133
|
"app.components.ListPluginsPage.description": "Liste des plugins installés dans le projet.",
|
|
134
134
|
"app.components.ListPluginsPage.helmet.title": "List plugins",
|
|
135
|
-
"app.components.ListPluginsPage.title": "
|
|
135
|
+
"app.components.ListPluginsPage.title": "Modules",
|
|
136
136
|
"app.components.Logout.logout": "Se déconnecter",
|
|
137
137
|
"app.components.Logout.profile": "Profil",
|
|
138
138
|
"app.components.NotFoundPage.back": "Retourner à la page d'accueil",
|
|
@@ -193,8 +193,8 @@
|
|
|
193
193
|
"app.components.InstallPluginPage.Download.description": "Il download e l'installazione del plugin potrebbero richiedere qualche secondo.",
|
|
194
194
|
"app.components.InstallPluginPage.Download.title": "Scaricando...",
|
|
195
195
|
"app.components.InstallPluginPage.description": "Estendi la tua app senza sforzi.",
|
|
196
|
-
"app.components.InstallPluginPage.helmet": "Marketplace -
|
|
197
|
-
"app.components.InstallPluginPage.title": "Marketplace -
|
|
196
|
+
"app.components.InstallPluginPage.helmet": "Marketplace - Moduli",
|
|
197
|
+
"app.components.InstallPluginPage.title": "Marketplace - Moduli",
|
|
198
198
|
"app.components.LeftMenuFooter.documentation": "Documentazione",
|
|
199
199
|
"app.components.LeftMenuFooter.help": "Supporto",
|
|
200
200
|
"app.components.LeftMenuFooter.poweredBy": "Offerto da ",
|
|
@@ -202,16 +202,16 @@
|
|
|
202
202
|
"app.components.LeftMenuLinkContainer.configuration": "Configurazioni",
|
|
203
203
|
"app.components.LeftMenuLinkContainer.general": "Generale",
|
|
204
204
|
"app.components.LeftMenuLinkContainer.installNewPlugin": "Marketplace",
|
|
205
|
-
"app.components.LeftMenuLinkContainer.listPlugins": "
|
|
205
|
+
"app.components.LeftMenuLinkContainer.listPlugins": "Moduli",
|
|
206
206
|
"app.components.LeftMenuLinkContainer.noPluginsInstalled": "Nessun plugin ancora installato",
|
|
207
|
-
"app.components.LeftMenuLinkContainer.plugins": "
|
|
207
|
+
"app.components.LeftMenuLinkContainer.plugins": "Moduli",
|
|
208
208
|
"app.components.LeftMenuLinkContainer.settings": "Impostazioni",
|
|
209
209
|
"app.components.LeftMenuLinkContainer.singleTypes": "Entità singole",
|
|
210
210
|
"app.components.ListPluginsPage.deletePlugin.description": "L'installazione del plugin potrebbe richiedere qualche secondo.",
|
|
211
211
|
"app.components.ListPluginsPage.deletePlugin.title": "Disinstalla",
|
|
212
212
|
"app.components.ListPluginsPage.description": "Lista dei plugin installati nel progetto.",
|
|
213
213
|
"app.components.ListPluginsPage.helmet.title": "Lista plugin",
|
|
214
|
-
"app.components.ListPluginsPage.title": "
|
|
214
|
+
"app.components.ListPluginsPage.title": "Moduli",
|
|
215
215
|
"app.components.Logout.logout": "Disconnetti",
|
|
216
216
|
"app.components.Logout.profile": "Profilo",
|
|
217
217
|
"app.components.NotFoundPage.back": "Torna alla home",
|
package/index.js
CHANGED
|
@@ -80,9 +80,9 @@ async function build({ dir, env, options, optimize }) {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
async function createPluginsJs(plugins, localPlugins, dest) {
|
|
83
|
-
console.log(plugins);
|
|
84
|
-
console.log('============');
|
|
85
|
-
console.log(localPlugins);
|
|
83
|
+
// console.log(plugins);
|
|
84
|
+
// console.log('============');
|
|
85
|
+
// console.log(localPlugins);
|
|
86
86
|
const content = `
|
|
87
87
|
const injectReducer = require('./utils/injectReducer').default;
|
|
88
88
|
const injectSaga = require('./utils/injectSaga').default;
|
package/package.json
CHANGED
|
Binary file
|