Places
This commit is contained in:
rodič
80ddc7960d
revize
617fbd292d
|
@ -0,0 +1,12 @@
|
|||
name = "Divadlo X10"
|
||||
eventTypes = ["conference", "hackathon", "party"]
|
||||
capacity = 300
|
||||
address = "Charvátova 10/39, Praha 1, 110 00"
|
||||
mapUrl = "https://goo.gl/maps/xpzw6siQFXsJrrWh6"
|
||||
description = '''
|
||||
The basement of the former Art Industry Building, now a theatre. One large hall for approx 250 people seated. Includes basic equipment (lights, projector, sound, chairs).
|
||||
'''
|
||||
photo = "photo.jpg"
|
||||
|
||||
[links]
|
||||
web = "https://www.divadlox10.cz/en/rental-space"
|
Binární soubor nebyl zobrazen.
Za Šířka: | Výška: | Velikost: 293 KiB |
|
@ -0,0 +1,12 @@
|
|||
name = "Gabriel Loci"
|
||||
eventTypes = ["conference", "hackathon", "party"]
|
||||
capacity = 1500
|
||||
address = "Holečkova 106/10, 150 00 Praha 5-Smíchov"
|
||||
mapUrl = "https://goo.gl/maps/f2nf36TFe9XdqpJP8"
|
||||
description = '''
|
||||
The former monastery complex offers a unique event space. The building is not equipped, so it is more suitable for larger events.
|
||||
'''
|
||||
photo = "photo.jpg"
|
||||
|
||||
[links]
|
||||
web = "https://www.gabrielloci.com/en/"
|
Binární soubor nebyl zobrazen.
Za Šířka: | Výška: | Velikost: 1.7 MiB |
|
@ -99,10 +99,11 @@ class DeConf_Package {
|
|||
this.data = null;
|
||||
this.engine = engine;
|
||||
this.colMapper = {
|
||||
unions: "union",
|
||||
places: "place",
|
||||
events: "event",
|
||||
"media-partners": "media-partner",
|
||||
benefits: "benefit",
|
||||
unions: "union",
|
||||
};
|
||||
this.collections = Object.keys(this.colMapper);
|
||||
}
|
||||
|
@ -156,10 +157,11 @@ class DeConf_Package {
|
|||
}
|
||||
toJSON() {
|
||||
return Object.assign({ id: this.id }, this.data.index, {
|
||||
unions: this.data.unions,
|
||||
events: this.data.events,
|
||||
"media-partners": this.data["media-partners"],
|
||||
benefits: this.data["benefits"],
|
||||
...Object.fromEntries(
|
||||
Object.keys(this.colMapper).map((col) => {
|
||||
return [col, this.data[col]];
|
||||
}),
|
||||
),
|
||||
time: new Date(),
|
||||
});
|
||||
}
|
||||
|
@ -171,7 +173,7 @@ class DeConf_Collection {
|
|||
this.id = id;
|
||||
this.data = null;
|
||||
this.dir = null;
|
||||
this.assets = ["logo"];
|
||||
this.assets = ["logo", "photo"];
|
||||
}
|
||||
|
||||
async load(path) {
|
||||
|
|
|
@ -0,0 +1,45 @@
|
|||
type: object
|
||||
title: Place
|
||||
additionalProperties: false
|
||||
required:
|
||||
- id
|
||||
- name
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
pattern: "^[a-z0-9-]+$"
|
||||
title: Event Union ID
|
||||
hash:
|
||||
type: string
|
||||
pattern: "^[a-f0-9]+$"
|
||||
name:
|
||||
type: string
|
||||
title: Name of Event Union
|
||||
eventTypes:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
enum:
|
||||
- conference
|
||||
- hackathon
|
||||
- workshop
|
||||
- meetup
|
||||
- party
|
||||
- dev-session
|
||||
capacity:
|
||||
type: number
|
||||
address:
|
||||
type: string
|
||||
mapUrl:
|
||||
type: string
|
||||
format: uri
|
||||
description:
|
||||
type: string
|
||||
__markdown: true
|
||||
photo:
|
||||
type: string
|
||||
links:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: string
|
||||
format: uri
|
Načítá se…
Odkázat v novém úkolu