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; 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;

View File

@ -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:

View File

@ -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

View File

@ -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;
} }
} }

View File

@ -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>

View File

@ -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;
}

View File

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

View File

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

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",