This commit is contained in:
Aya Morisawa 2017-01-03 06:03:19 +09:00
parent 09cd610524
commit e52885bfe4
20 changed files with 29 additions and 30 deletions

View file

@ -14,15 +14,15 @@ import * as browserify from 'browserify';
import * as source from 'vinyl-source-stream';
import * as buffer from 'vinyl-buffer';
import * as es from 'event-stream';
const stylus = require('gulp-stylus');
const cssnano = require('gulp-cssnano');
import stylus = require('gulp-stylus');
import cssnano = require('gulp-cssnano');
import * as uglify from 'gulp-uglify';
const ls = require('browserify-livescript');
const aliasify = require('aliasify');
const riotify = require('riotify');
const transformify = require('syuilo-transformify');
const pug = require('gulp-pug');
const git = require('git-last-commit');
import ls = require('browserify-livescript');
import aliasify = require('aliasify');
import riotify = require('riotify');
import transformify = require('syuilo-transformify');
import pug = require('gulp-pug');
import git = require('git-last-commit');
import * as rimraf from 'rimraf';
import * as escapeHtml from 'escape-html';

View file

@ -1,8 +1,8 @@
import * as mongodb from 'mongodb';
import * as crypto from 'crypto';
import * as gm from 'gm';
const fileType = require('file-type');
const prominence = require('prominence');
import fileType = require('file-type');
import prominence = require('prominence');
import DriveFile from '../models/drive-file';
import DriveFolder from '../models/drive-folder';
import serialize from '../serializers/drive-file';

View file

@ -1,7 +1,7 @@
import * as express from 'express';
import * as bcrypt from 'bcrypt';
import rndstr from 'rndstr';
const recaptcha = require('recaptcha-promise');
import recaptcha = require('recaptcha-promise');
import User from '../models/user';
import { validateUsername } from '../models/user';
import serialize from '../serializers/user';

View file

@ -4,7 +4,7 @@
* Module dependencies
*/
import * as mongo from 'mongodb';
const deepcopy = require('deepcopy');
import deepcopy = require('deepcopy');
import App from '../models/app';
import User from '../models/user';
import Userkey from '../models/userkey';

View file

@ -4,7 +4,7 @@
* Module dependencies
*/
import * as mongo from 'mongodb';
const deepcopy = require('deepcopy');
import deepcopy = require('deepcopy');
import serializeApp from './app';
/**

View file

@ -6,7 +6,7 @@
import * as mongo from 'mongodb';
import DriveFile from '../models/drive-file';
import serializeDriveTag from './drive-tag';
const deepcopy = require('deepcopy');
import deepcopy = require('deepcopy');
/**
* Serialize a drive file

View file

@ -5,7 +5,7 @@
*/
import * as mongo from 'mongodb';
import DriveFolder from '../models/drive-folder';
const deepcopy = require('deepcopy');
import deepcopy = require('deepcopy');
/**
* Serialize a drive folder

View file

@ -5,7 +5,7 @@
*/
import * as mongo from 'mongodb';
import DriveTag from '../models/drive-tag';
const deepcopy = require('deepcopy');
import deepcopy = require('deepcopy');
/**
* Serialize a drive tag

View file

@ -7,7 +7,7 @@ import * as mongo from 'mongodb';
import Message from '../models/messaging-message';
import serializeUser from './user';
import serializeDriveFile from './drive-file';
const deepcopy = require('deepcopy');
import deepcopy = require('deepcopy');
/**
* Serialize a message

View file

@ -7,7 +7,7 @@ import * as mongo from 'mongodb';
import Notification from '../models/notification';
import serializeUser from './user';
import serializePost from './post';
const deepcopy = require('deepcopy');
import deepcopy = require('deepcopy');
/**
* Serialize a notification

View file

@ -8,7 +8,7 @@ import Post from '../models/post';
import Like from '../models/like';
import serializeUser from './user';
import serializeDriveFile from './drive-file';
const deepcopy = require('deepcopy');
import deepcopy = require('deepcopy');
/**
* Serialize a post

View file

@ -3,7 +3,7 @@
/**
* Module dependencies
*/
const deepcopy = require('deepcopy');
import deepcopy = require('deepcopy');
/**
* Serialize a signin record

View file

@ -4,7 +4,7 @@
* Module dependencies
*/
import * as mongo from 'mongodb';
const deepcopy = require('deepcopy');
import deepcopy = require('deepcopy');
import User from '../models/user';
import Following from '../models/following';
import getFriends from '../common/get-friends';

View file

@ -12,7 +12,7 @@ import * as os from 'os';
import * as cluster from 'cluster';
import Logger from './utils/logger';
import * as chalk from 'chalk';
const portUsed = require('tcp-port-used');
import portUsed = require('tcp-port-used');
import isRoot = require('is-root');
import ProgressBar from './utils/cli/progressbar';
import initdb from './db/mongodb';

View file

@ -5,9 +5,8 @@
import * as fs from 'fs';
import * as http from 'http';
import * as https from 'https';
import * as express from 'express';
const vhost = require('vhost');
import vhost = require('vhost');
/**
* Init app

View file

@ -1,7 +1,7 @@
import Logger from './logger';
import * as chalk from 'chalk';
const prominence = require('prominence');
const git = require('git-last-commit');
import prominence = require('prominence');
import git = require('git-last-commit');
export default class {
static async show(): Promise<void> {

View file

@ -1,5 +1,5 @@
import * as express from 'express';
const git = require('git-last-commit');
import git = require('git-last-commit');
module.exports = async (req: express.Request, res: express.Response) => {
// Get commit info

View file

@ -1,6 +1,6 @@
import * as path from 'path';
import * as express from 'express';
import * as ms from 'ms';
import ms = require('ms');
export default (name: string) => (req: express.Request, res: express.Response) => {
res.sendFile(path.resolve(`${__dirname}/app/${name}/view.html`), {

View file

@ -2,7 +2,7 @@
* Web Server
*/
import * as ms from 'ms';
import ms = require('ms');
// express modules
import * as express from 'express';

View file

@ -1,6 +1,6 @@
import * as express from 'express';
import * as request from 'request';
const xml2json = require('xml2json');
import xml2json = require('xml2json');
module.exports = (req: express.Request, res: express.Response) => {
const url: string = req.body.url;