mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-14 03:22:48 +00:00
Added files
This commit is contained in:
36
mongoui/mongoui-master/node_modules/derby-ui-boot/index.js
generated
vendored
Normal file
36
mongoui/mongoui-master/node_modules/derby-ui-boot/index.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
var lessRoot = __dirname + '/node_modules/bootstrap/less/'
|
||||
, config = {
|
||||
ns: 'boot'
|
||||
, filename: __filename
|
||||
, scripts: {
|
||||
dropdown: require('./dropdown')
|
||||
, option: require('./dropdown/option')
|
||||
, modal: require('./modal')
|
||||
, tabs: require('./tabs')
|
||||
, tab: {}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = boot
|
||||
boot.decorate = 'derby'
|
||||
|
||||
function boot(derby, options) {
|
||||
var outConfig = Object.create(config)
|
||||
, styles, outStyles, i, len, style
|
||||
|
||||
if (options && 'styles' in options) {
|
||||
styles = options.styles
|
||||
if (typeof styles === 'string') styles = [styles]
|
||||
if (Array.isArray(styles)) {
|
||||
outStyles = []
|
||||
for (i = 0, len = styles.length; i < len; i++) {
|
||||
outStyles.push(lessRoot + styles[i])
|
||||
}
|
||||
}
|
||||
} else {
|
||||
outStyles = lessRoot + 'bootstrap'
|
||||
}
|
||||
outConfig.styles = outStyles
|
||||
derby.createLibrary(outConfig, options)
|
||||
return this
|
||||
}
|
||||
Reference in New Issue
Block a user