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('left', left + 'px');
|
||||
|
||||
pointer.style.removeProperty('margin-left');
|
||||
pointer.style.removeProperty('margin-top');
|
||||
if (tooltip.position == "top" || tooltip.position == "bottom") {
|
||||
if (left < 0) {
|
||||
itemlayer.style.setProperty('left', '5px');
|
||||
|
@ -2811,8 +2813,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
|
|||
addInitEventListener(ele, 'change', e => {
|
||||
var input = ele.parentElement.parentElement.querySelector('input[type="text"]');
|
||||
var file = ele.files[0];
|
||||
if (input && file)
|
||||
input.value = file.path;
|
||||
if (input && file) input.value = file.path;
|
||||
});
|
||||
});
|
||||
container.querySelectorAll(BDFDB.dotCN.input).forEach(ele => {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
class PluginRepo {
|
||||
getName () {return "PluginRepo";}
|
||||
|
||||
getVersion () {return "1.8.4";}
|
||||
getVersion () {return "1.8.5";}
|
||||
|
||||
getAuthor () {return "DevilBro";}
|
||||
|
||||
|
@ -11,7 +11,7 @@ class PluginRepo {
|
|||
|
||||
constructor () {
|
||||
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 = {
|
||||
|
@ -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") {
|
||||
var folderbutton = document.querySelector(BDFDB.dotCN._repofolderbutton);
|
||||
if (folderbutton) {
|
||||
|
@ -516,9 +516,6 @@ class PluginRepo {
|
|||
else BDFDB.removeData(data.url, this, "favorites");
|
||||
pluginRepoModal.entries[data.url] = data;
|
||||
});
|
||||
favbutton.addEventListener("mouseenter", e => {
|
||||
BDFDB.createTooltip("Favorize", favbutton, {type:"top",selector:"pluginrepo-favicon-tooltip"});
|
||||
});
|
||||
let gitbutton = entry.querySelector(".gitIcon");
|
||||
gitbutton.addEventListener("click", e => {
|
||||
var giturl = null;
|
||||
|
@ -732,7 +729,8 @@ class PluginRepo {
|
|||
result = result[0].replace(new RegExp("\\\\" + separator, "g"), separator).split(separator);
|
||||
if (result.length > 2) {
|
||||
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++;
|
||||
var loadingtooltip = document.querySelector(".pluginrepo-loading-tooltip");
|
||||
if (loadingtooltip) {
|
||||
BDFDB.setInnerText(loadingtooltip.firstElementChild, this.getLoadingTooltipText());
|
||||
BDFDB.setInnerText(loadingtooltip, this.getLoadingTooltipText());
|
||||
BDFDB.updateTooltipPosition(loadingtooltip);
|
||||
}
|
||||
getPluginInfo(callback);
|
||||
|
|
Loading…
Reference in New Issue