feat: negative marking in quiz

This commit is contained in:
Jannat Patel
2025-06-27 19:58:35 +05:30
parent 02b8e02131
commit cf452c2300
9 changed files with 421 additions and 301 deletions

View File

@@ -57,22 +57,24 @@
</Button>
</div>
</div>
<div class="flex flex-col space-y-4 py-5 border-b">
<div class="flex flex-col space-y-4 pt-5 border-b">
<Code
v-model="code"
:language="exercise.doc?.language.toLowerCase()"
height="400px"
maxHeight="1000px"
/>
<span v-if="error" class="text-xs text-ink-gray-5 px-2">
{{ __('Compiler Message') }}:
</span>
<textarea
v-if="error"
v-model="errorMessage"
class="bg-surface-gray-1 border-none text-sm h-32 leading-6"
readonly
/>
<div class="flex flex-col space-y-1">
<span v-if="error" class="text-xs text-ink-gray-5 px-1">
{{ __('Compiler Message') }}:
</span>
<textarea
v-if="error"
v-model="errorMessage"
class="font-mono text-ink-red-3 bg-surface-gray-1 border-none text-sm h-32 leading-6"
readonly
/>
</div>
<!-- <textarea v-else v-model="output" class="bg-surface-gray-1 border-none text-sm h-28 leading-6" readonly /> -->
</div>

View File

@@ -93,6 +93,12 @@
{{ row[column.key] }}
</Badge>
</div>
<div
v-else-if="column.key == 'modified'"
class="text-sm text-ink-gray-5"
>
{{ row[column.key] }}
</div>
<div v-else>
{{ row[column.key] }}
</div>
@@ -261,7 +267,7 @@ const submissionColumns = computed(() => {
{
label: __('Member'),
key: 'member_name',
width: '20%',
width: '30%',
icon: 'user',
},
{
@@ -279,7 +285,7 @@ const submissionColumns = computed(() => {
{
label: __('Modified'),
key: 'modified',
width: '20%',
width: '15%',
icon: 'clock',
align: 'right',
},