Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
8d999b28
Commit
8d999b28
authored
Jan 10, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicit plugin dependencies. Make hide_open_bookmarks false by default
parent
c22aff9b
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
60 additions
and
19 deletions
+60
-19
CHANGES.md
CHANGES.md
+3
-0
package-lock.json
package-lock.json
+1
-1
src/converse-bookmarks.js
src/converse-bookmarks.js
+13
-4
src/converse-chatview.js
src/converse-chatview.js
+4
-6
src/converse-controlbox.js
src/converse-controlbox.js
+11
-0
src/converse-dragresize.js
src/converse-dragresize.js
+5
-7
src/converse-headline.js
src/converse-headline.js
+11
-0
src/converse-minimize.js
src/converse-minimize.js
+1
-1
src/converse-otr.js
src/converse-otr.js
+11
-0
No files found.
CHANGES.md
View file @
8d999b28
...
...
@@ -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.
...
...
package-lock.json
View file @
8d999b28
...
...
@@ -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"
...
...
src/converse-bookmarks.js
View file @
8d999b28
...
...
@@ -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
'
);
...
...
src/converse-chatview.js
View file @
8d999b28
...
...
@@ -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.
*/
...
...
src/converse-controlbox.js
View file @
8d999b28
...
...
@@ -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
...
...
src/converse-dragresize.js
View file @
8d999b28
...
...
@@ -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
'
;
...
...
src/converse-headline.js
View file @
8d999b28
...
...
@@ -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
...
...
src/converse-minimize.js
View file @
8d999b28
...
...
@@ -39,7 +39,7 @@
*
* NB: These plugins need to have already been loaded via require.js.
*/
dependencies
:
[
"
converse-c
ontrolbox
"
,
"
converse-muc
"
],
dependencies
:
[
"
converse-c
hatview
"
,
"
converse-controlbox
"
,
"
converse-muc
"
,
"
converse-headline
"
],
enabled
(
_converse
)
{
return
_converse
.
view_mode
==
'
overlayed
'
;
...
...
src/converse-otr.js
View file @
8d999b28
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment