Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging
|
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 196 B |
|
Before Width: | Height: | Size: 304 B After Width: | Height: | Size: 293 B |
|
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 283 B |
|
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 283 B |
|
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 196 B |
|
Before Width: | Height: | Size: 304 B After Width: | Height: | Size: 293 B |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 603 B |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 933 B After Width: | Height: | Size: 915 B |
|
Before Width: | Height: | Size: 179 B After Width: | Height: | Size: 176 B |
|
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 254 B |
|
Before Width: | Height: | Size: 583 B After Width: | Height: | Size: 543 B |
|
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 174 B |
|
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 270 B |
|
Before Width: | Height: | Size: 731 B After Width: | Height: | Size: 702 B |
|
Before Width: | Height: | Size: 714 B After Width: | Height: | Size: 711 B |
|
Before Width: | Height: | Size: 337 B After Width: | Height: | Size: 336 B |
|
Before Width: | Height: | Size: 174 B After Width: | Height: | Size: 151 B |
|
Before Width: | Height: | Size: 260 B After Width: | Height: | Size: 240 B |
|
Before Width: | Height: | Size: 259 B After Width: | Height: | Size: 252 B |
|
Before Width: | Height: | Size: 425 B After Width: | Height: | Size: 417 B |
|
Before Width: | Height: | Size: 152 B After Width: | Height: | Size: 145 B |
|
Before Width: | Height: | Size: 295 B After Width: | Height: | Size: 292 B |
|
Before Width: | Height: | Size: 550 B After Width: | Height: | Size: 536 B |
|
Before Width: | Height: | Size: 242 B After Width: | Height: | Size: 231 B |
|
Before Width: | Height: | Size: 398 B After Width: | Height: | Size: 392 B |
|
Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 232 B |
|
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 388 B |
|
Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 233 B |
|
Before Width: | Height: | Size: 405 B After Width: | Height: | Size: 385 B |
|
Before Width: | Height: | Size: 246 B After Width: | Height: | Size: 234 B |
|
Before Width: | Height: | Size: 403 B After Width: | Height: | Size: 378 B |
|
Before Width: | Height: | Size: 464 B After Width: | Height: | Size: 461 B |
|
Before Width: | Height: | Size: 653 B After Width: | Height: | Size: 627 B |
|
Before Width: | Height: | Size: 246 B After Width: | Height: | Size: 230 B |
|
Before Width: | Height: | Size: 456 B After Width: | Height: | Size: 429 B |
|
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 228 B |
|
Before Width: | Height: | Size: 458 B After Width: | Height: | Size: 432 B |
|
Before Width: | Height: | Size: 225 B After Width: | Height: | Size: 219 B |
|
Before Width: | Height: | Size: 344 B After Width: | Height: | Size: 326 B |
|
Before Width: | Height: | Size: 225 B After Width: | Height: | Size: 217 B |
|
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 328 B |
|
Before Width: | Height: | Size: 177 B After Width: | Height: | Size: 171 B |
|
Before Width: | Height: | Size: 394 B After Width: | Height: | Size: 372 B |
|
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 172 B |
|
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 318 B |
|
Before Width: | Height: | Size: 185 B After Width: | Height: | Size: 167 B |
|
Before Width: | Height: | Size: 136 B After Width: | Height: | Size: 131 B |
|
Before Width: | Height: | Size: 160 B After Width: | Height: | Size: 159 B |
|
Before Width: | Height: | Size: 88 B After Width: | Height: | Size: 85 B |
|
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 106 B |
|
Before Width: | Height: | Size: 135 B After Width: | Height: | Size: 134 B |
|
Before Width: | Height: | Size: 167 B After Width: | Height: | Size: 166 B |
@@ -362,8 +362,11 @@ define([
|
||||
}).nThen(function (waitFor) {
|
||||
cpNfInner = common.startRealtime({
|
||||
// really basic operational transform
|
||||
//transformFunction: options.transformFunction || JsonOT.validate,
|
||||
patchTransformer: options.patchTransformer || JsonOT.patchTransformer,
|
||||
transformFunction: options.transformFunction || JsonOT.validate,
|
||||
|
||||
// This one causes a big mess.
|
||||
//patchTransformer: options.patchTransformer || JsonOT.patchTransformer,
|
||||
|
||||
// cryptpad debug logging (default is 1)
|
||||
// logLevel: 0,
|
||||
validateContent: options.validateContent || function (content) {
|
||||
|
||||
@@ -38,6 +38,7 @@ define([
|
||||
var userName = config.userName;
|
||||
var initialState = config.initialState;
|
||||
var transformFunction = config.transformFunction;
|
||||
var patchTransformer = config.patchTransformer;
|
||||
var validateContent = config.validateContent;
|
||||
var avgSyncMilliseconds = config.avgSyncMilliseconds;
|
||||
var logLevel = typeof(config.logLevel) !== 'undefined'? config.logLevel : 1;
|
||||
@@ -50,6 +51,7 @@ define([
|
||||
userName: userName,
|
||||
initialState: initialState,
|
||||
transformFunction: transformFunction,
|
||||
patchTransformer: patchTransformer,
|
||||
validateContent: validateContent,
|
||||
avgSyncMilliseconds: avgSyncMilliseconds,
|
||||
logLevel: logLevel
|
||||
|
||||
@@ -468,6 +468,14 @@ define([
|
||||
});
|
||||
});
|
||||
});
|
||||
sframeChan.on('Q_CONTACTS_REMOVE_FRIEND', function (curvePublic, cb) {
|
||||
messenger.removeFriend(curvePublic, function (e, info) {
|
||||
cb({
|
||||
error: e,
|
||||
data: info,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
sframeChan.on('Q_CONTACTS_OPEN_FRIEND_CHANNEL', function (curvePublic, cb) {
|
||||
messenger.openFriendChannel(curvePublic, function (e) {
|
||||
|
||||
@@ -66,6 +66,11 @@ define([], function () {
|
||||
//cb({ error: err, data: data, });
|
||||
});
|
||||
};
|
||||
messenger.removeFriend = function (curvePublic, cb) {
|
||||
sFrameChan.query('Q_CONTACTS_REMOVE_FRIEND', curvePublic, function (err, data) {
|
||||
cb(err || data.error, data.data);
|
||||
});
|
||||
};
|
||||
messenger.openFriendChannel = function (curvePublic, cb) {
|
||||
sFrameChan.query('Q_CONTACTS_OPEN_FRIEND_CHANNEL', curvePublic, function (err, data) {
|
||||
cb(err || data.error);
|
||||
|
||||
@@ -148,6 +148,7 @@ define({
|
||||
'Q_CONTACTS_GET_FRIEND_LIST': true,
|
||||
'Q_CONTACTS_GET_MY_INFO': true,
|
||||
'Q_CONTACTS_GET_FRIEND_INFO': true,
|
||||
'Q_CONTACTS_REMOVE_FRIEND': true,
|
||||
'Q_CONTACTS_OPEN_FRIEND_CHANNEL': true,
|
||||
'Q_CONTACTS_GET_STATUS': true,
|
||||
'Q_CONTACTS_GET_MORE_HISTORY': true,
|
||||
|
||||
@@ -318,10 +318,10 @@ define([
|
||||
};
|
||||
|
||||
var removeFriend = function (curvePublic) {
|
||||
messenger.removeFriend(curvePublic, function (e, removed) {
|
||||
messenger.removeFriend(curvePublic, function (e /*, removed */) {
|
||||
if (e) { return void console.error(e); }
|
||||
find.inList(curvePublic).remove();
|
||||
console.log(removed);
|
||||
//console.log(removed);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -176,7 +176,7 @@ div#cp-app-slide-modal {
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
z-index: 100000;
|
||||
z-index: 1000000; // one order of magnitude higher than alertify
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
}
|
||||
@@ -329,4 +329,4 @@ p {
|
||||
|
||||
pre.cp-slide-css-error {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||