diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-05 21:53:49 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-05 21:53:49 +0200 |
commit | 4d4e5cd4dca78480ec7f40e747f424cd107376a4 (patch) | |
tree | 1b132aab503751ae0f4c8ee6c7595ad2d65f3a50 /server/controllers | |
parent | e02643f32e4c97ca307f8fc5b69be79c40d70a3b (diff) | |
download | PeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.tar.gz PeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.tar.zst PeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.zip |
require -> import
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/clients.ts | 2 | ||||
-rw-r--r-- | server/controllers/api/config.ts | 2 | ||||
-rw-r--r-- | server/controllers/api/index.ts | 2 | ||||
-rw-r--r-- | server/controllers/api/pods.ts | 2 | ||||
-rw-r--r-- | server/controllers/api/remote/index.ts | 2 | ||||
-rw-r--r-- | server/controllers/api/remote/pods.ts | 2 | ||||
-rw-r--r-- | server/controllers/api/remote/videos.ts | 2 | ||||
-rw-r--r-- | server/controllers/api/requests.ts | 2 | ||||
-rw-r--r-- | server/controllers/api/users.ts | 2 | ||||
-rw-r--r-- | server/controllers/api/videos/abuse.ts | 4 | ||||
-rw-r--r-- | server/controllers/api/videos/blacklist.ts | 2 | ||||
-rw-r--r-- | server/controllers/api/videos/index.ts | 8 | ||||
-rw-r--r-- | server/controllers/api/videos/rate.ts | 2 | ||||
-rw-r--r-- | server/controllers/client.ts | 8 | ||||
-rw-r--r-- | server/controllers/static.ts | 4 |
15 files changed, 22 insertions, 24 deletions
diff --git a/server/controllers/api/clients.ts b/server/controllers/api/clients.ts index 614163c83..f6499556a 100644 --- a/server/controllers/api/clients.ts +++ b/server/controllers/api/clients.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import express = require('express') | 1 | import * as express from 'express' |
2 | 2 | ||
3 | import { CONFIG } from '../../initializers'; | 3 | import { CONFIG } from '../../initializers'; |
4 | import { logger } from '../../helpers' | 4 | import { logger } from '../../helpers' |
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index 8bdde61b3..57c9398ec 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import express = require('express') | 1 | import * as express from 'express' |
2 | 2 | ||
3 | import { CONFIG } from '../../initializers' | 3 | import { CONFIG } from '../../initializers' |
4 | 4 | ||
diff --git a/server/controllers/api/index.ts b/server/controllers/api/index.ts index 18bef2d3d..98004544d 100644 --- a/server/controllers/api/index.ts +++ b/server/controllers/api/index.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import express = require('express') | 1 | import * as express from 'express' |
2 | 2 | ||
3 | import { badRequest } from '../../helpers' | 3 | import { badRequest } from '../../helpers' |
4 | 4 | ||
diff --git a/server/controllers/api/pods.ts b/server/controllers/api/pods.ts index 4ff1f5d9f..a028c4ab9 100644 --- a/server/controllers/api/pods.ts +++ b/server/controllers/api/pods.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import express = require('express') | 1 | import * as express from 'express' |
2 | import { waterfall } from 'async' | 2 | import { waterfall } from 'async' |
3 | 3 | ||
4 | import { database as db } from '../../initializers/database' | 4 | import { database as db } from '../../initializers/database' |
diff --git a/server/controllers/api/remote/index.ts b/server/controllers/api/remote/index.ts index b11439204..d3522772b 100644 --- a/server/controllers/api/remote/index.ts +++ b/server/controllers/api/remote/index.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import express = require('express') | 1 | import * as express from 'express' |
2 | 2 | ||
3 | import { badRequest } from '../../../helpers' | 3 | import { badRequest } from '../../../helpers' |
4 | 4 | ||
diff --git a/server/controllers/api/remote/pods.ts b/server/controllers/api/remote/pods.ts index 7a9a0c4f0..9c9d2164d 100644 --- a/server/controllers/api/remote/pods.ts +++ b/server/controllers/api/remote/pods.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import express = require('express') | 1 | import * as express from 'express' |
2 | import * as waterfall from 'async/waterfall' | 2 | import * as waterfall from 'async/waterfall' |
3 | 3 | ||
4 | import { database as db } from '../../../initializers/database' | 4 | import { database as db } from '../../../initializers/database' |
diff --git a/server/controllers/api/remote/videos.ts b/server/controllers/api/remote/videos.ts index 178a21e7c..d97a3db31 100644 --- a/server/controllers/api/remote/videos.ts +++ b/server/controllers/api/remote/videos.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import express = require('express') | 1 | import * as express from 'express' |
2 | import { eachSeries, waterfall } from 'async' | 2 | import { eachSeries, waterfall } from 'async' |
3 | 3 | ||
4 | import { database as db } from '../../../initializers/database' | 4 | import { database as db } from '../../../initializers/database' |
diff --git a/server/controllers/api/requests.ts b/server/controllers/api/requests.ts index 304499a4f..ff4b4ac1a 100644 --- a/server/controllers/api/requests.ts +++ b/server/controllers/api/requests.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import express = require('express') | 1 | import * as express from 'express' |
2 | import { parallel } from 'async' | 2 | import { parallel } from 'async' |
3 | 3 | ||
4 | import { | 4 | import { |
diff --git a/server/controllers/api/users.ts b/server/controllers/api/users.ts index 97a744f54..44c5ec13c 100644 --- a/server/controllers/api/users.ts +++ b/server/controllers/api/users.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import express = require('express') | 1 | import * as express from 'express' |
2 | import { waterfall } from 'async' | 2 | import { waterfall } from 'async' |
3 | 3 | ||
4 | import { database as db } from '../../initializers/database' | 4 | import { database as db } from '../../initializers/database' |
diff --git a/server/controllers/api/videos/abuse.ts b/server/controllers/api/videos/abuse.ts index 3dd884354..68db025b7 100644 --- a/server/controllers/api/videos/abuse.ts +++ b/server/controllers/api/videos/abuse.ts | |||
@@ -1,8 +1,8 @@ | |||
1 | import express = require('express') | 1 | import * as express from 'express' |
2 | import { waterfall } from 'async' | 2 | import { waterfall } from 'async' |
3 | 3 | ||
4 | import { database as db } from '../../../initializers/database' | 4 | import { database as db } from '../../../initializers/database' |
5 | import friends = require('../../../lib/friends') | 5 | import * as friends from '../../../lib/friends' |
6 | import { | 6 | import { |
7 | logger, | 7 | logger, |
8 | getFormatedObjects, | 8 | getFormatedObjects, |
diff --git a/server/controllers/api/videos/blacklist.ts b/server/controllers/api/videos/blacklist.ts index fb4d57d7b..58960798b 100644 --- a/server/controllers/api/videos/blacklist.ts +++ b/server/controllers/api/videos/blacklist.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import express = require('express') | 1 | import * as express from 'express' |
2 | 2 | ||
3 | import { database as db } from '../../../initializers/database' | 3 | import { database as db } from '../../../initializers/database' |
4 | import { logger } from '../../../helpers' | 4 | import { logger } from '../../../helpers' |
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts index 6eda7159b..b82b0936f 100644 --- a/server/controllers/api/videos/index.ts +++ b/server/controllers/api/videos/index.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import express = require('express') | 1 | import * as express from 'express' |
2 | import fs = require('fs') | 2 | import * as fs from 'fs' |
3 | import multer = require('multer') | 3 | import * as multer from 'multer' |
4 | import path = require('path') | 4 | import * as path from 'path' |
5 | import { waterfall } from 'async' | 5 | import { waterfall } from 'async' |
6 | 6 | ||
7 | import { database as db } from '../../../initializers/database' | 7 | import { database as db } from '../../../initializers/database' |
diff --git a/server/controllers/api/videos/rate.ts b/server/controllers/api/videos/rate.ts index 571ff68e3..1bc575675 100644 --- a/server/controllers/api/videos/rate.ts +++ b/server/controllers/api/videos/rate.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import express = require('express') | 1 | import * as express from 'express' |
2 | import { waterfall } from 'async' | 2 | import { waterfall } from 'async' |
3 | 3 | ||
4 | import { database as db } from '../../../initializers/database' | 4 | import { database as db } from '../../../initializers/database' |
diff --git a/server/controllers/client.ts b/server/controllers/client.ts index ce5608c9b..c3d28245c 100644 --- a/server/controllers/client.ts +++ b/server/controllers/client.ts | |||
@@ -1,10 +1,8 @@ | |||
1 | import { parallel } from 'async' | 1 | import { parallel } from 'async' |
2 | import express = require('express') | 2 | import * as express from 'express' |
3 | import fs = require('fs') | 3 | import * as fs from 'fs' |
4 | import { join } from 'path' | 4 | import { join } from 'path' |
5 | import expressValidator = require('express-validator') | 5 | import * as validator from 'validator' |
6 | // TODO: use .validator when express-validator typing will have validator field | ||
7 | const validator = expressValidator['validator'] | ||
8 | 6 | ||
9 | import { database as db } from '../initializers/database' | 7 | import { database as db } from '../initializers/database' |
10 | import { | 8 | import { |
diff --git a/server/controllers/static.ts b/server/controllers/static.ts index 51f75c57e..e65282339 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import express = require('express') | 1 | import * as express from 'express' |
2 | import cors = require('cors') | 2 | import * as cors from 'cors' |
3 | 3 | ||
4 | import { | 4 | import { |
5 | CONFIG, | 5 | CONFIG, |