mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 17:00:55 +00:00
Fix languages typos
This commit is contained in:
parent
6bb623eb0f
commit
4eebc7dea5
@ -3,8 +3,6 @@
|
|||||||
height: 3.4rem;
|
height: 3.4rem;
|
||||||
margin-top: .9rem;
|
margin-top: .9rem;
|
||||||
padding-left: 0.9rem;
|
padding-left: 0.9rem;
|
||||||
// TODO check with @aurelsicoko if it's the right color
|
|
||||||
// background-color: rgba(16, 22, 34, 0.02);
|
|
||||||
background-color: #FAFAFB;
|
background-color: #FAFAFB;
|
||||||
border: 1px solid #E3E9F3;
|
border: 1px solid #E3E9F3;
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
|
@ -28,12 +28,12 @@ function listPageReducer(state = initialState, action) {
|
|||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case DELETE_DATA_SUCCESS:
|
case DELETE_DATA_SUCCESS:
|
||||||
return state.update('records', (list) => (
|
return state.update('records', (list) => (
|
||||||
list.filter(o => {
|
list.filter(obj => {
|
||||||
if (o._id) {
|
if (obj._id) {
|
||||||
return o._id !== action.id;
|
return obj._id !== action.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
return o.id !== parseInt(action.id, 10);
|
return obj.id !== parseInt(action.id, 10);
|
||||||
})
|
})
|
||||||
));
|
));
|
||||||
case CHANGE_PARAMS:
|
case CHANGE_PARAMS:
|
||||||
|
@ -11,15 +11,23 @@ import cn from 'classnames';
|
|||||||
import styles from './styles.scss';
|
import styles from './styles.scss';
|
||||||
|
|
||||||
function FileIcon({ fileType }) {
|
function FileIcon({ fileType }) {
|
||||||
let iconType = fileType;
|
const iconType = (() => {
|
||||||
|
switch (fileType) {
|
||||||
if ( ['jpeg', 'jpg', 'png', 'gif'].includes(fileType) ) {
|
case 'jpg':
|
||||||
iconType = 'image';
|
case 'jpeg':
|
||||||
}
|
case 'png':
|
||||||
|
case 'gif':
|
||||||
if ( ['avi', 'm4v', 'mpg', 'mp4', 'mov'].includes(fileType) ) {
|
return 'image';
|
||||||
iconType = 'video';
|
case 'mov':
|
||||||
}
|
case 'avi':
|
||||||
|
case 'mpg':
|
||||||
|
case 'm4v':
|
||||||
|
case 'mp4':
|
||||||
|
return 'video';
|
||||||
|
default:
|
||||||
|
return fileType;
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
@ -58,6 +58,7 @@
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 54px;
|
line-height: 54px;
|
||||||
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ class PluginInputFile extends React.PureComponent {
|
|||||||
const { isDraging } = this.state;
|
const { isDraging } = this.state;
|
||||||
const link = (
|
const link = (
|
||||||
<FormattedMessage id="upload.PluginInputFile.link">
|
<FormattedMessage id="upload.PluginInputFile.link">
|
||||||
{(message) => <u onClick={this.handleClick}>{message}</u>}
|
{(message) => <span className={styles.underline} onClick={this.handleClick}>{message}</span>}
|
||||||
</FormattedMessage>
|
</FormattedMessage>
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -65,9 +65,7 @@ class PluginInputFile extends React.PureComponent {
|
|||||||
multiple
|
multiple
|
||||||
name={name}
|
name={name}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
ref={(input) => {
|
ref="input"
|
||||||
this.input = input;
|
|
||||||
}}
|
|
||||||
type="file"
|
type="file"
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
@ -41,3 +41,8 @@
|
|||||||
background: rgba(28,93,231,0.01) !important;
|
background: rgba(28,93,231,0.01) !important;
|
||||||
border: 2px solid rgba(28,93,231,0.10) !important;
|
border: 2px solid rgba(28,93,231,0.10) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.underline {
|
||||||
|
color: #1C5DE7;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
@ -78,6 +78,7 @@ function* uploadFiles() {
|
|||||||
|
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
strapi.notification.error('notification.error');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.homePageUpload {
|
.homePageUpload {
|
||||||
padding-Right: 20px;
|
padding-right: 20px;
|
||||||
font-family: Lato !important;
|
font-family: Lato !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"HomePage.description": "Discover all the uploaded files",
|
"HomePage.description": "Discover all the uploaded files",
|
||||||
"HomePage.InputSearch.placeholder": "Search for a file...",
|
"HomePage.InputSearch.placeholder": "Search for a file...",
|
||||||
|
|
||||||
"Li.linkCopied": "LINK COPIED INTO THE CLIPBOARD",
|
"Li.linkCopied": "Link copied into the clipboard",
|
||||||
|
|
||||||
"ListHeader.type": "Type",
|
"ListHeader.type": "Type",
|
||||||
"ListHeader.hash": "Hash",
|
"ListHeader.hash": "Hash",
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"HomePage.description": "Discover all the uploaded files",
|
"HomePage.description": "Discover all the uploaded files",
|
||||||
"HomePage.InputSearch.placeholder": "Search for a file...",
|
"HomePage.InputSearch.placeholder": "Search for a file...",
|
||||||
|
|
||||||
"Li.linkCopied": "LINK COPIED INTO THE CLIPBOARD",
|
"Li.linkCopied": "Link copied into the clipboard",
|
||||||
|
|
||||||
"ListHeader.type": "Type",
|
"ListHeader.type": "Type",
|
||||||
"ListHeader.hash": "Hash",
|
"ListHeader.hash": "Hash",
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"HomePage.description": "Découvrez tous les fichiers téléchargés",
|
"HomePage.description": "Découvrez tous les fichiers téléchargés",
|
||||||
"HomePage.InputSearch.placeholder": "Rechercher un fichier...",
|
"HomePage.InputSearch.placeholder": "Rechercher un fichier...",
|
||||||
|
|
||||||
"Li.linkCopied": "LINK COPIÉ DANS LE PRESSE-PAPIER",
|
"Li.linkCopied": "Lien copié dans le presse-papier",
|
||||||
|
|
||||||
"ListHeader.type": "Type",
|
"ListHeader.type": "Type",
|
||||||
"ListHeader.hash": "Hash",
|
"ListHeader.hash": "Hash",
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"HomePage.description": "Discover all the uploaded files",
|
"HomePage.description": "Discover all the uploaded files",
|
||||||
"HomePage.InputSearch.placeholder": "Search for a file...",
|
"HomePage.InputSearch.placeholder": "Search for a file...",
|
||||||
|
|
||||||
"Li.linkCopied": "LINK COPIED INTO THE CLIPBOARD",
|
"Li.linkCopied": "Link copied into the clipboard",
|
||||||
|
|
||||||
"ListHeader.type": "Type",
|
"ListHeader.type": "Type",
|
||||||
"ListHeader.hash": "Hash",
|
"ListHeader.hash": "Hash",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user