mirror of
https://github.com/mue/mue.git
synced 2026-07-23 16:57:25 +02:00
Merge branch '7.0' into 7.0-blur
This commit is contained in:
@@ -291,16 +291,6 @@ export default class Quote extends PureComponent {
|
|||||||
toast(variables.getMessage('toasts.quote'));
|
toast(variables.getMessage('toasts.quote'));
|
||||||
}
|
}
|
||||||
|
|
||||||
tweetQuote() {
|
|
||||||
variables.stats.postEvent('feature', 'Quote tweet');
|
|
||||||
window
|
|
||||||
.open(
|
|
||||||
`https://twitter.com/intent/tweet?text=${this.state.quote} - ${this.state.author} on @getmue`,
|
|
||||||
'_blank',
|
|
||||||
)
|
|
||||||
.focus();
|
|
||||||
}
|
|
||||||
|
|
||||||
favourite() {
|
favourite() {
|
||||||
if (localStorage.getItem('favouriteQuote')) {
|
if (localStorage.getItem('favouriteQuote')) {
|
||||||
localStorage.removeItem('favouriteQuote');
|
localStorage.removeItem('favouriteQuote');
|
||||||
@@ -353,7 +343,6 @@ export default class Quote extends PureComponent {
|
|||||||
this.getQuote();
|
this.getQuote();
|
||||||
localStorage.setItem('quoteStartTime', Date.now());
|
localStorage.setItem('quoteStartTime', Date.now());
|
||||||
} else {
|
} else {
|
||||||
console.log(localStorage.getItem('quotechange'));
|
|
||||||
try {
|
try {
|
||||||
this.setState(JSON.parse(localStorage.getItem('currentQuote')));
|
this.setState(JSON.parse(localStorage.getItem('currentQuote')));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@@ -410,6 +399,7 @@ export default class Quote extends PureComponent {
|
|||||||
if (this.state.noQuote === true) {
|
if (this.state.noQuote === true) {
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="quotediv" ref={this.quotediv}>
|
<div className="quotediv" ref={this.quotediv}>
|
||||||
<Modal
|
<Modal
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// API URLs
|
// API URLs
|
||||||
// export const API_URL = 'https://api.muetab.com/v2';
|
// export const API_URL = 'https://api.muetab.com/v2';
|
||||||
export const API_URL = 'https://api.muetab.com/v2';
|
export const API_URL = 'https://api.eartharoid.workers.dev/v2';
|
||||||
export const MARKETPLACE_URL = 'https://marketplace.muetab.com';
|
export const MARKETPLACE_URL = 'https://marketplace.muetab.com';
|
||||||
export const SPONSORS_URL = 'https://sponsors.muetab.com';
|
export const SPONSORS_URL = 'https://sponsors.muetab.com';
|
||||||
export const GITHUB_URL = 'https://api.github.com';
|
export const GITHUB_URL = 'https://api.github.com';
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ export function install(type, input, sideload) {
|
|||||||
localStorage.setItem('oldBackgroundType', localStorage.getItem('backgroundType'));
|
localStorage.setItem('oldBackgroundType', localStorage.getItem('backgroundType'));
|
||||||
}
|
}
|
||||||
localStorage.setItem('backgroundType', 'photo_pack');
|
localStorage.setItem('backgroundType', 'photo_pack');
|
||||||
|
localStorage.removeItem('backgroundchange');
|
||||||
EventBus.dispatch('refresh', 'background');
|
EventBus.dispatch('refresh', 'background');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -57,6 +58,7 @@ export function install(type, input, sideload) {
|
|||||||
localStorage.setItem('oldQuoteType', localStorage.getItem('quoteType'));
|
localStorage.setItem('oldQuoteType', localStorage.getItem('quoteType'));
|
||||||
}
|
}
|
||||||
localStorage.setItem('quoteType', 'quote_pack');
|
localStorage.setItem('quoteType', 'quote_pack');
|
||||||
|
localStorage.removeItem('quotechange');
|
||||||
EventBus.dispatch('refresh', 'quote');
|
EventBus.dispatch('refresh', 'quote');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -92,7 +94,6 @@ export function uninstall(type, name) {
|
|||||||
showReminder();
|
showReminder();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// this and photos needs debugging
|
|
||||||
case 'quotes':
|
case 'quotes':
|
||||||
installedContents = JSON.parse(localStorage.getItem('quote_packs'));
|
installedContents = JSON.parse(localStorage.getItem('quote_packs'));
|
||||||
packContents = JSON.parse(localStorage.getItem('installed')).find(
|
packContents = JSON.parse(localStorage.getItem('installed')).find(
|
||||||
@@ -112,6 +113,7 @@ export function uninstall(type, name) {
|
|||||||
localStorage.removeItem('oldQuoteType');
|
localStorage.removeItem('oldQuoteType');
|
||||||
localStorage.removeItem('quote_packs');
|
localStorage.removeItem('quote_packs');
|
||||||
}
|
}
|
||||||
|
localStorage.removeItem('quotechange');
|
||||||
EventBus.dispatch('refresh', 'marketplacequoteuninstall');
|
EventBus.dispatch('refresh', 'marketplacequoteuninstall');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -132,6 +134,7 @@ export function uninstall(type, name) {
|
|||||||
localStorage.removeItem('oldBackgroundType');
|
localStorage.removeItem('oldBackgroundType');
|
||||||
localStorage.removeItem('photo_packs');
|
localStorage.removeItem('photo_packs');
|
||||||
}
|
}
|
||||||
|
localStorage.removeItem('backgroundchange');
|
||||||
EventBus.dispatch('refresh', 'marketplacebackgrounduninstall');
|
EventBus.dispatch('refresh', 'marketplacebackgrounduninstall');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user