Explicit plugin dependencies. Make hide_open_bookmarks false by default
This commit is contained in:
parent
c22aff9b13
commit
8d999b2802
|
@ -43,6 +43,9 @@
|
|||
- New API method `_converse.api.vcard.get` which fetches the VCard for a
|
||||
particular JID.
|
||||
|
||||
### Configuration changes
|
||||
- `hide_open_bookmarks` is now by default `true`.
|
||||
|
||||
### UX/UI changes
|
||||
- Use CSS3 fade transitions to render various elements.
|
||||
- Remove `Login` and `Registration` tabs and consolidate into one panel.
|
||||
|
|
|
@ -6825,7 +6825,7 @@
|
|||
}
|
||||
},
|
||||
"pluggable.js": {
|
||||
"version": "git+https://github.com/jcbrand/pluggable.js.git#4677f759c270edda4ce987a8565b817a1d15973b",
|
||||
"version": "git+https://github.com/jcbrand/pluggable.js.git#a281e7207b62c5cc5fad084337fd32c003928e86",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"lodash": "4.17.4"
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
* in XEP-0048.
|
||||
*/
|
||||
(function (root, factory) {
|
||||
define(["utils",
|
||||
"converse-core",
|
||||
define(["converse-core",
|
||||
"converse-muc",
|
||||
"tpl!chatroom_bookmark_form",
|
||||
"tpl!chatroom_bookmark_toggle",
|
||||
|
@ -20,7 +19,6 @@
|
|||
],
|
||||
factory);
|
||||
}(this, function (
|
||||
u,
|
||||
converse,
|
||||
muc,
|
||||
tpl_chatroom_bookmark_form,
|
||||
|
@ -30,9 +28,20 @@
|
|||
) {
|
||||
|
||||
const { Backbone, Promise, Strophe, $iq, b64_sha1, sizzle, _ } = converse.env;
|
||||
const u = converse.env.utils;
|
||||
|
||||
converse.plugins.add('converse-bookmarks', {
|
||||
|
||||
/* 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 via require.js.
|
||||
*/
|
||||
dependencies: ["converse-chatboxes", "converse-muc"],
|
||||
|
||||
overrides: {
|
||||
|
@ -203,7 +212,7 @@
|
|||
// configuration settings.
|
||||
_converse.api.settings.update({
|
||||
allow_bookmarks: true,
|
||||
hide_open_bookmarks: false
|
||||
hide_open_bookmarks: true
|
||||
});
|
||||
// Promises exposed by this plugin
|
||||
_converse.api.promises.add('bookmarksInitialized');
|
||||
|
|
|
@ -48,15 +48,13 @@
|
|||
};
|
||||
|
||||
converse.plugins.add('converse-chatview', {
|
||||
/* Optional dependencies are other plugins which might be
|
||||
/* Plugin dependencies are other plugins which might be
|
||||
* overridden or relied upon, and therefore need to be loaded before
|
||||
* this plugin. They are called "optional" because they might not be
|
||||
* available, in which case any overrides applicable to them will be
|
||||
* ignored.
|
||||
* this plugin.
|
||||
*
|
||||
* It's possible however to make optional dependencies non-optional.
|
||||
* If the setting "strict_plugin_dependencies" is set to true,
|
||||
* an error will be raised if the plugin is not found.
|
||||
* 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 via require.js.
|
||||
*/
|
||||
|
|
|
@ -81,6 +81,17 @@
|
|||
];
|
||||
|
||||
converse.plugins.add('converse-controlbox', {
|
||||
/* 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 via require.js.
|
||||
*/
|
||||
dependencies: ["converse-chatboxes"],
|
||||
|
||||
overrides: {
|
||||
// Overrides mentioned here will be picked up by converse.js's
|
||||
|
|
|
@ -29,19 +29,17 @@
|
|||
|
||||
|
||||
converse.plugins.add('converse-dragresize', {
|
||||
/* Optional dependencies are other plugins which might be
|
||||
/* Plugin dependencies are other plugins which might be
|
||||
* overridden or relied upon, and therefore need to be loaded before
|
||||
* this plugin. They are called "optional" because they might not be
|
||||
* available, in which case any overrides applicable to them will be
|
||||
* ignored.
|
||||
* this plugin.
|
||||
*
|
||||
* It's possible however to make optional dependencies non-optional.
|
||||
* If the setting "strict_plugin_dependencies" is set to true,
|
||||
* an error will be raised if the plugin is not found.
|
||||
* 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 via require.js.
|
||||
*/
|
||||
dependencies: ["converse-headline"],
|
||||
dependencies: ["converse-chatview", "converse-headline"],
|
||||
|
||||
enabled (_converse) {
|
||||
return _converse.view_mode == 'overlayed';
|
||||
|
|
|
@ -18,6 +18,17 @@
|
|||
const HEADLINES_TYPE = 'headline';
|
||||
|
||||
converse.plugins.add('converse-headline', {
|
||||
/* 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 via require.js.
|
||||
*/
|
||||
dependencies: ["converse-chatview"],
|
||||
|
||||
overrides: {
|
||||
// Overrides mentioned here will be picked up by converse.js's
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
*
|
||||
* NB: These plugins need to have already been loaded via require.js.
|
||||
*/
|
||||
dependencies: ["converse-controlbox", "converse-muc"],
|
||||
dependencies: ["converse-chatview", "converse-controlbox", "converse-muc", "converse-headline"],
|
||||
|
||||
enabled (_converse) {
|
||||
return _converse.view_mode == 'overlayed';
|
||||
|
|
|
@ -44,6 +44,17 @@
|
|||
|
||||
|
||||
converse.plugins.add('converse-otr', {
|
||||
/* 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 via require.js.
|
||||
*/
|
||||
dependencies: ["converse-chatview"],
|
||||
|
||||
overrides: {
|
||||
// Overrides mentioned here will be picked up by converse.js's
|
||||
|
|
Loading…
Reference in New Issue