Fix languages typos

This commit is contained in:
cyril lopez 2018-02-22 12:55:13 +01:00
parent 6bb623eb0f
commit 4eebc7dea5
12 changed files with 35 additions and 24 deletions

View File

@ -3,8 +3,6 @@
height: 3.4rem;
margin-top: .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;
border: 1px solid #E3E9F3;
border-right: 0;

View File

@ -28,12 +28,12 @@ function listPageReducer(state = initialState, action) {
switch (action.type) {
case DELETE_DATA_SUCCESS:
return state.update('records', (list) => (
list.filter(o => {
if (o._id) {
return o._id !== action.id;
list.filter(obj => {
if (obj._id) {
return obj._id !== action.id;
}
return o.id !== parseInt(action.id, 10);
return obj.id !== parseInt(action.id, 10);
})
));
case CHANGE_PARAMS:

View File

@ -11,15 +11,23 @@ import cn from 'classnames';
import styles from './styles.scss';
function FileIcon({ fileType }) {
let iconType = fileType;
if ( ['jpeg', 'jpg', 'png', 'gif'].includes(fileType) ) {
iconType = 'image';
}
if ( ['avi', 'm4v', 'mpg', 'mp4', 'mov'].includes(fileType) ) {
iconType = 'video';
}
const iconType = (() => {
switch (fileType) {
case 'jpg':
case 'jpeg':
case 'png':
case 'gif':
return 'image';
case 'mov':
case 'avi':
case 'mpg':
case 'm4v':
case 'mp4':
return 'video';
default:
return fileType;
};
})();
return (
<div

View File

@ -58,6 +58,7 @@
font-size: 12px;
font-weight: 600;
line-height: 54px;
text-transform: uppercase;
}
}

View File

@ -40,7 +40,7 @@ class PluginInputFile extends React.PureComponent {
const { isDraging } = this.state;
const link = (
<FormattedMessage id="upload.PluginInputFile.link">
{(message) => <u onClick={this.handleClick}>{message}</u>}
{(message) => <span className={styles.underline} onClick={this.handleClick}>{message}</span>}
</FormattedMessage>
);
@ -65,9 +65,7 @@ class PluginInputFile extends React.PureComponent {
multiple
name={name}
onChange={onChange}
ref={(input) => {
this.input = input;
}}
ref="input"
type="file"
/>
</label>

View File

@ -41,3 +41,8 @@
background: rgba(28,93,231,0.01) !important;
border: 2px solid rgba(28,93,231,0.10) !important;
}
.underline {
color: #1C5DE7;
text-decoration: underline;
}

View File

@ -78,6 +78,7 @@ function* uploadFiles() {
} catch(err) {
console.log(err);
strapi.notification.error('notification.error');
}
}

View File

@ -1,5 +1,5 @@
.homePageUpload {
padding-Right: 20px;
padding-right: 20px;
font-family: Lato !important;
}

View File

@ -6,7 +6,7 @@
"HomePage.description": "Discover all the uploaded files",
"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.hash": "Hash",

View File

@ -6,7 +6,7 @@
"HomePage.description": "Discover all the uploaded files",
"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.hash": "Hash",

View File

@ -6,7 +6,7 @@
"HomePage.description": "Découvrez tous les fichiers téléchargés",
"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.hash": "Hash",

View File

@ -6,7 +6,7 @@
"HomePage.description": "Discover all the uploaded files",
"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.hash": "Hash",