diff --git a/public/css/main.css b/public/css/main.css index 695065f..5ad75f0 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -134,7 +134,10 @@ body { padding: 15px; margin-top: 20px; } -.certificate-create { +.invite-create { + float: right; } + +.certificate-create, .invite-create button { font-size: 16px; font-weight: normal; background: #53257e; @@ -142,49 +145,72 @@ body { padding: 5px; float: right; text-decoration: none; - cursor: pointer; } + cursor: pointer; + font-family: 'Karla', sans-serif; } -.panel-content > h1 { +.panel-content > h1, +.panel-content > .title > h1 { margin: 0 0 25px; } -.panel-content > h1 + .undertone { +.panel-content > h1 + .undertone, +.panel-content > .title > h1 + .undertone { margin-top: -25px; color: #999999; margin-bottom: 25px; } -.certificate-list { +.certificate-list, .invites { margin: 0; list-style: none; padding: 0; } - .certificate-list li { + .certificate-list li, .invites li { border-left: 3px #e3b2a6 solid; padding-left: 5px; margin-bottom: 10px; position: relative; } - .certificate-list li .text .expiry { + .certificate-list li .text .expiry, .invites li .text .expiry { font-size: 14px; color: #999999; } - .certificate-list li .actions { + .certificate-list li .revoke-q, .invites li .revoke-q { + display: none; } + .certificate-list li .actions, .certificate-list li .revoke-q, .invites li .actions, .invites li .revoke-q { position: absolute; right: 0; bottom: 0; } - .certificate-list li .actions span { + .certificate-list li .actions span, .certificate-list li .revoke-q span, .invites li .actions span, .invites li .revoke-q span { transition: .2s; cursor: pointer; padding: 5px; float: left; display: block; } - .certificate-list li .actions span a { + .certificate-list li .actions span a, .certificate-list li .revoke-q span a, .invites li .actions span a, .invites li .revoke-q span a { color: black; text-decoration: none; display: block; margin: -5px; padding: 5px; } - .certificate-list li .actions .certificate-delete:hover { + .certificate-list li .actions .certificate-delete:hover, + .certificate-list li .actions .yes:hover, .certificate-list li .revoke-q .certificate-delete:hover, + .certificate-list li .revoke-q .yes:hover, .invites li .actions .certificate-delete:hover, + .invites li .actions .yes:hover, .invites li .revoke-q .certificate-delete:hover, + .invites li .revoke-q .yes:hover { background: #dc6a6a; } .certificate-list li .actions .certificate-download:hover, - .certificate-list li .actions .certificate-download-key:hover { + .certificate-list li .actions .certificate-download-key:hover, + .certificate-list li .actions .no:hover, + .certificate-list li .actions .copy:hover, .certificate-list li .revoke-q .certificate-download:hover, + .certificate-list li .revoke-q .certificate-download-key:hover, + .certificate-list li .revoke-q .no:hover, + .certificate-list li .revoke-q .copy:hover, .invites li .actions .certificate-download:hover, + .invites li .actions .certificate-download-key:hover, + .invites li .actions .no:hover, + .invites li .actions .copy:hover, .invites li .revoke-q .certificate-download:hover, + .invites li .revoke-q .certificate-download-key:hover, + .invites li .revoke-q .no:hover, + .invites li .revoke-q .copy:hover { background: #aca4bc; } + .certificate-list li .actions .no, .certificate-list li .revoke-q .no, .invites li .actions .no, .invites li .revoke-q .no { + width: 65px; + text-align: center; } ul.topnav { list-style-type: none; diff --git a/public/css/main.css.map b/public/css/main.css.map index 2a6d20b..3c5fc96 100644 --- a/public/css/main.css.map +++ b/public/css/main.css.map @@ -1,6 +1,6 @@ { "version": 3, -"mappings": "AAAA;gFACgF;AAEhF;;;;GAIG;ACPH;;GAEG;AAcH;;GAEG;AClBH;;GAEG;AFqBK,kCAAuB;AACvB,iCAAsB;AACtB,yCAA8B;AErBtC,IAAK;EACH,gBAAgB,EAAE,OAAO;;AAG3B,cAAe;EACb,OAAO,EAAE,YAAY;EACrB,OAAO,EAAE,IAAI;EACb,sBAAsB,EAAE,MAAM;EAC9B,cAAc,EAAE,MAAM;;AAGxB,6DAAU;EACR,OAAO,EAAE,IAAI;EACb,OAAO,EAAE,YAAY;EACrB,eAAe,EAAE,MAAM;EACvB,WAAW,EAAE,MAAM;;AAGrB;;GAEG;AAEH,WAAY;EAEV,UAAU,EAAE,iCAAiC;EAC7C,UAAU,EAAE,KAAK;EACjB,cAAc,EAAE,MAAM;EACtB,sBAAsB,EAAE,MAAM;;AAGhC;;GAEG;AAEH,UAAW;EAET,UAAU,EAAE,iCAAiC;EAC7C,cAAc,EAAE,GAAG;EACnB,sBAAsB,EAAE,GAAG;EAC3B,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AW,EAAE,OAAO;EACpB,cAAc,EAAE,SAAS;;AAG3B,eAAgB;EAEd,SAAS,EAAE,KAAK;;AAGlB,eAAgB;EAEd,SAAS,EAAE,KAAK;EP7FhB,0BAAoC;IO2FtC,eAAgB;MAIZ,SAAS,EAAE,GAAG;MACd,MAAM,EAAE,IAAI;;AAIhB;;GAEG;AAEF,gBAAiB;EAChB,WAAW,EAAE,mBAAmB;EAChC,SAAS,EAAE,GAAG;EACd,cAAc,EAAE,SAAS;EACzB,KAAK,EAAE,OAAO;EPvHd,WAAW,EAFC,uOAAmD;;AQVjE,QAAS;EACL,QAAQ,EAAE,QAAQ;EAClB,OAAO,EAAE,YAAY;EACrB,aAAa,EAAE,iBAAiB;;AAGpC,qBAAsB;EAClB,UAAU,EAAE,MAAM;EAClB,KAAK,EAAE,KAAK;EACZ,gBAAgB,EAAE,KAAK;EACvB,KAAK,EAAE,KAAK;EACZ,UAAU,EAAE,IAAI;EAChB,aAAa,EAAE,GAAG;EAClB,OAAO,EAAE,IAAI;EACb,QAAQ,EAAE,QAAQ;EAClB,OAAO,EAAE,CAAC;EACV,MAAM,EAAE,IAAI;EACZ,IAAI,EAAE,GAAG;EACT,WAAW,EAAE,KAAK;EAClB,SAAS,EAAE,KAAK;EAChB,WAAW,EAAE,KAAK;;AAGtB,4BAA6B;EACzB,OAAO,EAAE,EAAE;EACX,QAAQ,EAAE,QAAQ;EAClB,GAAG,EAAE,IAAI;EACT,IAAI,EAAE,GAAG;EACT,WAAW,EAAE,IAAI;EACjB,YAAY,EAAE,GAAG;EACjB,YAAY,EAAE,KAAK;EACnB,YAAY,EAAE,yCAAyC;;AAG3D,2BAA4B;EACxB,UAAU,EAAE,OAAO;;ACnCvB,WAAY;EACV,OAAO,EAAE,IAAI;EACb,SAAS,EAAE,IAAI;EACf,KAAK,EAAE,KAAK", "sources": ["main.scss","modules/_modules.scss","partials/_base.scss","partials/_navigation.sass","partials/_messages.scss","partials/_menus.scss","partials/_forms.sass","partials/_fonts.scss","partials/_typography.scss","partials/_tooltips.scss","pages/certificates/new.scss"], "names": [], "file": "main.css" diff --git a/public/css/partials/_base.scss b/public/css/partials/_base.scss index ef4636c..040b796 100644 --- a/public/css/partials/_base.scss +++ b/public/css/partials/_base.scss @@ -88,16 +88,18 @@ body { * Third section of the main page, containing the link to the Github page. */ - .footer-page { +.footer-page { @extend .flexpage; + flex: 1; background-color: #e2f2f0; flex-direction: column; -webkit-flex-direction: column; min-height: 20vh; + @include break-small { - height: 100%; - } + height: 100%; + } } /** @@ -106,10 +108,11 @@ body { .login-page { @extend .flexpage; + background: linear-gradient(#070a15, #252b46); flex-direction: column; -webkit-flex-direction: column; - } +} .login-page-form { background-color: #fff; @@ -145,7 +148,11 @@ body { margin-top: 20px; } -.certificate-create { +.invite-create { + float:right; +} + +.certificate-create, .invite-create button { font-size: 16px; font-weight: normal; background: hsl(271, 55%, 32%); @@ -154,19 +161,22 @@ body { float: right; text-decoration:none; cursor: pointer; + font-family: 'Karla', sans-serif; } -.panel-content > h1 { +.panel-content > h1, +.panel-content > .title > h1 { margin: 0 0 25px; } -.panel-content > h1 + .undertone { +.panel-content > h1 + .undertone, +.panel-content > .title > h1 + .undertone { margin-top: -25px; color: #999999; margin-bottom: 25px; } -.certificate-list { +.certificate-list, .invites { margin: 0; list-style: none; padding: 0; @@ -184,7 +194,11 @@ body { } } - .actions { + .revoke-q { + display: none; + } + + .actions, .revoke-q { position: absolute; right: 0; bottom: 0; @@ -205,13 +219,25 @@ body { } } - .certificate-delete:hover { - background: hsl(0, 62%, 64%); + .certificate-delete, + .yes { + &:hover { + background: hsl(0, 62%, 64%); + } + } + + .certificate-download, + .certificate-download-key, + .no, + .copy { + &:hover { + background: #aca4bc; + } } - .certificate-download:hover, - .certificate-download-key:hover { - background: #aca4bc; + .no { + width: 65px; + text-align: center; } } } diff --git a/public/js/pages/certificates.js b/public/js/pages/certificates.js index 90b1d95..d0bfbfe 100644 --- a/public/js/pages/certificates.js +++ b/public/js/pages/certificates.js @@ -1,5 +1,32 @@ $(function () { + var errorDiv = $('
').addClass('error-message'); + + function error(msg) { + $('.title').after(errorDiv.text(msg)); + } + $('.actions .certificate-delete').click(function () { - $(this).parents('li').first().find('.certificate-revoke').addClass('show') + $(this).parents('.actions').hide().parents('li').first().find('.revoke-q').show(); + }); + + $('.revoke-q .no').click(function () { + $(this).parents('.revoke-q').hide().parents('li').first().find('.actions').show(); + }); + + $('.revoke-q .yes').click(function () { + var _this=this; + + $.post('/panel/certificates/revoke', { + name: $(_this).data('name') + }, function (data) { + if (data.success) { + $(_this) + .parents('li') + .first() + .remove(); + } else { + error(data.error); + } + }); }); }); diff --git a/public/js/pages/certificates/new.js b/public/js/pages/certificates/new.js index f584bc8..50b65d4 100644 --- a/public/js/pages/certificates/new.js +++ b/public/js/pages/certificates/new.js @@ -58,6 +58,7 @@ $(function () { zip.file(commonName + '.key', keyPem); for(var file in data.zip) { + if (!data.zip.hasOwnProperty(file)) continue; zip.file(file, data.zip[file]); } diff --git a/public/js/invites.js b/public/js/pages/invites.js similarity index 65% rename from public/js/invites.js rename to public/js/pages/invites.js index b5ecf6b..87ae14a 100644 --- a/public/js/invites.js +++ b/public/js/pages/invites.js @@ -2,20 +2,20 @@ $(function () { var clipboard = new Clipboard('.copy'); clipboard.on('success', function(e) { - $(e.trigger).text('Copied!') + $(e.trigger).text('copied!'); setTimeout( function () { - $(e.trigger).text('Copy'); + $(e.trigger).text('copy'); }, 2000 ); }); clipboard.on('error', function(e) { - $(e.trigger).text('Couldn\t copy :(') + $(e.trigger).text('couldn\t copy :('); setTimeout( function () { - $(e.trigger).text('Copy'); + $(e.trigger).text('copy'); }, 2000 ); diff --git a/src/Handler/Panel/Certificates/Revoke.php b/src/Handler/Panel/Certificates/Revoke.php index 894d787..76b1d75 100644 --- a/src/Handler/Panel/Certificates/Revoke.php +++ b/src/Handler/Panel/Certificates/Revoke.php @@ -24,7 +24,6 @@ class Revoke extends Session { $user = $this->getUser(); $name = $this->post('name'); - $password = $this->post('password'); $cert = CertificateQuery::create() ->filterByName($name) @@ -38,13 +37,6 @@ class Revoke extends Session ]); } - if (!password_verify($password, $user->getPassword())) { - return $this->json([ - 'success' => false, - 'error' => 'Invalid password' - ]); - } - /** * @var CA $ca */ diff --git a/src/Handler/Panel/Invites.php b/src/Handler/Panel/Invites.php index 486f6e3..c53d4b9 100644 --- a/src/Handler/Panel/Invites.php +++ b/src/Handler/Panel/Invites.php @@ -4,11 +4,11 @@ namespace Eater\Glim\Handler\Panel; use Aura\Session\Segment; +use Eater\Glim\Handler\Panel; use Eater\Glim\Handler\Session; -class Invites extends Session +class Invites extends Panel { - protected $shouldHaveUser = true; public function handle() { diff --git a/views/panel/certificates.html.twig b/views/panel/certificates.html.twig index 7337ba6..af0fc6d 100644 --- a/views/panel/certificates.html.twig +++ b/views/panel/certificates.html.twig @@ -4,8 +4,12 @@ {% if user.getActiveCertificates()|length < user.getMaxKeys() %} create {% endif %} -

Certificates

-
You used {{ user.getActiveCertificates()|length }} of your {{ user.getMaxKeys() }} certificates
+ +
+

Certificates

+
You used {{ user.getActiveCertificates()|length }} of your {{ user.getMaxKeys() }} certificates
+
+
+
+ Are you sure you want to revoke this certificate? + + yes + + + no + +
{% else %}
  • You don't have any certificates :( why not create one?
  • {% endfor %} - + {% endblock %} \ No newline at end of file diff --git a/views/panel/invites.html.twig b/views/panel/invites.html.twig index 5213e35..725fca3 100644 --- a/views/panel/invites.html.twig +++ b/views/panel/invites.html.twig @@ -1,55 +1,40 @@ -{% extends "base_bootstrap.html.twig" %} +{% extends "panel.html.twig" %} {% block head %} {{ parent() }} - + {% endblock %} -{% block content %} -
    -
    -

    Invites You used {{ used_invites }} from your {{ max_invites == -1 ? 'infinite' : max_invites }} invites

    -
    - {% if error %} -
    - -
    - {% endif %} -
    - - - - - - - - - {% for invite in invites %} - - - - - {% else %} - - - - {% endfor %} - -
    Invite - {% if max_invites > used_invites or max_invites == -1 %} -
    - -
    - {% endif %} -
    - {{ invite.getInvite() }} - - -
    You don't have any invites :(
    -
    +{% block panel_contents %} + {% if user.getActiveCertificates()|length < user.getMaxKeys() %} +
    + +
    + {% endif %} + +
    +

    Invites

    +
    You used {{ used_invites }} from your {{ max_invites == -1 ? 'infinite' : max_invites }} invites
    + + {% endblock %}