Skip to content
Open
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
3 changes: 1 addition & 2 deletions packages/fresh/src/context_test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { expect } from "@std/expect";
import { Context } from "./context.ts";
import { App } from "fresh";
import { asset } from "fresh/runtime";
import { App, asset } from "fresh";
import { FakeServer } from "./test_utils.ts";
import { BUILD_ID } from "@fresh/build-id";
import { parseHtml } from "../tests/test_utils.tsx";
Expand Down
7 changes: 7 additions & 0 deletions packages/fresh/src/mod.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
export {
asset,
assetSrcSet,
IS_BROWSER,
Partial,
type PartialProps,
} from "@fresh/core/runtime";
export { App, type ListenOptions } from "./app.ts";
export { trailingSlashes } from "./middlewares/trailing_slashes.ts";
export {
Expand Down
3 changes: 1 addition & 2 deletions packages/fresh/tests/active_links_test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { App, staticFiles } from "fresh";
import { App, Partial, staticFiles } from "fresh";
import {
ALL_ISLAND_DIR,
assertNotSelector,
Expand All @@ -10,7 +10,6 @@ import {
} from "./test_utils.tsx";

import { FakeServer } from "../src/test_utils.ts";
import { Partial } from "fresh/runtime";

const allIslandCache = await buildProd({ islandDir: ALL_ISLAND_DIR });

Expand Down
3 changes: 1 addition & 2 deletions packages/fresh/tests/partials_test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { App, staticFiles } from "fresh";
import { Partial } from "fresh/runtime";
import { App, Partial, staticFiles } from "fresh";
import {
ALL_ISLAND_DIR,
assertMetaContent,
Expand Down
3 changes: 1 addition & 2 deletions www/routes/docs/[...slug].tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { HttpError, page } from "fresh";
import { asset, Partial } from "fresh/runtime";
import { asset, HttpError, page, Partial } from "fresh";
import { SidebarCategory } from "../../components/DocsSidebar.tsx";
import Footer from "../../components/Footer.tsx";
import Header from "../../components/Header.tsx";
Expand Down
3 changes: 1 addition & 2 deletions www/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { asset } from "fresh/runtime";
import { page } from "fresh";
import { asset, page } from "fresh";
import VERSIONS from "../../versions.json" with { type: "json" };
import Footer from "../components/Footer.tsx";
import Header from "../components/Header.tsx";
Expand Down
3 changes: 1 addition & 2 deletions www/routes/recipes/lemon-honey-tea.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Partial } from "fresh/runtime";
import type { RouteConfig } from "fresh";
import { Partial, type RouteConfig } from "fresh";

export const config: RouteConfig = {
skipAppWrapper: true,
Expand Down
3 changes: 1 addition & 2 deletions www/routes/recipes/lemonade.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Partial } from "fresh/runtime";
import type { RouteConfig } from "fresh";
import { Partial, type RouteConfig } from "fresh";

export const config: RouteConfig = {
skipAppWrapper: true,
Expand Down
3 changes: 1 addition & 2 deletions www/routes/recipes/lemondrop.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Partial } from "fresh/runtime";
import type { RouteConfig } from "fresh";
import { Partial, type RouteConfig } from "fresh";

export const config: RouteConfig = {
skipAppWrapper: true,
Expand Down
3 changes: 1 addition & 2 deletions www/routes/showcase-bak.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { asset } from "fresh/runtime";
import { page } from "fresh";
import { asset, page } from "fresh";
import Projects, { type Project } from "../components/Projects.tsx";
import Header from "../components/Header.tsx";
import Footer from "../components/Footer.tsx";
Expand Down
3 changes: 1 addition & 2 deletions www/routes/showcase.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { asset } from "fresh/runtime";
import { page } from "fresh";
import { asset, page } from "fresh";
import Projects, { type Project } from "../components/Projects.tsx";
import Header from "../components/Header.tsx";
import Footer from "../components/Footer.tsx";
Expand Down
3 changes: 1 addition & 2 deletions www/utils/markdown.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
export { extractYaml as frontMatter } from "@std/front-matter";

import * as Marked from "marked";
import { HttpError } from "fresh";
import { asset } from "fresh/runtime";
import { asset, HttpError } from "fresh";
import { escape as escapeHtml } from "@std/html";
import { mangle } from "marked-mangle";
import GitHubSlugger from "github-slugger";
Expand Down
Loading