ui: Prepare publication
This commit is contained in:
parent
5ece912ec9
commit
b5065df4c3
@ -31,6 +31,9 @@ func declareExportRoutes(router *gin.RouterGroup) {
|
|||||||
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": err.Error()})
|
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": err.Error()})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
s.End = nil
|
||||||
|
s.NextChangeTime = nil
|
||||||
|
s.DelegatedQA = []string{}
|
||||||
|
|
||||||
teams, err := fic.ExportTeams(false)
|
teams, err := fic.ExportTeams(false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
{#each $themesStore["0"].exercices as exercice, index}
|
{#each $themesStore["0"].exercices as exercice, index}
|
||||||
<DropdownItem href="{$themesStore["0"].urlid}/{exercice.urlid}" active={$current_theme && $current_theme.id == 0 && $current_exercice && $current_exercice.id == exercice.id}>
|
<DropdownItem href="{$themesStore["0"].urlid}/{exercice.urlid}" active={$current_theme && $current_theme.id == 0 && $current_exercice && $current_exercice.id == exercice.id}>
|
||||||
{exercice.title}
|
{exercice.title}
|
||||||
{#if exercice.solved}
|
{#if $my && $my.id_team && exercice.solved}
|
||||||
<Badge color="success" pill>
|
<Badge color="success" pill>
|
||||||
<Icon name="check" />
|
<Icon name="check" />
|
||||||
</Badge>
|
</Badge>
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
document.body.style.backgroundColor = "";
|
document.body.style.backgroundColor = "";
|
||||||
|
|
||||||
let items = [];
|
let items = [];
|
||||||
$: {
|
function refresh_items() {
|
||||||
const tmpitems = [];
|
const tmpitems = [];
|
||||||
for (const th of $themes) {
|
for (const th of $themes) {
|
||||||
if (th.id == 0) continue;
|
if (th.id == 0) continue;
|
||||||
@ -43,6 +43,8 @@
|
|||||||
// Only apply after start
|
// Only apply after start
|
||||||
if (!($time.startIn && j < nb_ex_max && j < $settings.unlockedStandaloneExercices))
|
if (!($time.startIn && j < nb_ex_max && j < $settings.unlockedStandaloneExercices))
|
||||||
continue;
|
continue;
|
||||||
|
} else if ($my && !$my.team_id && j >= nb_ex_max) {
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
tmpitems.splice(i, 0, {id: tmpitems.length, theme: $themesStore["0"], exercice: $themesStore["0"].exercices[j]});
|
tmpitems.splice(i, 0, {id: tmpitems.length, theme: $themesStore["0"], exercice: $themesStore["0"].exercices[j]});
|
||||||
@ -65,6 +67,7 @@
|
|||||||
|
|
||||||
items = tmpitems;
|
items = tmpitems;
|
||||||
}
|
}
|
||||||
|
$: refresh_items($themes);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Container class="mt-3 mb-5">
|
<Container class="mt-3 mb-5">
|
||||||
|
Loading…
Reference in New Issue
Block a user