forked from noxious/server
Typo
This commit is contained in:
@ -2,16 +2,16 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { Collection, ManyToOne, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { CharacterEquipment } from'@/entities/characterEquipment'
|
||||
import type { CharacterHair } from'@/entities/characterHair'
|
||||
import type { CharacterItem } from'@/entities/characterItem'
|
||||
import type { CharacterType } from'@/entities/characterType'
|
||||
import type { Chat } from'@/entities/chat'
|
||||
import type { Map } from'@/entities/map'
|
||||
import type { User } from'@/entities/user'
|
||||
import type { UUID } from '@/application/types'
|
||||
import type { CharacterEquipment } from '@/entities/characterEquipment'
|
||||
import type { CharacterHair } from '@/entities/characterHair'
|
||||
import type { CharacterItem } from '@/entities/characterItem'
|
||||
import type { CharacterType } from '@/entities/characterType'
|
||||
import type { Chat } from '@/entities/chat'
|
||||
import type { Map } from '@/entities/map'
|
||||
import type { User } from '@/entities/user'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
|
||||
export class BaseCharacter extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -2,12 +2,12 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { Enum, ManyToOne, PrimaryKey } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { Character } from'@/entities/character'
|
||||
import type { CharacterItem } from'@/entities/characterItem'
|
||||
import type { UUID } from '@/application/types'
|
||||
import type { Character } from '@/entities/character'
|
||||
import type { CharacterItem } from '@/entities/characterItem'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { CharacterEquipmentSlotType } from'@/application/enums'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
import { CharacterEquipmentSlotType } from '@/application/enums'
|
||||
|
||||
export class BaseCharacterEquipment extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -2,12 +2,12 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { Collection, Entity, ManyToOne, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { UUID } from '@/application/types'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { CharacterGender } from'@/application/enums'
|
||||
import { Character } from'@/entities/character'
|
||||
import { Sprite } from'@/entities/sprite'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
import { CharacterGender } from '@/application/enums'
|
||||
import { Character } from '@/entities/character'
|
||||
import { Sprite } from '@/entities/sprite'
|
||||
|
||||
export class BaseCharacterHair extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -2,11 +2,11 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { ManyToOne, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { Character } from'@/entities/character'
|
||||
import type { Item } from'@/entities/item'
|
||||
import type { UUID } from '@/application/types'
|
||||
import type { Character } from '@/entities/character'
|
||||
import type { Item } from '@/entities/item'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
|
||||
export class BaseCharacterItem extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -2,12 +2,12 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { Collection, Entity, Enum, ManyToOne, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { UUID } from '@/application/types'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { CharacterGender, CharacterRace } from'@/application/enums'
|
||||
import { Character } from'@/entities/character'
|
||||
import { Sprite } from'@/entities/sprite'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
import { CharacterGender, CharacterRace } from '@/application/enums'
|
||||
import { Character } from '@/entities/character'
|
||||
import { Sprite } from '@/entities/sprite'
|
||||
|
||||
export class BaseCharacterType extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -2,11 +2,11 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { ManyToOne, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { Character } from'@/entities/character'
|
||||
import type { Map } from'@/entities/map'
|
||||
import type { UUID } from '@/application/types'
|
||||
import type { Character } from '@/entities/character'
|
||||
import type { Map } from '@/entities/map'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
|
||||
export class BaseChat extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -2,12 +2,12 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { Collection, Entity, Enum, ManyToOne, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { UUID } from '@/application/types'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { ItemType, ItemRarity } from'@/application/enums'
|
||||
import { CharacterItem } from'@/entities/characterItem'
|
||||
import { Sprite } from'@/entities/sprite'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
import { ItemType, ItemRarity } from '@/application/enums'
|
||||
import { CharacterItem } from '@/entities/characterItem'
|
||||
import { Sprite } from '@/entities/sprite'
|
||||
|
||||
export class BaseItem extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -2,12 +2,12 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { Collection, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { MapEffect } from'@/entities/mapEffect'
|
||||
import type { MapEventTile } from'@/entities/mapEventTile'
|
||||
import type { PlacedMapObject } from'@/entities/placedMapObject'
|
||||
import type { UUID } from '@/application/types'
|
||||
import type { MapEffect } from '@/entities/mapEffect'
|
||||
import type { MapEventTile } from '@/entities/mapEventTile'
|
||||
import type { PlacedMapObject } from '@/entities/placedMapObject'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
|
||||
export class BaseMap extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -2,10 +2,10 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { ManyToOne, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { Map } from'@/entities/map'
|
||||
import type { UUID } from '@/application/types'
|
||||
import type { Map } from '@/entities/map'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
|
||||
export class BaseMapEffect extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -2,12 +2,12 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { Enum, ManyToOne, OneToOne, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { Map } from'@/entities/map'
|
||||
import type { MapEventTileTeleport } from'@/entities/mapEventTileTeleport'
|
||||
import type { UUID } from '@/application/types'
|
||||
import type { Map } from '@/entities/map'
|
||||
import type { MapEventTileTeleport } from '@/entities/mapEventTileTeleport'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { MapEventTileType } from'@/application/enums'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
import { MapEventTileType } from '@/application/enums'
|
||||
|
||||
export class BaseMapEventTile extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -2,11 +2,11 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { ManyToOne, OneToOne, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { Map } from'@/entities/map'
|
||||
import type { MapEventTile } from'@/entities/mapEventTile'
|
||||
import type { UUID } from '@/application/types'
|
||||
import type { Map } from '@/entities/map'
|
||||
import type { MapEventTile } from '@/entities/mapEventTile'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
|
||||
export class BaseMapEventTileTeleport extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -2,9 +2,9 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { Entity, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { UUID } from '@/application/types'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
|
||||
export class BaseMapObject extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -2,10 +2,10 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { ManyToOne, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { User } from'@/entities/user'
|
||||
import type { UUID } from '@/application/types'
|
||||
import type { User } from '@/entities/user'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
|
||||
export class BasePasswordResetToken extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -2,11 +2,11 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { ManyToOne, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { Map } from'@/entities/map'
|
||||
import type { MapObject } from'@/entities/mapObject'
|
||||
import type { UUID } from '@/application/types'
|
||||
import type { Map } from '@/entities/map'
|
||||
import type { MapObject } from '@/entities/mapObject'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
|
||||
export class BasePlacedMapObject extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -2,10 +2,10 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { Collection, Entity, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { UUID } from '@/application/types'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { SpriteAction } from'@/entities/spriteAction'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
import { SpriteAction } from '@/entities/spriteAction'
|
||||
|
||||
export class BaseSprite extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -2,10 +2,10 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { ManyToOne, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { Sprite } from'@/entities/sprite'
|
||||
import type { UUID } from '@/application/types'
|
||||
import type { Sprite } from '@/entities/sprite'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
|
||||
export interface SpriteImage {
|
||||
url: string
|
||||
|
@ -2,9 +2,9 @@ import { randomUUID } from 'node:crypto'
|
||||
|
||||
import { Entity, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { UUID } from '@/application/types'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
|
||||
export class BaseTile extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -3,11 +3,11 @@ import { randomUUID } from 'node:crypto'
|
||||
import { Collection, Entity, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
import bcrypt from 'bcryptjs'
|
||||
|
||||
import type { UUID } from'@/application/types'
|
||||
import type { UUID } from '@/application/types'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { Character } from'@/entities/character'
|
||||
import { PasswordResetToken } from'@/entities/passwordResetToken'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
import { Character } from '@/entities/character'
|
||||
import { PasswordResetToken } from '@/entities/passwordResetToken'
|
||||
|
||||
export class BaseUser extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
|
||||
import { BaseEntity } from'@/application/base/baseEntity'
|
||||
import { BaseEntity } from '@/application/base/baseEntity'
|
||||
|
||||
export class BaseWorld extends BaseEntity {
|
||||
@PrimaryKey()
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseCharacter } from'@/entities/base/character'
|
||||
import { BaseCharacter } from '@/entities/base/character'
|
||||
|
||||
@Entity()
|
||||
export class Character extends BaseCharacter {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseCharacterEquipment } from'@/entities/base/characterEquipment'
|
||||
import { BaseCharacterEquipment } from '@/entities/base/characterEquipment'
|
||||
|
||||
@Entity()
|
||||
export class CharacterEquipment extends BaseCharacterEquipment {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseCharacterHair } from'@/entities/base/characterHair'
|
||||
import { BaseCharacterHair } from '@/entities/base/characterHair'
|
||||
|
||||
@Entity()
|
||||
export class CharacterHair extends BaseCharacterHair {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseCharacterItem } from'@/entities/base/characterItem'
|
||||
import { BaseCharacterItem } from '@/entities/base/characterItem'
|
||||
|
||||
@Entity()
|
||||
export class CharacterItem extends BaseCharacterItem {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseCharacterType } from'@/entities/base/characterType'
|
||||
import { BaseCharacterType } from '@/entities/base/characterType'
|
||||
|
||||
@Entity()
|
||||
export class CharacterType extends BaseCharacterType {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseChat } from'@/entities/base/chat'
|
||||
import { BaseChat } from '@/entities/base/chat'
|
||||
|
||||
@Entity()
|
||||
export class Chat extends BaseChat {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseItem } from'@/entities/base/item'
|
||||
import { BaseItem } from '@/entities/base/item'
|
||||
|
||||
@Entity()
|
||||
export class Item extends BaseItem {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseMap } from'@/entities/base/map'
|
||||
import { BaseMap } from '@/entities/base/map'
|
||||
|
||||
export type MapCacheT = ReturnType<Map['cache']> | {}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseMapEffect } from'@/entities/base/mapEffect'
|
||||
import { BaseMapEffect } from '@/entities/base/mapEffect'
|
||||
|
||||
@Entity()
|
||||
export class MapEffect extends BaseMapEffect {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseMapEventTile } from'@/entities/base/mapEventTile'
|
||||
import { BaseMapEventTile } from '@/entities/base/mapEventTile'
|
||||
|
||||
@Entity()
|
||||
export class MapEventTile extends BaseMapEventTile {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseMapEventTileTeleport } from'@/entities/base/mapEventTileTeleport'
|
||||
import { BaseMapEventTileTeleport } from '@/entities/base/mapEventTileTeleport'
|
||||
|
||||
@Entity()
|
||||
export class MapEventTileTeleport extends BaseMapEventTileTeleport {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseMapObject } from'@/entities/base/mapObject'
|
||||
import { BaseMapObject } from '@/entities/base/mapObject'
|
||||
|
||||
@Entity()
|
||||
export class MapObject extends BaseMapObject {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BasePasswordResetToken } from'@/entities/base/passwordResetToken'
|
||||
import { BasePasswordResetToken } from '@/entities/base/passwordResetToken'
|
||||
|
||||
@Entity()
|
||||
export class PasswordResetToken extends BasePasswordResetToken {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BasePlacedMapObject } from'@/entities/base/placedMapObject'
|
||||
import { BasePlacedMapObject } from '@/entities/base/placedMapObject'
|
||||
|
||||
@Entity()
|
||||
export class PlacedMapObject extends BasePlacedMapObject {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseSprite } from'@/entities/base/sprite'
|
||||
import { BaseSprite } from '@/entities/base/sprite'
|
||||
|
||||
@Entity()
|
||||
export class Sprite extends BaseSprite {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseSpriteAction } from'@/entities/base/spriteAction'
|
||||
import { BaseSpriteAction } from '@/entities/base/spriteAction'
|
||||
|
||||
@Entity()
|
||||
export class SpriteAction extends BaseSpriteAction {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseTile } from'@/entities/base/tile'
|
||||
import { BaseTile } from '@/entities/base/tile'
|
||||
|
||||
@Entity()
|
||||
export class Tile extends BaseTile {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseUser } from'@/entities/base/user'
|
||||
import { BaseUser } from '@/entities/base/user'
|
||||
|
||||
@Entity()
|
||||
export class User extends BaseUser {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Entity } from '@mikro-orm/core'
|
||||
|
||||
import { BaseWorld } from'@/entities/base/world'
|
||||
import { BaseWorld } from '@/entities/base/world'
|
||||
|
||||
@Entity()
|
||||
export class World extends BaseWorld {}
|
||||
|
Reference in New Issue
Block a user