mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-06-04 22:58:04 +02:00
feat(#97): display when the repo has been anonymized
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user