feat(#97): display when the repo has been anonymized

This commit is contained in:
tdurieux
2022-10-04 14:22:25 +02:00
parent c90710fb6f
commit 3e2644438e
3 changed files with 11 additions and 3 deletions
+5 -2
View File
@@ -255,10 +255,12 @@ a:hover {
} }
.leftCol { .leftCol {
display: flex;
position: relative; position: relative;
flex: 0 0 auto; flex: 0 0 auto;
width: 100%; width: 100%;
z-index: 9; z-index: 9;
flex-direction: column;
} }
.leftCol, .leftCol,
@@ -326,9 +328,10 @@ a:hover {
font-family: 'Font Awesome 5 Free'; font-family: 'Font Awesome 5 Free';
position: absolute; position: absolute;
left: 0px; left: 0px;
width: 7px; width: 18px;
height: 21px;
overflow: hidden;
padding: 1px; padding: 1px;
padding-left: 1px;
color: var(--primary-bg); color: var(--primary-bg);
} }
+5
View File
@@ -2,6 +2,11 @@
<div class="row h-100"> <div class="row h-100">
<div class="leftCol shadow p-1 overflow-auto" ng-show="files"> <div class="leftCol shadow p-1 overflow-auto" ng-show="files">
<tree class="files" file="files"></tree> <tree class="files" file="files"></tree>
<div class="bottom column">
<div class="last-update">
Last Update: {{options.lastUpdateDate|date}}
</div>
</div>
</div> </div>
<div class="col-md h-100 overflow-auto p-0 d-flex flex-column"> <div class="col-md h-100 overflow-auto p-0 d-flex flex-column">
<div class="d-flex align-content-between status-bar shadow"> <div class="d-flex align-content-between status-bar shadow">
+1 -1
View File
@@ -139,7 +139,6 @@ router.get(
!!config.ENABLE_DOWNLOAD && !!config.ENABLE_DOWNLOAD &&
repo.source.type == "GitHubDownload"; repo.source.type == "GitHubDownload";
} }
console.log(repo.size.storage, repo.source.type)
if ( if (
repo.size.storage < config.FREE_DOWNLOAD_REPO_SIZE * 1024 && repo.size.storage < config.FREE_DOWNLOAD_REPO_SIZE * 1024 &&
repo.source.type == "GitHubDownload" repo.source.type == "GitHubDownload"
@@ -151,6 +150,7 @@ router.get(
res.json({ res.json({
url: redirectURL, url: redirectURL,
download, download,
lastUpdateDate: repo.model.statusDate,
}); });
} catch (error) { } catch (error) {
handleError(error, res, req); handleError(error, res, req);