Closed dezhidki closed 2 years ago
In GitLab by @vivanauk on Apr 24, 2019, 14:15
added 1 commit
In GitLab by @vivanauk on Apr 26, 2019, 15:41
added 1 commit
In GitLab by @vivanauk on Apr 29, 2019, 13:29
added 29 commits
master
In GitLab by @vivanauk on Apr 29, 2019, 15:50
added 1 commit
In GitLab by @vivanauk on Apr 29, 2019, 16:00
added 1 commit
In GitLab by @vivanauk on Apr 30, 2019, 13:41
added 10 commits
master
In GitLab by @vivanauk on Apr 30, 2019, 14:56
added 1 commit
In GitLab by @vivanauk on May 2, 2019, 13:21
added 1 commit
In GitLab by @vivanauk on May 2, 2019, 13:25
added 1 commit
In GitLab by @vivanauk on May 2, 2019, 15:43
added 1 commit
In GitLab by @Smibu on May 3, 2019, 13:24
Commented on timApp/static/scripts/tim/editor/restampDialog.ts line 17
Nimessä Show
on turha.
In GitLab by @Smibu on May 3, 2019, 13:24
Commented on timApp/upload/upload.py line 185
Käytä verify_json_params
-funktion sijasta webargs-kirjastoa, ks. malli answer/routes.py
ja sieltä /getState
-reitti.
In GitLab by @Smibu on May 3, 2019, 13:24
Commented on timApp/upload/upload.py line 200
Tuo filePath
lienee pikemminkin suhteellinen URL-osoite, joten voisiko sen nimi olla url
?
Tässä voisi käyttää URLin parsintaa + PurePosixPath
ia, jolloin ainakaan tuota ensimmäistä replace
a ei tarvitse.
In GitLab by @Smibu on May 3, 2019, 13:24
Commented on timApp/upload/upload.py line 205
Voisi olla
stamp_model_path = create_new_tex_file(custom_stamp_model_content) if custom_stamp_model_content else stamp_model_default_path
jolloin ulompaa if-elseä ei tarvitse.
In GitLab by @Smibu on May 3, 2019, 13:24
Commented on timApp/upload/upload.py line 217
Tämä try-except on liian laaja. Mielellään pois kokonaan.
In GitLab by @Smibu on May 3, 2019, 13:24
Commented on timApp/upload/upload.py line 202
Tähän silmukkaan oikeustarkistus, että tiedostoon tai siihen dokumenttiin, johon tiedosto on liitetty, on edit-oikeus.
In GitLab by @Smibu on May 3, 2019, 13:24
Commented on timApp/static/scripts/tim/editor/restampDialog.ts line 121
Näissä ng-show
-> ng-if
ja alertit tim-alert
-komponentilla.
In GitLab by @Smibu on May 3, 2019, 13:24
Commented on timApp/util/pdftools.py line 663
Tuo get_path_base_filename
on nykyään niin yksinkertainen funktio, että sen voisi poistaa ja sanoa suoraan .stem
tai .name
.
In GitLab by @Smibu on May 3, 2019, 13:24
Commented on timApp/static/scripts/tim/editor/restampDialog.ts line 102
Käytä tim-alert
-komponenttia.
In GitLab by @Smibu on May 3, 2019, 13:24
Commented on timApp/document/minutes/routes.py line 86
Tässä replace
-kutsujen sijaan mieluummin ast.literal_eval
.
In GitLab by @Smibu on May 3, 2019, 13:24
Commented on timApp/static/scripts/tim/editor/pareditor.ts line 933
Tämä on vanha rivi, mutta tuosta on jäänyt virke kesken.
In GitLab by @Smibu on May 3, 2019, 13:24
Commented on timApp/static/scripts/tim/editor/pareditor.ts line 1377
Tämä macroParams
-> IAttachmentData
-muunnos voisi olla omassa aliohjelmassaan, jotta nuo indeksoinnit ovat vain yhdessä paikassa.
In GitLab by @Smibu on May 3, 2019, 13:24
Commented on timApp/static/scripts/tim/editor/pareditor.ts line 1367
Plugineilla voi olla muitakin attribuutteja, jolloin tämä includes
on liian tiukka. Jättäisin siis aaltosulut pois. Toki silloin se sallii myös xplugin
tms., johon ehkä voisi regexillä varautua. Ainakaan sen monimutkaisempaa tästä ei kannattane tehdä ilman kunnon markdown-parsimiskirjastoa.
In GitLab by @Smibu on May 3, 2019, 13:24
Commented on timApp/static/scripts/tim/editor/pareditor.ts line 1362
Melkein koko metodi on tämän iffin sisällä, jolloin sisennyksiä tulee suotta lisää. Tämän voisi kääntää:
if (!this.editor) {
return undefined;
}
// ja loput ilman elseä
In GitLab by @Smibu on May 3, 2019, 13:24
Commented on timApp/static/scripts/tim/editor/pareditor.ts line 1440
Käytä every
-metodia nuolifunktion kera.
In GitLab by @Smibu on May 3, 2019, 13:24
Commented on timApp/static/scripts/tim/editor/pareditor.ts line 960
Hyvä dokumentaatiokommentti kun on selkeät esimerkit :thumbsup:. Jättäisin tyhjän rivin tämän alle esimerkkien erottamiseksi. Ja ehkä myös ennen ensimmäistä esimerkkiä.
In GitLab by @vivanauk on May 3, 2019, 13:29
Commented on timApp/static/scripts/tim/editor/restampDialog.ts line 17
Tuo oli jämä siitä, kun kopioin koodin toisesta dialogista pohjaksi. Siivoan sieltäkin sitten(?).
In GitLab by @vivanauk on May 3, 2019, 15:07
added 1 commit
In GitLab by @vivanauk on May 3, 2019, 15:23
Commented on timApp/static/scripts/tim/editor/restampDialog.ts line 17
changed this line in version 12 of the diff
In GitLab by @vivanauk on May 3, 2019, 15:23
Commented on timApp/upload/upload.py line 200
changed this line in version 12 of the diff
In GitLab by @vivanauk on May 3, 2019, 15:23
Commented on timApp/upload/upload.py line 205
changed this line in version 12 of the diff
In GitLab by @vivanauk on May 3, 2019, 15:23
Commented on timApp/upload/upload.py line 217
changed this line in version 12 of the diff
In GitLab by @vivanauk on May 3, 2019, 15:23
Commented on timApp/upload/upload.py line 202
changed this line in version 12 of the diff
In GitLab by @vivanauk on May 3, 2019, 15:23
Commented on timApp/static/scripts/tim/editor/restampDialog.ts line 121
changed this line in version 12 of the diff
In GitLab by @vivanauk on May 3, 2019, 15:23
Commented on timApp/util/pdftools.py line 663
changed this line in version 12 of the diff
In GitLab by @vivanauk on May 3, 2019, 15:23
Commented on timApp/static/scripts/tim/editor/restampDialog.ts line 102
changed this line in version 12 of the diff
In GitLab by @vivanauk on May 3, 2019, 15:23
added 1 commit
In GitLab by @vivanauk on May 3, 2019, 15:29
added 1 commit
In GitLab by @vivanauk on May 3, 2019, 15:34
added 1 commit
In GitLab by @vivanauk on May 3, 2019, 15:34
added 14 commits
master
In GitLab by @vivanauk on May 6, 2019, 13:06
Commented on timApp/document/minutes/routes.py line 86
changed this line in version 16 of the diff
In GitLab by @vivanauk on May 6, 2019, 13:06
added 1 commit
In GitLab by @vivanauk on May 6, 2019, 14:32
Commented on timApp/static/scripts/tim/editor/pareditor.ts line 933
changed this line in version 17 of the diff
In GitLab by @vivanauk on May 6, 2019, 14:32
Commented on timApp/static/scripts/tim/editor/pareditor.ts line 1377
changed this line in version 17 of the diff
In GitLab by @vivanauk on May 6, 2019, 14:32
Commented on timApp/static/scripts/tim/editor/pareditor.ts line 1367
changed this line in version 17 of the diff
In GitLab by @vivanauk on May 6, 2019, 14:32
Commented on timApp/static/scripts/tim/editor/pareditor.ts line 1362
changed this line in version 17 of the diff
In GitLab by @vivanauk on May 6, 2019, 14:32
added 1 commit
In GitLab by @vivanauk on May 6, 2019, 14:33
added 14 commits
master
In GitLab by @vivanauk on May 6, 2019, 14:45
added 1 commit
In GitLab by @vivanauk on May 6, 2019, 14:50
added 1 commit
In GitLab by @vivanauk on Apr 16, 2019, 15:00
Merges 1377-popover-dialogiksi -> master