2020-12-08 09:43:09 +01:00
|
|
|
/**
|
|
|
|
* @module converse-headlines-view
|
2022-04-02 16:28:01 +02:00
|
|
|
* @copyright 2022, the Converse.js contributors
|
2020-12-08 09:43:09 +01:00
|
|
|
* @license Mozilla Public License (MPLv2)
|
|
|
|
*/
|
|
|
|
import '../chatview/index.js';
|
2021-01-06 17:09:47 +01:00
|
|
|
import './view.js';
|
2022-05-08 20:05:30 +02:00
|
|
|
import { HeadlinesFeedsList } from './feed-list.js';
|
2021-01-06 17:09:47 +01:00
|
|
|
import { _converse, converse } from '@converse/headless/core';
|
2020-12-08 09:43:09 +01:00
|
|
|
|
2021-03-19 11:48:48 +01:00
|
|
|
import './styles/headlines.scss';
|
|
|
|
|
2020-12-08 09:43:09 +01:00
|
|
|
|
|
|
|
converse.plugins.add('converse-headlines-view', {
|
|
|
|
/* Plugin dependencies are other plugins which might be
|
|
|
|
* overridden or relied upon, and therefore need to be loaded before
|
|
|
|
* this plugin.
|
|
|
|
*
|
|
|
|
* If the setting "strict_plugin_dependencies" is set to true,
|
|
|
|
* an error will be raised if the plugin is not found. By default it's
|
|
|
|
* false, which means these plugins are only loaded opportunistically.
|
|
|
|
*
|
|
|
|
* NB: These plugins need to have already been loaded by the bundler
|
|
|
|
*/
|
|
|
|
dependencies: ['converse-headlines', 'converse-chatview'],
|
|
|
|
|
|
|
|
initialize () {
|
2022-05-08 20:05:30 +02:00
|
|
|
_converse.HeadlinesFeedsList = HeadlinesFeedsList;
|
|
|
|
|
|
|
|
// Deprecated
|
|
|
|
_converse.HeadlinesPanel = HeadlinesFeedsList;
|
2020-12-08 09:43:09 +01:00
|
|
|
}
|
|
|
|
});
|