Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

fix: more type checking errors #87

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,19 @@
"fmt": {},
"compilerOptions": {
"jsx": "react-jsx",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment",
"jsxImportSource": "preact"
},
"imports": {
"netzo/": "./lib/",
"$fresh/": "https://deno.land/x/[email protected]/",
"preact": "https://esm.sh/v135/[email protected]",
"preact/": "https://esm.sh/v135/[email protected]/",
"react": "https://esm.sh/v135/[email protected]/compat",
"react-dom": "https://esm.sh/v135/[email protected]/compat",
"@preact/signals": "https://esm.sh/v135/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/v135/*@preact/[email protected]",
"std/": "https://deno.land/[email protected]/",
"deno_kv_oauth/": "https://deno.land/x/[email protected]/",
"@/": "./"
}
}
2 changes: 1 addition & 1 deletion lib/components/blocks/kanban/kanban-column.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { CSS } from "../../../deps/@dnd-kit/utilities.ts";
import { useComputed } from "../../../deps/@preact/signals.ts";
import { KanbanCard } from "./kanban-card.tsx";
import { cva } from "../../../deps/class-variance-authority.ts";
import type { BadgeProps } from "../badge.tsx";
import type { BadgeProps } from "../../badge.tsx";
import { Card, CardContent, CardHeader } from "../../card.tsx";
import { Button } from "../../button.tsx";
import { ScrollArea, ScrollBar } from "../../scroll-area.tsx";
Expand Down
2 changes: 1 addition & 1 deletion lib/components/layout/header.auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
DropdownMenuShortcut,
DropdownMenuTrigger,
} from "../dropdown-menu.tsx";
import type { AuthUser } from "../../../auth/utils/db.ts";
import type { AuthUser } from "../../core/auth/utils/db.ts";

export type HeaderAuthProps = {
sessionUser?: AuthUser;
Expand Down
2 changes: 1 addition & 1 deletion lib/components/layout/nav.mobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Button } from "../button.tsx";
import { Sheet, SheetContent, SheetTrigger } from "../sheet.tsx";
import { Nav, type NavProps } from "./nav.tsx";
import { useUI } from "../../hooks/use-ui.ts";
import { Ctx } from "@/routes/_app.tsx";
// import { Ctx } from "@/routes/_app.tsx";

export const open = signal<boolean>(false);

Expand Down
2 changes: 1 addition & 1 deletion lib/components/layout/nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { cn } from "../utils.ts";
import { Separator } from "../separator.tsx";
import { buttonVariants } from "../button.tsx";
import { useUI } from "../../hooks/use-ui.ts";
import { Ctx } from "@/routes/_app.tsx";
// import { Ctx } from "@/routes/_app.tsx";

export type NavProps = IntrinsicElements["nav"] & {
/** A short title for the app at the navigation drawer. */
Expand Down
3 changes: 2 additions & 1 deletion lib/core/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ export const Netzo = async (config: Partial<NetzoConfig>) => {
const { default: dev } = await import("$fresh/dev.ts");
return dev(Deno.mainModule, "./netzo.ts", config);
} else {
return start((await import("@/fresh.gen.ts")).default, config);
const importLocation = "@/fresh.gen.ts";
return start((await import(importLocation)).default, config);
}
}, // NOTE: async but won't resolve (since dev/start won't) so we can't await it
};
Expand Down
2 changes: 1 addition & 1 deletion templates/crm/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@
"react/jsx-runtime": "https://esm.sh/v135/[email protected]/compat",
"zod": "https://deno.land/x/[email protected]/mod.ts"
}
}
}
2 changes: 1 addition & 1 deletion templates/minimal/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
"@/": "./",
"netzo/": "https://deno.land/x/[email protected]/"
}
}
}