mirror of
https://github.com/mue/mue.git
synced 2026-06-18 14:37:35 +02:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d99622123 | ||
|
|
66ac192c09 | ||
|
|
37464acf85 | ||
|
|
c687b2fb67 |
@@ -4,7 +4,7 @@
|
||||
"default_locale": "en",
|
||||
"name": "__MSG_name__",
|
||||
"description": "__MSG_description__",
|
||||
"version": "5.3.0",
|
||||
"version": "5.3.1",
|
||||
"homepage_url": "https://muetab.com",
|
||||
"browser_action": {
|
||||
"default_icon": "icons/128x128.png"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"manifest_version": 2,
|
||||
"name": "Mue",
|
||||
"description": "Fast, open and free-to-use new tab page for modern browsers.",
|
||||
"version": "5.3.0",
|
||||
"version": "5.3.1",
|
||||
"homepage_url": "https://muetab.com",
|
||||
"browser_action": {
|
||||
"default_icon": "icons/128x128.png"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"homepage": "https://muetab.com",
|
||||
"bugs": "https://github.com/mue/mue/issues/new?assignees=&labels=bug&template=bug-report.md&title=%5BBUG%5D",
|
||||
"license": "BSD-3-Clause",
|
||||
"version": "5.3.0",
|
||||
"version": "5.3.1",
|
||||
"dependencies": {
|
||||
"@emotion/react": "^11.4.1",
|
||||
"@emotion/styled": "^11.3.0",
|
||||
@@ -55,7 +55,7 @@
|
||||
"start": "webpack serve",
|
||||
"build": "webpack --mode=production",
|
||||
"chrome": "cp manifest/chrome.json build/manifest.json && cp -r manifest/_locales build/_locales && cp manifest/background-chrome.js build/background-chrome.js",
|
||||
"firefox": "rm -rf build/_locales && cp manifest/firefox.json build/manifest.json && cp manifest/background-firefox.js build/background-firefox.js"
|
||||
"firefox": "rm -rf build/_locales && cp manifest/firefox.json build/manifest.json"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
|
||||
@@ -121,7 +121,7 @@ export default class WelcomeSections extends PureComponent {
|
||||
const chooseLanguage = (
|
||||
<>
|
||||
<h1>{language.sections.language.title}</h1>
|
||||
<p>{language.sections.language.description}</p>
|
||||
<p>{language.sections.language.description} <a href={window.constants.TRANSLATIONS_URL} className='resetLink' target='_blank' rel='noopener noreferrer'>GitHub</a>!</p>
|
||||
<Radio name='language' options={languages} category='welcomeLanguage'/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -11,6 +11,7 @@ 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/';
|
||||
|
||||
// Mue Info
|
||||
export const ORG_NAME = 'mue';
|
||||
@@ -34,4 +35,4 @@ export const OFFLINE_IMAGES = 20;
|
||||
|
||||
// Version
|
||||
export const BETA_VERSION = false;
|
||||
export const VERSION = '5.3.0';
|
||||
export const VERSION = '5.3.1';
|
||||
|
||||
@@ -30,8 +30,7 @@ export function setDefaultSettings(reset) {
|
||||
export function loadSettings(hotreload) {
|
||||
document.getElementById('widgets').style.zoom = localStorage.getItem('widgetzoom') + '%';
|
||||
|
||||
const theme = localStorage.getItem('theme');
|
||||
switch (theme) {
|
||||
switch (localStorage.getItem('theme')) {
|
||||
case 'dark':
|
||||
document.body.classList.add('dark');
|
||||
break;
|
||||
@@ -46,16 +45,16 @@ export function loadSettings(hotreload) {
|
||||
document.body.classList.remove('dark');
|
||||
}
|
||||
|
||||
const tabName = localStorage.getItem('tabName') || window.language.tabname;
|
||||
document.title = tabName;
|
||||
document.title = localStorage.getItem('tabName') || window.language.tabname;
|
||||
|
||||
if (hotreload === true) {
|
||||
const custom = ['customcss', 'customjs', 'customfont'];
|
||||
// remove old custom stuff and add new
|
||||
const custom = ['customcss', 'customfont'];
|
||||
custom.forEach((element) => {
|
||||
try {
|
||||
document.head.removeChild(document.getElementById(element));
|
||||
} catch (e) {
|
||||
// Disregard exception
|
||||
// Disregard exception if custom stuff doesn't exist
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -126,18 +125,19 @@ export function loadSettings(hotreload) {
|
||||
// in a nutshell, this function saves all of the current settings, resets them, sets the defaults and then overrides
|
||||
// the new settings with the old saved messages where they exist
|
||||
export function moveSettings() {
|
||||
if (Object.keys(localStorage).length === 0) {
|
||||
const currentSettings = Object.keys(localStorage);
|
||||
if (currentSettings.length === 0) {
|
||||
return this.setDefaultSettings();
|
||||
}
|
||||
|
||||
let settings = {};
|
||||
Object.keys(localStorage).forEach((key) => {
|
||||
const settings = {};
|
||||
currentSettings.forEach((key) => {
|
||||
settings[key] = localStorage.getItem(key);
|
||||
});
|
||||
|
||||
localStorage.clear();
|
||||
|
||||
setDefaultSettings();
|
||||
|
||||
Object.keys(settings).forEach((key) => {
|
||||
localStorage.setItem(key, settings[key]);
|
||||
});
|
||||
|
||||
@@ -6,21 +6,22 @@ export function saveFile(data, filename = 'file') {
|
||||
}
|
||||
|
||||
const blob = new Blob([data], { type: 'text/json' });
|
||||
let e = document.createEvent('MouseEvents');
|
||||
let a = document.createElement('a');
|
||||
|
||||
const event = document.createEvent('MouseEvents');
|
||||
const a = document.createElement('a');
|
||||
|
||||
a.href = window.URL.createObjectURL(blob);
|
||||
a.download = filename;
|
||||
a.dataset.downloadurl = ['text/json', a.download, a.href].join(':');
|
||||
|
||||
e.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
|
||||
a.dispatchEvent(e);
|
||||
event.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
|
||||
a.dispatchEvent(event);
|
||||
}
|
||||
|
||||
export function exportSettings() {
|
||||
let settings = {};
|
||||
const settings = {};
|
||||
Object.keys(localStorage).forEach((key) => {
|
||||
settings[key] = localStorage.getItem(key);
|
||||
settings[key] = localStorage.getItem(key);
|
||||
});
|
||||
saveFile(settings, 'mue-settings.json');
|
||||
window.stats.postEvent('tab', 'Settings exported');
|
||||
|
||||
@@ -58,7 +58,7 @@ export default class Stats {
|
||||
payload: {
|
||||
website: this.id,
|
||||
url: '/',
|
||||
language: localStorage.getItem('language').replace('_', '-'),
|
||||
language: window.languagecode.replace('_', '-'),
|
||||
screen: `${window.screen.width}x${window.screen.height}`
|
||||
}
|
||||
})
|
||||
|
||||
@@ -292,7 +292,7 @@
|
||||
},
|
||||
"stats": {
|
||||
"title": "Stats",
|
||||
"warning": "You need to enable usage data in order to use this feature",
|
||||
"warning": "You need to enable usage data in order to use this feature. This will post anonymous statistics to our umami instance.",
|
||||
"sections": {
|
||||
"tabs_opened": "Tabs opened",
|
||||
"backgrounds_favourited": "Backgrounds favourited",
|
||||
@@ -435,7 +435,7 @@
|
||||
},
|
||||
"language": {
|
||||
"title": "Choose your language",
|
||||
"description": "Mue can be displayed the languages listed below. You can also add new translations on our GitHub!"
|
||||
"description": "Mue can be displayed the languages listed below. You can also add new translations on our"
|
||||
},
|
||||
"theme": {
|
||||
"title": "Select a theme",
|
||||
|
||||
@@ -292,7 +292,7 @@
|
||||
},
|
||||
"stats": {
|
||||
"title": "Stats",
|
||||
"warning": "You need to enable usage data in order to use this feature",
|
||||
"warning": "You need to enable usage data in order to use this feature. This will post anonymous statistics to our umami instance.",
|
||||
"sections": {
|
||||
"tabs_opened": "Tabs opened",
|
||||
"backgrounds_favourited": "Backgrounds favourited",
|
||||
@@ -431,11 +431,11 @@
|
||||
"sections": {
|
||||
"intro": {
|
||||
"title": "Welcome to Mue Tab",
|
||||
"description": "Thank you for installing, we hope you enjoy your time with our extension."
|
||||
"description": "Thank you for installing Mue, we hope you enjoy your time with our extension."
|
||||
},
|
||||
"language": {
|
||||
"title": "Choose your language",
|
||||
"description": "Mue can be displayed the languages listed below. You can also add new translations on our GitHub!"
|
||||
"description": "Mue can be displayed the languages listed below. You can also add new translations on our"
|
||||
},
|
||||
"theme": {
|
||||
"title": "Select a theme",
|
||||
|
||||
@@ -292,7 +292,7 @@
|
||||
},
|
||||
"stats": {
|
||||
"title": "Stats",
|
||||
"warning": "You need to enable usage data in order to use this feature",
|
||||
"warning": "You need to enable usage data in order to use this feature. This will post anonymous statistics to our umami instance.",
|
||||
"sections": {
|
||||
"tabs_opened": "Tabs opened",
|
||||
"backgrounds_favourited": "Backgrounds favourited",
|
||||
@@ -431,11 +431,11 @@
|
||||
"sections": {
|
||||
"intro": {
|
||||
"title": "Welcome to Mue Tab",
|
||||
"description": "Thank you for installing, we hope you enjoy your time with our extension."
|
||||
"description": "Thank you for installing Mue, we hope you enjoy your time with our extension."
|
||||
},
|
||||
"language": {
|
||||
"title": "Choose your language",
|
||||
"description": "Mue can be displayed the languages listed below. You can also add new translations on our GitHub!"
|
||||
"description": "Mue can be displayed the languages listed below. You can also add new translations on our"
|
||||
},
|
||||
"theme": {
|
||||
"title": "Select a theme",
|
||||
|
||||
@@ -292,7 +292,7 @@
|
||||
},
|
||||
"stats": {
|
||||
"title": "Estadísticas",
|
||||
"warning": "Tienes que activar las estadísticas de uso para poder utilizar esta función",
|
||||
"warning": "Tienes que activar las estadísticas de uso para poder utilizar esta función. Esto enviará estadísticas anónimas a nuestra instancia de umami.",
|
||||
"sections": {
|
||||
"tabs_opened": "Pestañas abiertas",
|
||||
"backgrounds_favourited": "Fondos favoritos",
|
||||
@@ -431,11 +431,11 @@
|
||||
"sections": {
|
||||
"intro": {
|
||||
"title": "Bienvenido a Mue Tab",
|
||||
"description": "Gracias por instalar, esperamos que disfrute de su tiempo con nuestra extensión."
|
||||
"description": "Gracias por instalar Mue, esperamos que disfrute de su tiempo con nuestra extensión."
|
||||
},
|
||||
"language": {
|
||||
"title": "Elige el idioma",
|
||||
"description": "Mue puede mostrarse en los idiomas que se indican debajo. ¡También puedes contribuir con traducciones en nuestro GitHub!"
|
||||
"description": "Mue puede mostrarse en los idiomas que se indican debajo. ¡También puedes contribuir con traducciones en nuestro"
|
||||
},
|
||||
"theme": {
|
||||
"title": "Selecciona un tema",
|
||||
|
||||
@@ -292,7 +292,7 @@
|
||||
},
|
||||
"stats": {
|
||||
"title": "Stats",
|
||||
"warning": "You need to enable usage data in order to use this feature",
|
||||
"warning": "You need to enable usage data in order to use this feature. This will post anonymous statistics to our umami instance.",
|
||||
"sections": {
|
||||
"tabs_opened": "Tabs opened",
|
||||
"backgrounds_favourited": "Backgrounds favourited",
|
||||
@@ -431,11 +431,11 @@
|
||||
"sections": {
|
||||
"intro": {
|
||||
"title": "Bienvenue en Mue Tab",
|
||||
"description": "Merci d'avoir installé, nous espérons que vous apprécierez votre temps avec notre extension."
|
||||
"description": "Merci d'avoir installé Mue, nous espérons que vous apprécierez votre temps avec notre extension."
|
||||
},
|
||||
"language": {
|
||||
"title": "Choose your language",
|
||||
"description": "Mue can be displayed the languages listed below. You can also add new translations on our GitHub!"
|
||||
"description": "Mue can be displayed the languages listed below. You can also add new translations on our"
|
||||
},
|
||||
"theme": {
|
||||
"title": "Select a theme",
|
||||
|
||||
@@ -292,7 +292,7 @@
|
||||
},
|
||||
"stats": {
|
||||
"title": "Stats",
|
||||
"warning": "You need to enable usage data in order to use this feature",
|
||||
"warning": "You need to enable usage data in order to use this feature. This will post anonymous statistics to our umami instance.",
|
||||
"sections": {
|
||||
"tabs_opened": "Tabs opened",
|
||||
"backgrounds_favourited": "Backgrounds favourited",
|
||||
@@ -431,11 +431,11 @@
|
||||
"sections": {
|
||||
"intro": {
|
||||
"title": "Welcome to Mue Tab",
|
||||
"description": "Thank you for installing, we hope you enjoy your time with our extension."
|
||||
"description": "Thank you for installing Mue, we hope you enjoy your time with our extension."
|
||||
},
|
||||
"language": {
|
||||
"title": "Choose your language",
|
||||
"description": "Mue can be displayed the languages listed below. You can also add new translations on our GitHub!"
|
||||
"description": "Mue can be displayed the languages listed below. You can also add new translations on our"
|
||||
},
|
||||
"theme": {
|
||||
"title": "Select a theme",
|
||||
|
||||
@@ -292,7 +292,7 @@
|
||||
},
|
||||
"stats": {
|
||||
"title": "Stats",
|
||||
"warning": "You need to enable usage data in order to use this feature",
|
||||
"warning": "You need to enable usage data in order to use this feature. This will post anonymous statistics to our umami instance.",
|
||||
"sections": {
|
||||
"tabs_opened": "Tabs opened",
|
||||
"backgrounds_favourited": "Backgrounds favourited",
|
||||
@@ -431,11 +431,11 @@
|
||||
"sections": {
|
||||
"intro": {
|
||||
"title": "Welcome to Mue Tab",
|
||||
"description": "Thank you for installing, we hope you enjoy your time with our extension."
|
||||
"description": "Thank you for installing Mue, we hope you enjoy your time with our extension."
|
||||
},
|
||||
"language": {
|
||||
"title": "Choose your language",
|
||||
"description": "Mue can be displayed the languages listed below. You can also add new translations on our GitHub!"
|
||||
"description": "Mue can be displayed the languages listed below. You can also add new translations on our"
|
||||
},
|
||||
"theme": {
|
||||
"title": "Select a theme",
|
||||
|
||||
@@ -292,7 +292,7 @@
|
||||
},
|
||||
"stats": {
|
||||
"title": "Stats",
|
||||
"warning": "You need to enable usage data in order to use this feature",
|
||||
"warning": "You need to enable usage data in order to use this feature. This will post anonymous statistics to our umami instance.",
|
||||
"sections": {
|
||||
"tabs_opened": "Tabs opened",
|
||||
"backgrounds_favourited": "Backgrounds favourited",
|
||||
@@ -432,11 +432,11 @@
|
||||
"sections": {
|
||||
"intro": {
|
||||
"title": "Welcome to Mue Tab",
|
||||
"description": "Thank you for installing, we hope you enjoy your time with our extension."
|
||||
"description": "Thank you for installing Mue, we hope you enjoy your time with our extension."
|
||||
},
|
||||
"language": {
|
||||
"title": "Choose your language",
|
||||
"description": "Mue can be displayed the languages listed below. You can also add new translations on our GitHub!"
|
||||
"description": "Mue can be displayed the languages listed below. You can also add new translations on our"
|
||||
},
|
||||
"theme": {
|
||||
"title": "Select a theme",
|
||||
|
||||
@@ -292,7 +292,7 @@
|
||||
},
|
||||
"stats": {
|
||||
"title": "Stats",
|
||||
"warning": "You need to enable usage data in order to use this feature",
|
||||
"warning": "You need to enable usage data in order to use this feature. This will post anonymous statistics to our umami instance.",
|
||||
"sections": {
|
||||
"tabs_opened": "Tabs opened",
|
||||
"backgrounds_favourited": "Backgrounds favourited",
|
||||
@@ -435,7 +435,7 @@
|
||||
},
|
||||
"language": {
|
||||
"title": "Choose your language",
|
||||
"description": "Mue can be displayed the languages listed below. You can also add new translations on our GitHub!"
|
||||
"description": "Mue can be displayed the languages listed below. You can also add new translations on our"
|
||||
},
|
||||
"theme": {
|
||||
"title": "Select a theme",
|
||||
|
||||
Reference in New Issue
Block a user