From 6b568905d31ec28cf5f8afcc6132ab97c428cb99 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Fri, 20 Aug 2021 16:10:39 +0200 Subject: [PATCH] add: new version of the dashboard --- public/css/style.css | 7 +- public/partials/dashboard.htm | 553 +++++++++++++++++++--------------- public/partials/header.htm | 2 +- public/script/app.js | 67 ++-- 4 files changed, 367 insertions(+), 262 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index be066f6..6dc5835 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -25,7 +25,7 @@ color: var(--color); } body { - --canvas-bg-color: #dddddd; + --canvas-bg-color: #ffffff; --sidebar-bg-color: #ffffff; --header-bg-color: #4a507b; --header-color: #ffffff; @@ -192,6 +192,10 @@ a:hover { min-height: 100%; } +.badge { + font-size: 45%; +} + .dropdown-item:focus, .dropdown-item:hover { background-color: var(--hover-bg-color); @@ -207,6 +211,7 @@ a:hover { border: 1px solid var(--border-color); background: transparent; border-radius: 4px; + white-space: nowrap; } .btn:hover, diff --git a/public/partials/dashboard.htm b/public/partials/dashboard.htm index fda0c1b..382cbb1 100644 --- a/public/partials/dashboard.htm +++ b/public/partials/dashboard.htm @@ -1,250 +1,323 @@ -
-
-
-
-
-
- - Anonymize - +
+
+
+
+
+
+
+ +
+ +
+ + + +
- +
+
    +
  • +
    +
    +

    + + +

    + + + + + + + + + + + @ + + anonymized + {{repo.anonymizeDate | humanTime}} + +
    +
    + - Claim repository - + + {{repo.options.terms.length | number}} + + + {{repo.size | + humanFileSize}} + + + {{repo.pageView | number}} + + + + Last view: {{repo.lastView | humanTime}} + + + Expire: {{repo.options.expirationDate | humanTime}}
    -
- -

Filters

-
- -
-
-
- -
- -
-
Status
-
- - -
-
- - -
-
- - -
-
Quota
- {{quota.used | humanFileSize}}/{{quota.total| humanFileSize}} -
-
-
-
- - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - -
#Repository IDAnonymized repositoryBranch - # Terms - Status - Expiration - - Anonymize date - - Size - - # Views - - Last view - Actions
- {{$index + 1}} - - {{repo.repoId}} - - {{repo.source.fullName}} - - {{repo.source.branch.name}} - - {{repo.options.terms.length}} - - {{repo.status | title}} - - {{repo.anonymizeDate | date}} - - {{repo.size | humanFileSize}} - - {{repo.pageView}} - - {{repo.lastView | date}} - - -
No Repository
+ Force update + + + + Enable + + + Remove + + + View Repo + + + View Page + +
+
-
-
+ +
diff --git a/public/partials/header.htm b/public/partials/header.htm index 35473d9..5134a59 100644 --- a/public/partials/header.htm +++ b/public/partials/header.htm @@ -47,7 +47,7 @@ target="_blank" href="https://github.com/tdurieux/anonymous_github/" data-offset="30" - >