stuff
This commit is contained in:
parent
3ef5d7ce29
commit
cf2230243f
|
@ -3993,7 +3993,6 @@
|
|||
BDFDBundefined: "BDFDB_undefined",
|
||||
avatarStatusHovered: "statusHovered-gF2976",
|
||||
bdaRepoEntry: "entry-9JnAPs",
|
||||
bdaRepoEntryIconWrapper: "iconWrapper-kuCycr",
|
||||
cardInner: "inner-OP_8zd",
|
||||
cardWrapper: "card-rT4Wbb",
|
||||
charCounter: "counter-uAzbKp",
|
||||
|
@ -4534,7 +4533,6 @@
|
|||
_repodescription: ["BDrepo", "bdaDescription"],
|
||||
_repodescriptionwrap: ["BDrepo", "bdaDescriptionWrap"],
|
||||
_repoentry: ["BDFDB", "bdaRepoEntry"],
|
||||
_repoentryiconwrapper: ["BDFDB", "bdaRepoEntryIconWrapper"],
|
||||
_repofolderbutton: ["BDrepo", "bdPfbtn"],
|
||||
_repofooter: ["BDrepo", "bdaFooter"],
|
||||
_repoheader: ["BDrepo", "bdaHeader"],
|
||||
|
@ -8747,10 +8745,8 @@
|
|||
${BDFDB.dotCNS._repolist + BDFDB.dotCNS._repofooter + BDFDB.dotCN._repolinks} + * ~ * {
|
||||
margin-left: 8px;
|
||||
}
|
||||
${BDFDB.dotCN._repoentryiconwrapper} {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
${BDFDB.dotCN._repoicon} {
|
||||
color: var(--interactive-active);
|
||||
}
|
||||
|
||||
${BDFDB.dotCN.noticewrapper} {
|
||||
|
@ -9119,7 +9115,6 @@
|
|||
text: BDFDB.LanguageUtils.LanguageStrings.CHANGE_LOG,
|
||||
children: BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.SvgIcon, {
|
||||
name: InternalComponents.LibraryComponents.SvgIcon.Names.CHANGELOG,
|
||||
color: "#FFFFFF",
|
||||
className: BDFDB.disCN._repoicon,
|
||||
onClick: _ => {BDFDB.PluginUtils.openChangeLog(data);}
|
||||
})
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -69,7 +69,7 @@ var PluginRepo = (_ => {
|
|||
return class PluginRepo {
|
||||
getName () {return "PluginRepo";}
|
||||
|
||||
getVersion () {return "1.9.4";}
|
||||
getVersion () {return "1.9.5";}
|
||||
|
||||
getAuthor () {return "DevilBro";}
|
||||
|
||||
|
@ -493,44 +493,45 @@ var PluginRepo = (_ => {
|
|||
else BDFDB.DataUtils.remove(this, "favorites", plugin.url);
|
||||
}
|
||||
}),
|
||||
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
||||
text: "Go to Source",
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, {
|
||||
className: BDFDB.disCNS._repoentryiconwrapper,
|
||||
onClick: _ => {
|
||||
let giturl = null;
|
||||
if (plugin.url.indexOf("https://raw.githubusercontent.com") == 0) {
|
||||
let temp = plugin.url.replace("//raw.githubusercontent", "//github").split("/");
|
||||
temp.splice(5, 0, "blob");
|
||||
giturl = temp.join("/");
|
||||
}
|
||||
else if (plugin.url.indexOf("https://gist.githubusercontent.com/") == 0) {
|
||||
giturl = plugin.url.replace("//gist.githubusercontent", "//gist.github").split("/raw/")[0];
|
||||
}
|
||||
if (giturl) BDFDB.DiscordUtils.openLink(giturl, BDFDB.DataUtils.get(this, "settings", "useChromium"));
|
||||
},
|
||||
BDFDB.ReactUtils.createElement("div", {
|
||||
className: BDFDB.disCN._repocontrolsbutton,
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
||||
text: "Go to Source",
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
|
||||
name: BDFDB.LibraryComponents.SvgIcon.Names.GITHUB
|
||||
name: BDFDB.LibraryComponents.SvgIcon.Names.GITHUB,
|
||||
className: BDFDB.disCN._repoicon,
|
||||
onClick: _ => {
|
||||
let giturl = null;
|
||||
if (plugin.url.indexOf("https://raw.githubusercontent.com") == 0) {
|
||||
let temp = plugin.url.replace("//raw.githubusercontent", "//github").split("/");
|
||||
temp.splice(5, 0, "blob");
|
||||
giturl = temp.join("/");
|
||||
}
|
||||
else if (plugin.url.indexOf("https://gist.githubusercontent.com/") == 0) {
|
||||
giturl = plugin.url.replace("//gist.githubusercontent", "//gist.github").split("/raw/")[0];
|
||||
}
|
||||
if (giturl) BDFDB.DiscordUtils.openLink(giturl, BDFDB.DataUtils.get(this, "settings", "useChromium"));
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
}),
|
||||
],
|
||||
buttons: [
|
||||
plugin.state != pluginStates.DOWNLOADABLE && BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
||||
text: "Delete Pluginfile",
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, {
|
||||
className: BDFDB.disCN._repoentryiconwrapper,
|
||||
plugin.state != pluginStates.DOWNLOADABLE && BDFDB.ReactUtils.createElement("div", {
|
||||
className: BDFDB.disCN._repocontrolsbutton,
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
||||
text: "Delete Pluginfile",
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
|
||||
className: BDFDB.disCN.svgicon,
|
||||
name: BDFDB.LibraryComponents.SvgIcon.Names.NOVA_TRASH
|
||||
}),
|
||||
onClick: (e, instance) => {
|
||||
this.deletePluginFile(plugin);
|
||||
BDFDB.TimeUtils.timeout(_ => {
|
||||
this.updateList(instance, options);
|
||||
if (!BDFDB.BDUtils.isAutoLoadEnabled()) this.stopPlugin(plugin);
|
||||
}, 3000);
|
||||
}
|
||||
name: BDFDB.LibraryComponents.SvgIcon.Names.NOVA_TRASH,
|
||||
className: BDFDB.disCN._repoicon,
|
||||
onClick: (e, instance) => {
|
||||
this.deletePluginFile(plugin);
|
||||
BDFDB.TimeUtils.timeout(_ => {
|
||||
this.updateList(instance, options);
|
||||
if (!BDFDB.BDUtils.isAutoLoadEnabled()) this.stopPlugin(plugin);
|
||||
}, 3000);
|
||||
}
|
||||
})
|
||||
})
|
||||
}),
|
||||
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Button, {
|
||||
|
|
|
@ -218,7 +218,6 @@ var ThemeRepo = (_ => {
|
|||
children: [
|
||||
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex.Child, {
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TextInput, {
|
||||
placeholder: customUrl,
|
||||
placeholder: "Insert Raw Github Link of Theme (https://raw.githubusercontent.com/...)",
|
||||
onChange: value => {customUrl = value.trim();}
|
||||
})
|
||||
|
@ -719,24 +718,25 @@ var ThemeRepo = (_ => {
|
|||
else BDFDB.DataUtils.remove(this, "favorites", theme.url);
|
||||
}
|
||||
}),
|
||||
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
||||
text: "Go to Source",
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, {
|
||||
className: BDFDB.disCNS._repoentryiconwrapper,
|
||||
onClick: _ => {
|
||||
let giturl = null;
|
||||
if (theme.requesturl.indexOf("https://raw.githubusercontent.com") == 0) {
|
||||
let temp = theme.requesturl.replace("//raw.githubusercontent", "//github").split("/");
|
||||
temp.splice(5, 0, "blob");
|
||||
giturl = temp.join("/");
|
||||
}
|
||||
else if (theme.requesturl.indexOf("https://gist.githubusercontent.com/") == 0) {
|
||||
giturl = theme.requesturl.replace("//gist.githubusercontent", "//gist.github").split("/raw/")[0];
|
||||
}
|
||||
if (giturl) BDFDB.DiscordUtils.openLink(giturl, BDFDB.DataUtils.get(this, "settings", "useChromium"));
|
||||
},
|
||||
BDFDB.ReactUtils.createElement("div", {
|
||||
className: BDFDB.disCN._repocontrolsbutton,
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
||||
text: "Go to Source",
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
|
||||
name: BDFDB.LibraryComponents.SvgIcon.Names.GITHUB
|
||||
name: BDFDB.LibraryComponents.SvgIcon.Names.GITHUB,
|
||||
className: BDFDB.disCN._repoicon,
|
||||
onClick: _ => {
|
||||
let giturl = null;
|
||||
if (theme.requesturl.indexOf("https://raw.githubusercontent.com") == 0) {
|
||||
let temp = theme.requesturl.replace("//raw.githubusercontent", "//github").split("/");
|
||||
temp.splice(5, 0, "blob");
|
||||
giturl = temp.join("/");
|
||||
}
|
||||
else if (theme.requesturl.indexOf("https://gist.githubusercontent.com/") == 0) {
|
||||
giturl = theme.requesturl.replace("//gist.githubusercontent", "//gist.github").split("/raw/")[0];
|
||||
}
|
||||
if (giturl) BDFDB.DiscordUtils.openLink(giturl, BDFDB.DataUtils.get(this, "settings", "useChromium"));
|
||||
}
|
||||
})
|
||||
})
|
||||
}),
|
||||
|
@ -758,21 +758,21 @@ var ThemeRepo = (_ => {
|
|||
})
|
||||
],
|
||||
buttons: [
|
||||
theme.state != themeStates.DOWNLOADABLE && BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
||||
text: "Delete Themefile",
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, {
|
||||
className: BDFDB.disCN._repoentryiconwrapper,
|
||||
theme.state != themeStates.DOWNLOADABLE && BDFDB.ReactUtils.createElement("div", {
|
||||
className: BDFDB.disCN._repocontrolsbutton,
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
||||
text: "Delete Themefile",
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
|
||||
className: BDFDB.disCN.svgicon,
|
||||
name: BDFDB.LibraryComponents.SvgIcon.Names.NOVA_TRASH
|
||||
}),
|
||||
onClick: (e, instance) => {
|
||||
this.deleteThemeFile(theme);
|
||||
BDFDB.TimeUtils.timeout(_ => {
|
||||
this.updateList(instance, options);
|
||||
if (!BDFDB.BDUtils.isAutoLoadEnabled()) this.removeTheme(theme);
|
||||
}, 3000);
|
||||
}
|
||||
name: BDFDB.LibraryComponents.SvgIcon.Names.NOVA_TRASH,
|
||||
className: BDFDB.disCN._repoicon,
|
||||
onClick: (e, instance) => {
|
||||
this.deleteThemeFile(theme);
|
||||
BDFDB.TimeUtils.timeout(_ => {
|
||||
this.updateList(instance, options);
|
||||
if (!BDFDB.BDUtils.isAutoLoadEnabled()) this.removeTheme(theme);
|
||||
}, 3000);
|
||||
}
|
||||
})
|
||||
})
|
||||
}),
|
||||
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Button, {
|
||||
|
|
Loading…
Reference in New Issue