generator: Can perform synchronous generation
This commit is contained in:
parent
ec98e521dc
commit
1769938205
13 changed files with 214 additions and 81 deletions
|
|
@ -31,8 +31,6 @@
|
|||
</h2>
|
||||
</div>
|
||||
<div class="card-body pb-1">
|
||||
<input type="hidden" class="form-control form-control-sm" id="lastRegeneration" ng-model="config.generation">
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="startTime" class="col-sm-3 col-form-label col-form-label-sm" ng-class="{'text-primary font-weight-bold': config.start != dist_config.start}">Début du challenge</label>
|
||||
<div class="col-sm-9">
|
||||
|
|
@ -382,7 +380,13 @@
|
|||
<div class="col-3 pt-2 d-flex flex-column justify-content-between">
|
||||
<div>
|
||||
<div class="d-flex flex-column">
|
||||
<button ng-click="regenerate()" class="btn btn-info my-1" type="button"><span class="glyphicon glyphicon-share" aria-hidden="true"></span> Regénérer les fichiers statiques</button>
|
||||
<button ng-click="regenerateStaticFiles()" class="btn btn-info my-1" type="button" ng-disabled="staticRegenerationInProgress">
|
||||
<span class="glyphicon glyphicon-share" aria-hidden="true" ng-show="!staticRegenerationInProgress"></span>
|
||||
<div class="spinner-border spinner-border-sm" role="status" ng-show="staticRegenerationInProgress">
|
||||
<span class="sr-only">Loading...</span>
|
||||
</div>
|
||||
Regénérer les fichiers statiques
|
||||
</button>
|
||||
<button ng-if="settings.wip" ng-click="switchToProd()" class="btn btn-danger my-1" type="button"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span> Activer le mode challenge</button>
|
||||
</div>
|
||||
<hr>
|
||||
|
|
|
|||
Reference in a new issue