Merge branch 'master' of https://github.com/dario-chiappetta/password-manager
This commit is contained in:
commit
0c056738df
@ -1699,6 +1699,7 @@ div.help {
|
|||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
padding-left: 1px;
|
padding-left: 1px;
|
||||||
|
padding-right: 30px;
|
||||||
line-height: 27px;
|
line-height: 27px;
|
||||||
/* boxed style test */
|
/* boxed style test */
|
||||||
/* background-color: $clipperz-orange;
|
/* background-color: $clipperz-orange;
|
||||||
@ -1723,9 +1724,12 @@ div.help {
|
|||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
line-height: 22px;
|
/*line-height: 22px;*/
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
/*color:white;*/ }
|
/*color:white;*/
|
||||||
|
position: absolute;
|
||||||
|
margin-left: 5px;
|
||||||
|
line-height: 31px; }
|
||||||
.tagEditor ul li.tag span.tagRemoveButton:hover {
|
.tagEditor ul li.tag span.tagRemoveButton:hover {
|
||||||
color: #9b0000; }
|
color: #9b0000; }
|
||||||
.tagEditor input {
|
.tagEditor input {
|
||||||
@ -3575,6 +3579,9 @@ div.cardList.narrow {
|
|||||||
list-style-type: none; }
|
list-style-type: none; }
|
||||||
.cardAttachments .skippedFiles ul li .filename {
|
.cardAttachments .skippedFiles ul li .filename {
|
||||||
font-weight: bold; }
|
font-weight: bold; }
|
||||||
|
.cardAttachments .skippedFiles a {
|
||||||
|
text-decoration: underline;
|
||||||
|
cursor: pointer; }
|
||||||
.cardAttachments .attachmentList {
|
.cardAttachments .attachmentList {
|
||||||
margin-left: 44px;
|
margin-left: 44px;
|
||||||
padding-right: 8px; }
|
padding-right: 8px; }
|
||||||
@ -3656,7 +3663,8 @@ div.cardList.narrow {
|
|||||||
width: 30px;
|
width: 30px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 20pt;
|
font-size: 20pt;
|
||||||
color: #aaa; }
|
color: #aaa;
|
||||||
|
margin-top: 1px; }
|
||||||
.cardAttachments .attachmentList li .actions a.cancel, .cardAttachments .attachmentList li .actions a.remove {
|
.cardAttachments .attachmentList li .actions a.cancel, .cardAttachments .attachmentList li .actions a.remove {
|
||||||
font-family: 'clipperz-icons';
|
font-family: 'clipperz-icons';
|
||||||
-webkit-font-feature-settings: "liga" 1, "dlig" 1;
|
-webkit-font-feature-settings: "liga" 1, "dlig" 1;
|
||||||
@ -3671,7 +3679,7 @@ div.cardList.narrow {
|
|||||||
.cardAttachments .attachmentList li .actions a.download:hover {
|
.cardAttachments .attachmentList li .actions a.download:hover {
|
||||||
color: #1863a1; }
|
color: #1863a1; }
|
||||||
.cardAttachments .attachmentList li .progress {
|
.cardAttachments .attachmentList li .progress {
|
||||||
width: 30px;
|
width: 50px;
|
||||||
text-align: center; }
|
text-align: center; }
|
||||||
.cardAttachments .attachmentList li .progress .radialProgressIndicator {
|
.cardAttachments .attachmentList li .progress .radialProgressIndicator {
|
||||||
width: 25px;
|
width: 25px;
|
||||||
@ -3749,6 +3757,7 @@ div.cardList.narrow {
|
|||||||
max-width: 30%; }
|
max-width: 30%; }
|
||||||
.content .tagEditor.readWrite ul li .tagLabel {
|
.content .tagEditor.readWrite ul li .tagLabel {
|
||||||
width: calc(100% - 30px);
|
width: calc(100% - 30px);
|
||||||
|
width: 100%;
|
||||||
display: inline-block; }
|
display: inline-block; }
|
||||||
.content .tagEditor.readWrite ul li input {
|
.content .tagEditor.readWrite ul li input {
|
||||||
width: 100%; }
|
width: 100%; }
|
||||||
|
@ -126,7 +126,9 @@ MochiKit.Base.update(Clipperz.PM.UI.AttachmentController.prototype, {
|
|||||||
var reference = anAttachment.reference()
|
var reference = anAttachment.reference()
|
||||||
var queueElement = this.getQueueElement(reference);
|
var queueElement = this.getQueueElement(reference);
|
||||||
|
|
||||||
if (queueElement) {
|
var isElementInProgress = (queueElement && queueElement['status'] != 'DONE' && queueElement['status'] != 'CANCELED' && queueElement['status'] != 'FAILED');
|
||||||
|
|
||||||
|
if (isElementInProgress) {
|
||||||
deferredResult = new Clipperz.Async.Deferred("Clipperz.PM.UI.AttachmentController.cancelAttachment", {trace:false});
|
deferredResult = new Clipperz.Async.Deferred("Clipperz.PM.UI.AttachmentController.cancelAttachment", {trace:false});
|
||||||
deferredResult.addMethod(this, 'updateFileInQueue', reference, {'status': 'CANCELED'});
|
deferredResult.addMethod(this, 'updateFileInQueue', reference, {'status': 'CANCELED'});
|
||||||
if (queueElement['deferredRequest']) {
|
if (queueElement['deferredRequest']) {
|
||||||
|
@ -41,6 +41,7 @@ Clipperz.PM.UI.Components.Cards.DetailClass = React.createClass({
|
|||||||
result['allTags'] = this.props['allTags'];
|
result['allTags'] = this.props['allTags'];
|
||||||
result['preferences'] = this.props['preferences'];
|
result['preferences'] = this.props['preferences'];
|
||||||
result['attachmentQueueInfo'] = this.props['attachmentQueueInfo'];
|
result['attachmentQueueInfo'] = this.props['attachmentQueueInfo'];
|
||||||
|
result['proxyInfo'] = this.props['proxyInfo'];
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@ -678,6 +678,9 @@ console.log("DROP"); //, anEvent);
|
|||||||
]);
|
]);
|
||||||
}, this.state['skippedFiles'])
|
}, this.state['skippedFiles'])
|
||||||
),
|
),
|
||||||
|
React.DOM.a({
|
||||||
|
'onClick': MochiKit.Base.method(this, 'setState', {'skippedFiles': []}),
|
||||||
|
}, 'close'),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ Clipperz.PM.UI.Components.Cards.TagEditorClass = React.createClass({
|
|||||||
return React.DOM.div({'className':Clipperz.PM.UI.Components.classNames(classes)}, [
|
return React.DOM.div({'className':Clipperz.PM.UI.Components.classNames(classes)}, [
|
||||||
React.DOM.ul({},[
|
React.DOM.ul({},[
|
||||||
MochiKit.Base.map(this.renderTag, this.props['selectedTags']),
|
MochiKit.Base.map(this.renderTag, this.props['selectedTags']),
|
||||||
this.isReadOnly() ? null : React.DOM.li({}, React.DOM.input({'type':'text', 'list':'tagListData', 'onKeyDown':this.handleKeyDown, 'onBlur':this.handleBlur, 'placeholder': "tag"})),
|
this.isReadOnly() ? null : React.DOM.li({}, React.DOM.input({'type':'text', 'list':'tagListData', 'onKeyDown':this.handleKeyDown, 'onBlur':this.handleBlur, 'placeholder': "add tag"})),
|
||||||
]),
|
]),
|
||||||
this.isReadOnly() ? null : this.renderEditField()
|
this.isReadOnly() ? null : this.renderEditField()
|
||||||
]);
|
]);
|
||||||
|
@ -31,6 +31,7 @@ Clipperz.PM.UI.Components.Cards.ViewClass = React.createClass({
|
|||||||
propTypes: {
|
propTypes: {
|
||||||
'label': React.PropTypes.string /*.isRequired */ ,
|
'label': React.PropTypes.string /*.isRequired */ ,
|
||||||
'loading': React.PropTypes.bool,
|
'loading': React.PropTypes.bool,
|
||||||
|
'proxyInfo': React.PropTypes.object.isRequired,
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState: function () {
|
getInitialState: function () {
|
||||||
@ -265,7 +266,7 @@ Clipperz.PM.UI.Components.Cards.ViewClass = React.createClass({
|
|||||||
renderAttachmentProgress: function(aStatus, aServerStatus, aProgress) {
|
renderAttachmentProgress: function(aStatus, aServerStatus, aProgress) {
|
||||||
var result;
|
var result;
|
||||||
|
|
||||||
var queueOperationsInProgress = (aStatus != 'DONE' && aStatus != 'CANCELED' && aStatus != 'FAILED');
|
var queueOperationsInProgress = (aStatus && aStatus != 'DONE' && aStatus != 'CANCELED' && aStatus != 'FAILED');
|
||||||
|
|
||||||
result = null;
|
result = null;
|
||||||
if (aStatus == 'UPLOADING' || aStatus == 'DOWNLOADING') {
|
if (aStatus == 'UPLOADING' || aStatus == 'DOWNLOADING') {
|
||||||
@ -321,19 +322,21 @@ Clipperz.PM.UI.Components.Cards.ViewClass = React.createClass({
|
|||||||
renderAttachmentActions: function(aStatus, aServerStatus, anAttachment) {
|
renderAttachmentActions: function(aStatus, aServerStatus, anAttachment) {
|
||||||
var result;
|
var result;
|
||||||
|
|
||||||
var queueOperationsInProgress = (aStatus != 'DONE' && aStatus != 'CANCELED' && aStatus != 'FAILED');
|
var queueOperationsInProgress = (aStatus && aStatus != 'DONE' && aStatus != 'CANCELED' && aStatus != 'FAILED');
|
||||||
|
|
||||||
result = null;
|
result = null;
|
||||||
if (aServerStatus == 'AVAILABLE' && ! queueOperationsInProgress) {
|
if (this.props['proxyInfo']['proxyType'] != 'OFFLINE_COPY') {
|
||||||
result = React.DOM.a({
|
if (aServerStatus == 'AVAILABLE' && ! queueOperationsInProgress) {
|
||||||
'className': 'download',
|
result = React.DOM.a({
|
||||||
'onClick': MochiKit.Base.method(this, 'handleGetAttachment', anAttachment),
|
'className': 'download',
|
||||||
}, "\u2b07");
|
'onClick': MochiKit.Base.method(this, 'handleGetAttachment', anAttachment),
|
||||||
} else if (aServerStatus == 'AVAILABLE' && queueOperationsInProgress) {
|
}, "\u2b07");
|
||||||
result = React.DOM.a({
|
} else if (aServerStatus == 'AVAILABLE' && queueOperationsInProgress) {
|
||||||
'className': 'cancel',
|
result = React.DOM.a({
|
||||||
'onClick': MochiKit.Base.method(this, 'handleCancelDownload', anAttachment)
|
'className': 'cancel',
|
||||||
}, "remove field");
|
'onClick': MochiKit.Base.method(this, 'handleCancelDownload', anAttachment)
|
||||||
|
}, "remove field");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@ -1368,6 +1368,7 @@ Clipperz.log("THE BROWSER IS OFFLINE");
|
|||||||
} else if (aPageName == 'cardDetailPage') {
|
} else if (aPageName == 'cardDetailPage') {
|
||||||
extraProperties = {
|
extraProperties = {
|
||||||
'attachmentQueueInfo': this.attachmentQueueInfo(),
|
'attachmentQueueInfo': this.attachmentQueueInfo(),
|
||||||
|
'proxyInfo': this.proxyInfo(),
|
||||||
};
|
};
|
||||||
} else if (aPageName == 'errorPage') {
|
} else if (aPageName == 'errorPage') {
|
||||||
extraProperties = {
|
extraProperties = {
|
||||||
@ -1939,7 +1940,7 @@ Clipperz.log("THE BROWSER IS OFFLINE");
|
|||||||
|
|
||||||
isPageInEditMode: function() {
|
isPageInEditMode: function() {
|
||||||
var currentPage = this.pages()[this.currentPage()];
|
var currentPage = this.pages()[this.currentPage()];
|
||||||
return currentPage.props['mode'] == 'edit';
|
return currentPage ? currentPage.props['mode'] == 'edit' : false;
|
||||||
},
|
},
|
||||||
|
|
||||||
enterEditMode: function () {
|
enterEditMode: function () {
|
||||||
@ -2093,11 +2094,28 @@ Clipperz.log("THE BROWSER IS OFFLINE");
|
|||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
matchMediaQuery_handler: function (newQueryStyle) {
|
matchMediaQuery_handler: function (newQueryStyle) {
|
||||||
|
var wasInEditMode = this.isPageInEditMode();
|
||||||
|
var currentPage = this.currentPage();
|
||||||
|
var selectedCardInfo = this.selectedCardInfo();
|
||||||
|
|
||||||
this._mediaQueryStyle = newQueryStyle;
|
this._mediaQueryStyle = newQueryStyle;
|
||||||
|
|
||||||
if (this.currentPage() == 'cardDetailPage') {
|
if (currentPage == 'cardDetailPage') {
|
||||||
this.moveOutPage(this.currentPage(), 'mainPage');
|
this.moveOutPage(this.currentPage(), 'mainPage');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (selectedCardInfo) {
|
||||||
|
this.pages()[currentPage].setProps({'mode': 'view'});
|
||||||
|
|
||||||
|
if (currentPage == 'mainPage' && newQueryStyle == 'narrow') {
|
||||||
|
this.selectCard(selectedCardInfo, true);
|
||||||
|
}
|
||||||
|
if (wasInEditMode) {
|
||||||
|
MochiKit.Async.callLater(0.1, MochiKit.Base.method(this, 'enterEditMode'));
|
||||||
|
MochiKit.Async.callLater(0.1, MochiKit.Base.method(this, 'updateSelectedCard', this.selectedCardInfo(), false, true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.resetPanels();
|
this.resetPanels();
|
||||||
this.refreshCurrentPage();
|
this.refreshCurrentPage();
|
||||||
},
|
},
|
||||||
|
@ -54,6 +54,7 @@ $tagEditor_lineHeight: 27px;
|
|||||||
|
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
padding-left: 1px;
|
padding-left: 1px;
|
||||||
|
padding-right: 30px;
|
||||||
line-height: $tagEditor_lineHeight;
|
line-height: $tagEditor_lineHeight;
|
||||||
|
|
||||||
/* boxed style test */
|
/* boxed style test */
|
||||||
@ -80,10 +81,14 @@ $tagEditor_lineHeight: 27px;
|
|||||||
@include userSelectNone();
|
@include userSelectNone();
|
||||||
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
line-height: 22px;
|
/*line-height: 22px;*/
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
/*color:white;*/
|
/*color:white;*/
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
margin-left: 5px;
|
||||||
|
line-height: 31px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: rgb(155, 0, 0);
|
color: rgb(155, 0, 0);
|
||||||
};
|
};
|
||||||
|
@ -411,6 +411,11 @@ $cardViewBasePadding: 10px;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: underline;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachmentList {
|
.attachmentList {
|
||||||
@ -488,6 +493,7 @@ $cardViewBasePadding: 10px;
|
|||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
font-size: 20pt;
|
font-size: 20pt;
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
|
margin-top:1px;
|
||||||
|
|
||||||
&.cancel, &.remove {
|
&.cancel, &.remove {
|
||||||
@include icon-font();
|
@include icon-font();
|
||||||
@ -505,7 +511,7 @@ $cardViewBasePadding: 10px;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.progress {
|
.progress {
|
||||||
width: 30px;
|
width: 50px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
.radialProgressIndicator {
|
.radialProgressIndicator {
|
||||||
@ -665,6 +671,7 @@ $cardViewBasePadding: 10px;
|
|||||||
|
|
||||||
.tagLabel {
|
.tagLabel {
|
||||||
width: calc(100% - 30px);
|
width: calc(100% - 30px);
|
||||||
|
width: 100%;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user