feat: import fresh from fresh (#2479)
Instead of importing as `@fresh/core`.
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { asset } from "@fresh/core/runtime";
|
||||
import { asset } from "fresh/runtime";
|
||||
import { define } from "../utils/state.ts";
|
||||
|
||||
export default define.page(function App({ Component, state, url }) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { HttpError, type PageProps } from "@fresh/core";
|
||||
import { HttpError, type PageProps } from "fresh";
|
||||
import LemonDrop from "../islands/LemonDrop.tsx";
|
||||
|
||||
export function ServerCodePage(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { FreshContext } from "@fresh/core";
|
||||
import type { FreshContext } from "fresh";
|
||||
import type { Event } from "$ga4";
|
||||
import { GA4Report, isDocument, isServerError } from "$ga4";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpError, page } from "@fresh/core";
|
||||
import { asset, Partial } from "@fresh/core/runtime";
|
||||
import { HttpError, page } from "fresh";
|
||||
import { asset, Partial } from "fresh/runtime";
|
||||
import { SidebarCategory } from "../../components/DocsSidebar.tsx";
|
||||
import Footer from "../../components/Footer.tsx";
|
||||
import Header from "../../components/Header.tsx";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { FreshContext } from "@fresh/core";
|
||||
import type { FreshContext } from "fresh";
|
||||
|
||||
const REDIRECTS: Record<string, string> = {
|
||||
"/docs/getting-started/fetching-data":
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Handlers } from "@fresh/core/compat";
|
||||
import type { Handlers } from "fresh/compat";
|
||||
|
||||
export const handler: Handlers<void> = {
|
||||
GET(ctx) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { asset } from "@fresh/core/runtime";
|
||||
import { page } from "@fresh/core";
|
||||
import { asset } from "fresh/runtime";
|
||||
import { page } from "fresh";
|
||||
import VERSIONS from "../../versions.json" with { type: "json" };
|
||||
import Footer from "../components/Footer.tsx";
|
||||
import Header from "../components/Header.tsx";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import type { RouteConfig } from "@fresh/core";
|
||||
import type { RouteConfig } from "fresh";
|
||||
import { format, parse } from "$std/semver/mod.ts";
|
||||
import VERSIONS from "../../versions.json" with { type: "json" };
|
||||
import { extname } from "$std/path/mod.ts";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { PageProps } from "@fresh/core";
|
||||
import type { PageProps } from "fresh";
|
||||
import Header from "../../components/Header.tsx";
|
||||
|
||||
export default function Layout({ Component }: PageProps) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Partial } from "@fresh/core/runtime";
|
||||
import type { RouteConfig } from "@fresh/core";
|
||||
import { Partial } from "fresh/runtime";
|
||||
import type { RouteConfig } from "fresh";
|
||||
|
||||
export const config: RouteConfig = {
|
||||
skipAppWrapper: true,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Partial } from "@fresh/core/runtime";
|
||||
import type { RouteConfig } from "@fresh/core";
|
||||
import { Partial } from "fresh/runtime";
|
||||
import type { RouteConfig } from "fresh";
|
||||
|
||||
export const config: RouteConfig = {
|
||||
skipAppWrapper: true,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Partial } from "@fresh/core/runtime";
|
||||
import type { RouteConfig } from "@fresh/core";
|
||||
import { Partial } from "fresh/runtime";
|
||||
import type { RouteConfig } from "fresh";
|
||||
|
||||
export const config: RouteConfig = {
|
||||
skipAppWrapper: true,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { asset } from "@fresh/core/runtime";
|
||||
import { page } from "@fresh/core";
|
||||
import { asset } from "fresh/runtime";
|
||||
import { page } from "fresh";
|
||||
import Projects, { type Project } from "../components/Projects.tsx";
|
||||
import Header from "../components/Header.tsx";
|
||||
import Footer from "../components/Footer.tsx";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { page } from "@fresh/core";
|
||||
import { page } from "fresh";
|
||||
import { PageSection } from "../components/PageSection.tsx";
|
||||
import { DemoBox } from "../components/homepage/DemoBox.tsx";
|
||||
import { define } from "../utils/state.ts";
|
||||
|
||||
Reference in New Issue
Block a user