Merge pull request #75 from gcsolaroli/master

More fixes for /delta
This commit is contained in:
Giulio Cesare Solaroli
2015-08-03 16:34:09 +02:00
12 changed files with 244 additions and 179 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3 -4
View File
@@ -1,12 +1,11 @@
<!--
@copyright@
-->
<html manifest="manifest.appcache"> <html manifest="manifest.appcache">
<head> <head>
<title>Clipperz - keep it to yourself</title> <title>Clipperz - keep it to yourself</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!--
@copyright@
-->
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" /> <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
<meta name="robots" content="noindex" /> <meta name="robots" content="noindex" />
<meta http-equiv="cleartype" content="on" /> <meta http-equiv="cleartype" content="on" />
@@ -80,6 +80,10 @@ Clipperz.PM.UI.Components.Panels.ExtraFeaturesPanelClass = React.createClass({
} }
}, },
lock: function () {
console.log("LOCK");
},
logout: function () { logout: function () {
MochiKit.Signal.signal(Clipperz.Signal.NotificationCenter, 'logout'); MochiKit.Signal.signal(Clipperz.Signal.NotificationCenter, 'logout');
}, },
@@ -275,8 +279,9 @@ Clipperz.PM.UI.Components.Panels.ExtraFeaturesPanelClass = React.createClass({
]), ]),
]) ])
]), ]),
React.DOM.li({'key':'logout', 'className':'link', 'onClick':this.logout}, [ React.DOM.li({'key':'logout', 'className':'lock-logout'}, [
React.DOM.h2({}, "Logout") // React.DOM.h2({'className':'lock', 'onClick':this.lock}, "Lock"),
React.DOM.h2({'className':'logout', 'onClick':this.logout}, "Logout"),
]) ])
]) ])
]), ]),
@@ -117,9 +117,13 @@ Clipperz.PM.UI.Components.SelectionsClass = React.createClass({
*/ */
React.DOM.div({'className':'search'}, [ React.DOM.div({'className':'search'}, [
React.DOM.form({'className':'searchForm'}, [ React.DOM.form({'className':'searchForm'}, [
React.DOM.div({}, [ React.DOM.div({'className':'form'}, [
React.DOM.input({'type':'text', 'id':'searchValue', 'onFocus':this.handleSearchChange, 'onChange':this.handleSearchChange, 'onKeyDown':this.handleKeyDown, 'name':'search', 'value':this.props['searchTerm'] /*, 'placeholder':"search" */ }), React.DOM.div({'className':'input'}, [
React.DOM.label({'htmlFor':'searchValue'}, 'search'), React.DOM.input({'type':'text', 'id':'searchValue', 'onFocus':this.handleSearchChange, 'onChange':this.handleSearchChange, 'onKeyDown':this.handleKeyDown, 'name':'search', 'value':this.props['searchTerm'] /*, 'placeholder':"search" */ }),
]),
React.DOM.div({'className':'label'}, [
React.DOM.label({'htmlFor':'searchValue'}, 'search'),
]),
React.DOM.div({'className':'searchClear', 'onClick':this.clearSearch}, [ React.DOM.div({'className':'searchClear', 'onClick':this.clearSearch}, [
React.DOM.span({'className':'count'}, selectedCardCount), React.DOM.span({'className':'count'}, selectedCardCount),
React.DOM.span({'className':'clear'}, "clear") React.DOM.span({'className':'clear'}, "clear")
@@ -1,6 +1,6 @@
@clipperz.license@ @clipperz.license@
==> This application is build using also the following libraries ==> This application is build using also the following libraries
# MochiKit (http://www.mochikit.com) # MochiKit (http://www.mochikit.com)
* Repository: @mochikit.repository@ (version: @mochikit.version@ - commit: @mochikit.commit@) * Repository: @mochikit.repository@ (version: @mochikit.version@ - commit: @mochikit.commit@)
@@ -62,5 +62,4 @@
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* License: http://opensource.org/licenses/BSD-3-Clause * License: http://opensource.org/licenses/BSD-3-Clause
=============================================================================== ===============================================================================
File diff suppressed because one or more lines are too long
+6 -3
View File
@@ -491,7 +491,7 @@ $cardViewBasePadding: 10px;
.fieldValue { .fieldValue {
font-size: 18pt; font-size: 18pt;
line-height: 1.2em; line-height: 1.2em;
// line-height: 1em; line-height: 28px;
// height: 1.3em; // height: 1.3em;
// outline: none; // outline: none;
@include user-select(text); @include user-select(text);
@@ -504,12 +504,15 @@ $cardViewBasePadding: 10px;
&.hidden { &.hidden {
font-family: clipperz-password; font-family: clipperz-password;
font-size: 23pt; font-size: 22pt;
line-height: 28px; line-height: 28px;
margin-top: -2px;
&.visible { &.visible {
font-family: "clipperz-font"; font-family: "clipperz-font";
font-size: 18pt; font-size: 18pt;
line-height: 28px;
margin-top: 0px;
} }
} }
} }
+61 -75
View File
@@ -65,88 +65,73 @@ refer to http://www.clipperz.com.
.search { .search {
form { form {
// padding:2px; div.form {
// position:relative;
// box-sizing:border-box;
// width:95%;
div {
@include flexbox(); @include flexbox();
@include flex-direction(row); @include flex-direction(row);
@include align-items(stretch);
input { div.label {
@include flex(auto); @include flex(none);
@include order(1); @include order(0);
font-family: "clipperz-font"; label {
font-size: 14pt; display: block;
color: white; @include icon-font();
background-color: black; font-weight: normal;
border: 0px; padding: 4px 8px 0px 8px;
border-bottom: 1px solid #333; font-size: 14pt;
outline: none; vertical-align: baseline;
margin-right: 10px;
// color: #999;
// padding: 0px 30px;
// margin: 0px 5px;
// width: 100%;
// box-sizing:border-box;
width: $selectionPanelWidth - $iconColumnWidth;
@include placeholder {
font-style: italic;
color: #ccc;
} }
} }
label { div.input {
@include flex(none); @include flex(1);
@include order(0); @include order(1);
@include icon-font(); overflow: hidden;
font-weight: normal; input {
padding-left: 8px; font-family: "clipperz-font";
padding-right: 8px; font-size: 14pt;
font-size: 14pt; color: white;
vertical-align: baseline; background-color: black;
border: 0px;
margin-top: 10px; border-bottom: 1px solid #333;
outline: none;
display: block;
width: 160px;
// font-size: 18pt; @include placeholder {
// padding-left: $spacing; font-style: italic;
// padding-right:5px; color: #ccc;
// position:absolute; }
// top:9px; }
// left:9px;
// color: #666;
} }
.searchClear { .searchClear {
@include flex(none); @include flex(none);
@include order(2); @include order(2);
@include align-self(flex-end); @include align-self(flex-end);
cursor: pointer; padding-bottom: 4px;
margin: 12px 12px 6px 0px;
.count { span {
margin-right: 0px;
display: none;
}
.clear {
@include icon-font();
display: none;
// @include border-radius(50%);
@include border-radius(4px);
color: white;
background-color: gray;
// right:9px;
// top:9px;
// padding: 5px;
padding: 3px 5px; padding: 3px 5px;
font-size: 10pt; cursor: pointer;
text-align: right;
display: block;
&.count {
display: none;
}
&.clear {
@include icon-font();
display: none;
@include border-radius(4px);
color: white;
background-color: gray;
font-size: 10pt;
margin-right: 12px;
}
} }
&:hover { &:hover {
@@ -163,7 +148,6 @@ refer to http://www.clipperz.com.
} }
.searchResultInfo { .searchResultInfo {
// color: #999;
font-size: 10pt; font-size: 10pt;
padding: 2px 6px; padding: 2px 6px;
display: none; display: none;
@@ -291,17 +275,19 @@ $selectionColor: $clipperz-orange;
// } // }
form { form {
label { div.form {
color: $selectionColor; label {
} color: $selectionColor;
.searchClear {
.count {
display: block;
} }
.searchClear {
span.count {
display: block;
}
&:hover { &:hover {
.count { .count {
display: none; display: none;
}
} }
} }
} }
+34 -3
View File
@@ -65,9 +65,10 @@ refer to http://www.clipperz.com.
// padding-left: 10px; // padding-left: 10px;
} }
// &:last-child { &:last-child {
// border-bottom: 1px solid white; // border-bottom: 1px solid white;
// } border-bottom: 0px;
}
&.closed > ul { &.closed > ul {
display: none; display: none;
@@ -167,7 +168,6 @@ refer to http://www.clipperz.com.
} }
&.link { &.link {
h2 { h2 {
&:after { &:after {
@include icon-font(); @include icon-font();
@@ -177,6 +177,37 @@ refer to http://www.clipperz.com.
} }
}; };
} }
&.lock-logout {
h2 {
padding: 10px;
font-size: 16pt;
cursor: pointer;
&:after {
@include icon-font();
color: gray;
padding-left: 10px;
}
&:hover {
&:after {
color: white;
}
}
&.lock {
&:after {
content: "lock";
}
}
&.logout {
&:after {
content: "logout";
}
}
}
}
} }
} }
} }
+2 -1
View File
@@ -1,3 +1,4 @@
GNU AFFERO GENERAL PUBLIC LICENSE GNU AFFERO GENERAL PUBLIC LICENSE
Copyright 2008-2015 Clipperz Srl Copyright 2008-2015 Clipperz Srl
@@ -29,4 +30,4 @@ For further information about Clipperz: https://clipperz.is
this application refer to this page: this application refer to this page:
<https://clipperz.is/security_privacy/security_code_review/> <https://clipperz.is/security_privacy/security_code_review/>
=============================================================================== ===============================================================================
+1 -1
View File
@@ -314,7 +314,7 @@ class FrontendBuilder(object):
if not self.processedFiles.has_key(processedFile): if not self.processedFiles.has_key(processedFile):
#self.log("assembling copyright header") #self.log("assembling copyright header")
copyrightValues = self.settings['copyright.values'] copyrightValues = self.settings['copyright.values']
license = self.loadFilesContent('../../properties', ['license.txt']) license = self.loadFilesContent('../../properties', ['license.AGPL.txt'])
result = self.loadFilesContent('properties', ['creditsAndCopyrights.txt']) result = self.loadFilesContent('properties', ['creditsAndCopyrights.txt'])
result = re.sub('@clipperz.license@', license, result) result = re.sub('@clipperz.license@', license, result)