Practical info section
This commit is contained in:
rodič
04014c99cf
revize
478a594cf5
|
@ -33,3 +33,4 @@ specDef:
|
||||||
- type: projects
|
- type: projects
|
||||||
- type: team
|
- type: team
|
||||||
- type: schedule-candidates
|
- type: schedule-candidates
|
||||||
|
- type: practical-info
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
- id: doprava
|
||||||
|
name: 'Doprava'
|
||||||
|
text: |
|
||||||
|
TBA
|
||||||
|
|
||||||
|
- id: jidlo-piti
|
||||||
|
name: 'Jídlo a pití'
|
||||||
|
text: |
|
||||||
|
TBA
|
||||||
|
|
||||||
|
- id: ubytovani
|
||||||
|
name: 'Ubytování'
|
||||||
|
text: |
|
||||||
|
TBA
|
|
@ -105,12 +105,10 @@ class UTXOPlanner {
|
||||||
const [dayNumber, period] = str.split("/");
|
const [dayNumber, period] = str.split("/");
|
||||||
const [start, end] = period.split("-");
|
const [start, end] = period.split("-");
|
||||||
const date = index.dates[Number(dayNumber) - 1];
|
const date = index.dates[Number(dayNumber) - 1];
|
||||||
const endDate = end > start
|
const endDate = end > start ? date : format(
|
||||||
? date
|
new Date((new Date(date)).getTime() + (1000 * 60 * 60 * 24)),
|
||||||
: format(
|
"yyyy-MM-dd",
|
||||||
new Date((new Date(date)).getTime() + (1000 * 60 * 60 * 24)),
|
);
|
||||||
"yyyy-MM-dd",
|
|
||||||
);
|
|
||||||
return {
|
return {
|
||||||
start: parse(`${date} ${start}`, "yyyy-MM-dd HH:mm"),
|
start: parse(`${date} ${start}`, "yyyy-MM-dd HH:mm"),
|
||||||
end: parse(`${endDate} ${end}`, "yyyy-MM-dd HH:mm"),
|
end: parse(`${endDate} ${end}`, "yyyy-MM-dd HH:mm"),
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- name
|
||||||
|
- text
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
pattern: "^[a-z0-9-]+$"
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
text:
|
||||||
|
type: string
|
Načítá se…
Odkázat v novém úkolu