From 30f35714659318112f3cb53fd12352849046bd96 Mon Sep 17 00:00:00 2001 From: Tomofumi Chiba Date: Sat, 13 Jan 2024 21:43:51 +0900 Subject: [PATCH] fix --- README.md | 4 ++-- cli.ts | 6 +++--- routes/_app.tsx | 2 +- routes/_middleware.ts | 3 +++ routes/about.tsx | 16 +++++++++------- routes/index.tsx | 6 +++--- routes/posts/[postId]/index.tsx | 2 +- routes/search.tsx | 4 ++-- routes/settings.tsx | 6 +++--- routes/shortcuts.tsx | 6 +++--- routes/users/[userId].tsx | 2 +- 11 files changed, 31 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 7b83f63..62c1430 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Made with Fresh](https://fresh.deno.dev/fresh-badge.svg)](https://fresh.deno.dev) -Source code for https://leaves.deno.dev/ . +Source code for https://leaves.chiba.dev/ . [Zenn article](https://zenn.dev/chiba/articles/md-sns-deno-fresh) @@ -13,7 +13,7 @@ Source code for https://leaves.deno.dev/ . ### Install ``` -deno install -f -n s --allow-net=leaves.deno.dev https://raw.githubusercontent.com/chibat/leaves/main/cli.ts +deno install -f -n s --allow-net=leaves.chiba.dev https://raw.githubusercontent.com/chibat/leaves/main/cli.ts ``` ## References diff --git a/cli.ts b/cli.ts index ff02e9a..f3342bc 100755 --- a/cli.ts +++ b/cli.ts @@ -1,4 +1,4 @@ -#!/usr/bin/env -S deno run --allow-net=localhost,leaves.deno.dev,leaves--develop.deno.dev +#!/usr/bin/env -S deno run --allow-net=localhost,leaves.chiba.dev,leaves--develop.deno.dev import { Input } from "https://deno.land/x/cliffy@v1.0.0-rc.3/prompt/input.ts"; import { Select } from "https://deno.land/x/cliffy@v1.0.0-rc.3/prompt/select.ts"; @@ -14,7 +14,7 @@ const COMMAND_OPTIONS = [{ value: -1, name: ":Back" }, { const keys = { next: ["j", "down"], previous: ["k", "up"] }; const API_PATH = Deno.args.at(0) === "dev" ? "http://localhost:8000/api/cli" - : "https://leaves.deno.dev/api/cli"; + : "https://leaves.chiba.dev/api/cli"; let list: Array<{ value: number; name: string }> = []; let searchSkip = false; @@ -67,7 +67,7 @@ while (true) { console.log( "---------------------------------------------------------------------------------", ); - console.log(`https://leaves.deno.dev/posts/${postId}`); + console.log(`https://leaves.chiba.dev/posts/${postId}`); const option: any = await Select.prompt({ message: "Select", options: COMMAND_OPTIONS, diff --git a/routes/_app.tsx b/routes/_app.tsx index 0ffb3df..7709ea0 100644 --- a/routes/_app.tsx +++ b/routes/_app.tsx @@ -41,7 +41,7 @@ export default function App({ Component }: PageProps) {