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

View File

@@ -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);
}

View File

@@ -2,6 +2,11 @@
<div class="row h-100">
<div class="leftCol shadow p-1 overflow-auto" ng-show="files">
<tree class="files" file="files"></tree>
<div class="bottom column">
<div class="last-update">
Last Update: {{options.lastUpdateDate|date}}
</div>
</div>
</div>
<div class="col-md h-100 overflow-auto p-0 d-flex flex-column">
<div class="d-flex align-content-between status-bar shadow">

View File

@@ -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);