Paths refactor # > @/
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()
|
||||
|
Reference in New Issue
Block a user