mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-29 12:11:26 +02:00
improve progress bar
This commit is contained in:
@@ -582,13 +582,13 @@ angular
|
|||||||
if ($scope.repo.status == "ready") {
|
if ($scope.repo.status == "ready") {
|
||||||
$scope.progress = 100;
|
$scope.progress = 100;
|
||||||
} else if ($scope.repo.status == "queue") {
|
} else if ($scope.repo.status == "queue") {
|
||||||
$scope.progress = 0;
|
$scope.progress = 10;
|
||||||
} else if ($scope.repo.status == "downloaded") {
|
} else if ($scope.repo.status == "downloaded") {
|
||||||
$scope.progress = 50;
|
$scope.progress = 50;
|
||||||
} else if ($scope.repo.status == "downloading") {
|
} else if ($scope.repo.status == "downloading") {
|
||||||
$scope.progress = 25;
|
$scope.progress = 25;
|
||||||
} else if ($scope.repo.status == "preparing") {
|
} else if ($scope.repo.status == "preparing") {
|
||||||
$scope.progress = 10;
|
$scope.progress = 25;
|
||||||
} else if ($scope.repo.status == "anonymizing") {
|
} else if ($scope.repo.status == "anonymizing") {
|
||||||
$scope.progress = 75;
|
$scope.progress = 75;
|
||||||
}
|
}
|
||||||
@@ -1008,6 +1008,7 @@ angular
|
|||||||
txt: "text",
|
txt: "text",
|
||||||
py: "python",
|
py: "python",
|
||||||
js: "javascript",
|
js: "javascript",
|
||||||
|
ts: "typescript",
|
||||||
};
|
};
|
||||||
const textFiles = ["license", "txt"];
|
const textFiles = ["license", "txt"];
|
||||||
const imageFiles = ["png", "jpg", "jpeg", "gif"];
|
const imageFiles = ["png", "jpg", "jpeg", "gif"];
|
||||||
|
|||||||
Reference in New Issue
Block a user