mirror of
https://github.com/mue/mue.git
synced 2026-07-22 00:07:23 +02:00
language stuff
This commit is contained in:
@@ -4,12 +4,12 @@ import ArrowBackIcon from '@material-ui/icons/ArrowBack';
|
||||
export default class Item extends React.PureComponent {
|
||||
render() {
|
||||
//if (!this.props.data.icon) return null;
|
||||
let warningHTML = '';
|
||||
let warningHTML;
|
||||
if (this.props.data.quote_api) {
|
||||
warningHTML = <div className='productInformation'>
|
||||
<ul>
|
||||
<li className='header'>Warning</li>
|
||||
<li id='updated'>This quote pack requests to external servers that may track you!</li>
|
||||
<li className='header'>{this.props.language.quoteWarning.title}</li>
|
||||
<li id='updated'>{this.props.language.quoteWarning.description}</li>
|
||||
</ul>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ import ExpandMore from '@material-ui/icons/ExpandMore';
|
||||
|
||||
export default class Section extends React.PureComponent {
|
||||
render() {
|
||||
let extraHTML, expandMore = '';
|
||||
let extraHTML, expandMore;
|
||||
if (this.props.children) {
|
||||
extraHTML = <li className={'extraSettings ' + this.props.title}>{this.props.children}</li>
|
||||
expandMore = <ExpandMore
|
||||
|
||||
@@ -5,7 +5,7 @@ export default class BackgroundSettings extends React.PureComponent {
|
||||
componentDidMount() {
|
||||
document.getElementById('bg-input').onchange = (e) => {
|
||||
const reader = new FileReader();
|
||||
const file = e.target.files[0];
|
||||
const file = e.target.files[0];
|
||||
|
||||
if (file.size > 2000000) return toast('File is over 2MB', '#ff0000', '#ffffff');
|
||||
|
||||
|
||||
@@ -12,9 +12,9 @@ export default class ExperimentalSettings extends React.PureComponent {
|
||||
<li className='extraSettings'>
|
||||
<Checkbox name='webp' text={this.props.language.experimental.webp} />
|
||||
<Checkbox name='animations' text={this.props.language.experimental.animations} />
|
||||
<Checkbox name='view' text='View' />
|
||||
<Checkbox name='favouriteEnabled' text='Favourite' />
|
||||
<Checkbox name='refresh' text='Refresh' />
|
||||
<Checkbox name='view' text={this.props.language.experimental.view} />
|
||||
<Checkbox name='favouriteEnabled' text={this.props.language.experimental.favourite} />
|
||||
<Checkbox name='refresh' text={this.props.language.experimental.refresh} />
|
||||
</li>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -27,7 +27,7 @@ export default class SearchSettings extends React.PureComponent {
|
||||
</select>
|
||||
</ul>
|
||||
<ul id='searchEngineInput' style={{ display: 'none' }}>
|
||||
<p style={{"marginTop": "0px"}}>Custom Search URL <span className='modalLink' onClick={() => this.props.resetItem('customSearchEngine')}>{this.props.language.reset}</span></p>
|
||||
<p style={{"marginTop": "0px"}}>{this.props.language.searchbar.custom} <span className='modalLink' onClick={() => this.props.resetItem('customSearchEngine')}>{this.props.language.reset}</span></p>
|
||||
<input type='text' id='customSearchEngine'></input>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -46,14 +46,18 @@
|
||||
},
|
||||
"searchbar": {
|
||||
"title": "Search Bar",
|
||||
"searchengine": "Search Engine"
|
||||
"searchengine": "Search Engine",
|
||||
"custom": "Custom Search URL"
|
||||
},
|
||||
"offline": "Offline Mode",
|
||||
"experimental": {
|
||||
"title": "Experimental",
|
||||
"webp": "Enable WebP",
|
||||
"dark": "Dark Theme",
|
||||
"animations": "Animations"
|
||||
"animations": "Animations",
|
||||
"view": "View",
|
||||
"favourite": "Favourite",
|
||||
"refresh": "Refresh"
|
||||
},
|
||||
"language": "Language",
|
||||
"apply": "Apply",
|
||||
@@ -99,6 +103,10 @@
|
||||
"buttons": {
|
||||
"addtomue": "Add To Mue",
|
||||
"remove": "Remove"
|
||||
},
|
||||
"quoteWarning": {
|
||||
"title": "Warning",
|
||||
"description": "This quote pack requests to external servers that may track you!"
|
||||
}
|
||||
},
|
||||
"offline": {
|
||||
|
||||
Reference in New Issue
Block a user