copious-transitions
Version:
Framework for working with frameworks
48 lines (39 loc) • 1.22 kB
JavaScript
const { GeneralStatic } = require('../../index')
const myStorageClass = null
class CaptchaStatic extends GeneralStatic {
//
constructor() {
//
super(myStorageClass)
//
this._preloaded = {
"index.html" : { "fname" : '/index.html', "ftype" : "html" },
"login" : { "fname" : '/login.html', "ftype" : "html" },
"register" : { "fname" : '/register.html', "ftype" : "html" },
"forgetful" : { "fname" : '/forgot.html', "ftype" : "html" }
}
//
this.index_asset_media_object = null
this.login_asset_media_object = null
this.register_asset_media_object = null
this.forgetful_asset_media_object = null
//
this._preloaded_guarded = {
"easter_egg" : { "fname" : '/easter_egg.svg', "ftype" : "svg" }
}
this.easter_egg_asset_media_object = null
//
}
preload_all(conf) {
if ( conf.static_files ) {
this.generic_prep_cwd_offset(conf)
}
//
super.preload_all()
//
}
fetch(asset) {
return(super.fetch(asset))
}
}
module.exports = new CaptchaStatic()