mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-04 17:37:24 +00:00
Hackspace: add location
This commit is contained in:
parent
89de408fe2
commit
bccbdee349
3 changed files with 59 additions and 0 deletions
|
|
@ -32,6 +32,11 @@
|
||||||
"repeatable": false,
|
"repeatable": false,
|
||||||
"component": "hackspace.contacts",
|
"component": "hackspace.contacts",
|
||||||
"required": true
|
"required": true
|
||||||
|
},
|
||||||
|
"location": {
|
||||||
|
"type": "component",
|
||||||
|
"repeatable": false,
|
||||||
|
"component": "hackspace.location"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
34
src/components/hackspace/location.json
Normal file
34
src/components/hackspace/location.json
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
{
|
||||||
|
"collectionName": "components_hackspace_locations",
|
||||||
|
"info": {
|
||||||
|
"displayName": "location",
|
||||||
|
"icon": "pinMap",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"options": {},
|
||||||
|
"attributes": {
|
||||||
|
"address": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"lat": {
|
||||||
|
"type": "decimal"
|
||||||
|
},
|
||||||
|
"lon": {
|
||||||
|
"type": "decimal"
|
||||||
|
},
|
||||||
|
"timezone": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"country_code": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"hint": {
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
"areas": {
|
||||||
|
"type": "component",
|
||||||
|
"repeatable": true,
|
||||||
|
"component": "location.area"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
20
src/components/location/area.json
Normal file
20
src/components/location/area.json
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"collectionName": "components_location_areas",
|
||||||
|
"info": {
|
||||||
|
"displayName": "area",
|
||||||
|
"icon": "layout"
|
||||||
|
},
|
||||||
|
"options": {},
|
||||||
|
"attributes": {
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
"square_meters": {
|
||||||
|
"type": "decimal",
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue