Qortal UI - Main Code Repository A User Interface for the Qortal Blockchain Project. Truly decentralized web hosting, application hosting, communications, data storage, and full infrastructure for the future global decentralized digital world.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
871 B

3 years ago
const SERVER = 'server'
const BUILD = 'build'
const WATCH = 'watch'
const WATCH_INLINE = 'watch_inline'
const DEFAULT_CONFIG = 'default_config'
const GENERATE_BUILD_CONFIG = 'generate_build_config'
/**
* @package UI Core Controller
* @param type String
*/
const uiCoreController = (type) => {
switch (type) {
case SERVER:
const { createServer } = require('./server/server.js')
return createServer
case BUILD:
return require('./tooling/build.js')
3 years ago
case WATCH:
return require('./tooling/watch.js')
3 years ago
case WATCH_INLINE:
return require('./tooling/watch-inlines.js')
3 years ago
case DEFAULT_CONFIG:
return require('./config/config.js')
3 years ago
case GENERATE_BUILD_CONFIG:
return require('./tooling/generateBuildConfig.js')
3 years ago
default:
return
}
}
module.exports = uiCoreController