This commit is contained in:
Christian Beutel
2024-06-11 03:10:32 +02:00
parent b58f44512f
commit c11114e726
10 changed files with 39 additions and 10 deletions

View File

@@ -1,3 +1,10 @@
# v0.6.1
## Bug fixes
- Fixes a bug that would show wrong comments under a trail
- Fixes an overflow issue in list views
- Settings are now created properly when signing up with OAuth
- Fixes a bug that caused properly named trails to get a generic name
# v0.6.0
## Features
- You can now share trails with other users by selecting "Share" from the trail contextmenu. You can set the permission level as "View" or "Edit".

View File

@@ -54,6 +54,22 @@ func main() {
}
}
collection, err := app.Dao().FindCollectionByNameOrId("settings")
if err != nil {
return err
}
settings := models.NewRecord(collection)
settings.Set("language", "en")
settings.Set("unit", "metric")
settings.Set("mapFocus", "trails")
settings.Set("user", record.Id)
if err := app.Dao().SaveRecord(settings); err != nil {
return err
}
return nil
})

View File

@@ -1,12 +1,12 @@
{
"name": "docs",
"version": "0.0.1",
"version": "0.6.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "docs",
"version": "0.0.1",
"version": "0.6.1",
"dependencies": {
"@astrojs/check": "^0.7.0",
"@astrojs/node": "^8.2.6",

View File

@@ -1,7 +1,7 @@
{
"name": "docs",
"type": "module",
"version": "0.0.1",
"version": "0.6.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",

View File

@@ -111,7 +111,7 @@ const isNotHomepage = Astro.props.slug !== "";
class="fill-primary dark:fill-white"
font-size="0.75rem"
>
v0.6.0
v0.6.1
</text>
</svg>
</div>

View File

@@ -3,6 +3,13 @@ title: Changelog
description: What changed in the last patch?
---
## v0.6.1
### Bug fixes
- Fixes a bug that would show wrong comments under a trail
- Fixes an overflow issue in list views
- Settings are now created properly when signing up with OAuth
- Fixes a bug that caused properly named trails to get a generic name
## v0.6.0
### Features
- You can now share trails with other users by selecting "Share" from the trail contextmenu. You can set the permission level as "View" or "Edit".

4
web/package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "wanderer",
"version": "0.6.0",
"version": "0.6.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "wanderer",
"version": "0.6.0",
"version": "0.6.1",
"dependencies": {
"@fortawesome/fontawesome-free": "^6.5.1",
"@sveltejs/adapter-node": "^4.0.1",

View File

@@ -1,6 +1,6 @@
{
"name": "wanderer",
"version": "0.6.0",
"version": "0.6.1",
"private": true,
"scripts": {
"dev": "vite dev",

View File

@@ -95,5 +95,5 @@
d="M43.857 43.3045C44.0569 43.0652 44.4246 43.0652 44.6245 43.3045L46.6259 45.7008C46.8978 46.0263 46.6663 46.5213 46.2421 46.5213H42.2394C41.8152 46.5213 41.5837 46.0263 41.8556 45.7008L43.857 43.3045Z"
fill="#242734"
/>
<text x="178" y="64" fill="white" font-size="0.75rem">v0.6.0</text>
<text x="178" y="64" fill="white" font-size="0.75rem">v0.6.1</text>
</svg>

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -19,8 +19,7 @@ export async function users_create(user: User) {
const createdUser: User = await r.json();
const settings = new Settings("metric", "en", "trails", createdUser.id!)
await settings_create(settings);
return createdUser;
}
export async function users_search(q: string) {