Skip to content

Commit

Permalink
Merge pull request #3 from JulienR1/feature/schedule-page
Browse files Browse the repository at this point in the history
Feature/schedule page
  • Loading branch information
JulienR1 authored Mar 2, 2025
2 parents 9d3d67c + e3db7b0 commit a3962e1
Show file tree
Hide file tree
Showing 31 changed files with 1,732 additions and 374 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ jobs:
npm run build
- run: npm ci
- run: npm run lint
- run: npm run test --if-present
- run: npm run test -- run
- run: npm run build

21 changes: 21 additions & 0 deletions packages/common/src/models/activities.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { z } from "zod";

export const Time = z.object({ hour: z.number(), minute: z.number() });

export const Activity = z.object({
type: z.number(),
title: z.string(),
subtitle: z.string().optional(),
time: z.object({ start: Time, end: Time }),
lessons: z.object({
count: z.number(),
first: z.date(),
last: z.date(),
exceptions: z.array(z.date()),
}),
price: z.number(),
color: z.string(),
});

export type Time = z.infer<typeof Time>;
export type Activity = z.infer<typeof Activity>;
File renamed without changes.
3 changes: 2 additions & 1 deletion packages/common/src/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from "./partners"
export * from "./image"
export * from "./images"
export * from "./activities"
2 changes: 1 addition & 1 deletion packages/common/src/models/partners.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { z } from "zod";
import { Image } from "./image";
import { Image } from "./images";

export const Partner = z.object({
label: z.string(),
Expand Down
3 changes: 0 additions & 3 deletions packages/web/.prettierrc.json

This file was deleted.

6 changes: 3 additions & 3 deletions packages/web/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
site: "https://trampolineintercite.com",
integrations: [sitemap(), tailwind()],
});
site: "https://trampolineintercite.com",
integrations: [sitemap(), tailwind()],
});
Loading

0 comments on commit a3962e1

Please sign in to comment.