mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-23 13:27:04 -04:00
surface source code more
This commit is contained in:
parent
b9fc1f5134
commit
baee9233d1
4 changed files with 31 additions and 6 deletions
|
@ -13,6 +13,8 @@ module.exports.PRIVACY_POLICY_SECTIONS = [
|
|||
|
||||
module.exports.PRIVACY_POLICY_LAST_UPDATE = 1655325547140
|
||||
|
||||
module.exports.OPEN_SOURCE_REPOSITORY_URL = "https://gitlab.com/bignutty/labscore"
|
||||
|
||||
module.exports.COLORS = Object.freeze({
|
||||
error: 15548997,
|
||||
success: 6411359,
|
||||
|
@ -96,7 +98,8 @@ module.exports.ICONS = Object.freeze({
|
|||
"sticker": "<:ico_sticker:1096937131793985546> ",
|
||||
"emoji": "<:ico_emoji:1096936794731315251>",
|
||||
"empty": "<:e:749601069298090034>",
|
||||
"book": "<:ico_book:1127622851265048576>"
|
||||
"book": "<:ico_book:1127622851265048576>",
|
||||
"gitlab": "<:ico_gitlab:1130603378704138411>"
|
||||
})
|
||||
|
||||
const GUILD_FEATURE_ICONS = Object.freeze({
|
||||
|
|
|
@ -37,6 +37,18 @@ module.exports.iconPill = function(icon, content){
|
|||
return ICONS[icon] + " **` " + content + " `**"
|
||||
}
|
||||
|
||||
module.exports.iconLinkPill = function(icon, url, content, tooltip = ""){
|
||||
if(!ICONS[icon]) icon = "question"
|
||||
if(tooltip.length) tooltip = ` '${tooltip}'`
|
||||
if(content) return `${ICONS[icon]} [**\` ${content} \`**](${url}${tooltip})`
|
||||
return url
|
||||
}
|
||||
module.exports.linkPill = function(url, content, tooltip = ""){
|
||||
if(tooltip.length) tooltip = ` '${tooltip}'`
|
||||
if(content) return `[**\` ${content} \`**](${url}${tooltip})`
|
||||
return url
|
||||
}
|
||||
|
||||
const SUPERSCRIPT_NUMBERS = ["⁰","¹","²","³","⁴","⁵","⁶","⁷","⁸","⁹"]
|
||||
module.exports.citation = function(number = 1, url, tooltip = ""){
|
||||
let formatted = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue