mirror of
https://github.com/mue/mue.git
synced 2026-07-10 22:14:39 +02:00
feat: experimental settings, reduce image size on about page and use local mue icon
This commit is contained in:
@@ -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';
|
||||
|
||||
18
src/modules/helpers/experimental.js
Normal file
18
src/modules/helpers/experimental.js
Normal file
@@ -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;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user