This commit is contained in:
Mirco Wittrien 2020-11-11 10:16:57 +01:00
parent 05dbcfa11b
commit d55ecb00e1
2 changed files with 18 additions and 10 deletions

View File

@ -4447,6 +4447,18 @@ module.exports = (_ => {
let controls = [].concat(this.props.controls).flat(10).filter(n => n); let controls = [].concat(this.props.controls).flat(10).filter(n => n);
let links = [].concat(this.props.links).flat(10).filter(n => n); let links = [].concat(this.props.links).flat(10).filter(n => n);
let buttons = [].concat(this.props.buttons).flat(10).filter(n => n); let buttons = [].concat(this.props.buttons).flat(10).filter(n => n);
let meta = [
" v",
BDFDB.ReactUtils.createElement("span", {
className: BDFDB.disCN._repoversion,
children: this.props.data.version
}),
" by ",
BDFDB.ReactUtils.createElement("span", {
className: BDFDB.disCN._repoauthor,
children: this.props.data.author
})
];
return !BDFDB.ObjectUtils.is(this.props.data) ? null : BDFDB.ReactUtils.createElement("div", { return !BDFDB.ObjectUtils.is(this.props.data) ? null : BDFDB.ReactUtils.createElement("div", {
className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN._repoentry, this.props.className, BDFDB.disCN._repocard, BDFDB.disCN._reposettingsclosed, BDFDB.disCN._repocheckboxitem), className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN._repoentry, this.props.className, BDFDB.disCN._repocard, BDFDB.disCN._reposettingsclosed, BDFDB.disCN._repocheckboxitem),
children: [ children: [
@ -4461,16 +4473,10 @@ module.exports = (_ => {
className: BDFDB.disCN._reponame, className: BDFDB.disCN._reponame,
children: this.props.data.name children: this.props.data.name
}), }),
" v", isBeta ? BDFDB.ReactUtils.createElement("div", {
BDFDB.ReactUtils.createElement("span", { className: BDFDB.disCN._repometa,
className: BDFDB.disCN._repoversion, children: meta
children: this.props.data.version }) : meta
}),
" by ",
BDFDB.ReactUtils.createElement("span", {
className: BDFDB.disCN._repoauthor,
children: this.props.data.author
})
] ]
}), }),
controls.length && BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.Flex, { controls.length && BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.Flex, {

View File

@ -455,6 +455,7 @@
"bdGuildUnread": "bd-unread", "bdGuildUnread": "bd-unread",
"bdGuildVideo": "bd-video", "bdGuildVideo": "bd-video",
"bdIcon": "bd-icon", "bdIcon": "bd-icon",
"bdMeta": "bd-meta",
"bdPillSelected": "bd-selected", "bdPillSelected": "bd-selected",
"bdPillUnread": "bd-unread", "bdPillUnread": "bd-unread",
"bdPfbtn": "bd-pfbtn", "bdPfbtn": "bd-pfbtn",
@ -1067,6 +1068,7 @@
"_repolistwrapper": ["BDFDB", "bdaRepoListWrapper"], "_repolistwrapper": ["BDFDB", "bdaRepoListWrapper"],
"_repolink": ["BDrepo", "bdaLink"], "_repolink": ["BDrepo", "bdaLink"],
"_repolinks": ["BDrepo", "bdaLinks"], "_repolinks": ["BDrepo", "bdaLinks"],
"_repometa": ["BDrepo", "bdMeta"],
"_repomodal": ["BDrepo", "bdAddonModal"], "_repomodal": ["BDrepo", "bdAddonModal"],
"_reponame": ["BDrepo", "bdaName"], "_reponame": ["BDrepo", "bdaName"],
"_reposettings": ["BDrepo", "settings"], "_reposettings": ["BDrepo", "settings"],