Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging
This commit is contained in:
commit
d44f0696af
@ -278,6 +278,10 @@ define(function () {
|
|||||||
out.contacts_info3 = "Double-cliquer sur son nom pour voir son profil";
|
out.contacts_info3 = "Double-cliquer sur son nom pour voir son profil";
|
||||||
out.contacts_info4 = "Chaque participant peut nettoyer définitivement l'historique d'une discussion";
|
out.contacts_info4 = "Chaque participant peut nettoyer définitivement l'historique d'une discussion";
|
||||||
|
|
||||||
|
out.contacts_removeHistoryTitle = "Supprimer l'historique du chat";
|
||||||
|
out.contacts_confirmRemoveHistory = 'Êtes-vous sûr de vouloir supprimer définitivement l\'historique de votre chat ? Les messages ne pourront pas être restaurés.';
|
||||||
|
out.contacts_removeHistoryServerError = 'Une erreur est survenue lors de la supprimer de l\'historique du chat. Veuillez réessayer plus tard.';
|
||||||
|
|
||||||
// File manager
|
// File manager
|
||||||
|
|
||||||
out.fm_rootName = "Documents";
|
out.fm_rootName = "Documents";
|
||||||
|
|||||||
@ -282,6 +282,7 @@ define(function () {
|
|||||||
out.contacts_info3 = "Double-click their icon to view their profile";
|
out.contacts_info3 = "Double-click their icon to view their profile";
|
||||||
out.contacts_info4 = "Either participant can clear permanently a chat history";
|
out.contacts_info4 = "Either participant can clear permanently a chat history";
|
||||||
|
|
||||||
|
out.contacts_removeHistoryTitle = 'Clean the chat history';
|
||||||
out.contacts_confirmRemoveHistory = 'Are you sure you want to permanently remove your chat history? Data cannot be restored';
|
out.contacts_confirmRemoveHistory = 'Are you sure you want to permanently remove your chat history? Data cannot be restored';
|
||||||
out.contacts_removeHistoryServerError = 'There was an error while removing your chat history. Try again later';
|
out.contacts_removeHistoryServerError = 'There was an error while removing your chat history. Try again later';
|
||||||
|
|
||||||
|
|||||||
@ -299,11 +299,12 @@ define([
|
|||||||
var MutationObserver = window.MutationObserver;
|
var MutationObserver = window.MutationObserver;
|
||||||
var addTippy = function (el) {
|
var addTippy = function (el) {
|
||||||
if (el.nodeName === 'IFRAME') { return; }
|
if (el.nodeName === 'IFRAME') { return; }
|
||||||
|
var delay = typeof(AppConfig.tooltipDelay) === "number" ? AppConfig.tooltipDelay : 500;
|
||||||
Tippy(el, {
|
Tippy(el, {
|
||||||
position: 'bottom',
|
position: 'bottom',
|
||||||
distance: 0,
|
distance: 0,
|
||||||
performance: true,
|
performance: true,
|
||||||
delay: [500, 0]
|
delay: [delay, 0]
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
var $body = $('body');
|
var $body = $('body');
|
||||||
|
|||||||
@ -284,15 +284,15 @@ define([
|
|||||||
var proxy = common.getProxy();
|
var proxy = common.getProxy();
|
||||||
|
|
||||||
var $header = $('<div>', {
|
var $header = $('<div>', {
|
||||||
'class': 'cp-contact-top-bar header',
|
'class': 'header',
|
||||||
}).appendTo($container);
|
}).appendTo($container);
|
||||||
|
|
||||||
var $avatar = $('<div>', {'class': 'avatar'}).appendTo($header);
|
var $avatar = $('<div>', {'class': 'avatar'}).appendTo($header);
|
||||||
|
|
||||||
var $removeHistory = $('<span>', {
|
var $removeHistory = $('<span>', {
|
||||||
'class': 'remove-history fa fa-eraser'
|
'class': 'remove-history fa fa-eraser',
|
||||||
|
title: common.Messages.contacts_removeHistoryTitle
|
||||||
})
|
})
|
||||||
// TODO set title
|
|
||||||
.click(function () {
|
.click(function () {
|
||||||
Cryptpad.confirm(common.Messages.contacts_confirmRemoveHistory, function (yes) {
|
Cryptpad.confirm(common.Messages.contacts_confirmRemoveHistory, function (yes) {
|
||||||
if (!yes) { return; }
|
if (!yes) { return; }
|
||||||
|
|||||||
@ -1779,6 +1779,7 @@ define([
|
|||||||
initialized = true;
|
initialized = true;
|
||||||
|
|
||||||
updateLocalVersion();
|
updateLocalVersion();
|
||||||
|
common.addTooltips();
|
||||||
f(void 0, env);
|
f(void 0, env);
|
||||||
if (typeof(window.onhashchange) === 'function') { window.onhashchange(); }
|
if (typeof(window.onhashchange) === 'function') { window.onhashchange(); }
|
||||||
}
|
}
|
||||||
@ -1797,7 +1798,6 @@ define([
|
|||||||
store = common.store = env.store = storeObj;
|
store = common.store = env.store = storeObj;
|
||||||
|
|
||||||
common.addDirectMessageHandler(common);
|
common.addDirectMessageHandler(common);
|
||||||
common.addTooltips();
|
|
||||||
|
|
||||||
var proxy = getProxy();
|
var proxy = getProxy();
|
||||||
var network = getNetwork();
|
var network = getNetwork();
|
||||||
|
|||||||
@ -112,24 +112,6 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.cp-contact-top-bar {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
.avatar,
|
|
||||||
.right-col {
|
|
||||||
flex:1 1 auto;
|
|
||||||
}
|
|
||||||
.remove-history {
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: lighten(@bg-color, 20%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#messaging {
|
#messaging {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@ -140,7 +122,27 @@ body {
|
|||||||
}
|
}
|
||||||
.header {
|
.header {
|
||||||
background-color: lighten(@bg-color, 15%);
|
background-color: lighten(@bg-color, 15%);
|
||||||
padding: 10px;
|
padding: 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
height: 50px;
|
||||||
|
|
||||||
|
.avatar,
|
||||||
|
.right-col {
|
||||||
|
flex:1 1 auto;
|
||||||
|
}
|
||||||
|
.remove-history {
|
||||||
|
height: 100%;
|
||||||
|
line-height: 30px;
|
||||||
|
padding: 10px;
|
||||||
|
&:hover {
|
||||||
|
background-color: rgba(50,50,50,0.3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.avatar {
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.chat {
|
.chat {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user