Skip to content

Commit d66df33

Browse files
authored
Merge pull request #80 from filips123/frontend-additions
Frontend additions
2 parents b327321 + 9da9feb commit d66df33

File tree

8 files changed

+198
-8
lines changed

8 files changed

+198
-8
lines changed
+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Napaka v podatkih
2+
description: Napišite poročilo o napaki v podatkih.
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Hvala, ker ste si vzeli čas za izpolnitev tega poročila!
8+
- type: dropdown
9+
id: datatype
10+
attributes:
11+
label: Vrsta podatka
12+
description: Pri katerem podatku, se je pojavila napaka?
13+
options:
14+
- Urnik
15+
- Jedilniki
16+
- Okrožnice
17+
- Nadomeščanja
18+
- Razporedi kosil
19+
validations:
20+
required: true
21+
- type: dropdown
22+
id: viewtype
23+
attributes:
24+
label: Vrsta pogleda
25+
description: Pri katerem pogledu, se je pojavila napaka?
26+
options:
27+
- Razred
28+
- Profesor
29+
- Učilnica
30+
validations:
31+
required: true
32+
- type: textarea
33+
id: error
34+
attributes:
35+
label: Opis napake
36+
description: Kolikor vam je mogoče podrobno opisati napako.
37+
placeholder: npr. Namesto geografije 3. uro je bila napisana 4. uro
38+
validations:
39+
required: true
40+
- type: input
41+
id: date
42+
attributes:
43+
label: Datum
44+
description: Vpišite datum, ko se je zgodila napaka (dd. mm. yyyy)
45+
placeholder: npr. 29. 12. 2023
46+
validations:
47+
required: false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Prošnja za funkcijo
2+
description: Napišite izboljšavo obstoječih funkcij ali novo funkcijo
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Hvala, ker ste si vzeli čas za izpolnitev tega poročila!
8+
- type: textarea
9+
id: idea
10+
attributes:
11+
label: Vaša zamisel
12+
description: V nekaj stavkih opišite svojo zamisel.
13+
validations:
14+
required: true
15+
- type: textarea
16+
id: whatfor
17+
attributes:
18+
label: Problem, ki ga reši
19+
description: Kakšen problem bi rešila vaša zamisel?
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: other
24+
attributes:
25+
label: Slike vaše zamisli
26+
description: Kako bi izgledala vaša zamisel? Kako rešijo to druge aplikacije?
27+
validations:
28+
required: false
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Napaka v delovanju
2+
description: Napišite poročilo o napaki v delovanju.
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Hvala, ker ste si vzeli čas za izpolnitev tega poročila!
8+
- type: textarea
9+
id: description
10+
attributes:
11+
label: Opis napake
12+
description: Kolikor vam je mogoče podrobno opisati napako.
13+
validations:
14+
required: true
15+
- type: input
16+
id: os
17+
attributes:
18+
label: Operacijski sistem
19+
description: V katerem operacijskem sistemu se pojavlja ta napaka (po možnosti z verzijo)?
20+
placeholder: Android 13, iOS 16, Windows 11 itd.
21+
validations:
22+
required: true
23+
- type: input
24+
id: browser
25+
attributes:
26+
label: Brskalnik
27+
description: V katerem brskalniku se pojavlja ta napaka?
28+
placeholder: Chrome, Safari, Firefox itd.
29+
validations:
30+
required: true
31+
- type: textarea
32+
id: screenshot
33+
attributes:
34+
label: Posnetek zaslona telefona/računalnika
35+
description: V primeru, če imate vizualne napake, lahko tu prilepite svoj posnetek zaslona.
36+
placeholder: Kliknite v to besedilno polje in prilepite svoj posnetek zaslona.
37+
validations:
38+
required: false

API/gimvicurnik/updaters/eclassroom.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232

