Start renaming
This commit is contained in:
@@ -5,7 +5,7 @@ import { SideBySide } from "../../components/SideBySide.tsx";
|
||||
import { SectionHeading } from "../../components/homepage/SectionHeading.tsx";
|
||||
import { FancyLink } from "../../components/FancyLink.tsx";
|
||||
|
||||
const apiCode = `import { createDefine } from "fresh";
|
||||
const apiCode = `import { createDefine } from "sweet";
|
||||
const define = createDefine();
|
||||
|
||||
export const handlers = define.handlers({
|
||||
|
||||
@@ -8,7 +8,7 @@ import { ExampleArrow } from "../homepage/ExampleArrow.tsx";
|
||||
import { FancyLink } from "../FancyLink.tsx";
|
||||
import { FormSubmitDemo } from "../../islands/FormSubmitDemo.tsx";
|
||||
|
||||
const routingCode = `import { createDefine } from "fresh";
|
||||
const routingCode = `import { createDefine } from "sweet";
|
||||
const define = createDefine();
|
||||
|
||||
export const handler = define.handlers({
|
||||
|
||||
@@ -5,7 +5,7 @@ import { SideBySide } from "../../components/SideBySide.tsx";
|
||||
import { SectionHeading } from "../../components/homepage/SectionHeading.tsx";
|
||||
import { FancyLink } from "../../components/FancyLink.tsx";
|
||||
|
||||
const headCode = `import { Head } from "fresh/runtime";
|
||||
const headCode = `import { Head } from "sweet/runtime";
|
||||
|
||||
export default function MyPage() {
|
||||
return (
|
||||
|
||||
@@ -19,7 +19,7 @@ export function Hero() {
|
||||
</p>
|
||||
<div class="mt-12 flex flex-wrap justify-center items-stretch md:justify-start gap-4">
|
||||
<FancyLink href="/docs/getting-started">Get started</FancyLink>
|
||||
<CopyArea code={`deno run -Ar jsr:@fresh/init`} />
|
||||
<CopyArea code={`deno run -Ar jsr:@paulaboks/sweet-init`} />
|
||||
</div>
|
||||
</div>
|
||||
<div class="md:col-span-2 flex justify-center items-end pb-8 md:pb-32">
|
||||
|
||||
@@ -8,7 +8,7 @@ import { ExampleArrow } from "../../components/homepage/ExampleArrow.tsx";
|
||||
import { RecipeDemo } from "../../components/homepage/RecipeDemo.tsx";
|
||||
import { FancyLink } from "../../components/FancyLink.tsx";
|
||||
|
||||
const islandCode = `import { Partial } from "fresh/runtime";
|
||||
const islandCode = `import { Partial } from "sweet/runtime";
|
||||
|
||||
export const Recipes = () => (
|
||||
<div f-client-nav>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Partial } from "fresh/runtime";
|
||||
import { Partial } from "sweet/runtime";
|
||||
|
||||
export const RecipeDemo = () => (
|
||||
<div
|
||||
|
||||
@@ -5,7 +5,7 @@ import { SideBySide } from "../../components/SideBySide.tsx";
|
||||
import { SectionHeading } from "../../components/homepage/SectionHeading.tsx";
|
||||
import { FancyLink } from "../../components/FancyLink.tsx";
|
||||
|
||||
const otelCode = `import { App } from "fresh";
|
||||
const otelCode = `import { App } from "sweet";
|
||||
|
||||
// When OpenTelemetry is active, Fresh
|
||||
// auto-injects a <meta name="traceparent">
|
||||
|
||||
@@ -21,7 +21,7 @@ export async function GET() {
|
||||
}`;
|
||||
|
||||
const FRESH_EXAMPLE = `// main.ts — that's it.
|
||||
import { App } from "fresh";
|
||||
import { App } from "sweet";
|
||||
|
||||
const app = new App()
|
||||
.get("/", (ctx) =>
|
||||
|
||||
@@ -5,7 +5,7 @@ import { SideBySide } from "../../components/SideBySide.tsx";
|
||||
import { SectionHeading } from "../../components/homepage/SectionHeading.tsx";
|
||||
import { FancyLink } from "../../components/FancyLink.tsx";
|
||||
|
||||
const transitionCode = `import { App } from "fresh";
|
||||
const transitionCode = `import { App } from "sweet";
|
||||
|
||||
const app = new App({
|
||||
// Enable the View Transitions API
|
||||
|
||||
@@ -5,7 +5,7 @@ import { SideBySide } from "../../components/SideBySide.tsx";
|
||||
import { SectionHeading } from "../../components/homepage/SectionHeading.tsx";
|
||||
import { FancyLink } from "../../components/FancyLink.tsx";
|
||||
|
||||
const wsCode = `import { App } from "fresh";
|
||||
const wsCode = `import { App } from "sweet";
|
||||
|
||||
const app = new App();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user