This commit is contained in:
derpystuff 2022-05-21 16:21:08 +02:00
parent 7195d43c74
commit 6173b085a3
26 changed files with 1112 additions and 91 deletions

33
labscore/utils/statics.js Normal file
View file

@ -0,0 +1,33 @@
const { Hosts } = require('../api/endpoints')
const Statics = Object.freeze({
brands: {
photofunia: {
file: "brands/photofunia.png",
revision: 1
},
genius: {
file: "brands/genius.png",
revision: 0
},
bing: {
file: "brands/bing.png",
revision: 0
},
google: {
file: "brands/google.png",
revision: 0
}
}
})
function staticAsset(static){
return Hosts.statics + `assets/` + static.file + "?r=" + static.revision
}
module.exports.STATICS = Object.freeze({
photofunia: staticAsset(Statics.brands.photofunia),
genius: staticAsset(Statics.brands.genius),
bing: staticAsset(Statics.brands.bing),
google: staticAsset(Statics.brands.google)
})