Compare commits
2 Commits
4fccc793bb
...
8e2cbbaadb
| Author | SHA1 | Date | |
|---|---|---|---|
|
8e2cbbaadb
|
|||
|
eab7ddf30e
|
37
CONTRIBUTING.md
Normal file
37
CONTRIBUTING.md
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
# Contributing
|
||||||
|
|
||||||
|
Děkuji za váš zájem přispět do tohoto projektu.
|
||||||
|
Příspěvky jsou vítány, ale **přijímám je pouze e-mailem ve formě `.patch` souborů**.
|
||||||
|
|
||||||
|
## Jak přispět
|
||||||
|
|
||||||
|
1. Naklonujte repozitář.
|
||||||
|
2. Vytvořte změny ve vlastní větvi.
|
||||||
|
3. Vygenerujte patch pomocí `git format-patch`.
|
||||||
|
|
||||||
|
Například pro poslední commit:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git format-patch -1
|
||||||
|
```
|
||||||
|
|
||||||
|
Nebo pro změny vůči main:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git format-patch origin/main
|
||||||
|
```
|
||||||
|
|
||||||
|
4. Vzniklý .patch soubor pošlete jako přílohu na:
|
||||||
|
|
||||||
|
email@jzitnik.dev
|
||||||
|
|
||||||
|
# Požadavky na patch
|
||||||
|
- patch musí být generovaný pomocí git format-patch
|
||||||
|
- změny musí být jasně popsané v commit message
|
||||||
|
- jeden patch by měl řešit jednu logickou změnu
|
||||||
|
- patch musí být aplikovatelný bez konfliktů
|
||||||
|
|
||||||
|
# Co se stane potom
|
||||||
|
- patch zkontroluji
|
||||||
|
- pokud bude potřeba něco upravit, odpovím e-mailem
|
||||||
|
- po schválení patch aplikuji do repozitáře
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import ExcelJS, { Worksheet, Cell } from "exceljs"
|
import ExcelJS, { Worksheet } from "exceljs"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import parseAbsence, { AbsenceResult } from "../utils/parseAbsence.js"
|
import parseAbsence, { AbsenceResult } from "../utils/parseAbsence.js"
|
||||||
import parseTeachers from "../utils/parseTeachers.js"
|
import parseTeachers from "../utils/parseTeachers.js"
|
||||||
@@ -127,9 +127,6 @@ export default async function parseV1V2(downloadedFilePath: string) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// Use an array directly, initialized with nulls or sparse array logic
|
|
||||||
// The original code used `let final2 = []` but treated it as object `final2[parsedKey] = ...`
|
|
||||||
// Then `Array.from(final2)` converts it to array.
|
|
||||||
let final2: (string | null)[] = [];
|
let final2: (string | null)[] = [];
|
||||||
|
|
||||||
for (const key of allKeys) {
|
for (const key of allKeys) {
|
||||||
@@ -140,7 +137,7 @@ export default async function parseV1V2(downloadedFilePath: string) {
|
|||||||
try {
|
try {
|
||||||
const regex = /^úklid\s+(?:\d+\s+)?[A-Za-z]{2}$/;
|
const regex = /^úklid\s+(?:\d+\s+)?[A-Za-z]{2}$/;
|
||||||
const cellText = cell.text || "";
|
const cellText = cell.text || "";
|
||||||
// @ts-ignore - fgColor is missing in type definition for some versions or intricate structure
|
// @ts-ignore
|
||||||
const fgColor = cell.fill?.fgColor;
|
const fgColor = cell.fill?.fgColor;
|
||||||
if (regex.test(cellText.trim()) || cellText.trim().length == 0 || fgColor === undefined) {
|
if (regex.test(cellText.trim()) || cellText.trim().length == 0 || fgColor === undefined) {
|
||||||
d = false;
|
d = false;
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ buildExpired: false
|
|||||||
enableEmoji: true
|
enableEmoji: true
|
||||||
pygmentsUseClasses: true
|
pygmentsUseClasses: true
|
||||||
mainsections: ["posts", "papermod"]
|
mainsections: ["posts", "papermod"]
|
||||||
|
defaultContentLanguage: "cs"
|
||||||
|
|
||||||
minify:
|
minify:
|
||||||
disableXML: true
|
disableXML: true
|
||||||
|
|||||||
Reference in New Issue
Block a user