feat: new sliders, dropdowns, text inputs, update settings ui, fix language bug

Co-authored-by: Alex Sparkes <turbomarshmello@gmail.com>
This commit is contained in:
David Ralph
2021-10-12 22:18:47 +01:00
parent 14121fb975
commit bc8ef0d9f2
43 changed files with 213 additions and 535 deletions

View File

@@ -11,7 +11,6 @@ export const MAPBOX_URL = 'https://api.mapbox.com';
export const WEBSITE_URL = 'https://muetab.com';
export const PRIVACY_URL = 'https://muetab.com/privacy';
export const BLOG_POST = 'https://blog.muetab.com/posts/version-5-3';
export const FEEDBACK_FORM = 'https://api.formcake.com/api/form/349b56cb-7e2b-4004-b32b-e8964d217dd1/submission';
export const TRANSLATIONS_URL = 'https://docs.muetab.com/translations/';
export const CDN_URL = 'https://res.cloudinary.com/mue/image/upload';
@@ -30,5 +29,4 @@ export const DONATE_USERNAME = 'davidcralph'; // this only works if you use the
export const OFFLINE_IMAGES = 20;
export const BETA_VERSION = false;
export const VERSION = '5.3.3';

View File

@@ -39,3 +39,13 @@ export function importSettings(e) {
toast(getMessage('toasts.imported'));
variables.stats.postEvent('tab', 'Settings imported');
}
export function values(type) {
const marks = {
zoom: [{ value: 10, label: '0.1x' }, { value: 100, label: '1x' }, { value: 200, label: '2x' }, { value: 400, label: '4x' }],
toast: [{ value: 500, label: '0.5s' }, { value: 1000, label: '1s' }, { value: 1500, label: '1.5s' }, { value: 2000, label: '2s' }, { value: 2500, label: '2.5s' }, { value: 3000, label: '3s' }, { value: 4000, label: '4s' }, { value: 5000, label: '5s'}],
background: [{ value: 0, label: '0%'}, { value: 25, label: '25%' }, { value: 50, label: '50%' }, { value: 75, label: '75%' }, { value: 100, label: '100%' }]
}
return marks[type];
}