Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 20
- name: Make the production plugin bundle
run: |
release_version=$(cat package.json | jq -r '.version')
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "geolocation",
"version": "1.5.2",
"version": "1.6.0",
"description": "A form field that provides the user's current geolocation",
"author": "andz-bb",
"license": "MIT",
Expand All @@ -12,7 +12,12 @@
},
"dependencies": {
"@crownframework/svelte-error-boundary": "^1.0.3",
"svelte": "^3.49.0"
"leaflet": "1.9.4",
"sanitize-html": "^2.17.0",
"screenfull": "6",
"svelte": "^3.49.0",
"tslib": "^2.8.1",
"uuid": "^13.0.0"
},
"devDependencies": {
"@budibase/backend-core": "^2.0.13",
Expand Down
57 changes: 50 additions & 7 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
"label": "Label",
"key": "label"
},
{
"type": "boolean",
"label": "Show output",
"key": "showOutput",
"defaultValue": true
},
{
"type": "boolean",
"label": "Disabled",
Expand All @@ -46,8 +40,14 @@
"type": "boolean",
"label": "Show button",
"key": "showButton",
"defaultValue": false
},
{
"type": "boolean",
"label": "Show output",
"key": "showOutput",
"defaultValue": true,
"dependsOn": "automode"
"dependsOn": "showButton"
},
{
"type": "number",
Expand All @@ -66,6 +66,49 @@
"type": "validation/number",
"label": "Longitude validation",
"key": "longitudeValidation"
},
{
"type": "boolean",
"label": "Show Map",
"key": "showMap",
"defaultValue": true
},
{
"type": "boolean",
"label": "Enable zoom",
"key": "zoomEnabled",
"defaultValue": true,
"dependsOn": "showMap"
},
{
"type": "text",
"label": "Default location",
"key": "defaultLocation",
"placeholder": "51.5072,-0.1276",
"dependsOn": "showMap"
},
{
"type": "number",
"label": "Default zoom (0-100)",
"key": "zoomLevel",
"placeholder": 50,
"max": 100,
"min": 0,
"dependsOn": "showMap"
},
{
"type": "text",
"label": "Tile URL",
"key": "tileURL",
"defaultValue": "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
"dependsOn": "showMap"
},
{
"type": "text",
"label": "Map attribution",
"key": "mapAttribution",
"defaultValue": "OpenStreetMap contributors",
"dependsOn": "showMap"
}
]
}
Expand Down
Loading