mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 10:53:01 +00:00
Signify some imports more explicitly
This commit is contained in:
1 parent
92f4099b82
commit
6e0f571b35
192 files changed
+195
-195
No files matched your search
@@ -17,10 +17,10 @@
|
||||
*/
|
||||
|
||||
import { BeforeRemove, Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm";
|
||||
import { Config, deleteFile } from "../../util/util";
|
||||
import { Config, deleteFile } from "@spacebar/util/util";
|
||||
import { getUrlSignature, NewUrlUserSignatureData, NewUrlSignatureData } from "@spacebar/util/Signing";
|
||||
import { PublicAttachment } from "@spacebar/schemas/api/messages/Attachments";
|
||||
import { BaseClass } from "./BaseClass";
|
||||
import { getUrlSignature, NewUrlUserSignatureData, NewUrlSignatureData } from "../../util/Signing";
|
||||
import { PublicAttachment } from "../../schemas/api/messages/Attachments";
|
||||
|
||||
@Entity({
|
||||
name: "attachments",
|
||||
|
||||
@@ -20,7 +20,7 @@ import { Column, Entity, JoinColumn, ManyToOne } from "typeorm";
|
||||
import { BaseClass } from "./BaseClass";
|
||||
import { User } from "./User";
|
||||
import crypto from "node:crypto";
|
||||
import { Config } from "../../util/util";
|
||||
import { Config } from "@spacebar/util/util";
|
||||
|
||||
@Entity({
|
||||
name: "backup_codes",
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
|
||||
import { BaseEntity, BeforeInsert, BeforeUpdate, FindOptionsWhere, PrimaryColumn } from "typeorm";
|
||||
import { getDatabase } from "../Database";
|
||||
import { Snowflake } from "../../util/util/Snowflake";
|
||||
import { Snowflake } from "@spacebar/util/util/Snowflake";
|
||||
import { OrmUtils } from "../../util/imports/OrmUtils";
|
||||
import { annotationsKey } from "../../util/util/Decorators";
|
||||
import { annotationsKey } from "@spacebar/util/util/Decorators";
|
||||
|
||||
export class BaseClassWithoutId extends BaseEntity {
|
||||
private get construct() {
|
||||
|
||||
@@ -20,7 +20,7 @@ import { HTTPError } from "lambert-server/HTTPError";
|
||||
import { Column, Entity, JoinColumn, ManyToOne, OneToMany, RelationId } from "typeorm";
|
||||
import { DmChannelDTO } from "../../util/dtos";
|
||||
import { ChannelCreateEvent, ChannelRecipientRemoveEvent, ThreadCreateEvent, ThreadMembersUpdateEvent } from "../../util/interfaces";
|
||||
import { InvisibleCharacters, Snowflake, emitEvent, getPermission, Permissions, Config, DiscordApiErrors } from "../../util/util";
|
||||
import { InvisibleCharacters, Snowflake, emitEvent, getPermission, Permissions, Config, DiscordApiErrors } from "@spacebar/util/util";
|
||||
import { BaseClass } from "./BaseClass";
|
||||
import { Guild } from "./Guild";
|
||||
import { Invite } from "./Invite";
|
||||
|
||||
@@ -21,7 +21,7 @@ import { BeforeInsert, BeforeUpdate, Column, Entity, Index, JoinColumn, JoinTabl
|
||||
import { Ban, Channel, PublicGuildRelations } from "./index";
|
||||
import { ReadyGuildDTO } from "../../util/dtos";
|
||||
import { GuildCreateEvent, GuildDeleteEvent, GuildMemberAddEvent, GuildMemberRemoveEvent, GuildMemberUpdateEvent, MessageCreateEvent } from "../../util/interfaces";
|
||||
import { Config, emitEvent, DiscordApiErrors } from "../../util/util";
|
||||
import { Config, emitEvent, DiscordApiErrors } from "@spacebar/util/util";
|
||||
import { BaseClassWithoutId } from "./BaseClass";
|
||||
import { Guild } from "./Guild";
|
||||
import { Message } from "./Message";
|
||||
|
||||
@@ -44,7 +44,7 @@ import {
|
||||
InteractionType,
|
||||
} from "@spacebar/schemas";
|
||||
import { MessageFlags } from "@spacebar/util";
|
||||
import { JsonRemoveEmpty } from "../../util/util/Decorators";
|
||||
import { JsonRemoveEmpty } from "@spacebar/util/util/Decorators";
|
||||
|
||||
@Entity({
|
||||
name: "messages",
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import { BaseClass } from "./BaseClass";
|
||||
import { Entity, Column } from "typeorm";
|
||||
import { ReportMenuType } from "../../schemas/api/reports/ReportMenu";
|
||||
import { ReportMenuType } from "@spacebar/schemas/api/reports/ReportMenu";
|
||||
|
||||
@Entity({
|
||||
name: "report_menus",
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import { Column, Entity, Index, JoinColumn, ManyToOne, PrimaryGeneratedColumn, RelationId } from "typeorm";
|
||||
import { ThreadMembersUpdateEvent } from "../../util/interfaces";
|
||||
import { emitEvent } from "../../util/util";
|
||||
import { emitEvent } from "@spacebar/util/util";
|
||||
import { BaseClassWithoutId } from "./BaseClass";
|
||||
import { Channel } from "./Channel";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
|
||||
@@ -39,7 +39,7 @@ import {
|
||||
PublicUserProjection,
|
||||
UserPrivate,
|
||||
} from "@spacebar/schemas";
|
||||
import { JsonNumber } from "../../util/util/Decorators";
|
||||
import { JsonNumber } from "@spacebar/util/util/Decorators";
|
||||
|
||||
@Entity({
|
||||
name: "users",
|
||||
|
||||
Reference in new issue
Block a user