@punch-in/strapi-admin 1.0.5 → 1.0.6
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/components/LeftMenu/LeftMenuFooter/Wrapper.js +5 -4
- package/admin/src/components/LeftMenu/LeftMenuLink/A.js +1 -1
- package/admin/src/components/LeftMenu/LeftMenuLinkSection/LeftMenuListLink.js +0 -1
- package/admin/src/containers/App/reducer.js +6 -6
- package/admin/src/containers/ApplicationInfosPage/index.js +1 -1
- package/admin/src/containers/HomePage/SocialLink.js +5 -5
- package/admin/src/containers/HomePage/index.js +2 -21
- package/admin/src/containers/LeftMenu/Wrapper.js +1 -1
- package/admin/src/containers/LeftMenu/utils/generateModelsLinks.js +1 -1
- package/admin/src/themes/colors.js +4 -2
- package/admin/src/translations/en.json +4 -2
- package/admin/src/translations/fr.json +4 -1
- package/admin/src/translations/it.json +4 -2
- package/index.js +6 -3
- package/package.json +2 -2
|
@@ -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
|
`;
|
|
@@ -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
|
|
@@ -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>
|
|
@@ -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
|
* {
|
|
@@ -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,
|
|
@@ -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': '#950303',
|
|
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
|
|
|
@@ -50,7 +50,7 @@
|
|
|
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",
|
|
@@ -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",
|
|
@@ -216,7 +218,7 @@
|
|
|
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",
|
|
@@ -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",
|
|
@@ -105,6 +107,7 @@
|
|
|
105
107
|
"app.components.InstallPluginPage.description": "Améliorez votre app sans efforts",
|
|
106
108
|
"app.components.InstallPluginPage.helmet": "Marketplace - Plugins",
|
|
107
109
|
"app.components.InstallPluginPage.title": "Marketplace - Plugins",
|
|
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 ",
|
|
@@ -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",
|
|
@@ -196,7 +198,7 @@
|
|
|
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",
|
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.6",
|
|
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",
|