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