~kyoheiu/frssco

064ba2414df978ae943c1271f5d1d926a7cebe61 — Kyohei Uto 9 months ago 9927e9e
deno fmt
5 files changed, 6 insertions(+), 6 deletions(-)

M deno.json
M import_map.json
M main.ts
M routes/api/edit.ts
M types/types.ts
M deno.json => deno.json +1 -1
@@ 7,4 7,4 @@
    "jsx": "react-jsx",
    "jsxImportSource": "preact"
  }
}
\ No newline at end of file
}

M import_map.json => import_map.json +1 -1
@@ 8,4 8,4 @@
    "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.2.3",
    "std/": "https://deno.land/std@0.183.0/"
  }
}
\ No newline at end of file
}

M main.ts => main.ts +1 -1
@@ 8,5 8,5 @@ import { start } from "$fresh/server.ts";
import manifest from "./fresh.gen.ts";

await start(manifest, {
    port: 8080
  port: 8080,
});

M routes/api/edit.ts => routes/api/edit.ts +1 -1
@@ 5,7 5,7 @@ export const handler: Handlers = {
    const url = new URL(req.url);
    const query = url.searchParams.get("textarea") || "";
    try {
      Deno.writeTextFileSync("feed.txt", `\n${query}`, { append: false});
      Deno.writeTextFileSync("feed.txt", `\n${query}`, { append: false });
      return Response.redirect(url.origin);
    } catch (e) {
      return new Response(e, {

M types/types.ts => types/types.ts +2 -2
@@ 5,8 5,8 @@ export interface FeedsState {
}

export interface EditState {
  source: string,
  loggedIn: boolean
  source: string;
  loggedIn: boolean;
}

export interface ParsedDescription {