mirror of
https://github.com/mue/mue.git
synced 2026-07-12 19:52:53 +02:00
fix: remove unused & bugged feature
This commit is contained in:
@@ -6,7 +6,6 @@ import { toast } from 'react-toastify';
|
||||
import {
|
||||
MdIosShare,
|
||||
MdFlag,
|
||||
MdWarning,
|
||||
MdAccountCircle,
|
||||
MdBugReport,
|
||||
MdFormatQuote,
|
||||
@@ -61,23 +60,6 @@ export default class Item extends PureComponent {
|
||||
return null;
|
||||
}
|
||||
|
||||
let warningHTML;
|
||||
if (this.props.data.quote_api) {
|
||||
warningHTML = (
|
||||
<div className="itemWarning">
|
||||
<div className="topRow">
|
||||
<MdWarning />
|
||||
<div className="title">
|
||||
{variables.getMessage('modals.main.marketplace.product.quote_warning.title')}
|
||||
</div>
|
||||
</div>
|
||||
<div className="subtitle">
|
||||
{variables.getMessage('modals.main.marketplace.product.quote_warning.description')}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// prevent console error
|
||||
let iconsrc = variables.constants.DDG_IMAGE_PROXY + this.props.data.icon;
|
||||
if (!this.props.data.icon) {
|
||||
@@ -160,22 +142,6 @@ export default class Item extends PureComponent {
|
||||
{variables.getMessage('modals.main.marketplace.product.description')}
|
||||
</span>
|
||||
<span dangerouslySetInnerHTML={{ __html: this.props.data.description }} />
|
||||
{/*
|
||||
{this.props.data.description.length > 100 ? (
|
||||
<div className="showMore" onClick={() => this.toggleShowMore()}>
|
||||
{this.state.showMore === true ? (
|
||||
<>
|
||||
<span>{variables.getMessage('modals.main.marketplace.product.show_less')}</span>
|
||||
<MdKeyboardArrowDown />
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<span>{variables.getMessage('modals.main.marketplace.product.show_more')}</span>
|
||||
<MdKeyboardArrowUp />
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
) : null}*/}
|
||||
<div className="moreInfo">
|
||||
<div className="infoItem">
|
||||
<MdBugReport />
|
||||
@@ -279,7 +245,6 @@ export default class Item extends PureComponent {
|
||||
<button>{variables.getMessage('modals.main.marketplace.product.explore')}</button>
|
||||
</div>
|
||||
) : null}
|
||||
{warningHTML}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -214,24 +214,6 @@ export default class Quote extends PureComponent {
|
||||
return this.doOffline();
|
||||
}
|
||||
|
||||
const quotePackAPI = JSON.parse(localStorage.getItem('quoteAPI'));
|
||||
if (quotePackAPI) {
|
||||
try {
|
||||
const data = await (await fetch(quotePackAPI.url)).json();
|
||||
const author = data[quotePackAPI.author] || quotePackAPI.author;
|
||||
const installed = JSON.parse(localStorage.getItem('installed'));
|
||||
// todo: make this actually get the correct quote pack, instead of the first available
|
||||
const info = installed.find((i) => i.type === 'quotes');
|
||||
|
||||
return this.setState({
|
||||
quote: '"' + data[quotePackAPI.quote] + '"',
|
||||
author,
|
||||
authorimg: info.icon_url,
|
||||
});
|
||||
} catch (e) {
|
||||
return this.doOffline();
|
||||
}
|
||||
}
|
||||
const quotePack = [];
|
||||
const installed = JSON.parse(localStorage.getItem('installed'));
|
||||
installed.forEach((item) => {
|
||||
|
||||
@@ -47,10 +47,6 @@ export function install(type, input, sideload) {
|
||||
break;
|
||||
|
||||
case 'quotes':
|
||||
if (input.quote_api) {
|
||||
localStorage.setItem('quoteAPI', JSON.stringify(input.quote_api));
|
||||
}
|
||||
|
||||
const currentQuotes = JSON.parse(localStorage.getItem('quote_packs')) || [];
|
||||
input.quotes.forEach((quote) => {
|
||||
currentQuotes.push(quote);
|
||||
@@ -111,7 +107,6 @@ export function uninstall(type, name) {
|
||||
}
|
||||
});
|
||||
localStorage.setItem('quote_packs', JSON.stringify(installedContents));
|
||||
localStorage.removeItem('quoteAPI');
|
||||
if (installedContents.length === 0) {
|
||||
localStorage.setItem('quoteType', localStorage.getItem('oldQuoteType') || 'api');
|
||||
localStorage.removeItem('oldQuoteType');
|
||||
|
||||
@@ -499,10 +499,6 @@
|
||||
"remove": "Entfernen",
|
||||
"update_addon": "Update Add-on",
|
||||
"back": "Back"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Warnung",
|
||||
"description": "Dieses Zitatpaket stellt Anfragen an externe Server, die Sie möglicherweise tracken!"
|
||||
}
|
||||
},
|
||||
"offline": {
|
||||
|
||||
@@ -497,10 +497,6 @@
|
||||
"remove": "Remove",
|
||||
"update_addon": "Update Add-on",
|
||||
"back": "Back"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Warning",
|
||||
"description": "This quote pack requests to external servers that may track you!"
|
||||
}
|
||||
},
|
||||
"offline": {
|
||||
|
||||
@@ -498,10 +498,6 @@
|
||||
"remove": "Remove",
|
||||
"update_addon": "Update Add-on",
|
||||
"back": "Back"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Warning",
|
||||
"description": "This quote pack requests to external servers that may track you!"
|
||||
}
|
||||
},
|
||||
"offline": {
|
||||
|
||||
@@ -498,10 +498,6 @@
|
||||
"remove": "Desinstalar",
|
||||
"update_addon": "Actualizar complemento",
|
||||
"back": "Back"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Advertencia",
|
||||
"description": "¡Este paquete de citas solicita a servidores externos que pueden rastrearte!"
|
||||
}
|
||||
},
|
||||
"offline": {
|
||||
|
||||
@@ -498,10 +498,6 @@
|
||||
"remove": "Enlever",
|
||||
"update_addon": "Update Add-on",
|
||||
"back": "Back"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Warning",
|
||||
"description": "This quote pack requests to external servers that may track you!"
|
||||
}
|
||||
},
|
||||
"offline": {
|
||||
|
||||
@@ -498,10 +498,6 @@
|
||||
"remove": "Hapus",
|
||||
"update_addon": "Perbarui Add-on",
|
||||
"back": "Back"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Peringatan",
|
||||
"description": "Quote pack ini membutuhkan peladen eksternal yang mungkin melacak Anda!"
|
||||
}
|
||||
},
|
||||
"offline": {
|
||||
|
||||
@@ -498,10 +498,6 @@
|
||||
"remove": "Verwijderen",
|
||||
"update_addon": "Update Add-on",
|
||||
"back": "Back"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Waarschuwing",
|
||||
"description": "Deze citaatverzameling maakt verbinding met externe servers die kunnen worden gebruikt om je te internetverkeer te tracken!"
|
||||
}
|
||||
},
|
||||
"offline": {
|
||||
|
||||
@@ -498,10 +498,6 @@
|
||||
"remove": "Fjern",
|
||||
"update_addon": "Update Add-on",
|
||||
"back": "Back"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Warning",
|
||||
"description": "This quote pack requests to external servers that may track you!"
|
||||
}
|
||||
},
|
||||
"offline": {
|
||||
|
||||
@@ -498,10 +498,6 @@
|
||||
"remove": "Удалить",
|
||||
"update_addon": "Update Add-on",
|
||||
"back": "Back"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Предупреждение",
|
||||
"description": "Этот пакет цитат обращается к внешнему серверу и может отслеживать вас!"
|
||||
}
|
||||
},
|
||||
"offline": {
|
||||
|
||||
@@ -498,10 +498,6 @@
|
||||
"remove": "Kaldır",
|
||||
"update_addon": "Eklentiyi Güncelle",
|
||||
"back": "Geri"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "Uyarı",
|
||||
"description": "Bu teklif paketi, sizi izleyebilecek harici sunuculara istekte bulunur!"
|
||||
}
|
||||
},
|
||||
"offline": {
|
||||
|
||||
@@ -498,10 +498,6 @@
|
||||
"remove": "卸载",
|
||||
"update_addon": "Update Add-on",
|
||||
"back": "Back"
|
||||
},
|
||||
"quote_warning": {
|
||||
"title": "注意",
|
||||
"description": "本名言包会连接到可能会跟踪您的外部服务器!"
|
||||
}
|
||||
},
|
||||
"offline": {
|
||||
|
||||
Reference in New Issue
Block a user