-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathindex.js
36 lines (31 loc) · 1.01 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* General purpose utility functions used in the panes
*
* Includes form-oriented widgets [email protected]
*
* sign-in sign-up widgets are in signin.js
*
* Note... For pointers to posssible text-editing code, see
* http://stackoverflow.com/questions/6756407/what-contenteditable-editors
*/
import * as debug from '../debug'
// var aclModule = require('./acl.js')
// Each widget should ideally live in its own file. In order to break up this
// monolithic widget index over time, we should add new widgets to the
// 'lib/widgets/' directory, and re-export them like so:
//
// (In order to avoid name collisions, it is safely assumed that modules don't
// export widgets with the same name)
const widgets = Object.assign(
{},
require('./peoplePicker'),
require('./dragAndDrop'), // uploadFiles etc
require('./error'), // UI.widgets.errorMessageBlock
require('./buttons'),
require('./forms'),
require('./modals')
)
module.exports = widgets
debug.log('@@@ widgets: ', widgets)
// ends