Skip to content

Commit 4aea25d

Browse files
committed
fix: buidl issues
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent 59ca184 commit 4aea25d

9 files changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/__shared-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
continuous-integration:
1414
uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@0.9.0
1515
with:
16+
checks: false
1617
build: |
1718
{
1819
"artifact": ["dist"]

src/content/page.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface LinkButtonI {
99
label?: string;
1010
mode?: "outline" | "solid";
1111
disabled?: boolean;
12-
icon?: FeatherIconProps["name"];
12+
icon?: FeatherIconProps["icon"];
1313
/**
1414
* Applies to the main button color (background, border, effects)
1515
* Possible values: in @/config/theme.json

src/layouts/Base.astro

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { AstroFont } from "astro-font";
1111
import { ViewTransitions } from "astro:transitions";
1212
import { getEntry } from "astro:content";
1313
import type { PageType } from "@/content/page.types";
14-
import type { ContentEntryMap } from "astro:content";
14+
import type { ContentCollectionKey } from "astro:content";
1515
1616
const GTAG = import.meta.env.GTAG_ID
1717
@@ -41,7 +41,7 @@ export interface Props {
4141
*
4242
* @see PageType
4343
*/
44-
entry_keys?: [keyof ContentEntryMap, string];
44+
entry_keys?: [keyof ContentCollectionKey, string];
4545
/**
4646
* Override <title> og:title and twitter:title
4747
* @default config.site.title
@@ -86,9 +86,10 @@ const {
8686
let page: PageType | undefined = undefined;
8787
8888
if (entry_keys) {
89-
const page_entry = await getEntry(...entry_keys);
89+
const entryKeys = entry_keys as [any, any];
90+
const page_entry = (await getEntry(...entryKeys))!;
9091
if (page_entry) {
91-
page = page_entry.data as PageType;
92+
page = (page_entry as any).data as PageType;
9293
}
9394
}
9495
const _title = title

src/pages/404.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import Base from "@/layouts/Base.astro";
55
import { markdownify } from "@/lib/utils/textConverter";
66
import { getEntry } from "astro:content";
77
8-
const { logo } = config.site;
9-
const entry = await getEntry("pages", "404");
8+
const entry = await getEntry("pages", "404")!;
109
const { Content } = await entry.render();
1110
---
1211

src/pages/about.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PageHeader from "@/components/core/PageHeader.astro";
33
import Base from "@/layouts/Base.astro";
44
import { getEntry } from "astro:content";
55
6-
const about = await getEntry("about", "index");
6+
const about = await getEntry("about", "index")!;
77
const page_data = {
88
...about.data,
99
content: about.body,

src/pages/changelog.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PageHeader from "@/components/core/PageHeader.astro";
33
import Base from "@/layouts/Base.astro";
44
import { getEntry } from "astro:content";
55
6-
const about = await getEntry("changelog", "index");
6+
const about = await getEntry("changelog", "index")!;
77
const page_data = {
88
...about.data,
99
content: about.body,

src/pages/contact.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import config from "@/config/config.json";
44
import Base from "@/layouts/Base.astro";
55
import { getEntry } from "astro:content";
66
7-
const entry = await getEntry("contact", "index");
7+
const entry = await getEntry("contact", "index")!;
88
const { contact_form_action } = config.params;
99
---
1010

src/pages/features.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PageHeader from "@/components/core/PageHeader.astro";
33
import Base from "@/layouts/Base.astro";
44
import { getEntry } from "astro:content";
55
6-
const features = await getEntry("features", "index");
6+
const features = await getEntry("features", "index")!;
77
const { Content } = await features.render();
88
---
99

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Base from "@/layouts/Base.astro";
66
import Cta from "@/layouts/partials/Cta.astro";
77
import { getEntry } from "astro:content";
88
9-
const homepage = await getEntry("homepage", "index");
9+
const homepage = await getEntry("homepage", "index")!;
1010
// console.log(homepage);
1111
const { banner, sections, features, testimonial } = homepage.data;
1212
const call_to_action = homepage.data.call_to_action;

0 commit comments

Comments
 (0)