diff --git a/src/components/modals/main/settings/sections/About.jsx b/src/components/modals/main/settings/sections/About.jsx index 2add4761..1a7690db 100644 --- a/src/components/modals/main/settings/sections/About.jsx +++ b/src/components/modals/main/settings/sections/About.jsx @@ -62,7 +62,7 @@ export default class About extends React.PureComponent { return ( <>

{this.language.title}

- Mue logo + Mue logo

{this.language.copyright} 2018-{new Date().getFullYear()} Mue Tab (BSD-3 License)

{this.language.version.title} {window.constants.VERSION} ({this.state.update})

{this.language.resources_used.title}

@@ -73,20 +73,20 @@ export default class About extends React.PureComponent { {this.state.loading} {this.state.contributors.map((item) => - {item.login} + {item.login} )} { // for those who contributed without opening a pull request this.state.other_contributors.map((item) => - {item.login} + {item.login} )}

{this.language.supporters}

{this.state.loading} {this.state.sponsors.map((item) => - {item.handle} + {item.handle} )} diff --git a/src/components/modals/main/settings/sections/Appearance.jsx b/src/components/modals/main/settings/sections/Appearance.jsx index 29368fa1..b2ae9b08 100644 --- a/src/components/modals/main/settings/sections/Appearance.jsx +++ b/src/components/modals/main/settings/sections/Appearance.jsx @@ -58,7 +58,6 @@ export default function AppearanceSettings() {

{appearance.accessibility.title}

- {(engineName === 'Blink') ? : null} diff --git a/src/components/modals/main/settings/sections/Experimental.jsx b/src/components/modals/main/settings/sections/Experimental.jsx index 1384cf29..232df307 100644 --- a/src/components/modals/main/settings/sections/Experimental.jsx +++ b/src/components/modals/main/settings/sections/Experimental.jsx @@ -1,9 +1,28 @@ import React from 'react'; +import Checkbox from '../Checkbox'; +//import Text from '../Text'; + export default function ExperimentalSettings() { + const { experimental } = window.language.modals.main.settings.sections; + return ( <> -

Coming soon...

+

{experimental.title}

+

{experimental.warning}

+ +

{experimental.developer}

+ + {/* + + + + + + +

+ */} + ); } diff --git a/src/modules/constants.js b/src/modules/constants.js index 1cebb41c..c47a182d 100644 --- a/src/modules/constants.js +++ b/src/modules/constants.js @@ -5,5 +5,5 @@ export const WEBSITE_URL = 'https://muetab.com'; export const SPONSORS_URL = 'https://sponsors.muetab.com'; export const GITHUB_URL = 'https://api.github.com' export const OFFLINE_IMAGES = 20; -export const BETA_VERSION = false; +export const BETA_VERSION = true; export const VERSION = '5.0'; diff --git a/src/modules/helpers/experimental.js b/src/modules/helpers/experimental.js new file mode 100644 index 00000000..17cfa1d3 --- /dev/null +++ b/src/modules/helpers/experimental.js @@ -0,0 +1,18 @@ +// todo: add more +export default function ExperimentalInit() { + if (localStorage.getItem('debug') === 'true') { + document.onkeydown = (e) => { + e = e || window.event; + if (!e.ctrlKey) { + return; + } + let code = e.which || e.keyCode; + + switch (code) { + case 222: + debugger; + break; + } + }; + } +} diff --git a/src/modules/helpers/settings.js b/src/modules/helpers/settings.js index 81c0079d..bb2ae62d 100644 --- a/src/modules/helpers/settings.js +++ b/src/modules/helpers/settings.js @@ -1,3 +1,5 @@ +import ExperimentalInit from './experimental'; + const defaultSettings = require('../default_settings.json'); const languages = require('../languages.json'); @@ -111,6 +113,10 @@ export default class SettingsFunctions { `); } + if (localStorage.getItem('experimental') === 'true') { + ExperimentalInit(); + } + const widgetzoom = localStorage.getItem('widgetzoom'); // don't bother if it's default zoom if (widgetzoom !== '100') { diff --git a/src/translations/en_GB.json b/src/translations/en_GB.json index 3ad37453..e2dfb46e 100644 --- a/src/translations/en_GB.json +++ b/src/translations/en_GB.json @@ -153,7 +153,9 @@ "experimental_warning": "Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support." }, "experimental": { - "title": "Experimental" + "title": "Experimental", + "warning": "These settings have not been fully tested/implemented and may not work correctly!", + "developer": "Developer" }, "language": { "title": "Language",