3333
class ParserType(enum.Enum):
34-
SUBSTITUTUONS = "substitutions"
34+
SUBSTITUTIONS = "substitutions"
3535
LESSON_CHANGE = "lesson-change"
3636
SUBJECT_CHANGE = "subject-change"
3737
CLASSROOM_CHANGE = "classroom-change"
@@ -421,7 +421,7 @@ def _parse_substitutions(self, tables: Tables, effective: date) -> None:
421421

422422
# Get parser type
423423
if row == header_substitutions:
424-
parser_type = ParserType.SUBSTITUTUONS
424+
parser_type = ParserType.SUBSTITUTIONS
425425
continue
426426
elif row == header_lesson_change:
427427
parser_type = ParserType.LESSON_CHANGE
@@ -447,7 +447,7 @@ def _parse_substitutions(self, tables: Tables, effective: date) -> None:
447447
continue
448448

449449
# Parse substitutions
450-
if parser_type == ParserType.SUBSTITUTUONS:
450+
if parser_type == ParserType.SUBSTITUTIONS:
451451
# Get basic substitution properties
452452
time = int(row[1][:-1]) if row[1] != "PU" else 0
453453
subject = self._normalize_subject_name(row[5])

website/src/App.vue

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
<v-app>
33
<v-app-bar app clipped-left color="#009300" dark extension-height="35">
44
<div class="d-flex align-center overflow-x-hidden pr-1">
5-
<v-img alt="GimVičUrnik Logo"
6-
class="mr-2"
7-
src="./assets/logo.svg"
8-
width="40" />
5+
<router-link title="Domov" :to="{ name: 'home' }">
6+
<v-img alt="GimVičUrnik Logo"
7+
class="mr-2"
8+
src="./assets/logo.svg"
9+
width="40" />
10+
</router-link>
911
<v-toolbar-title>{{ pageTitle }}</v-toolbar-title>
1012
</div>
1113

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<template>
2+
<v-card width="35rem">
3+
<v-toolbar class="text-uppercase" color="#009300" dark>
4+
O aplikaciji
5+
</v-toolbar>
6+
7+
<v-card-text class="text--primary">
8+
<p>
9+
Aplikacija GimVič prikazuje urnik, nadomeščanja, jedilnik ter razpored kosila za dijake in profesorje Gimnazije Vič.
10+
</p>
11+
<p>
12+
Aplikacija je neuradna in lahko vsebuje nepopolne ali napačne podatke. Za ogled uradnih podatkov uporabite
13+
<a class="text-decoration-none" href="https://ucilnica.gimvic.org/">Spletno učilnico Gimnazije Vič</a>.
14+
</p>
15+
<p>
16+
V <a class="text-decoration-none" href="https://github.com/filips123/GimVicUrnik/wiki">dokumentaciji projekta</a>
17+
so dostopna navodila za namestitev in uporabo.
18+
</p>
19+
<p>
20+
Aplikacija zbira omejene podatke o brskalniku in uporabi za namene odpravljanja napak in izboljšanja učinkovitosti.
21+
Podatki se ne uporabljajo za identfikacijo uporabnikov, oglaševanje ali druge namene.
22+
</p>
23+
<p>
24+
Razvijalci:
25+
<ul>
26+
<li>Filip Štamcar</li>
27+
<li>Jakob Kralj</li>
28+
<li>Peter Jereb</li>
29+
</ul>
30+
</p>
31+
<p>
32+
Če ste odkrili napako v aplikaciji ali morda želite ponuditi povratne informacije, lahko to naredite na
33+
<a class="text-decoration-none" href="https://github.com/filips123/GimVicUrnik/issues/new/choose">uradnem repozitoriju</a>.
34+
</p>
35+
</v-card-text>
36+
37+
<v-card-actions class="justify-end">
38+
<v-btn color="green" text v-on:click=closeDialog>V redu</v-btn>
39+
</v-card-actions>
40+
</v-card>
41+
</template>
42+
43+
<script lang="ts">
44+
import { Component, Vue } from 'vue-property-decorator'
45+
46+
@Component
47+
export default class About extends Vue {
48+
closeDialog (): void {
49+
this.$emit('closeDialog')
50+
}
51+
}
52+
</script>

