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"
|
"run:prod": "cross-env NODE_ENV=production node ./dist/index.js"
|
||||||
},
|
},
|
||||||
"sharedClasses": {
|
"sharedClasses": {
|
||||||
"FileUpload": "src/classes",
|
"FileUpload": "src/shared-classes",
|
||||||
"CacheService": "src/classes",
|
"CacheService": "src/shared-classes",
|
||||||
"ComtyClient": "src/classes",
|
"ComtyClient": "src/shared-classes",
|
||||||
"RedisClient": "src/classes",
|
"RedisClient": "src/shared-classes",
|
||||||
"StorageClient": "src/classes",
|
"StorageClient": "src/shared-classes",
|
||||||
"DbManager": "src/classes",
|
"DbManager": "src/shared-classes",
|
||||||
"Errors": "src/classes"
|
"Errors": "src/shared-classes"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -5,7 +5,7 @@ import express from "express"
|
|||||||
import http from "http"
|
import http from "http"
|
||||||
import EventEmitter from "@foxify/events"
|
import EventEmitter from "@foxify/events"
|
||||||
|
|
||||||
import ComtyClient from "@classes/ComtyClient"
|
import ComtyClient from "@shared-classes/ComtyClient"
|
||||||
|
|
||||||
import routes from "./routes"
|
import routes from "./routes"
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ import path from "path"
|
|||||||
import { registerBaseAliases } from "linebridge/dist/server"
|
import { registerBaseAliases } from "linebridge/dist/server"
|
||||||
|
|
||||||
const customAliases = {
|
const customAliases = {
|
||||||
|
"@shared-classes": path.resolve(__dirname, "shared-classes"),
|
||||||
"@services": path.resolve(__dirname, "services"),
|
"@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"
|
"run:prod": "cross-env NODE_ENV=production node ./dist/index.js"
|
||||||
},
|
},
|
||||||
"sharedClasses": {
|
"sharedClasses": {
|
||||||
"FileUpload": "src/classes",
|
"FileUpload": "src/shared-classes",
|
||||||
"CacheService": "src/classes",
|
"CacheService": "src/shared-classes",
|
||||||
"ComtyClient": "src/classes",
|
"ComtyClient": "src/shared-classes",
|
||||||
"RedisClient": "src/classes",
|
"RedisClient": "src/shared-classes",
|
||||||
"StorageClient": "src/classes",
|
"StorageClient": "src/shared-classes",
|
||||||
"DbManager": "src/classes",
|
"DbManager": "src/shared-classes",
|
||||||
"Errors": "src/classes"
|
"Errors": "src/shared-classes"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
|
|
||||||
import RedisClient from "@classes/RedisClient"
|
import RedisClient from "@shared-classes/RedisClient"
|
||||||
import StorageClient from "@classes/StorageClient"
|
import StorageClient from "@shared-classes/StorageClient"
|
||||||
import CacheService from "@classes/CacheService"
|
import CacheService from "@shared-classes/CacheService"
|
||||||
import ComtyClient from "@classes/ComtyClient"
|
import ComtyClient from "@shared-classes/ComtyClient"
|
||||||
|
|
||||||
import express from "express"
|
import express from "express"
|
||||||
import hyperexpress from "hyper-express"
|
import hyperexpress from "hyper-express"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import path from "path"
|
import path from "path"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
|
|
||||||
import * as Errors from "@classes/Errors"
|
import * as Errors from "@shared-classes/Errors"
|
||||||
import FileUpload from "@classes/FileUpload"
|
import FileUpload from "@shared-classes/FileUpload"
|
||||||
import useCompression from "@services/useCompression"
|
import useCompression from "@services/useCompression"
|
||||||
|
|
||||||
const cachePath = global.cache.constructor.cachePath
|
const cachePath = global.cache.constructor.cachePath
|
||||||
|
@ -10,6 +10,7 @@ globalThis["__root"] = path.resolve(__dirname)
|
|||||||
const customAliases = {
|
const customAliases = {
|
||||||
"root": globalThis["__root"],
|
"root": globalThis["__root"],
|
||||||
"@services": path.resolve(__dirname, "services"),
|
"@services": path.resolve(__dirname, "services"),
|
||||||
|
"@shared-classes": path.resolve(__dirname, "shared-classes"),
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!global.isProduction) {
|
if (!global.isProduction) {
|
||||||
|
3
packages/marketplace_server/.gitignore
vendored
3
packages/marketplace_server/.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
/static
|
/static
|
||||||
|
shared-classes
|
@ -8,13 +8,13 @@
|
|||||||
"run:prod": "cross-env NODE_ENV=production node ./dist/index.js"
|
"run:prod": "cross-env NODE_ENV=production node ./dist/index.js"
|
||||||
},
|
},
|
||||||
"sharedClasses": {
|
"sharedClasses": {
|
||||||
"FileUpload": "src/classes",
|
"FileUpload": "src/shared-classes",
|
||||||
"CacheService": "src/classes",
|
"CacheService": "src/shared-classes",
|
||||||
"ComtyClient": "src/classes",
|
"ComtyClient": "src/shared-classes",
|
||||||
"RedisClient": "src/classes",
|
"RedisClient": "src/shared-classes",
|
||||||
"StorageClient": "src/classes",
|
"StorageClient": "src/shared-classes",
|
||||||
"DbManager": "src/classes",
|
"DbManager": "src/shared-classes",
|
||||||
"Errors": "src/classes"
|
"Errors": "src/shared-classes"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
|
|
||||||
import DbManager from "@classes/DbManager"
|
import DbManager from "@shared-classes/DbManager"
|
||||||
import RedisClient from "@classes/RedisClient"
|
import RedisClient from "@shared-classes/RedisClient"
|
||||||
import StorageClient from "@classes/StorageClient"
|
import StorageClient from "@shared-classes/StorageClient"
|
||||||
import ComtyClient from "./classes/ComtyClient"
|
import ComtyClient from "@shared-classes/ComtyClient"
|
||||||
|
|
||||||
import hyperexpress from "hyper-express"
|
import hyperexpress from "hyper-express"
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ import { registerBaseAliases } from "linebridge/dist/server"
|
|||||||
|
|
||||||
const customAliases = {
|
const customAliases = {
|
||||||
"@services": path.resolve(__dirname, "services"),
|
"@services": path.resolve(__dirname, "services"),
|
||||||
|
"@shared-classes": path.resolve(__dirname, "shared-classes"),
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!global.isProduction) {
|
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"
|
"run:prod": "cross-env NODE_ENV=production node ./dist/index.js"
|
||||||
},
|
},
|
||||||
"sharedClasses": {
|
"sharedClasses": {
|
||||||
"ComtyClient": "src/classes",
|
"ComtyClient": "src/shared-classes",
|
||||||
"RedisClient": "src/classes",
|
"RedisClient": "src/shared-classes",
|
||||||
"StorageClient": "src/classes",
|
"StorageClient": "src/shared-classes",
|
||||||
"DbManager": "src/classes",
|
"DbManager": "src/shared-classes",
|
||||||
"Errors": "src/classes"
|
"Errors": "src/shared-classes"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -5,10 +5,10 @@ import express from "express"
|
|||||||
import http from "http"
|
import http from "http"
|
||||||
import EventEmitter from "@foxify/events"
|
import EventEmitter from "@foxify/events"
|
||||||
|
|
||||||
import ComtyClient from "@classes/ComtyClient"
|
import ComtyClient from "@shared-classes/ComtyClient"
|
||||||
import DbManager from "@classes/DbManager"
|
import DbManager from "@shared-classes/DbManager"
|
||||||
import RedisClient from "@classes/RedisClient"
|
import RedisClient from "@shared-classes/RedisClient"
|
||||||
import StorageClient from "@classes/StorageClient"
|
import StorageClient from "@shared-classes/StorageClient"
|
||||||
|
|
||||||
import RoomServer from "./roomsServer"
|
import RoomServer from "./roomsServer"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Playlist } from "@models"
|
import { Playlist } from "@models"
|
||||||
import { AuthorizationError, PermissionError, NotFoundError } from "@classes/Errors"
|
import { AuthorizationError, PermissionError, NotFoundError } from "@shared-classes/Errors"
|
||||||
|
|
||||||
export default async (req, res) => {
|
export default async (req, res) => {
|
||||||
if (!req.session) {
|
if (!req.session) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Playlist, Track } from "@models"
|
import { Playlist, Track } from "@models"
|
||||||
import { NotFoundError } from "@classes/Errors"
|
import { NotFoundError } from "@shared-classes/Errors"
|
||||||
|
|
||||||
export default async (req, res) => {
|
export default async (req, res) => {
|
||||||
const { playlist_id } = req.params
|
const { playlist_id } = req.params
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Playlist, Track } from "@models"
|
import { Playlist, Track } from "@models"
|
||||||
import { AuthorizationError, NotFoundError } from "@classes/Errors"
|
import { AuthorizationError, NotFoundError } from "@shared-classes/Errors"
|
||||||
|
|
||||||
export default async (req, res) => {
|
export default async (req, res) => {
|
||||||
if (!req.session) {
|
if (!req.session) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Playlist, Track } from "@models"
|
import { Playlist, Track } from "@models"
|
||||||
import { AuthorizationError, NotFoundError, PermissionError, BadRequestError } from "@classes/Errors"
|
import { AuthorizationError, NotFoundError, PermissionError, BadRequestError } from "@shared-classes/Errors"
|
||||||
|
|
||||||
const PlaylistAllowedUpdateFields = [
|
const PlaylistAllowedUpdateFields = [
|
||||||
"title",
|
"title",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Track } from "@models"
|
import { Track } from "@models"
|
||||||
import { NotFoundError } from "@classes/Errors"
|
import { NotFoundError } from "@shared-classes/Errors"
|
||||||
|
|
||||||
export default async (req, res) => {
|
export default async (req, res) => {
|
||||||
const { track_id } = req.params
|
const { track_id } = req.params
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Track } from "@models"
|
import { Track } from "@models"
|
||||||
import { NotFoundError, InternalServerError } from "@classes/Errors"
|
import { NotFoundError, InternalServerError } from "@shared-classes/Errors"
|
||||||
|
|
||||||
import mimetypes from "mime-types"
|
import mimetypes from "mime-types"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Track } from "@models"
|
import { Track } from "@models"
|
||||||
import { NotFoundError } from "@classes/Errors"
|
import { NotFoundError } from "@shared-classes/Errors"
|
||||||
import getEnhancedLyricsFromTrack from "@services/getEnhancedLyricsFromTrack"
|
import getEnhancedLyricsFromTrack from "@services/getEnhancedLyricsFromTrack"
|
||||||
|
|
||||||
export default async (req, res) => {
|
export default async (req, res) => {
|
||||||
|
@ -14,6 +14,7 @@ globalThis["__root"] = path.resolve(__dirname)
|
|||||||
const customAliases = {
|
const customAliases = {
|
||||||
"root": globalThis["__root"],
|
"root": globalThis["__root"],
|
||||||
"@services": path.resolve(__dirname, "services"),
|
"@services": path.resolve(__dirname, "services"),
|
||||||
|
"@shared-classes": path.resolve(__dirname, "shared-classes"),
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!global.isProduction) {
|
if (!global.isProduction) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user