Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging
commit
877c5a8d0e
|
@ -617,7 +617,7 @@ noscript {
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
font-family: Ubuntu,Georgia,Cambria,serif;
|
font-family: Ubuntu,Georgia,Cambria,serif;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
z-index:10;
|
z-index:10000;
|
||||||
display: none;
|
display: none;
|
||||||
#uploadStatus {
|
#uploadStatus {
|
||||||
width: 80vw;
|
width: 80vw;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -18,7 +18,6 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "jshint --config .jshintrc --exclude-path .jshintignore .",
|
"lint": "jshint --config .jshintrc --exclude-path .jshintignore .",
|
||||||
"test": "node TestSelenium.js",
|
"test": "node TestSelenium.js",
|
||||||
"style": "lessc ./customize.dist/src/less/toolbar.less > ./customize.dist/toolbar.css",
|
|
||||||
"template": "cd customize.dist/src && for page in ../index.html ../privacy.html ../terms.html ../about.html ../contact.html ../../www/login/index.html ../../www/register/index.html ../../www/settings/index.html ../../www/user/index.html;do echo $page; cp template.html $page; done;"
|
"template": "cd customize.dist/src && for page in ../index.html ../privacy.html ../terms.html ../about.html ../contact.html ../../www/login/index.html ../../www/register/index.html ../../www/settings/index.html ../../www/user/index.html;do echo $page; cp template.html $page; done;"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
5
rpc.js
5
rpc.js
|
@ -578,8 +578,7 @@ var resetUserPins = function (Env, publicKey, channelList, cb) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var pins = session.channels = {};
|
var pins = {};
|
||||||
|
|
||||||
getMultipleFileSize(Env, channelList, function (e, sizes) {
|
getMultipleFileSize(Env, channelList, function (e, sizes) {
|
||||||
if (e) { return void cb(e); }
|
if (e) { return void cb(e); }
|
||||||
var pinSize = sumChannelSizes(sizes);
|
var pinSize = sumChannelSizes(sizes);
|
||||||
|
@ -606,6 +605,8 @@ var resetUserPins = function (Env, publicKey, channelList, cb) {
|
||||||
pins[channel] = true;
|
pins[channel] = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// update in-memory cache IFF the reset was allowed.
|
||||||
|
session.channels = pins;
|
||||||
getHash(Env, publicKey, function (e, hash) {
|
getHash(Env, publicKey, function (e, hash) {
|
||||||
cb(e, hash);
|
cb(e, hash);
|
||||||
});
|
});
|
||||||
|
|
|
@ -1622,7 +1622,10 @@ define([
|
||||||
common.arePinsSynced(function (err, yes) {
|
common.arePinsSynced(function (err, yes) {
|
||||||
if (!yes) {
|
if (!yes) {
|
||||||
common.resetPins(function (err) {
|
common.resetPins(function (err) {
|
||||||
if (err) { console.error(err); }
|
if (err) {
|
||||||
|
console.error("Pin Reset Error");
|
||||||
|
return console.error(err);
|
||||||
|
}
|
||||||
console.log('RESET DONE');
|
console.log('RESET DONE');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,19 +48,6 @@ define([
|
||||||
return 'cryptpad-uid-' + String(Math.random()).substring(2);
|
return 'cryptpad-uid-' + String(Math.random()).substring(2);
|
||||||
};
|
};
|
||||||
|
|
||||||
var styleToolbar = function ($container, href, version, force) {
|
|
||||||
if (!force) { return; }
|
|
||||||
href = href || '/customize/toolbar.css' + (version?('?' + version): '');
|
|
||||||
|
|
||||||
$.ajax({
|
|
||||||
url: href,
|
|
||||||
dataType: 'text',
|
|
||||||
success: function (data) {
|
|
||||||
$container.append($('<style>').text(data));
|
|
||||||
},
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
var createRealtimeToolbar = function (config) {
|
var createRealtimeToolbar = function (config) {
|
||||||
if (!config.$container) { return; }
|
if (!config.$container) { return; }
|
||||||
var $container = config.$container;
|
var $container = config.$container;
|
||||||
|
@ -108,11 +95,6 @@ define([
|
||||||
|
|
||||||
$container.prepend($toolbar);
|
$container.prepend($toolbar);
|
||||||
|
|
||||||
if (ApiConfig && ApiConfig.requireConf && ApiConfig.requireConf.urlArgs) {
|
|
||||||
styleToolbar($container, undefined, ApiConfig.requireConf.urlArgs, config.legacyStyle);
|
|
||||||
} else {
|
|
||||||
styleToolbar($container, void 0, void 0, config.legacyStyle);
|
|
||||||
}
|
|
||||||
$container.on('drop dragover', function (e) {
|
$container.on('drop dragover', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
|
@ -24,29 +24,6 @@
|
||||||
padding:0;
|
padding:0;
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
}
|
}
|
||||||
#feedback {
|
|
||||||
display: none;
|
|
||||||
position: fixed;
|
|
||||||
top: 0px;
|
|
||||||
right: 0px;
|
|
||||||
border: 0px;
|
|
||||||
height: 100vh;
|
|
||||||
width: 30vw;
|
|
||||||
background-color: #222;
|
|
||||||
color: #ccc;
|
|
||||||
}
|
|
||||||
#debug {
|
|
||||||
height: 20px;
|
|
||||||
position: absolute;
|
|
||||||
right: 0px;
|
|
||||||
top: 70px;
|
|
||||||
}
|
|
||||||
#debug button {
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
#debug:hover button {
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
define([
|
define([
|
||||||
//'less!/customize/src/less/toolbar.less',
|
'less!/customize/src/less/toolbar.less',
|
||||||
], function () {});
|
], function () {});
|
||||||
|
|
|
@ -472,10 +472,19 @@ define([
|
||||||
network: info.network,
|
network: info.network,
|
||||||
$container: $bar,
|
$container: $bar,
|
||||||
$contentContainer: $iframe.find('#cke_1_contents'),
|
$contentContainer: $iframe.find('#cke_1_contents'),
|
||||||
legacyStyle: true,
|
|
||||||
};
|
};
|
||||||
toolbar = info.realtime.toolbar = Toolbar.create(configTb);
|
toolbar = info.realtime.toolbar = Toolbar.create(configTb);
|
||||||
|
|
||||||
|
var src = 'less!/customize/src/less/toolbar.less';
|
||||||
|
require([
|
||||||
|
src
|
||||||
|
], function () {
|
||||||
|
var $html = $bar.closest('html');
|
||||||
|
$html
|
||||||
|
.find('head style[data-original-src="' + src.replace(/less!/, '') + '"]')
|
||||||
|
.appendTo($html.find('head'));
|
||||||
|
});
|
||||||
|
|
||||||
Title.setToolbar(toolbar);
|
Title.setToolbar(toolbar);
|
||||||
|
|
||||||
var $rightside = toolbar.$rightside;
|
var $rightside = toolbar.$rightside;
|
||||||
|
|
|
@ -31,10 +31,6 @@
|
||||||
top: 0px;
|
top: 0px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
body #iframe-container.fullscreen {
|
|
||||||
top: 0px;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Reference in New Issue