Skip to content

Commit 4563502

Browse files
authored
Merge pull request #209 from aau-network-security/develop
add new category of cyber championship
2 parents e35243a + 7c14885 commit 4563502

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

client/src/components/EventModal.vue

+37-1
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
<div class="col-3">
174174
<div class="nav flex-column nav-pills sticky-top" id="challengesCategory" role="tablist" aria-orientation="vertical">
175175
<a class="nav-link active show" id="starters-tab" data-toggle="pill" href="#starters" role="tab" aria-controls="starters" aria-selected="true">Starters</a>
176+
<a class="nav-link" id="cyber-championships-tab" data-toggle="pill" href="#cyber-championship" role="tab" aria-controls="cyber-championship" aria-selected="false">Cyber Champ.</a>
176177
<a class="nav-link" id="web-exploit-tab" data-toggle="pill" href="#web-exploit" role="tab" aria-controls="web-exploit" aria-selected="false">Web Exploit.</a>
177178
<a class="nav-link" id="forensics-tab" data-toggle="pill" href="#forensics" role="tab" aria-controls="forensics" aria-selected="false">Forensics</a>
178179
<a class="nav-link" id="binary-tab" data-toggle="pill" href="#binary" role="tab" aria-controls="binary" aria-selected="false">Binary</a>
@@ -212,6 +213,36 @@
212213
</b-form-checkbox-group>
213214
</div>
214215

216+
<div class="tab-pane fade active show" id="cyber-championship" role="tabpanel" aria-labelledby="cyber-championship">
217+
<b-form-checkbox-group
218+
id="challengesCS"
219+
v-model="selectedChallenges"
220+
name="challengesCS"
221+
class="ml-4"
222+
stacked
223+
>
224+
<!--{{ selectedChallenges }} Used for debugging-->
225+
<div
226+
v-for="text in challengesTextCS"
227+
:key="text"
228+
class="challenge-container"
229+
>
230+
<div class="checkbox-container">
231+
<b-form-checkbox
232+
:value="text.value"
233+
>
234+
{{ text.text }}
235+
</b-form-checkbox>
236+
<div class="info-icon" v-on:click="text.isInfoShown = !text.isInfoShown"><b-icon icon="info-circle"></b-icon></div>
237+
</div>
238+
<div class="chalInfo" v-bind:class="{ visible: text.isInfoShown}" v-html="text.orgDesc">
239+
<!--{{ text.orgDesc }} This is just dummy data for now-->
240+
</div>
241+
</div>
242+
243+
</b-form-checkbox-group>
244+
</div>
245+
215246
<div class="tab-pane fade" id="web-exploit" role="tabpanel" aria-labelledby="web-exploit-tab">
216247
<b-form-checkbox-group
217248
id="challengesWE"
@@ -458,6 +489,7 @@ export default {
458489
challengesRE: [], challengesTextRE: [],
459490
challengesC: [], challengesTextC: [],
460491
challengesS: [], challengesTextS: [],
492+
challengesCS: [], challengesTextCS:[],
461493
cat: '', childrenChallenges: '', isDisabled: false,
462494
disabledDates: {
463495
to: new Date(Date.now() - 8640000)
@@ -495,6 +527,7 @@ export default {
495527
.concat(this.challengesF)
496528
.concat(this.challengesRE)
497529
.concat(this.challengesS)
530+
.concat(this.challengesCS)
498531
.concat(this.challengesC): []
499532
},
500533
encodeHTML: function(s) {
@@ -600,7 +633,10 @@ export default {
600633
case "Starters":
601634
that.challengesTextS.push(parentChallenge);
602635
that.challengesS.push(taglist[0])
603-
636+
break;
637+
case "Cybermesterskaberne":
638+
that.challengesTextCS.push(parentChallenge);
639+
that.challengesCS.push(taglist[0])
604640
}
605641
606642
})

0 commit comments

Comments
 (0)