major: import Fresh 2.0 code (#2449)

🎉
This commit is contained in:
Marvin Hagemeister
2024-05-24 09:40:08 +02:00
committed by GitHub
parent 990357629e
commit 287929e4d2
958 changed files with 15794 additions and 28287 deletions
+2 -6
View File
@@ -1,13 +1,9 @@
import { PageProps } from "$fresh/server.ts";
import { Head } from "$fresh/runtime.ts";
import Header from "$fresh/www/components/Header.tsx";
import type { PageProps } from "@fresh/core";
import Header from "../../components/Header.tsx";
export default function Layout({ Component, state }: PageProps) {
return (
<>
<Head>
<meta name="robots" content="noindex" />
</Head>
<Header active="" title="" />
<div class="w-full max-w-screen-xl px-4">
+6
View File
@@ -0,0 +1,6 @@
import { df } from "../../utils/state.ts";
export const handler = df.defineMiddleware((ctx) => {
ctx.state.noIndex = true;
return ctx.next();
});
+2 -2
View File
@@ -1,5 +1,5 @@
import { Partial } from "$fresh/runtime.ts";
import { RouteConfig } from "$fresh/server.ts";
import { Partial } from "@fresh/core/runtime";
import type { RouteConfig } from "@fresh/core";
export const config: RouteConfig = {
skipAppWrapper: true,
+2 -2
View File
@@ -1,5 +1,5 @@
import { Head, Partial } from "$fresh/runtime.ts";
import { RouteConfig } from "$fresh/server.ts";
import { Partial } from "@fresh/core/runtime";
import type { RouteConfig } from "@fresh/core";
export const config: RouteConfig = {
skipAppWrapper: true,
+2 -2
View File
@@ -1,5 +1,5 @@
import { Partial } from "$fresh/runtime.ts";
import { RouteConfig } from "$fresh/server.ts";
import { Partial } from "@fresh/core/runtime";
import type { RouteConfig } from "@fresh/core";
export const config: RouteConfig = {
skipAppWrapper: true,