mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-24 01:54:02 +02:00
add conference field
This commit is contained in:
@@ -83,6 +83,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div ng-show="repoUrl">
|
<div ng-show="repoUrl">
|
||||||
|
<!-- Branch -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="branch">Branch</label>
|
<label for="branch">Branch</label>
|
||||||
<div class="input-group mb-3">
|
<div class="input-group mb-3">
|
||||||
@@ -114,6 +115,7 @@
|
|||||||
>The branch to anonymize</small
|
>The branch to anonymize</small
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Commit -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="commit">Commit</label>
|
<label for="commit">Commit</label>
|
||||||
<input
|
<input
|
||||||
@@ -126,7 +128,7 @@
|
|||||||
>The commit to anonymize</small
|
>The commit to anonymize</small
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Repo ID -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="repoId">Anonymize repository id</label>
|
<label for="repoId">Anonymize repository id</label>
|
||||||
<input
|
<input
|
||||||
@@ -155,7 +157,7 @@
|
|||||||
{{repoId}} is already used
|
{{repoId}} is already used
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Terms -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="terms">Terms to anonymize</label>
|
<label for="terms">Terms to anonymize</label>
|
||||||
<textarea
|
<textarea
|
||||||
@@ -176,6 +178,19 @@
|
|||||||
Terms are in an invalid format
|
Terms are in an invalid format
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Conference -->
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="conference">Conference</label>
|
||||||
|
<input
|
||||||
|
class="form-control"
|
||||||
|
id="conference"
|
||||||
|
name="conference"
|
||||||
|
ng-model="conference"
|
||||||
|
/>
|
||||||
|
<small class="form-text text-muted"
|
||||||
|
>In which conference the paper has been submitted.</small
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="accordion mb-3" id="options">
|
<div class="accordion mb-3" id="options">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
@@ -299,7 +314,7 @@
|
|||||||
>Github page</label
|
>Github page</label
|
||||||
>
|
>
|
||||||
<small id="termsHelp" class="form-text text-muted"
|
<small id="termsHelp" class="form-text text-muted"
|
||||||
>Enable anonymized Github pages. It will be available
|
>Enable anonymized Github pages. It currently only suported for Github pages that are defined in the same branch. It will be available
|
||||||
at https://anonymous.4open.science/w/{{repoId}}</small
|
at https://anonymous.4open.science/w/{{repoId}}</small
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -247,6 +247,7 @@ angular
|
|||||||
$scope.terms = res.data.terms.join("\n");
|
$scope.terms = res.data.terms.join("\n");
|
||||||
$scope.branch = res.data.branch;
|
$scope.branch = res.data.branch;
|
||||||
$scope.options = res.data.options;
|
$scope.options = res.data.options;
|
||||||
|
$scope.conference = res.data.conference;
|
||||||
$scope.options.expirationDate = new Date(
|
$scope.options.expirationDate = new Date(
|
||||||
res.data.options.expirationDate
|
res.data.options.expirationDate
|
||||||
);
|
);
|
||||||
@@ -457,6 +458,7 @@ angular
|
|||||||
options: $scope.options,
|
options: $scope.options,
|
||||||
branch: $scope.branch,
|
branch: $scope.branch,
|
||||||
commit: $scope.commit,
|
commit: $scope.commit,
|
||||||
|
conference: $scope.conference,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
function displayErrorMessage(message) {
|
function displayErrorMessage(message) {
|
||||||
|
|||||||
@@ -289,6 +289,7 @@ router.post("/", async (req, res) => {
|
|||||||
owner: req.user.profile.username,
|
owner: req.user.profile.username,
|
||||||
token: req.user.accessToken,
|
token: req.user.accessToken,
|
||||||
branch: repoConfig.branch,
|
branch: repoConfig.branch,
|
||||||
|
conference: repoConfig.conference,
|
||||||
commit: repoConfig.commit
|
commit: repoConfig.commit
|
||||||
? repoConfig.commit
|
? repoConfig.commit
|
||||||
: details.branches[repoConfig.branch].commit.sha,
|
: details.branches[repoConfig.branch].commit.sha,
|
||||||
|
|||||||
Reference in New Issue
Block a user