@commonpub/layer 0.71.0 → 0.71.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commonpub/layer",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"files": [
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
"vue-router": "^4.3.0",
|
|
55
55
|
"zod": "^4.3.6",
|
|
56
56
|
"@commonpub/auth": "0.8.0",
|
|
57
|
-
"@commonpub/config": "0.21.0",
|
|
58
|
-
"@commonpub/docs": "0.6.3",
|
|
59
57
|
"@commonpub/editor": "0.7.11",
|
|
60
|
-
"@commonpub/
|
|
58
|
+
"@commonpub/learning": "0.5.2",
|
|
61
59
|
"@commonpub/explainer": "0.7.15",
|
|
62
|
-
"@commonpub/
|
|
60
|
+
"@commonpub/protocol": "0.13.0",
|
|
61
|
+
"@commonpub/config": "0.21.0",
|
|
63
62
|
"@commonpub/schema": "0.39.0",
|
|
63
|
+
"@commonpub/server": "2.84.1",
|
|
64
|
+
"@commonpub/docs": "0.6.3",
|
|
64
65
|
"@commonpub/theme-studio": "0.5.1",
|
|
65
|
-
"@commonpub/learning": "0.5.2",
|
|
66
66
|
"@commonpub/ui": "0.12.2"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
@@ -40,8 +40,11 @@ const currentRoundId = computed<string | null>(() => {
|
|
|
40
40
|
// The artifact judges review THIS round: the nearest `submission` stage (with a
|
|
41
41
|
// template) preceding the current review stage — round 1 reviews the proposal,
|
|
42
42
|
// round 2 the prototype. Null for classic contests (no templates), which keeps
|
|
43
|
-
// the page byte-identical to pre-artifact behaviour.
|
|
43
|
+
// the page byte-identical to pre-artifact behaviour. Flag-gated so disabling
|
|
44
|
+
// contestStageSubmissions hides the (server-stripped) artifact boxes entirely.
|
|
45
|
+
const { features } = useFeatures();
|
|
44
46
|
const artifactStage = computed(() => {
|
|
47
|
+
if (features.value.contestStageSubmissions === false) return null;
|
|
45
48
|
const c = contest.value;
|
|
46
49
|
if (!c || !currentRoundId.value) return null;
|
|
47
50
|
const stages = normalizeStages(c);
|
|
@@ -38,6 +38,9 @@ export default defineEventHandler(async (event): Promise<ContestEntryItem> => {
|
|
|
38
38
|
|
|
39
39
|
if (!shouldRevealScores(contest.judgingVisibility, contest.status, privileged)) {
|
|
40
40
|
entry.score = null;
|
|
41
|
+
// Per-round snapshot scores honour revealScores too (the cohort outcome
|
|
42
|
+
// itself stays public, mirroring the entries listing).
|
|
43
|
+
entry.stageState = entry.stageState.map((s) => ({ ...s, score: null }));
|
|
41
44
|
}
|
|
42
45
|
if (!privileged) {
|
|
43
46
|
delete entry.judgeScores;
|