touchups after refactor

This commit is contained in:
Christian Beutel
2025-01-03 00:13:59 +01:00
parent 871481a84e
commit 0d2e71c2f6
32 changed files with 1157 additions and 45 deletions

View File

@@ -12,6 +12,7 @@ interface Activity {
elevation_loss: number;
type: "trail" | "summit_log"
author: string;
created: string;
}
export { type Activity }

View File

@@ -3,7 +3,7 @@ import type { Comment } from "../comment";
const CommentCreateSchema = z.object({
text: z.string(),
rating: z.number(),
rating: z.number().optional(),
author: z.string().length(15),
trail: z.string().length(15),

View File

@@ -3,7 +3,7 @@ import type { UserAnonymous } from "./user";
export class Comment {
id?: string;
text: string;
rating: number;
rating?: number;
author: string;
trail: string;
created?: string;

View File

@@ -1,4 +1,3 @@
import { object, string } from "yup";
import type { Trail } from "./trail";
import type { ListShare } from "./list_share";
import type { UserAnonymous } from "./user";
@@ -36,11 +35,4 @@ export interface ListFilter {
public?: boolean;
shared?: boolean;
sortOrder?: "+" | "-"
}
export const listSchema = object<List>({
id: string().optional(),
name: string().required(),
description: string().optional(),
avatar: string().optional()
});
}

View File

@@ -1,5 +1,4 @@
import * as M from "maplibre-gl";
import { number, object, string } from "yup";
class Waypoint {
id?: string;