Task lists WIP:
* initializing some code parts * mechanism to add font-awesome icons to the defaults one that ConverseJS uses * new way to override ConverseJS index.js (to add new custom plugins, that are directly build into ConverseJS)
This commit is contained in:
15
conversejs/custom/plugins/tasks/index.js
Normal file
15
conversejs/custom/plugins/tasks/index.js
Normal file
@ -0,0 +1,15 @@
|
||||
import { _converse, converse } from '../../../src/headless/core.js'
|
||||
import { ChatRoomTaskLists } from './task-lists.js'
|
||||
import { ChatRoomTaskList } from './task-list.js'
|
||||
import { getHeadingButtons } from './utils.js'
|
||||
|
||||
converse.plugins.add('livechat-converse-tasks', {
|
||||
dependencies: ['converse-muc', 'converse-disco'], // TODO: add converse-pubsub
|
||||
|
||||
initialize () {
|
||||
_converse.ChatRoomTaskLists = ChatRoomTaskLists
|
||||
_converse.ChatRoomTaskList = ChatRoomTaskList
|
||||
|
||||
_converse.api.listen.on('getHeadingButtons', getHeadingButtons)
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user