website/src/components/settings/entitySelection/WelcomeInfo.vue

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
Aplikacija je neuradna in lahko vsebuje nepopolne ali napačne podatke. Za ogled uradnih podatkov uporabite
1313
<a class="text-decoration-none" href="https://ucilnica.gimvic.org/">Spletno učilnico Gimnazije Vič</a>.
1414
</p>
15+
<p>
16+
V <a class="text-decoration-none" href="https://github.com/filips123/GimVicUrnik/wiki">dokumentaciji projekta</a>
17+
so dostopna navodila za namestitev in uporabo.
18+
</p>
1519
<p>
1620
Aplikacija zbira omejene podatke o brskalniku in uporabi za namene odpravljanja napak in izboljšanja učinkovitosti.
1721
Podatki se ne uporabljajo za identfikacijo uporabnikov, oglaševanje ali druge namene.

website/src/views/Settings.vue

+20-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@
5353
label="Posodobi podatke"
5454
@click.native="updateData" />
5555

56+
<v-divider class="my-6" />
57+
58+
<settings-action v-model="aboutDialog"
59+
:icon="mdiInformationOutline"
60+
:message="`Trenutna različica: ${appVersion}`"
61+
label="O aplikaciji" />
62+
5663
<v-dialog v-model="entitySelectionDialog"
5764
v-bind:persistent="entitySelectionPersistent"
5865
content-class="settings-dialog"
@@ -83,6 +90,10 @@
8390
<v-dialog v-model="moodleTokenDialog" content-class="settings-dialog" width="35rem">
8491
<moodle-token v-if="moodleTokenDialog" @closeDialog=closeMoodleTokenDialog />
8592
</v-dialog>
93+
94+
<v-dialog v-model="aboutDialog" content-class="settings-dialog" width="35rem">
95+
<about v-if="aboutDialog" @closeDialog=closeAboutDialog />
96+
</v-dialog>
8697
</div>
8798
</template>
8899

@@ -100,9 +111,10 @@
100111
</style>
101112

102113
<script lang="ts">
103-
import { mdiDatabaseImportOutline, mdiKey, mdiTuneVariant, mdiUpdate, mdiWeatherNight } from '@mdi/js'
114+
import { mdiDatabaseImportOutline, mdiInformationOutline, mdiKey, mdiTuneVariant, mdiUpdate, mdiWeatherNight } from '@mdi/js'
104115
import { Component, Vue } from 'vue-property-decorator'
105116
117+
import About from '@/components/settings/About.vue'
106118
import DataCollectionSelection from '@/components/settings/DataCollectionSelection.vue'
107119
import EntitySelection from '@/components/settings/EntitySelection.vue'
108120
import LunchSelection from '@/components/settings/LunchSelection.vue'
@@ -116,6 +128,7 @@ import { StorageModule, updateAllData } from '@/store/modules/storage'
116128
117129
@Component({
118130
components: {
131+
About,
119132
MoodleToken,
120133
DataCollectionSelection,
121134
ThemeSelection,
@@ -132,6 +145,7 @@ export default class Settings extends Vue {
132145
mdiWeatherNight = mdiWeatherNight
133146
mdiUpdate = mdiUpdate
134147
mdiKey = mdiKey
148+
mdiInformationOutline = mdiInformationOutline
135149
136150
// Get app version
137151
get appVersion (): string {
@@ -225,6 +239,7 @@ export default class Settings extends Vue {
225239
dataCollectionDialog = false
226240
themeSelectionDialog = false
227241
moodleTokenDialog = false
242+
aboutDialog = false
228243
229244
entitySelectionPersistent = false
230245
@@ -331,6 +346,10 @@ export default class Settings extends Vue {
331346
this.moodleTokenDialog = false
332347
}
333348
349+
closeAboutDialog (): void {
350+
this.aboutDialog = false
351+
}
352+
334353
persistEntityDialog (persistent: boolean): void {
335354
this.entitySelectionPersistent = persistent
336355
}

0 commit comments

Comments
 (0)