🎨 remove long relatives paths -> short module paths

This commit is contained in:
Flam3rboy
2021-09-12 21:09:29 +02:00
parent 7eea37d184
commit 60535f5159
79 changed files with 1633 additions and 261 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import { Router, Request, Response } from "express";
import { User } from "../../../../../util/dist";
import { User } from "@fosscord/util";
const router: Router = Router();
+1 -1
View File
@@ -1,5 +1,5 @@
import { Router, Request, Response } from "express";
import { PublicConnectedAccount, PublicUser, User, UserPublic } from "../../../../../util/dist";
import { PublicConnectedAccount, PublicUser, User, UserPublic } from "@fosscord/util";
const router: Router = Router();
+2 -4
View File
@@ -1,11 +1,9 @@
import { Router, Request, Response } from "express";
import { Channel, ChannelCreateEvent, ChannelType, Snowflake, trimSpecial, User, emitEvent } from "@fosscord/util";
import { Channel, ChannelCreateEvent, ChannelType, Snowflake, trimSpecial, User, emitEvent, Recipient } from "@fosscord/util";
import { HTTPError } from "lambert-server";
import { DmChannelCreateSchema } from "../../../schema/Channel";
import { check } from "../../../util/instanceOf";
import { check } from "@fosscord/api";
import { In } from "typeorm";
import { Recipient } from "../../../../../util/dist/entities/Recipient";
const router: Router = Router();
+2 -2
View File
@@ -1,8 +1,8 @@
import { Router, Request, Response } from "express";
import { User, PrivateUserProjection } from "@fosscord/util";
import { UserModifySchema } from "../../../schema/User";
import { check } from "../../../util/instanceOf";
import { handleFile } from "../../../util/cdn";
import { check } from "@fosscord/api";
import { handleFile } from "@fosscord/api";
const router: Router = Router();
+1 -1
View File
@@ -12,7 +12,7 @@ import { Router, Response, Request } from "express";
import { HTTPError } from "lambert-server";
import { DiscordApiErrors } from "@fosscord/util";
import { check, Length } from "../../../util/instanceOf";
import { check, Length } from "@fosscord/api";
const router = Router();
+1 -1
View File
@@ -1,6 +1,6 @@
import { Router, Response, Request } from "express";
import { User, UserSettings } from "@fosscord/util";
import { check } from "../../../util/instanceOf";
import { check } from "@fosscord/api";
import { UserSettingsSchema } from "../../../schema/User";
const router = Router();