@punch-in/strapi-admin 1.0.5 → 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/LeftMenuFooter/Wrapper.js +5 -4
- package/admin/src/components/LeftMenu/LeftMenuHeader/Wrapper.js +1 -1
- package/admin/src/components/LeftMenu/LeftMenuLink/A.js +1 -1
- package/admin/src/components/LeftMenu/LeftMenuLinkSection/LeftMenuListLink.js +0 -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/App/reducer.js +6 -6
- package/admin/src/containers/ApplicationInfosPage/index.js +1 -1
- 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/SocialLink.js +5 -5
- package/admin/src/containers/HomePage/hooks.js +1 -30
- package/admin/src/containers/HomePage/index.js +2 -21
- package/admin/src/containers/LeftMenu/Wrapper.js +1 -1
- package/admin/src/containers/LeftMenu/index.js +10 -10
- package/admin/src/containers/LeftMenu/utils/generateModelsLinks.js +1 -1
- 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 +4 -2
- package/admin/src/translations/en.json +17 -15
- package/admin/src/translations/fr.json +9 -6
- package/admin/src/translations/it.json +9 -7
- package/index.js +6 -3
- package/package.json +2 -2
- 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,10 +1,10 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
|
|
3
|
+
//background: ${props => props.theme.main.colors.strapi['blue-darker']};
|
|
4
4
|
const Wrapper = styled.div`
|
|
5
5
|
position: absolute;
|
|
6
6
|
width: 100%;
|
|
7
|
-
background:
|
|
7
|
+
background: rgb(0, 126, 255);
|
|
8
8
|
bottom: 0;
|
|
9
9
|
.poweredBy {
|
|
10
10
|
width: 100%;
|
|
@@ -18,13 +18,14 @@ const Wrapper = styled.div`
|
|
|
18
18
|
font-weight: 400;
|
|
19
19
|
letter-spacing: 0.05rem;
|
|
20
20
|
vertical-align: middle;
|
|
21
|
-
color: ${({ theme }) => theme.main.colors
|
|
21
|
+
color: ${({ theme }) => theme.main.colors['white']};
|
|
22
22
|
}
|
|
23
23
|
`;
|
|
24
24
|
|
|
25
25
|
const A = styled.a`
|
|
26
|
+
color: #FFF;
|
|
26
27
|
&:hover {
|
|
27
|
-
color:
|
|
28
|
+
color: rgb(255, 227, 0);
|
|
28
29
|
text-decoration: underline;
|
|
29
30
|
}
|
|
30
31
|
`;
|
|
@@ -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}
|
|
@@ -45,12 +45,12 @@ function appReducer(state = initialState, action) {
|
|
|
45
45
|
return null;
|
|
46
46
|
});
|
|
47
47
|
case GET_INFOS_DATA_SUCCEEDED: {
|
|
48
|
-
if (action.data.strapiVersion !== state.get('strapiVersion')) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
48
|
+
// if (action.data.strapiVersion !== state.get('strapiVersion')) {
|
|
49
|
+
// console.error(
|
|
50
|
+
// `It seems that the built version ${packageVersion} is different than your project's one (${action.data.strapiVersion})`
|
|
51
|
+
// );
|
|
52
|
+
// console.error('Please delete your `.cache` and `build` folders and restart your app');
|
|
53
|
+
// }
|
|
54
54
|
|
|
55
55
|
return (
|
|
56
56
|
state
|
|
@@ -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,13 +12,13 @@ import { SocialLinkWrapper } from './components';
|
|
|
12
12
|
function getSrc(name) {
|
|
13
13
|
switch (name) {
|
|
14
14
|
case 'Facebook':
|
|
15
|
-
return (<FontAwesomeIcon icon=
|
|
15
|
+
return (<FontAwesomeIcon icon={['fab', 'facebook']} size="lg" />);
|
|
16
16
|
case 'LinkedIn':
|
|
17
|
-
return (<FontAwesomeIcon icon=
|
|
17
|
+
return (<FontAwesomeIcon icon={['fab', 'linkedin']} size="lg" />);
|
|
18
18
|
case 'Careers':
|
|
19
|
-
return (<FontAwesomeIcon icon=
|
|
19
|
+
return (<FontAwesomeIcon icon={['fab', 'linkedin']} size="lg" color="#4199e1" />);
|
|
20
20
|
default:
|
|
21
|
-
return (<FontAwesomeIcon icon=
|
|
21
|
+
return (<FontAwesomeIcon icon={['fab', 'linkedin']} size="lg" />);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -26,7 +26,7 @@ const SocialLink = ({ link, name }) => {
|
|
|
26
26
|
return (
|
|
27
27
|
<SocialLinkWrapper className="col-6">
|
|
28
28
|
<a href={link} target="_blank" rel="noopener noreferrer">
|
|
29
|
-
|
|
29
|
+
{getSrc(name)}
|
|
30
30
|
<span>{name}</span>
|
|
31
31
|
</a>
|
|
32
32
|
</SocialLinkWrapper>
|
|
@@ -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');
|
|
@@ -24,7 +24,7 @@ const FIRST_BLOCK_LINKS = [
|
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
link: 'https://www.punch-in.co.uk/faq',
|
|
27
|
-
contentId: 'app.components.BlockLink.
|
|
27
|
+
contentId: 'app.components.BlockLink.faq.content',
|
|
28
28
|
titleId: 'app.components.BlockLink.faq',
|
|
29
29
|
},
|
|
30
30
|
];
|
|
@@ -73,15 +73,7 @@ const HomePage = ({ history: { push } }) => {
|
|
|
73
73
|
? 'HomePage.greetings'
|
|
74
74
|
: 'app.components.HomePage.welcome';
|
|
75
75
|
const username = get(auth.getUserInfo(), 'firstname', '');
|
|
76
|
-
const linkProps =
|
|
77
|
-
? {
|
|
78
|
-
id: 'app.components.HomePage.button.blog',
|
|
79
|
-
href: 'https://strapi.io/blog/',
|
|
80
|
-
onClick: () => {},
|
|
81
|
-
type: 'blog',
|
|
82
|
-
target: '_blank',
|
|
83
|
-
}
|
|
84
|
-
: {
|
|
76
|
+
const linkProps = {
|
|
85
77
|
id: 'app.components.HomePage.create',
|
|
86
78
|
href: '',
|
|
87
79
|
onClick: handleClick,
|
|
@@ -161,17 +153,6 @@ const HomePage = ({ history: { push } }) => {
|
|
|
161
153
|
<FormattedMessage id="app.components.HomePage.community.content">
|
|
162
154
|
{content => <P style={{ marginTop: 7, marginBottom: 0 }}>{content}</P>}
|
|
163
155
|
</FormattedMessage>
|
|
164
|
-
<FormattedMessage id="HomePage.roadmap">
|
|
165
|
-
{msg => (
|
|
166
|
-
<ALink
|
|
167
|
-
rel="noopener noreferrer"
|
|
168
|
-
href="https://portal.productboard.com/strapi/1-public-roadmap/tabs/2-under-consideration"
|
|
169
|
-
target="_blank"
|
|
170
|
-
>
|
|
171
|
-
{msg}
|
|
172
|
-
</ALink>
|
|
173
|
-
)}
|
|
174
|
-
</FormattedMessage>
|
|
175
156
|
|
|
176
157
|
<Separator style={{ marginTop: 18 }} />
|
|
177
158
|
<div
|
|
@@ -14,7 +14,7 @@ const Wrapper = styled.div`
|
|
|
14
14
|
left: 0;
|
|
15
15
|
height: 100vh;
|
|
16
16
|
width: ${props => props.theme.main.sizes.leftMenu.width};
|
|
17
|
-
background: ${props => props.theme.main.colors.strapi['blue-
|
|
17
|
+
background: ${props => props.theme.main.colors.strapi['light-blue-transparent']};
|
|
18
18
|
|
|
19
19
|
/* scrollbar overrides */
|
|
20
20
|
* {
|
|
@@ -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"
|
|
@@ -30,7 +30,7 @@ const generateLinks = (links, type, configurations = []) => {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
return {
|
|
33
|
-
icon: 'circle',
|
|
33
|
+
icon: link.icon ? link.icon : 'circle',
|
|
34
34
|
destination: `/plugins/content-manager/${link.kind}/${link.uid}`,
|
|
35
35
|
isDisplayed: true,
|
|
36
36
|
label: link.info.label,
|
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 -->
|
|
@@ -34,8 +34,9 @@ const colors = {
|
|
|
34
34
|
'background-alpha': 'rgba(14, 22, 34, 0.02)',
|
|
35
35
|
},
|
|
36
36
|
leftMenu: {
|
|
37
|
-
'link-hover': '#
|
|
38
|
-
'link-
|
|
37
|
+
'link-hover': '#c6eaff',
|
|
38
|
+
'link-visited': '#00458f',
|
|
39
|
+
'link-color': '#666e7d',
|
|
39
40
|
'title-color': '#5b626f',
|
|
40
41
|
'background-header-link': '#007eff',
|
|
41
42
|
},
|
|
@@ -45,6 +46,7 @@ const colors = {
|
|
|
45
46
|
'blue-darker': '#18202e',
|
|
46
47
|
'blue-dark': '#151c2e',
|
|
47
48
|
blue: '#0097f7',
|
|
49
|
+
'light-blue-transparent': '#0097f71c'
|
|
48
50
|
},
|
|
49
51
|
};
|
|
50
52
|
|
|
@@ -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",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"Documentation": "Documentation",
|
|
51
51
|
"Email": "Email",
|
|
52
52
|
"Files Upload": "Files Upload",
|
|
53
|
-
"HomePage.community": "Join
|
|
53
|
+
"HomePage.community": "Join Punch-in Community",
|
|
54
54
|
"HomePage.greetings": "Hi {name}!",
|
|
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}",
|
|
@@ -180,6 +180,8 @@
|
|
|
180
180
|
"app.components.BlockLink.code.content": "Learn by testing real projects developed the community.",
|
|
181
181
|
"app.components.BlockLink.documentation": "Read the documentation",
|
|
182
182
|
"app.components.BlockLink.documentation.content": "Discover the concepts, reference guides and tutorials.",
|
|
183
|
+
"app.components.BlockLink.faq": "Read our FAQ",
|
|
184
|
+
"app.components.BlockLink.faq.content": "Get answers to the most frequent questions from our customers.",
|
|
183
185
|
"app.components.Button.cancel": "Cancel",
|
|
184
186
|
"app.components.Button.reset": "Reset",
|
|
185
187
|
"app.components.Button.save": "Save",
|
|
@@ -198,7 +200,7 @@
|
|
|
198
200
|
"app.components.HomePage.welcome": "Welcome on board!",
|
|
199
201
|
"app.components.HomePage.welcome.again": "Welcome ",
|
|
200
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 ",
|
|
201
|
-
"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.",
|
|
202
204
|
"app.components.HomePage.welcomeBlock.content.issues": "issues.",
|
|
203
205
|
"app.components.HomePage.welcomeBlock.content.raise": " or raise ",
|
|
204
206
|
"app.components.ImgPreview.hint": "Drag & drop your file into this area or {browse} for a file to upload",
|
|
@@ -211,28 +213,28 @@
|
|
|
211
213
|
"app.components.InstallPluginPage.Download.description": "It might take a few seconds to download and install the plugin.",
|
|
212
214
|
"app.components.InstallPluginPage.Download.title": "Downloading...",
|
|
213
215
|
"app.components.InstallPluginPage.description": "Extend your app effortlessly.",
|
|
214
|
-
"app.components.InstallPluginPage.helmet": "Marketplace -
|
|
215
|
-
"app.components.InstallPluginPage.title": "Marketplace -
|
|
216
|
+
"app.components.InstallPluginPage.helmet": "Marketplace - Modules",
|
|
217
|
+
"app.components.InstallPluginPage.title": "Marketplace - Modules",
|
|
216
218
|
"app.components.LeftMenuFooter.documentation": "Documentation",
|
|
217
219
|
"app.components.LeftMenuFooter.help": "Help",
|
|
218
220
|
"app.components.LeftMenuFooter.poweredBy": "Powered by ",
|
|
219
|
-
"app.components.LeftMenuLinkContainer.collectionTypes": "
|
|
221
|
+
"app.components.LeftMenuLinkContainer.collectionTypes": "Data stores",
|
|
220
222
|
"app.components.LeftMenuLinkContainer.configuration": "Configurations",
|
|
221
223
|
"app.components.LeftMenuLinkContainer.general": "General",
|
|
222
224
|
"app.components.LeftMenuLinkContainer.installNewPlugin": "Marketplace",
|
|
223
|
-
"app.components.LeftMenuLinkContainer.listPlugins": "
|
|
225
|
+
"app.components.LeftMenuLinkContainer.listPlugins": "Modules",
|
|
224
226
|
"app.components.LeftMenuLinkContainer.noPluginsInstalled": "No plugins installed yet",
|
|
225
|
-
"app.components.LeftMenuLinkContainer.plugins": "
|
|
227
|
+
"app.components.LeftMenuLinkContainer.plugins": "Modules",
|
|
226
228
|
"app.components.LeftMenuLinkContainer.settings": "Settings",
|
|
227
229
|
"app.components.LeftMenuLinkContainer.singleTypes": "Single Types",
|
|
228
230
|
"app.components.ListPluginsPage.deletePlugin.description": "It might take a few seconds to uninstall the plugin.",
|
|
229
231
|
"app.components.ListPluginsPage.deletePlugin.title": "Uninstalling",
|
|
230
232
|
"app.components.ListPluginsPage.description": "List of the installed plugins in the project.",
|
|
231
233
|
"app.components.ListPluginsPage.helmet.title": "List plugins",
|
|
232
|
-
"app.components.ListPluginsPage.title": "
|
|
234
|
+
"app.components.ListPluginsPage.title": "Modules",
|
|
233
235
|
"app.components.Logout.logout": "Logout",
|
|
234
236
|
"app.components.Logout.profile": "Profile",
|
|
235
|
-
"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.",
|
|
236
238
|
"app.components.MarketplaceBanner.image.alt": "a strapi rocket logo",
|
|
237
239
|
"app.components.MarketplaceBanner.link": "Check it out now",
|
|
238
240
|
"app.components.NotFoundPage.back": "Back to homepage",
|
|
@@ -254,7 +256,7 @@
|
|
|
254
256
|
"app.components.UpgradePlanModal.text-ce": "Community Edition",
|
|
255
257
|
"app.components.UpgradePlanModal.text-ee": "Enterprise Edition",
|
|
256
258
|
"app.components.UpgradePlanModal.text-power": "Unlock the full power",
|
|
257
|
-
"app.components.UpgradePlanModal.text-strapi": "of
|
|
259
|
+
"app.components.UpgradePlanModal.text-strapi": "of Punch-in by upgrading your plan to the",
|
|
258
260
|
"app.components.Users.MagicLink.connect": "Send this link to the user for them to connect.",
|
|
259
261
|
"app.components.Users.MagicLink.connect.sso": "Send this link to the user, the first login can be made via a SSO provider",
|
|
260
262
|
"app.components.Users.ModalCreateBody.block-title.details": "Details",
|
|
@@ -297,7 +299,7 @@
|
|
|
297
299
|
"app.utils.select-all": "Select all",
|
|
298
300
|
"app.utils.unpublish": "Unpublish",
|
|
299
301
|
"component.Input.error.validation.integer": "The value must be an integer",
|
|
300
|
-
"components.AutoReloadBlocker.description": "Run
|
|
302
|
+
"components.AutoReloadBlocker.description": "Run Punch-in with one of the following commands:",
|
|
301
303
|
"components.AutoReloadBlocker.header": "Reload feature is required for this plugin.",
|
|
302
304
|
"components.ErrorBoundary.title": "Something went wrong...",
|
|
303
305
|
"components.FilterOptions.FILTER_TYPES.=": "is",
|
|
@@ -372,7 +374,7 @@
|
|
|
372
374
|
"notification.permission.not-allowed-read": "You are not allowed to see this document",
|
|
373
375
|
"notification.success.delete": "The item has been deleted",
|
|
374
376
|
"notification.success.saved": "Saved",
|
|
375
|
-
"notification.version.update.message": "A new version of
|
|
377
|
+
"notification.version.update.message": "A new version of Punch-in is available!",
|
|
376
378
|
"notification.version.update.link": "See more",
|
|
377
379
|
"request.error.model.unknown": "This model doesn't exist"
|
|
378
380
|
}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"Content Type Builder": "Content Types Builder",
|
|
44
44
|
"Email": "E-mail",
|
|
45
45
|
"Files Upload": "Téléversement de fichiers",
|
|
46
|
-
"HomePage.community": "Rejoignez la Communauté",
|
|
46
|
+
"HomePage.community": "Rejoignez la Communauté de Punch-in",
|
|
47
47
|
"HomePage.greetings": "Bonjour {name}!",
|
|
48
48
|
"HomePage.helmet.title": "Accueil",
|
|
49
49
|
"HomePage.roadmap": "Voir la roadmap",
|
|
@@ -72,6 +72,8 @@
|
|
|
72
72
|
"app.components.BlockLink.code.content": "Apprenez en testant les projets développés par la communauté.",
|
|
73
73
|
"app.components.BlockLink.documentation": "Voir la documentation",
|
|
74
74
|
"app.components.BlockLink.documentation.content": "Découvrez les concepts, guides et tutoriaux.",
|
|
75
|
+
"app.components.BlockLink.faq": "Lisez notre FAQ",
|
|
76
|
+
"app.components.BlockLink.faq.content": "Lisez réponses aux questions plus fréquentes de nos clients",
|
|
75
77
|
"app.components.Button.cancel": "Annuler",
|
|
76
78
|
"app.components.Button.reset": "Annuler",
|
|
77
79
|
"app.components.Button.save": "Sauvegarder",
|
|
@@ -103,17 +105,18 @@
|
|
|
103
105
|
"app.components.InstallPluginPage.Download.description": "L'installation d'un plugin peut prendre quelques secondes.",
|
|
104
106
|
"app.components.InstallPluginPage.Download.title": "Téléchargement en cours...",
|
|
105
107
|
"app.components.InstallPluginPage.description": "Améliorez votre app sans efforts",
|
|
106
|
-
"app.components.InstallPluginPage.helmet": "Marketplace -
|
|
107
|
-
"app.components.InstallPluginPage.title": "Marketplace -
|
|
108
|
+
"app.components.InstallPluginPage.helmet": "Marketplace - Modules",
|
|
109
|
+
"app.components.InstallPluginPage.title": "Marketplace - Modules",
|
|
110
|
+
"app.components.LeftMenuLinkContainer.collectionTypes": "Base des donnés",
|
|
108
111
|
"app.components.LeftMenuFooter.documentation": "Documentation",
|
|
109
112
|
"app.components.LeftMenuFooter.help": "Aide",
|
|
110
113
|
"app.components.LeftMenuFooter.poweredBy": "Propulsé par ",
|
|
111
114
|
"app.components.LeftMenuLinkContainer.configuration": "Configurations",
|
|
112
115
|
"app.components.LeftMenuLinkContainer.general": "Général",
|
|
113
116
|
"app.components.LeftMenuLinkContainer.installNewPlugin": "Marketplaces",
|
|
114
|
-
"app.components.LeftMenuLinkContainer.listPlugins": "
|
|
117
|
+
"app.components.LeftMenuLinkContainer.listPlugins": "Modules",
|
|
115
118
|
"app.components.LeftMenuLinkContainer.noPluginsInstalled": "Aucun plugin installé",
|
|
116
|
-
"app.components.LeftMenuLinkContainer.plugins": "
|
|
119
|
+
"app.components.LeftMenuLinkContainer.plugins": "Modules",
|
|
117
120
|
"app.components.LeftMenuLinkContainer.settings": "Paramètres",
|
|
118
121
|
"app.components.Users.MagicLink.connect": "Envoyez ce lien à l'utilisateur pour qu'il se connecte.",
|
|
119
122
|
"app.components.Users.ModalCreateBody.block-title.details": "Détails",
|
|
@@ -129,7 +132,7 @@
|
|
|
129
132
|
"app.components.Users.SortPicker.sortby.username_desc": "Nom d'utilisateur (Z à A)",
|
|
130
133
|
"app.components.ListPluginsPage.description": "Liste des plugins installés dans le projet.",
|
|
131
134
|
"app.components.ListPluginsPage.helmet.title": "List plugins",
|
|
132
|
-
"app.components.ListPluginsPage.title": "
|
|
135
|
+
"app.components.ListPluginsPage.title": "Modules",
|
|
133
136
|
"app.components.Logout.logout": "Se déconnecter",
|
|
134
137
|
"app.components.Logout.profile": "Profil",
|
|
135
138
|
"app.components.NotFoundPage.back": "Retourner à la page d'accueil",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"Documentation": "Documentazione",
|
|
48
48
|
"Email": "Email",
|
|
49
49
|
"Files Upload": "Caricamento Files",
|
|
50
|
-
"HomePage.community": "Unisciti alla Community",
|
|
50
|
+
"HomePage.community": "Unisciti alla Community di Punch-in",
|
|
51
51
|
"HomePage.greetings": "Ciao {name}!",
|
|
52
52
|
"HomePage.helmet.title": "Homepage",
|
|
53
53
|
"HomePage.roadmap": "Guarda la nostra roadmap",
|
|
@@ -160,6 +160,8 @@
|
|
|
160
160
|
"app.components.BlockLink.code.content": "Impara testando progetti reali sviluppati dalla comunità.",
|
|
161
161
|
"app.components.BlockLink.documentation": "Leggi la documentazione",
|
|
162
162
|
"app.components.BlockLink.documentation.content": "Scopri funzionalità, guide di riferimento ed esercitazioni.",
|
|
163
|
+
"app.components.BlockLink.faq": "Sezione FAQ",
|
|
164
|
+
"app.components.BlockLink.faq.content": "Leggi le risposte alle domande più frequenti dei nostri clienti.",
|
|
163
165
|
"app.components.Button.cancel": "Annulla",
|
|
164
166
|
"app.components.Button.reset": "Ripristina",
|
|
165
167
|
"app.components.Button.save": "Salva",
|
|
@@ -191,25 +193,25 @@
|
|
|
191
193
|
"app.components.InstallPluginPage.Download.description": "Il download e l'installazione del plugin potrebbero richiedere qualche secondo.",
|
|
192
194
|
"app.components.InstallPluginPage.Download.title": "Scaricando...",
|
|
193
195
|
"app.components.InstallPluginPage.description": "Estendi la tua app senza sforzi.",
|
|
194
|
-
"app.components.InstallPluginPage.helmet": "Marketplace -
|
|
195
|
-
"app.components.InstallPluginPage.title": "Marketplace -
|
|
196
|
+
"app.components.InstallPluginPage.helmet": "Marketplace - Moduli",
|
|
197
|
+
"app.components.InstallPluginPage.title": "Marketplace - Moduli",
|
|
196
198
|
"app.components.LeftMenuFooter.documentation": "Documentazione",
|
|
197
199
|
"app.components.LeftMenuFooter.help": "Supporto",
|
|
198
200
|
"app.components.LeftMenuFooter.poweredBy": "Offerto da ",
|
|
199
|
-
"app.components.LeftMenuLinkContainer.collectionTypes": "
|
|
201
|
+
"app.components.LeftMenuLinkContainer.collectionTypes": "Base dati",
|
|
200
202
|
"app.components.LeftMenuLinkContainer.configuration": "Configurazioni",
|
|
201
203
|
"app.components.LeftMenuLinkContainer.general": "Generale",
|
|
202
204
|
"app.components.LeftMenuLinkContainer.installNewPlugin": "Marketplace",
|
|
203
|
-
"app.components.LeftMenuLinkContainer.listPlugins": "
|
|
205
|
+
"app.components.LeftMenuLinkContainer.listPlugins": "Moduli",
|
|
204
206
|
"app.components.LeftMenuLinkContainer.noPluginsInstalled": "Nessun plugin ancora installato",
|
|
205
|
-
"app.components.LeftMenuLinkContainer.plugins": "
|
|
207
|
+
"app.components.LeftMenuLinkContainer.plugins": "Moduli",
|
|
206
208
|
"app.components.LeftMenuLinkContainer.settings": "Impostazioni",
|
|
207
209
|
"app.components.LeftMenuLinkContainer.singleTypes": "Entità singole",
|
|
208
210
|
"app.components.ListPluginsPage.deletePlugin.description": "L'installazione del plugin potrebbe richiedere qualche secondo.",
|
|
209
211
|
"app.components.ListPluginsPage.deletePlugin.title": "Disinstalla",
|
|
210
212
|
"app.components.ListPluginsPage.description": "Lista dei plugin installati nel progetto.",
|
|
211
213
|
"app.components.ListPluginsPage.helmet.title": "Lista plugin",
|
|
212
|
-
"app.components.ListPluginsPage.title": "
|
|
214
|
+
"app.components.ListPluginsPage.title": "Moduli",
|
|
213
215
|
"app.components.Logout.logout": "Disconnetti",
|
|
214
216
|
"app.components.Logout.profile": "Profilo",
|
|
215
217
|
"app.components.NotFoundPage.back": "Torna alla home",
|
package/index.js
CHANGED
|
@@ -80,6 +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
86
|
const content = `
|
|
84
87
|
const injectReducer = require('./utils/injectReducer').default;
|
|
85
88
|
const injectSaga = require('./utils/injectSaga').default;
|
|
@@ -105,8 +108,8 @@ window.strapi = Object.assign(window.strapi || {}, {
|
|
|
105
108
|
module.exports = {
|
|
106
109
|
${plugins
|
|
107
110
|
.map(name => {
|
|
108
|
-
const shortName = name.replace(/^strapi-plugin
|
|
109
|
-
const req = `require('../../plugins/${name}/admin/src').default`;
|
|
111
|
+
const shortName = name.replace(/^(strapi-plugin-|@punch-in\/strapi-plugin-)/i, '');
|
|
112
|
+
const req = `require('../../plugins/${name.replace('@punch-in/','')}/admin/src').default`;
|
|
110
113
|
return `'${shortName}': ${req},`;
|
|
111
114
|
})
|
|
112
115
|
.join('\n')}
|
|
@@ -135,7 +138,7 @@ async function copyPlugin(name, dest) {
|
|
|
135
138
|
const pkgFilePath = getPkgPath(name);
|
|
136
139
|
|
|
137
140
|
const resolveDepPath = (...args) => path.resolve(pkgFilePath, ...args);
|
|
138
|
-
const resolveDest = (...args) => path.resolve(dest, 'plugins', name, ...args);
|
|
141
|
+
const resolveDest = (...args) => path.resolve(dest, 'plugins', name.replace('@punch-in/',''), ...args);
|
|
139
142
|
|
|
140
143
|
const copy = (...args) => {
|
|
141
144
|
return fs.copy(resolveDepPath(...args), resolveDest(...args));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@punch-in/strapi-admin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Strapi Admin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@fortawesome/free-brands-svg-icons": "^5.15.3",
|
|
38
38
|
"@fortawesome/free-solid-svg-icons": "^5.15.3",
|
|
39
39
|
"@fortawesome/react-fontawesome": "^0.1.14",
|
|
40
|
-
"@punch-in/strapi": "
|
|
40
|
+
"@punch-in/strapi": "^1.0.5",
|
|
41
41
|
"autoprefixer": "^9.8.6",
|
|
42
42
|
"axios": "^0.21.1",
|
|
43
43
|
"babel-loader": "^8.1.0",
|
|
Binary file
|