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:
John Livingston
2024-04-29 16:46:21 +02:00
parent 06ff6e242e
commit d19d8d7391
11 changed files with 177 additions and 1 deletions

View 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)
}
})