mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
wip
This commit is contained in:
parent
7195d43c74
commit
6173b085a3
26 changed files with 1112 additions and 91 deletions
33
labscore/utils/statics.js
Normal file
33
labscore/utils/statics.js
Normal 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)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue