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.

50 lines
1.4 KiB

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:
const build = require('./tooling/build.js')
return build
case WATCH:
const watch = require('./tooling/watch.js')
return watch
case WATCH_INLINE:
const watchInlines = require('./tooling/watch-inlines.js')
return watchInlines
case DEFAULT_CONFIG:
const defaultConfig = require('./config/config.js')
return defaultConfig
case GENERATE_BUILD_CONFIG:
const generateBuildConfig = require('./tooling/generateBuildConfig.js')
return generateBuildConfig
default:
return
}
}
module.exports = uiCoreController
/**
* Performance update
* Write a CSS ripple effect and replace all paper-ripple and mwc-ripple
* Do something about the particles...
*/
// TODO: notifications settings, do not show notification in an active chat, Fix double message rendering, right custom menu in chat