mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
use new shared-classes
path
This commit is contained in:
parent
ce9ee0be98
commit
86737c045a
1
packages/chat_server/.gitignore
vendored
Normal file
1
packages/chat_server/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
shared-classes
|
@ -8,13 +8,13 @@
|
||||
"run:prod": "cross-env NODE_ENV=production node ./dist/index.js"
|
||||
},
|
||||
"sharedClasses": {
|
||||
"FileUpload": "src/classes",
|
||||
"CacheService": "src/classes",
|
||||
"ComtyClient": "src/classes",
|
||||
"RedisClient": "src/classes",
|
||||
"StorageClient": "src/classes",
|
||||
"DbManager": "src/classes",
|
||||
"Errors": "src/classes"
|
||||
"FileUpload": "src/shared-classes",
|
||||
"CacheService": "src/shared-classes",
|
||||
"ComtyClient": "src/shared-classes",
|
||||
"RedisClient": "src/shared-classes",
|
||||
"StorageClient": "src/shared-classes",
|
||||
"DbManager": "src/shared-classes",
|
||||
"Errors": "src/shared-classes"
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@ -5,7 +5,7 @@ import express from "express"
|
||||
import http from "http"
|
||||
import EventEmitter from "@foxify/events"
|
||||
|
||||
import ComtyClient from "@classes/ComtyClient"
|
||||
import ComtyClient from "@shared-classes/ComtyClient"
|
||||
|
||||
import routes from "./routes"
|
||||
|
||||
|
@ -10,6 +10,7 @@ import path from "path"
|
||||
import { registerBaseAliases } from "linebridge/dist/server"
|
||||
|
||||
const customAliases = {
|
||||
"@shared-classes": path.resolve(__dirname, "shared-classes"),
|
||||
"@services": path.resolve(__dirname, "services"),
|
||||
}
|
||||
|
||||
|
1
packages/file_server/.gitignore
vendored
Normal file
1
packages/file_server/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
shared-classes
|
@ -8,13 +8,13 @@
|
||||
"run:prod": "cross-env NODE_ENV=production node ./dist/index.js"
|
||||
},
|
||||
"sharedClasses": {
|
||||
"FileUpload": "src/classes",
|
||||
"CacheService": "src/classes",
|
||||
"ComtyClient": "src/classes",
|
||||
"RedisClient": "src/classes",
|
||||
"StorageClient": "src/classes",
|
||||
"DbManager": "src/classes",
|
||||
"Errors": "src/classes"
|
||||
"FileUpload": "src/shared-classes",
|
||||
"CacheService": "src/shared-classes",
|
||||
"ComtyClient": "src/shared-classes",
|
||||
"RedisClient": "src/shared-classes",
|
||||
"StorageClient": "src/shared-classes",
|
||||
"DbManager": "src/shared-classes",
|
||||
"Errors": "src/shared-classes"
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@ -1,10 +1,10 @@
|
||||
import fs from "fs"
|
||||
import path from "path"
|
||||
|
||||
import RedisClient from "@classes/RedisClient"
|
||||
import StorageClient from "@classes/StorageClient"
|
||||
import CacheService from "@classes/CacheService"
|
||||
import ComtyClient from "@classes/ComtyClient"
|
||||
import RedisClient from "@shared-classes/RedisClient"
|
||||
import StorageClient from "@shared-classes/StorageClient"
|
||||
import CacheService from "@shared-classes/CacheService"
|
||||
import ComtyClient from "@shared-classes/ComtyClient"
|
||||
|
||||
import express from "express"
|
||||
import hyperexpress from "hyper-express"
|
||||
|
@ -1,8 +1,8 @@
|
||||
import path from "path"
|
||||
import fs from "fs"
|
||||
|
||||
import * as Errors from "@classes/Errors"
|
||||
import FileUpload from "@classes/FileUpload"
|
||||
import * as Errors from "@shared-classes/Errors"
|
||||
import FileUpload from "@shared-classes/FileUpload"
|
||||
import useCompression from "@services/useCompression"
|
||||
|
||||
const cachePath = global.cache.constructor.cachePath
|
||||
|
@ -10,6 +10,7 @@ globalThis["__root"] = path.resolve(__dirname)
|
||||
const customAliases = {
|
||||
"root": globalThis["__root"],
|
||||
"@services": path.resolve(__dirname, "services"),
|
||||
"@shared-classes": path.resolve(__dirname, "shared-classes"),
|
||||
}
|
||||
|
||||
if (!global.isProduction) {
|
||||
|
1
packages/marketplace_server/.gitignore
vendored
1
packages/marketplace_server/.gitignore
vendored
@ -1 +1,2 @@
|
||||
/static
|
||||
shared-classes
|
@ -8,13 +8,13 @@
|
||||
"run:prod": "cross-env NODE_ENV=production node ./dist/index.js"
|
||||
},
|
||||
"sharedClasses": {
|
||||
"FileUpload": "src/classes",
|
||||
"CacheService": "src/classes",
|
||||
"ComtyClient": "src/classes",
|
||||
"RedisClient": "src/classes",
|
||||
"StorageClient": "src/classes",
|
||||
"DbManager": "src/classes",
|
||||
"Errors": "src/classes"
|
||||
"FileUpload": "src/shared-classes",
|
||||
"CacheService": "src/shared-classes",
|
||||
"ComtyClient": "src/shared-classes",
|
||||
"RedisClient": "src/shared-classes",
|
||||
"StorageClient": "src/shared-classes",
|
||||
"DbManager": "src/shared-classes",
|
||||
"Errors": "src/shared-classes"
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@ -1,10 +1,10 @@
|
||||
import fs from "fs"
|
||||
import path from "path"
|
||||
|
||||
import DbManager from "@classes/DbManager"
|
||||
import RedisClient from "@classes/RedisClient"
|
||||
import StorageClient from "@classes/StorageClient"
|
||||
import ComtyClient from "./classes/ComtyClient"
|
||||
import DbManager from "@shared-classes/DbManager"
|
||||
import RedisClient from "@shared-classes/RedisClient"
|
||||
import StorageClient from "@shared-classes/StorageClient"
|
||||
import ComtyClient from "@shared-classes/ComtyClient"
|
||||
|
||||
import hyperexpress from "hyper-express"
|
||||
|
||||
|
@ -7,6 +7,7 @@ import { registerBaseAliases } from "linebridge/dist/server"
|
||||
|
||||
const customAliases = {
|
||||
"@services": path.resolve(__dirname, "services"),
|
||||
"@shared-classes": path.resolve(__dirname, "shared-classes"),
|
||||
}
|
||||
|
||||
if (!global.isProduction) {
|
||||
|
1
packages/music_server/.gitignore
vendored
Normal file
1
packages/music_server/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
shared-classes
|
@ -8,11 +8,11 @@
|
||||
"run:prod": "cross-env NODE_ENV=production node ./dist/index.js"
|
||||
},
|
||||
"sharedClasses": {
|
||||
"ComtyClient": "src/classes",
|
||||
"RedisClient": "src/classes",
|
||||
"StorageClient": "src/classes",
|
||||
"DbManager": "src/classes",
|
||||
"Errors": "src/classes"
|
||||
"ComtyClient": "src/shared-classes",
|
||||
"RedisClient": "src/shared-classes",
|
||||
"StorageClient": "src/shared-classes",
|
||||
"DbManager": "src/shared-classes",
|
||||
"Errors": "src/shared-classes"
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@ -5,10 +5,10 @@ import express from "express"
|
||||
import http from "http"
|
||||
import EventEmitter from "@foxify/events"
|
||||
|
||||
import ComtyClient from "@classes/ComtyClient"
|
||||
import DbManager from "@classes/DbManager"
|
||||
import RedisClient from "@classes/RedisClient"
|
||||
import StorageClient from "@classes/StorageClient"
|
||||
import ComtyClient from "@shared-classes/ComtyClient"
|
||||
import DbManager from "@shared-classes/DbManager"
|
||||
import RedisClient from "@shared-classes/RedisClient"
|
||||
import StorageClient from "@shared-classes/StorageClient"
|
||||
|
||||
import RoomServer from "./roomsServer"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Playlist } from "@models"
|
||||
import { AuthorizationError, PermissionError, NotFoundError } from "@classes/Errors"
|
||||
import { AuthorizationError, PermissionError, NotFoundError } from "@shared-classes/Errors"
|
||||
|
||||
export default async (req, res) => {
|
||||
if (!req.session) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Playlist, Track } from "@models"
|
||||
import { NotFoundError } from "@classes/Errors"
|
||||
import { NotFoundError } from "@shared-classes/Errors"
|
||||
|
||||
export default async (req, res) => {
|
||||
const { playlist_id } = req.params
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Playlist, Track } from "@models"
|
||||
import { AuthorizationError, NotFoundError } from "@classes/Errors"
|
||||
import { AuthorizationError, NotFoundError } from "@shared-classes/Errors"
|
||||
|
||||
export default async (req, res) => {
|
||||
if (!req.session) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Playlist, Track } from "@models"
|
||||
import { AuthorizationError, NotFoundError, PermissionError, BadRequestError } from "@classes/Errors"
|
||||
import { AuthorizationError, NotFoundError, PermissionError, BadRequestError } from "@shared-classes/Errors"
|
||||
|
||||
const PlaylistAllowedUpdateFields = [
|
||||
"title",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Track } from "@models"
|
||||
import { NotFoundError } from "@classes/Errors"
|
||||
import { NotFoundError } from "@shared-classes/Errors"
|
||||
|
||||
export default async (req, res) => {
|
||||
const { track_id } = req.params
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Track } from "@models"
|
||||
import { NotFoundError, InternalServerError } from "@classes/Errors"
|
||||
import { NotFoundError, InternalServerError } from "@shared-classes/Errors"
|
||||
|
||||
import mimetypes from "mime-types"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Track } from "@models"
|
||||
import { NotFoundError } from "@classes/Errors"
|
||||
import { NotFoundError } from "@shared-classes/Errors"
|
||||
import getEnhancedLyricsFromTrack from "@services/getEnhancedLyricsFromTrack"
|
||||
|
||||
export default async (req, res) => {
|
||||
|
@ -14,6 +14,7 @@ globalThis["__root"] = path.resolve(__dirname)
|
||||
const customAliases = {
|
||||
"root": globalThis["__root"],
|
||||
"@services": path.resolve(__dirname, "services"),
|
||||
"@shared-classes": path.resolve(__dirname, "shared-classes"),
|
||||
}
|
||||
|
||||
if (!global.isProduction) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user