mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-19 11:27:03 -04:00
[nextgen] mostly implemented
This commit is contained in:
parent
4e62cecf0f
commit
f226d7170a
12 changed files with 194 additions and 50 deletions
7
labscore/utils/color.js
Normal file
7
labscore/utils/color.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
module.exports.hexToDecimalColor = (color)=>{
|
||||
return parseInt(color.split("#")[1], 16)
|
||||
}
|
||||
|
||||
module.exports.decimalToHexColor = (color)=>{
|
||||
return "#" + color.toString(16);
|
||||
}
|
|
@ -185,8 +185,4 @@ module.exports.page = function(embed, message = {}, metadata = {}){
|
|||
embeds: [embed],
|
||||
_meta: metadata,
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.hexToEmbedColor = (color)=>{
|
||||
return parseInt(color.split("#")[1], 16)
|
||||
}
|
|
@ -10,6 +10,10 @@ const Statics = Object.freeze({
|
|||
}
|
||||
},
|
||||
assets: {
|
||||
card_skeleton: {
|
||||
file: "loading/04_chat_loading.1zn1ocfb72tc.gif",
|
||||
revision: 0
|
||||
},
|
||||
chat_loading: {
|
||||
file: "loading/05_chat_loading.7y2ji893rho0.gif",
|
||||
revision: 0
|
||||
|
@ -291,6 +295,7 @@ module.exports.STATIC_ICONS = Object.freeze({
|
|||
})
|
||||
|
||||
module.exports.STATIC_ASSETS = Object.freeze({
|
||||
card_skeleton: staticAsset(Statics.assets.card_skeleton),
|
||||
chat_loading: staticAsset(Statics.assets.chat_loading),
|
||||
chat_loading_small: staticAsset(Statics.assets.chat_loading_small),
|
||||
image_loading: staticAsset(Statics.assets.image_loading),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue