mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-25 15:35:12 +00:00
✨
This commit is contained in:
parent
09cd610524
commit
e52885bfe4
20 changed files with 29 additions and 30 deletions
16
gulpfile.ts
16
gulpfile.ts
|
@ -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';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Module dependencies
|
||||
*/
|
||||
import * as mongo from 'mongodb';
|
||||
const deepcopy = require('deepcopy');
|
||||
import deepcopy = require('deepcopy');
|
||||
import serializeApp from './app';
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
/**
|
||||
* Module dependencies
|
||||
*/
|
||||
const deepcopy = require('deepcopy');
|
||||
import deepcopy = require('deepcopy');
|
||||
|
||||
/**
|
||||
* Serialize a signin record
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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> {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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`), {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* Web Server
|
||||
*/
|
||||
|
||||
import * as ms from 'ms';
|
||||
import ms = require('ms');
|
||||
|
||||
// express modules
|
||||
import * as express from 'express';
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue