fixes icon & upload trail id
This commit is contained in:
@@ -119,7 +119,7 @@ const isNotHomepage = Astro.props.slug !== "";
|
||||
<h5 class="font-semibold">Resources</h5>
|
||||
<ul class="mt-4 text-sm">
|
||||
<li>
|
||||
<a href="https://github.com/Flomp/wanderer/wiki">
|
||||
<a href="https://demo.wanderer.to">
|
||||
Demo
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -520,21 +520,29 @@ HTTP Status Code **200**
|
||||
|
||||
|Name|Type|Required|Restrictions|Title|description|
|
||||
|---|---|---|---|---|---|
|
||||
|» name|string|true|none||none|
|
||||
|» public|boolean|true|none||none|
|
||||
|» difficulty|string|true|none||none|
|
||||
|» lat|number|true|none||none|
|
||||
|» lon|number|true|none||none|
|
||||
|» thumbnail|integer|true|none||none|
|
||||
|» photos|[string]|true|none||none|
|
||||
|» waypoints|[string]|true|none||none|
|
||||
|» summit_logs|[string]|true|none||none|
|
||||
|» expand|object|true|none||none|
|
||||
|»» waypoints|[string]|true|none||none|
|
||||
|»» summit_logs|[string]|true|none||none|
|
||||
|» tags|[string]|true|none||none|
|
||||
|» description|string|true|none||none|
|
||||
|» author|string|true|none||none|
|
||||
|» category|string|true|none||none|
|
||||
|» collectionId|string|true|none||none|
|
||||
|» collectionName|string|true|none||none|
|
||||
|» created|string|true|none||none|
|
||||
|» date|string|true|none||none|
|
||||
|» description|string|true|none||none|
|
||||
|» difficulty|string|true|none||none|
|
||||
|» distance|number|true|none||none|
|
||||
|» duration|number|true|none||none|
|
||||
|» elevation_gain|number|true|none||none|
|
||||
|» gpx|string|true|none||none|
|
||||
|» id|string|true|none||none|
|
||||
|» lat|number|true|none||none|
|
||||
|» location|string|true|none||none|
|
||||
|» lon|number|true|none||none|
|
||||
|» name|string|true|none||none|
|
||||
|» photos|[string]|true|none||none|
|
||||
|» public|boolean|true|none||none|
|
||||
|» summit_logs|[string]|true|none||none|
|
||||
|» thumbnail|integer|true|none||none|
|
||||
|» updated|string|true|none||none|
|
||||
|» waypoints|[string]|true|none||none|
|
||||
|
||||
HTTP Status Code **400**
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
on:mousedown|stopPropagation={() => handleItemClick(item)}
|
||||
>
|
||||
{#if item.icon}
|
||||
<i class="fa-regular fa-{item.icon} mr-3"></i>
|
||||
<i class="fa fa-{item.icon} mr-3"></i>
|
||||
{/if}
|
||||
<span class="whitespace-nowrap">{item.text}</span>
|
||||
</li>
|
||||
|
||||
@@ -19,7 +19,7 @@ export async function PUT(event: RequestEvent) {
|
||||
}
|
||||
|
||||
try {
|
||||
await trails_create(trail, [], data, event.fetch);
|
||||
trail = await trails_create(trail, [], data, event.fetch);
|
||||
} catch (e: any) {
|
||||
console.log(e);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user