mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor: 🚚 Explicitely add extensions to all imports
This commit is contained in:
parent
b5b7014c00
commit
b53307c824
99 changed files with 168 additions and 169 deletions
|
|
@ -26,7 +26,7 @@ import type { Application } from "~/classes/functions/application";
|
|||
import { type AuthData, getFromHeader } from "~/classes/functions/user";
|
||||
import { db } from "~/drizzle/db";
|
||||
import { Challenges } from "~/drizzle/schema";
|
||||
import { config } from "~/packages/config-manager/index";
|
||||
import { config } from "~/packages/config-manager/index.ts";
|
||||
import type { User } from "~/packages/database-interface/user";
|
||||
import type { ApiRouteMetadata, HonoEnv, HttpVerb } from "~/types/api";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { config } from "~/packages/config-manager/index";
|
||||
import { config } from "~/packages/config-manager/index.ts";
|
||||
|
||||
export const oauthRedirectUri = (issuer: string) =>
|
||||
new URL(`/oauth/sso/${issuer}/callback`, config.http.base_url).toString();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { getLogger } from "@logtape/logtape";
|
||||
import { markdownParse } from "~/classes/functions/status";
|
||||
import { sentry } from "./sentry";
|
||||
import { sentry } from "./sentry.ts";
|
||||
|
||||
export const renderMarkdownInPath = async (
|
||||
path: string,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import * as Sentry from "@sentry/bun";
|
||||
import pkg from "~/package.json";
|
||||
import { config } from "~/packages/config-manager/index";
|
||||
import { config } from "~/packages/config-manager/index.ts";
|
||||
|
||||
const sentryInstance =
|
||||
config.logging.sentry.enabled &&
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import type { OpenAPIHono } from "@hono/zod-openapi";
|
||||
import type { Config } from "~/packages/config-manager/config.type";
|
||||
import type { HonoEnv } from "~/types/api";
|
||||
import { debugResponse } from "./api";
|
||||
import { debugResponse } from "./api.ts";
|
||||
|
||||
export const createServer = (config: Config, app: OpenAPIHono<HonoEnv>) =>
|
||||
Bun.serve({
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import type {
|
|||
import type { Status, findManyNotes } from "~/classes/functions/status";
|
||||
import type { UserType, findManyUsers } from "~/classes/functions/user";
|
||||
import type { db } from "~/drizzle/db";
|
||||
import { config } from "~/packages/config-manager/index";
|
||||
import { config } from "~/packages/config-manager/index.ts";
|
||||
|
||||
export async function fetchTimeline<T extends UserType | Status | Notification>(
|
||||
model:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue