Skip to content

Commit

Permalink
Update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sehyunchung committed Jul 23, 2024
1 parent 13c6bb5 commit 38b57c4
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 51 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
},
"css.customData": [
".vscode/tailwind.json"
]
],
"biome.enabled": false
}
28 changes: 8 additions & 20 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,20 @@
"preview": "deno run -A main.ts",
"update": "deno run -A -r https://fresh.deno.dev/update ."
},
"lint": {
"rules": {
"tags": [
"fresh",
"recommended"
]
}
},
"exclude": [
"**/_fresh/*"
],
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
"exclude": ["**/_fresh/*"],
"imports": {
"$fresh/": "https://deno.land/x/[email protected].1/",
"preact": "https://esm.sh/[email protected].2",
"preact/": "https://esm.sh/[email protected].2/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].1",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].0",
"$fresh/": "https://deno.land/x/[email protected].8/",
"preact": "https://esm.sh/[email protected].6",
"preact/": "https://esm.sh/[email protected].6/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].2",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].1",
"tailwindcss": "npm:[email protected]",
"tailwindcss/": "npm:/[email protected]/",
"tailwindcss/plugin": "npm:/[email protected]/plugin.js",
"@tailwindcss/typography": "npm:@tailwindcss/[email protected]",
"$std/": "https://deno.land/[email protected]/"
},
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "preact"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"nodeModulesDir": true
}
2 changes: 0 additions & 2 deletions fresh.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import * as $_404 from "./routes/_404.tsx";
import * as $_app from "./routes/_app.tsx";
import * as $_layout from "./routes/_layout.tsx";
import * as $_middleware from "./routes/_middleware.ts";
import * as $api_joke from "./routes/api/joke.ts";
import * as $index from "./routes/index.tsx";
import * as $notes_slug_ from "./routes/notes/[slug].tsx";
import * as $notes_layout from "./routes/notes/_layout.tsx";
Expand All @@ -20,7 +19,6 @@ const manifest = {
"./routes/_app.tsx": $_app,
"./routes/_layout.tsx": $_layout,
"./routes/_middleware.ts": $_middleware,
"./routes/api/joke.ts": $api_joke,
"./routes/index.tsx": $index,
"./routes/notes/[slug].tsx": $notes_slug_,
"./routes/notes/_layout.tsx": $notes_layout,
Expand Down
2 changes: 1 addition & 1 deletion routes/_layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PageProps } from "$fresh/server.ts";

export default function Layout({ Component, state }: PageProps) {
export default function Layout({ Component }: PageProps) {
return <Component />;
}
21 changes: 0 additions & 21 deletions routes/api/joke.ts

This file was deleted.

3 changes: 0 additions & 3 deletions routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { useSignal } from "@preact/signals";
import Counter from "../islands/Counter.tsx";

export default function Home() {
return (
<div>
Expand Down
4 changes: 1 addition & 3 deletions routes/notes/[slug].tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { CSS, render } from "https://deno.land/x/[email protected]/mod.ts";
import { Head } from "$fresh/runtime.ts";
import { render } from "https://deno.land/x/[email protected]/mod.ts";

import { extract } from "https://deno.land/[email protected]/encoding/front_matter.ts";
import { join } from "$std/path/mod.ts";

import { Handlers, PageProps } from "$fresh/server.ts";
import he120 from "https://esm.sh/[email protected]";

export interface Note {
title: string;
Expand Down

0 comments on commit 38b57c4

Please sign in to comment.