]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tools/peertube-repl.ts
Translated using Weblate (Russian)
[github/Chocobozzz/PeerTube.git] / server / tools / peertube-repl.ts
index ecbba8b0ba2af7cf9d530c7bb6123d50ffea0f75..eb0a776b87b32ff8a107cc44abf23a79c0057dea 100644 (file)
@@ -1,12 +1,12 @@
 import { registerTSPaths } from '../helpers/register-ts-paths'
+registerTSPaths()
+
 import * as repl from 'repl'
 import * as path from 'path'
 import * as _ from 'lodash'
-import { uuidv1, uuidv3, uuidv4, uuidv5 } from 'uuid'
 import * as Sequelize from 'sequelize'
 import * as YoutubeDL from 'youtube-dl'
-
-import { initDatabaseModels, sequelizeTypescript } from '../initializers'
+import { initDatabaseModels, sequelizeTypescript } from '../initializers/database'
 import * as cli from '../tools/cli'
 import { logger } from '../helpers/logger'
 import * as constants from '../initializers/constants'
@@ -14,12 +14,9 @@ import * as modelsUtils from '../models/utils'
 import * as coreUtils from '../helpers/core-utils'
 import * as ffmpegUtils from '../helpers/ffmpeg-utils'
 import * as peertubeCryptoUtils from '../helpers/peertube-crypto'
-import * as signupUtils from '../helpers/signup'
 import * as utils from '../helpers/utils'
 import * as YoutubeDLUtils from '../helpers/youtube-dl'
 
-registerTSPaths()
-
 const start = async () => {
   await initDatabaseModels(true)
 
@@ -33,10 +30,6 @@ const start = async () => {
         env: process.env,
         lodash: _,
         path,
-        uuidv1,
-        uuidv3,
-        uuidv4,
-        uuidv5,
         cli,
         logger,
         constants,
@@ -51,7 +44,6 @@ const start = async () => {
         coreUtils,
         ffmpegUtils,
         peertubeCryptoUtils,
-        signupUtils,
         utils,
         YoutubeDLUtils
       }
@@ -83,7 +75,6 @@ const start = async () => {
   }
   replServer.defineCommand('reset', resetCommand)
   replServer.defineCommand('r', resetCommand)
-
 }
 
 start()