mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
chore: refactor $services base
This commit is contained in:
parent
457e3cd210
commit
0d4c2e90d7
@ -1,4 +1,4 @@
|
||||
import { pocketbase } from '$services/PocketBaseService'
|
||||
import { pocketbase } from '$services'
|
||||
import { InstanceStatus, logger } from '@pockethost/common'
|
||||
import { PH_BIN_CACHE, PUBLIC_PB_SUBDOMAIN } from '../constants'
|
||||
import { safeCatch } from '../util/promiseHelper'
|
||||
|
@ -6,7 +6,7 @@ import {
|
||||
pocketbase,
|
||||
proxyService,
|
||||
rpcService,
|
||||
} from '$services/index'
|
||||
} from '$services'
|
||||
import { logger } from '@pockethost/common'
|
||||
import { DEBUG, PH_BIN_CACHE, PUBLIC_PB_SUBDOMAIN } from './constants'
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { clientService, rpcService } from '$services/index'
|
||||
import { clientService, rpcService } from '$services'
|
||||
import {
|
||||
assertTruthy,
|
||||
BackupFields,
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { createPbClient } from '$services/clientService/PbClient'
|
||||
import { clientService } from '$services/index'
|
||||
import { clientService, createPbClient } from '$services'
|
||||
import { logger, mkSingleton } from '@pockethost/common'
|
||||
import { readFileSync } from 'fs'
|
||||
import { FtpSrv } from 'ftp-srv'
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { clientService, rpcService } from '$services/index'
|
||||
import { clientService, rpcService } from '$services'
|
||||
import {
|
||||
assertTruthy,
|
||||
CreateInstancePayload,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { instanceService } from '$services/index'
|
||||
import { instanceService } from '$services'
|
||||
import { logger, mkSingleton } from '@pockethost/common'
|
||||
import { createServer } from 'http'
|
||||
import httpProxy from 'http-proxy'
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { clientService } from '$services/index'
|
||||
import { clientService } from '$services'
|
||||
import {
|
||||
assertTruthy,
|
||||
logger,
|
||||
|
@ -1,5 +1,6 @@
|
||||
export * from './BackupService'
|
||||
export * from './clientService/clientService'
|
||||
export * from './clientService/PbClient'
|
||||
export * from './FtpService/FtpService'
|
||||
export * from './InstanceService'
|
||||
export * from './PocketBaseService'
|
||||
|
@ -17,7 +17,7 @@
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"$util/*": ["src/util/*"],
|
||||
"$services/*": ["src/services/*"],
|
||||
"$services": ["src/services/index"],
|
||||
"$src/*": ["src/*"]
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user