mirror of
https://github.com/Luzifer/cloudkeys-go.git
synced 2024-11-09 14:40:05 +00:00
Generate bindata from assets
This commit is contained in:
parent
d256f5f0d4
commit
1cbfc45f29
3 changed files with 50 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
|||
// Generated by CoffeeScript 1.10.0
|
||||
// Generated by CoffeeScript 1.12.2
|
||||
(function() {
|
||||
var CloudKeys;
|
||||
|
||||
|
@ -17,6 +17,9 @@
|
|||
$('#newEntityLink').click(function() {
|
||||
return _this.showForm();
|
||||
});
|
||||
$('#editEncPWLink').click(function() {
|
||||
return _this.showEditEncPWForm();
|
||||
});
|
||||
$('#passwordRequest').addClass('hide');
|
||||
$('#search').keyup(function() {
|
||||
var that = this;
|
||||
|
@ -119,7 +122,7 @@
|
|||
};
|
||||
|
||||
CloudKeys.prototype.updateInformation = function(data) {
|
||||
var e, error;
|
||||
var e;
|
||||
this.version = data.version;
|
||||
if (data.data === "") {
|
||||
this.entities = [];
|
||||
|
@ -365,6 +368,39 @@
|
|||
return success;
|
||||
};
|
||||
|
||||
CloudKeys.prototype.showEditEncPWForm = function() {
|
||||
$('#editEncPWDialog input').val('');
|
||||
$('#editEncPWDialog .hide').removeClass('hide');
|
||||
$('#editEncPWDialog').modal({});
|
||||
return $('#editEncPWDialog .btn-primary').unbind('click').click((function(_this) {
|
||||
return function() {
|
||||
var confirmation, new_password;
|
||||
$('#editEncPWDialog .has-error').removeClass('has-error');
|
||||
confirmation = confirm('Do you really want to update your encryption password?');
|
||||
if (confirmation !== true) {
|
||||
return;
|
||||
}
|
||||
if ($('#editEncPW_current_password').val() !== _this.password) {
|
||||
$('#editEncPW_current_password').parent().addClass('has-error');
|
||||
return;
|
||||
}
|
||||
new_password = $('#editEncPW_password').val();
|
||||
if (new_password === void 0 || new_password === '') {
|
||||
$('#editEncPW_password').parent().addClass('has-error');
|
||||
return;
|
||||
}
|
||||
if (new_password !== $('#editEncPW_repeat_password').val()) {
|
||||
$('#editEncPW_password, #editEncPW_repeat_password').parent().addClass('has-error');
|
||||
return;
|
||||
}
|
||||
_this.password = new_password;
|
||||
_this.updateData(function() {
|
||||
return $('#formEncPWClose').click();
|
||||
});
|
||||
};
|
||||
})(this));
|
||||
};
|
||||
|
||||
return CloudKeys;
|
||||
|
||||
})();
|
||||
|
|
|
@ -1 +1 @@
|
|||
body{padding-top:70px}input{outline:0}.navbar a{cursor:pointer}.navbar a.active_account{font-weight:700}#importContainer{display:none}#importContainer #importer{border:1px solid #111;border-radius:5px;background-image:linear-gradient(to bottom,#666 0,#171717 100%);margin:20px 0;padding:20px 20px}#importContainer #importer textarea{border:0;border-radius:5px;display:block;font-size:11px;height:350px;margin:0 auto;padding:0;width:100%}#loader img{display:block;margin:0 auto}#searchbox{border:1px solid #111;border-radius:5px;background-image:linear-gradient(to bottom,#666 0,#171717 100%);margin:20px 0;padding:10px}#searchbox input{border:0;border-radius:5px;display:block;font-size:20px;height:40px;margin:0 auto;padding:0 20px;width:100%}#content #resultdescription{margin:15px 0}#content #resultdescription span{font-weight:700}#content ul#items{list-style:none;padding:0}#content ul#items li.active{background-color:#e5e3e9}#content ul#items li{cursor:pointer;padding:5px 20px}#content ul#items li span{font-size:70%;font-style:italic;padding:0 0 0 20px}#content ul#items li ul{display:none;list-style:none;padding-left:5px}#content ul#items li ul li.last{display:none}@media (min-width:768px){#content ul#items li ul li.last{border-bottom:0;display:block}}#content ul#items li ul li{border-bottom:1px dotted gray}#content ul#items li ul li br{clear:both}#content ul#items li ul li label{display:block;float:left;width:100px}#content ul#items li ul li input,#content ul#items li ul li textarea{background:0 0;border:0;float:left;font-size:11px;min-height:20px;outline:0;padding-left:0;width:300px}#content ul#items li ul li input.password{width:200px}#content ul#items li ul li div.clipboard{background:url(clipboard.png) no-repeat top left;display:inline-block;height:14px;width:14px}#content ul#items li ul li div.clipboard:active{background:url(clipboard_click.png) no-repeat top left}#content ul#items li ul li div.clipboard:hover{background:url(clipboard_hover.png) no-repeat top left}#content ul#items li ul li em{float:left;font-size:70%;width:100px}#content ul#items li ul li span.clippy{display:none}@media (min-width:992px){#content ul#items li ul li span.clippy{display:block;float:left;padding-left:0;width:20px}}#content ul#items li li.odd{background-color:transparent}#content ul#items li:hover{background-color:#e5e3e9}#content ul#items li.odd{background-color:#f6f6f6}
|
||||
body{padding-top:70px}input{outline:0}.navbar a{cursor:pointer}.navbar a.active_account{font-weight:bold}#importContainer{display:none}#importContainer #importer{border:1px solid #111111;border-radius:5px;background-image:linear-gradient(to bottom, #666666 0, #171717 100%);margin:20px 0;padding:20px 20px}#importContainer #importer textarea{border:0;border-radius:5px;display:block;font-size:11px;height:350px;margin:0 auto;padding:0;width:100%}#loader img{display:block;margin:0 auto}#searchbox{border:1px solid #111111;border-radius:5px;background-image:linear-gradient(to bottom, #666666 0, #171717 100%);margin:20px 0;padding:10px}#searchbox input{border:0;border-radius:5px;display:block;font-size:20px;height:40px;margin:0 auto;padding:0 20px;width:100%}#content #resultdescription{margin:15px 0}#content #resultdescription span{font-weight:bold}#content ul#items{list-style:none;padding:0}#content ul#items li.active{background-color:#e5e3e9}#content ul#items li{cursor:pointer;padding:5px 20px}#content ul#items li span{font-size:70%;font-style:italic;padding:0 0 0 20px}#content ul#items li ul{display:none;list-style:none;padding-left:5px}#content ul#items li ul li.last{display:none}@media (min-width:768px){#content ul#items li ul li.last{border-bottom:0;display:block}}#content ul#items li ul li{border-bottom:1px dotted gray}#content ul#items li ul li br{clear:both}#content ul#items li ul li label{display:block;float:left;width:100px}#content ul#items li ul li input,#content ul#items li ul li textarea{background:transparent;border:0;float:left;font-size:11px;min-height:20px;outline:0;padding-left:0;width:300px}#content ul#items li ul li input.password{width:200px}#content ul#items li ul li div.clipboard{background:url('clipboard.png') no-repeat top left;display:inline-block;height:14px;width:14px}#content ul#items li ul li div.clipboard:active{background:url('clipboard_click.png') no-repeat top left}#content ul#items li ul li div.clipboard:hover{background:url('clipboard_hover.png') no-repeat top left}#content ul#items li ul li em{float:left;font-size:70%;width:100px}#content ul#items li ul li span.clippy{display:none}@media (min-width:992px){#content ul#items li ul li span.clippy{display:block;float:left;padding-left:0;width:20px}}#content ul#items li li.odd{background-color:transparent}#content ul#items li:hover{background-color:#e5e3e9}#content ul#items li.odd{background-color:#f6f6f6}
|
22
bindata.go
22
bindata.go
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue