stuff
This commit is contained in:
parent
fb5d15ef34
commit
238ca4b2ed
File diff suppressed because one or more lines are too long
|
@ -544,6 +544,8 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
|
||||||
itemlayer.style.setProperty('top', top + 'px');
|
itemlayer.style.setProperty('top', top + 'px');
|
||||||
itemlayer.style.setProperty('left', left + 'px');
|
itemlayer.style.setProperty('left', left + 'px');
|
||||||
|
|
||||||
|
pointer.style.removeProperty('margin-left');
|
||||||
|
pointer.style.removeProperty('margin-top');
|
||||||
if (tooltip.position == "top" || tooltip.position == "bottom") {
|
if (tooltip.position == "top" || tooltip.position == "bottom") {
|
||||||
if (left < 0) {
|
if (left < 0) {
|
||||||
itemlayer.style.setProperty('left', '5px');
|
itemlayer.style.setProperty('left', '5px');
|
||||||
|
@ -2811,8 +2813,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
|
||||||
addInitEventListener(ele, 'change', e => {
|
addInitEventListener(ele, 'change', e => {
|
||||||
var input = ele.parentElement.parentElement.querySelector('input[type="text"]');
|
var input = ele.parentElement.parentElement.querySelector('input[type="text"]');
|
||||||
var file = ele.files[0];
|
var file = ele.files[0];
|
||||||
if (input && file)
|
if (input && file) input.value = file.path;
|
||||||
input.value = file.path;
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
container.querySelectorAll(BDFDB.dotCN.input).forEach(ele => {
|
container.querySelectorAll(BDFDB.dotCN.input).forEach(ele => {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
class PluginRepo {
|
class PluginRepo {
|
||||||
getName () {return "PluginRepo";}
|
getName () {return "PluginRepo";}
|
||||||
|
|
||||||
getVersion () {return "1.8.4";}
|
getVersion () {return "1.8.5";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ class PluginRepo {
|
||||||
|
|
||||||
constructor () {
|
constructor () {
|
||||||
this.changelog = {
|
this.changelog = {
|
||||||
"fixed":[["Light Theme Update","Fixed bugs for the Light Theme Update, which broke 99% of my plugins"]]
|
"fixed":[["Small bug fixes","Just some small bug fixes"]]
|
||||||
};
|
};
|
||||||
|
|
||||||
this.patchModules = {
|
this.patchModules = {
|
||||||
|
@ -362,7 +362,7 @@ class PluginRepo {
|
||||||
}});
|
}});
|
||||||
}
|
}
|
||||||
|
|
||||||
processV2CList (instance, wrapper) {
|
processV2CList (instance, wrapper, returnvalue) {
|
||||||
if (!document.querySelector(".bd-pluginrepobutton") && window.PluginUpdates && window.PluginUpdates.plugins && instance._reactInternalFiber.key && instance._reactInternalFiber.key.split("-")[0] == "plugin") {
|
if (!document.querySelector(".bd-pluginrepobutton") && window.PluginUpdates && window.PluginUpdates.plugins && instance._reactInternalFiber.key && instance._reactInternalFiber.key.split("-")[0] == "plugin") {
|
||||||
var folderbutton = document.querySelector(BDFDB.dotCN._repofolderbutton);
|
var folderbutton = document.querySelector(BDFDB.dotCN._repofolderbutton);
|
||||||
if (folderbutton) {
|
if (folderbutton) {
|
||||||
|
@ -516,9 +516,6 @@ class PluginRepo {
|
||||||
else BDFDB.removeData(data.url, this, "favorites");
|
else BDFDB.removeData(data.url, this, "favorites");
|
||||||
pluginRepoModal.entries[data.url] = data;
|
pluginRepoModal.entries[data.url] = data;
|
||||||
});
|
});
|
||||||
favbutton.addEventListener("mouseenter", e => {
|
|
||||||
BDFDB.createTooltip("Favorize", favbutton, {type:"top",selector:"pluginrepo-favicon-tooltip"});
|
|
||||||
});
|
|
||||||
let gitbutton = entry.querySelector(".gitIcon");
|
let gitbutton = entry.querySelector(".gitIcon");
|
||||||
gitbutton.addEventListener("click", e => {
|
gitbutton.addEventListener("click", e => {
|
||||||
var giturl = null;
|
var giturl = null;
|
||||||
|
@ -732,7 +729,8 @@ class PluginRepo {
|
||||||
result = result[0].replace(new RegExp("\\\\" + separator, "g"), separator).split(separator);
|
result = result[0].replace(new RegExp("\\\\" + separator, "g"), separator).split(separator);
|
||||||
if (result.length > 2) {
|
if (result.length > 2) {
|
||||||
result = result.slice(1, -1).join(separator).replace(/\\n/g, "<br>").replace(/\\/g, "");
|
result = result.slice(1, -1).join(separator).replace(/\\n/g, "<br>").replace(/\\/g, "");
|
||||||
plugin[tag] = tag != "getVersion" ? result.charAt(0).toUpperCase() + result.slice(1) : result;
|
result = tag != "getVersion" ? result.charAt(0).toUpperCase() + result.slice(1) : result;
|
||||||
|
plugin[tag] = result ? result.trim() : result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -754,7 +752,7 @@ class PluginRepo {
|
||||||
i++;
|
i++;
|
||||||
var loadingtooltip = document.querySelector(".pluginrepo-loading-tooltip");
|
var loadingtooltip = document.querySelector(".pluginrepo-loading-tooltip");
|
||||||
if (loadingtooltip) {
|
if (loadingtooltip) {
|
||||||
BDFDB.setInnerText(loadingtooltip.firstElementChild, this.getLoadingTooltipText());
|
BDFDB.setInnerText(loadingtooltip, this.getLoadingTooltipText());
|
||||||
BDFDB.updateTooltipPosition(loadingtooltip);
|
BDFDB.updateTooltipPosition(loadingtooltip);
|
||||||
}
|
}
|
||||||
getPluginInfo(callback);
|
getPluginInfo(callback);
|
||||||
|
|
Loading…
Reference in New Issue