From 3e2644438e2cb7fa656166b270aca2973f278351 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Tue, 4 Oct 2022 14:22:25 +0200 Subject: [PATCH] feat(#97): display when the repo has been anonymized --- public/css/style.css | 7 +++++-- public/partials/explorer.htm | 5 +++++ src/routes/repository-public.ts | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index c8cb23d..52d515e 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -255,10 +255,12 @@ a:hover { } .leftCol { + display: flex; position: relative; flex: 0 0 auto; width: 100%; z-index: 9; + flex-direction: column; } .leftCol, @@ -326,9 +328,10 @@ a:hover { font-family: 'Font Awesome 5 Free'; position: absolute; left: 0px; - width: 7px; + width: 18px; + height: 21px; + overflow: hidden; padding: 1px; - padding-left: 1px; color: var(--primary-bg); } diff --git a/public/partials/explorer.htm b/public/partials/explorer.htm index a99a319..5188ccc 100644 --- a/public/partials/explorer.htm +++ b/public/partials/explorer.htm @@ -2,6 +2,11 @@
+
+
+ Last Update: {{options.lastUpdateDate|date}} +
+
diff --git a/src/routes/repository-public.ts b/src/routes/repository-public.ts index cf26c12..519bd68 100644 --- a/src/routes/repository-public.ts +++ b/src/routes/repository-public.ts @@ -139,7 +139,6 @@ router.get( !!config.ENABLE_DOWNLOAD && repo.source.type == "GitHubDownload"; } - console.log(repo.size.storage, repo.source.type) if ( repo.size.storage < config.FREE_DOWNLOAD_REPO_SIZE * 1024 && repo.source.type == "GitHubDownload" @@ -151,6 +150,7 @@ router.get( res.json({ url: redirectURL, download, + lastUpdateDate: repo.model.statusDate, }); } catch (error) { handleError(error, res, req);