This commit is contained in:
Mirco Wittrien 2020-03-29 22:40:13 +02:00
parent 3ef5d7ce29
commit cf2230243f
4 changed files with 69 additions and 73 deletions

View File

@ -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

View File

@ -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,10 +493,13 @@ var PluginRepo = (_ => {
else BDFDB.DataUtils.remove(this, "favorites", plugin.url);
}
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
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.Clickable, {
className: BDFDB.disCNS._repoentryiconwrapper,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
name: BDFDB.LibraryComponents.SvgIcon.Names.GITHUB,
className: BDFDB.disCN._repoicon,
onClick: _ => {
let giturl = null;
if (plugin.url.indexOf("https://raw.githubusercontent.com") == 0) {
@ -508,22 +511,19 @@ var PluginRepo = (_ => {
giturl = plugin.url.replace("//gist.githubusercontent", "//gist.github").split("/raw/")[0];
}
if (giturl) BDFDB.DiscordUtils.openLink(giturl, BDFDB.DataUtils.get(this, "settings", "useChromium"));
},
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
name: BDFDB.LibraryComponents.SvgIcon.Names.GITHUB
})
}
})
})
}),
],
buttons: [
plugin.state != pluginStates.DOWNLOADABLE && BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
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.Clickable, {
className: BDFDB.disCN._repoentryiconwrapper,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
className: BDFDB.disCN.svgicon,
name: BDFDB.LibraryComponents.SvgIcon.Names.NOVA_TRASH
}),
name: BDFDB.LibraryComponents.SvgIcon.Names.NOVA_TRASH,
className: BDFDB.disCN._repoicon,
onClick: (e, instance) => {
this.deletePluginFile(plugin);
BDFDB.TimeUtils.timeout(_ => {
@ -532,6 +532,7 @@ var PluginRepo = (_ => {
}, 3000);
}
})
})
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Button, {
size: BDFDB.LibraryComponents.Button.Sizes.MIN,

View File

@ -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,10 +718,13 @@ var ThemeRepo = (_ => {
else BDFDB.DataUtils.remove(this, "favorites", theme.url);
}
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
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.Clickable, {
className: BDFDB.disCNS._repoentryiconwrapper,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
name: BDFDB.LibraryComponents.SvgIcon.Names.GITHUB,
className: BDFDB.disCN._repoicon,
onClick: _ => {
let giturl = null;
if (theme.requesturl.indexOf("https://raw.githubusercontent.com") == 0) {
@ -734,9 +736,7 @@ var ThemeRepo = (_ => {
giturl = theme.requesturl.replace("//gist.githubusercontent", "//gist.github").split("/raw/")[0];
}
if (giturl) BDFDB.DiscordUtils.openLink(giturl, BDFDB.DataUtils.get(this, "settings", "useChromium"));
},
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
name: BDFDB.LibraryComponents.SvgIcon.Names.GITHUB
}
})
})
}),
@ -758,14 +758,13 @@ var ThemeRepo = (_ => {
})
],
buttons: [
theme.state != themeStates.DOWNLOADABLE && BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
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.Clickable, {
className: BDFDB.disCN._repoentryiconwrapper,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
className: BDFDB.disCN.svgicon,
name: BDFDB.LibraryComponents.SvgIcon.Names.NOVA_TRASH
}),
name: BDFDB.LibraryComponents.SvgIcon.Names.NOVA_TRASH,
className: BDFDB.disCN._repoicon,
onClick: (e, instance) => {
this.deleteThemeFile(theme);
BDFDB.TimeUtils.timeout(_ => {
@ -774,6 +773,7 @@ var ThemeRepo = (_ => {
}, 3000);
}
})
})
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Button, {
size: BDFDB.LibraryComponents.Button.Sizes.MIN,