fix: chatgpt prompts

This commit is contained in:
2024-06-21 11:36:23 +02:00
parent 0adce93c81
commit 9fc57d45b5
10 changed files with 27 additions and 32 deletions

View File

@ -1,7 +1,7 @@
//routes/middleware-error-handler/_middleware.ts
import { MiddlewareHandlerContext } from "$fresh/server.ts";
import { DomainError } from "@lib/errors.ts";
import { getCookies } from "https://deno.land/std@0.197.0/http/cookie.ts";
import { getCookies } from "@std/http/cookie";
import { verify } from "https://deno.land/x/djwt@v2.2/mod.ts";
import * as cache from "@lib/cache/performance.ts";
import { JWT_SECRET } from "@lib/env.ts";

View File

@ -1,7 +1,7 @@
import { Handlers } from "$fresh/server.ts";
import { create, getNumericDate } from "https://deno.land/x/djwt@v2.2/mod.ts";
import { oauth2Client } from "@lib/auth.ts";
import { getCookies, setCookie } from "$std/http/cookie.ts";
import { getCookies, setCookie } from "@std/http/cookie";
import { codeChallengeMap } from "./login.ts";
import { GITEA_SERVER, JWT_SECRET, SESSION_DURATION } from "@lib/env.ts";
import { userDB } from "@lib/db.ts";

View File

@ -1,6 +1,6 @@
import { Handlers } from "$fresh/server.ts";
import { oauth2Client } from "@lib/auth.ts";
import { setCookie } from "$std/http/cookie.ts";
import { setCookie } from "@std/http/cookie";
export const codeChallengeMap = new Map<
string,

View File

@ -1,4 +1,4 @@
import { deleteCookie } from "https://deno.land/std@0.197.0/http/cookie.ts";
import { deleteCookie } from "@std/http/cookie";
import { Handlers } from "$fresh/server.ts";
export const handler: Handlers = {

View File

@ -6,7 +6,7 @@ import {
MagickGeometry,
} from "https://deno.land/x/imagemagick_deno@0.0.25/mod.ts";
import { parseMediaType } from "https://deno.land/std@0.175.0/media_types/parse_media_type.ts";
import { parseMediaType } from "https://deno.land/std@0.224.0/media_types/parse_media_type.ts";
import * as cache from "@lib/cache/image.ts";
import { SILVERBULLET_SERVER } from "@lib/env.ts";
import { ConcurrentPromiseQueue, PromiseQueue } from "@lib/promise.ts";

View File

@ -1,20 +1,15 @@
import { HandlerContext, Handlers } from "$fresh/server.ts";
import {
createDocument,
getDocument,
transformDocument,
} from "@lib/documents.ts";
import { createDocument } from "@lib/documents.ts";
import { fileExtension } from "https://deno.land/x/file_extension@v2.1.0/mod.ts";
import * as tmdb from "@lib/tmdb.ts";
import { parse, stringify } from "https://deno.land/std@0.194.0/yaml/mod.ts";
import { formatDate, safeFileName } from "@lib/string.ts";
import { safeFileName } from "@lib/string.ts";
import { json } from "@lib/helpers.ts";
import {
AccessDeniedError,
BadRequestError,
NotFoundError,
} from "@lib/errors.ts";
import { createSeries, getSeries, Series } from "@lib/resource/series.ts";
import { createSeries, getSeries } from "@lib/resource/series.ts";
import * as cache from "@lib/cache/cache.ts";
const isString = (input: string | undefined): input is string => {