From 6a88c5ea01a8341eb4ec4bdf374827d33cd819cd Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Fri, 12 Sep 2025 16:30:15 +0200 Subject: [PATCH] updated seeds --- .../development/seed/gallery.json | 4 + .../development/seed/items.json | 45 +-------- .../development/seed/layers.json | 98 ++++--------------- .../development/seed/layers_maps.json | 18 +--- .../development/seed/marker_icons.json | 4 +- .../development/seed/texts.json | 8 ++ .../development/seed/types.json | 16 +++ 7 files changed, 55 insertions(+), 138 deletions(-) diff --git a/backend/directus-config/development/seed/gallery.json b/backend/directus-config/development/seed/gallery.json index 1d8548fa..8d38324d 100644 --- a/backend/directus-config/development/seed/gallery.json +++ b/backend/directus-config/development/seed/gallery.json @@ -16,6 +16,10 @@ { "_sync_id": "b0c52d6e-b3d2-4e3b-89e2-065be324e27b", "hideInputLabel": false + }, + { + "_sync_id": "6d18b616-6f4f-4987-9860-681b88bdc068", + "hideInputLabel": false } ] } \ No newline at end of file diff --git a/backend/directus-config/development/seed/items.json b/backend/directus-config/development/seed/items.json index bd44cb0d..e239a083 100644 --- a/backend/directus-config/development/seed/items.json +++ b/backend/directus-config/development/seed/items.json @@ -40,8 +40,8 @@ "end": "2027-06-25T12:00:00" }, { - "_sync_id": "item-nomad-location-1", - "name": "Anton Tranelis", + "_sync_id": "item-user-1", + "name": "Max Mustermann", "text": "bla blab ...", "position": { "type": "Point", @@ -50,46 +50,7 @@ 51.41565268622562 ] }, - "layer" : "layer-nomads_location" - }, - { - "_sync_id": "item-nomad-base-1", - "name": "Anton Tranelis", - "text": "bla blab ...", - "position": { - "type": "Point", - "coordinates": [ - 9.67625824315172, - 48.41565268622562 - ] - }, - "layer" : "layer-nomads_base" - }, - { - "_sync_id": "item-vessel-1", - "name": "Vessel XY", - "text": "shipping the sea", - "position": { - "type": "Point", - "coordinates": [ - -2.67625824315172, - 48.61565268622562 - ] - }, - "layer" : "layer-vessels" - }, - { - "_sync_id": "item-basecamp-1", - "name": "Basecamp XY", - "text": "come and join our camp", - "position": { - "type": "Point", - "coordinates": [ - 1.6007423400878908, - 50.184428095190555 - ] - }, - "layer" : "layer-basecamps" + "layer" : "layer-people" } ] } \ No newline at end of file diff --git a/backend/directus-config/development/seed/layers.json b/backend/directus-config/development/seed/layers.json index 6fc73da9..7f138cbc 100644 --- a/backend/directus-config/development/seed/layers.json +++ b/backend/directus-config/development/seed/layers.json @@ -12,72 +12,13 @@ { "_sync_id": "layer-places", "name": "Places", - "itemType": "type-simple", + "itemType": "type-text-gallery", "userProfileLayer": false, - "indexIcon": "map-pin-outline", "menuColor": "#2ECDA7", - "menuIcon": "point-solid", "menuText": "Add new Place", + "markerIcon" : "marker-point", "markerShape" : "circle", "markerDefaultColor2": null, - "onlyOnePerOwner": false, - "index_plus_button": true, - "public_edit_items": false, - "listed": true, - "item_presets": null, - "sort": 1 - }, - { - "_sync_id": "layer-events", - "name": "Events", - "itemType": "type-event", - "userProfileLayer": false, - "indexIcon": "calendar-outline", - "menuColor": "#6644FF", - "menuIcon": "calendar-solid", - "menuText": "Add new Event", - "markerIcon" : "marker-calendar", - "markerShape" : "square", - "markerDefaultColor2": null, - "onlyOnePerOwner": false, - "index_plus_button": true, - "public_edit_items": false, - "listed": true, - "item_presets": null, - "sort": 5 - }, - { - "_sync_id": "layer-nomads_location", - "name": "Nomads Location", - "itemType": "type-ON_nomads_location", - "userProfileLayer": false, - "indexIcon": "users-outline", - "menuColor": "#18222F", - "menuIcon": "user-solid", - "menuText": "Share your Location", - "markerIcon" : "marker-user", - "markerShape" : "square", - "markerDefaultColor2": null, - "onlyOnePerOwner": true, - "index_plus_button": true, - "public_edit_items": false, - "listed": true, - "item_presets": null, - "sort": 1 - }, - { - "_sync_id": "layer-nomads_base", - "name": "Nomads Base", - "itemType": "type-ON_nomads_location", - "userProfileLayer": false, - "indexIcon": "house-outline", - "menuColor": "#B05463", - "menuIcon" : "house-solid", - "menuText": "Share a new Home Base", - "markerIcon" : "marker-house", - "markerShape" : "square", - "markerDefaultColor2": null, - "onlyOnePerOwner": true, "index_plus_button": true, "public_edit_items": false, "listed": true, @@ -85,42 +26,37 @@ "sort": 2 }, { - "_sync_id": "layer-vessels", - "name": "Vessels", - "itemType": "type-text-gallery", + "_sync_id": "layer-events", + "name": "Events", + "itemType": "type-event", "userProfileLayer": false, - "indexIcon": "boat-outline", - "menuColor": "#19898F", - "menuIcon" : "boat-solid", - "menuText": "Add a new Vessel", - "markerIcon" : "marker-boat", + "menuColor": "#6644FF", + "menuText": "Add new Event", + "markerIcon" : "marker-calendar", "markerShape" : "square", "markerDefaultColor2": null, - "onlyOnePerOwner": true, "index_plus_button": true, "public_edit_items": false, "listed": true, "item_presets": null, "sort": 3 }, + { - "_sync_id": "layer-basecamps", - "name": "Basecamps", - "itemType": "type-text-gallery", - "userProfileLayer": false, - "indexIcon": "camp-solid", - "menuColor": "#FFA439", - "menuIcon" : "camp-solid", - "menuText": "Add a new Basecamp", - "markerIcon" : "marker-camp", + "_sync_id": "layer-people", + "name": "People", + "itemType": "type-user-text-gallery", + "userProfileLayer": true, + "menuColor": "#19898F", + "menuText": "Add a new Vessel", + "markerIcon" : "marker-user", "markerShape" : "square", "markerDefaultColor2": null, - "onlyOnePerOwner": true, "index_plus_button": true, "public_edit_items": false, "listed": true, "item_presets": null, - "sort": 4 + "sort": 1 } ] } \ No newline at end of file diff --git a/backend/directus-config/development/seed/layers_maps.json b/backend/directus-config/development/seed/layers_maps.json index ff4e0e94..ad943771 100644 --- a/backend/directus-config/development/seed/layers_maps.json +++ b/backend/directus-config/development/seed/layers_maps.json @@ -15,23 +15,13 @@ "maps_id": "map-local-development" }, { - "_sync_id": "layer-nomads-location-map-local-development", - "layers_id": "layer-nomads_location", + "_sync_id": "layer-people-map-local-development", + "layers_id": "layer-people", "maps_id": "map-local-development" }, { - "_sync_id": "layer-nomads-base-map-local-development", - "layers_id": "layer-nomads_base", - "maps_id": "map-local-development" - }, - { - "_sync_id": "layer-vessel-map-local-development", - "layers_id": "layer-vessels", - "maps_id": "map-local-development" - }, - { - "_sync_id": "layer-basecamps-map-local-development", - "layers_id": "layer-basecamps", + "_sync_id": "layer-places-map-local-development", + "layers_id": "layer-places", "maps_id": "map-local-development" } ] diff --git a/backend/directus-config/development/seed/marker_icons.json b/backend/directus-config/development/seed/marker_icons.json index b168ac1c..2554cc86 100644 --- a/backend/directus-config/development/seed/marker_icons.json +++ b/backend/directus-config/development/seed/marker_icons.json @@ -133,7 +133,9 @@ "_sync_id": "marker-point", "id": "point", "size": "12.00000", - "image": "point-solid" + "image": "point-solid", + "image_outline": "map-pin-outline", + "size_outline": "18.00000" }, { "_sync_id": "marker-puzzle", diff --git a/backend/directus-config/development/seed/texts.json b/backend/directus-config/development/seed/texts.json index e5447001..3877c904 100644 --- a/backend/directus-config/development/seed/texts.json +++ b/backend/directus-config/development/seed/texts.json @@ -24,6 +24,14 @@ "hideWhenEmpty": true, "showMarkdownHint": true, "size": "full" + }, + { + "_sync_id": "c960bbfc-5d98-4f6d-ae44-7a2b63d3359b", + "dataField": "text", + "heading": null, + "hideWhenEmpty": true, + "showMarkdownHint": true, + "size": "full" } ] } \ No newline at end of file diff --git a/backend/directus-config/development/seed/types.json b/backend/directus-config/development/seed/types.json index 92704e1b..42f58d09 100644 --- a/backend/directus-config/development/seed/types.json +++ b/backend/directus-config/development/seed/types.json @@ -65,6 +65,22 @@ "show_name_input" : true, "show_header_view_in_form" : false, "small_form_edit" : false + }, + { + "_sync_id": "type-user-text-gallery", + "name": "user:text+gallery", + "user_created": null, + "date_created": "2025-01-01T00:00:00.000Z", + "user_updated": null, + "date_updated": null, + "template": "flex", + "show_text": true, + "show_profile_button" : true, + "show_start_end" : false, + "show_text_input" : false, + "show_name_input" : false, + "show_header_view_in_form" : false, + "small_form_edit" : false } ] }