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 source from 'vinyl-source-stream';
|
||||||
import * as buffer from 'vinyl-buffer';
|
import * as buffer from 'vinyl-buffer';
|
||||||
import * as es from 'event-stream';
|
import * as es from 'event-stream';
|
||||||
const stylus = require('gulp-stylus');
|
import stylus = require('gulp-stylus');
|
||||||
const cssnano = require('gulp-cssnano');
|
import cssnano = require('gulp-cssnano');
|
||||||
import * as uglify from 'gulp-uglify';
|
import * as uglify from 'gulp-uglify';
|
||||||
const ls = require('browserify-livescript');
|
import ls = require('browserify-livescript');
|
||||||
const aliasify = require('aliasify');
|
import aliasify = require('aliasify');
|
||||||
const riotify = require('riotify');
|
import riotify = require('riotify');
|
||||||
const transformify = require('syuilo-transformify');
|
import transformify = require('syuilo-transformify');
|
||||||
const pug = require('gulp-pug');
|
import pug = require('gulp-pug');
|
||||||
const git = require('git-last-commit');
|
import git = require('git-last-commit');
|
||||||
import * as rimraf from 'rimraf';
|
import * as rimraf from 'rimraf';
|
||||||
import * as escapeHtml from 'escape-html';
|
import * as escapeHtml from 'escape-html';
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import * as mongodb from 'mongodb';
|
import * as mongodb from 'mongodb';
|
||||||
import * as crypto from 'crypto';
|
import * as crypto from 'crypto';
|
||||||
import * as gm from 'gm';
|
import * as gm from 'gm';
|
||||||
const fileType = require('file-type');
|
import fileType = require('file-type');
|
||||||
const prominence = require('prominence');
|
import prominence = require('prominence');
|
||||||
import DriveFile from '../models/drive-file';
|
import DriveFile from '../models/drive-file';
|
||||||
import DriveFolder from '../models/drive-folder';
|
import DriveFolder from '../models/drive-folder';
|
||||||
import serialize from '../serializers/drive-file';
|
import serialize from '../serializers/drive-file';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import * as express from 'express';
|
import * as express from 'express';
|
||||||
import * as bcrypt from 'bcrypt';
|
import * as bcrypt from 'bcrypt';
|
||||||
import rndstr from 'rndstr';
|
import rndstr from 'rndstr';
|
||||||
const recaptcha = require('recaptcha-promise');
|
import recaptcha = require('recaptcha-promise');
|
||||||
import User from '../models/user';
|
import User from '../models/user';
|
||||||
import { validateUsername } from '../models/user';
|
import { validateUsername } from '../models/user';
|
||||||
import serialize from '../serializers/user';
|
import serialize from '../serializers/user';
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* Module dependencies
|
* Module dependencies
|
||||||
*/
|
*/
|
||||||
import * as mongo from 'mongodb';
|
import * as mongo from 'mongodb';
|
||||||
const deepcopy = require('deepcopy');
|
import deepcopy = require('deepcopy');
|
||||||
import App from '../models/app';
|
import App from '../models/app';
|
||||||
import User from '../models/user';
|
import User from '../models/user';
|
||||||
import Userkey from '../models/userkey';
|
import Userkey from '../models/userkey';
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* Module dependencies
|
* Module dependencies
|
||||||
*/
|
*/
|
||||||
import * as mongo from 'mongodb';
|
import * as mongo from 'mongodb';
|
||||||
const deepcopy = require('deepcopy');
|
import deepcopy = require('deepcopy');
|
||||||
import serializeApp from './app';
|
import serializeApp from './app';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
import * as mongo from 'mongodb';
|
import * as mongo from 'mongodb';
|
||||||
import DriveFile from '../models/drive-file';
|
import DriveFile from '../models/drive-file';
|
||||||
import serializeDriveTag from './drive-tag';
|
import serializeDriveTag from './drive-tag';
|
||||||
const deepcopy = require('deepcopy');
|
import deepcopy = require('deepcopy');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Serialize a drive file
|
* Serialize a drive file
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
import * as mongo from 'mongodb';
|
import * as mongo from 'mongodb';
|
||||||
import DriveFolder from '../models/drive-folder';
|
import DriveFolder from '../models/drive-folder';
|
||||||
const deepcopy = require('deepcopy');
|
import deepcopy = require('deepcopy');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Serialize a drive folder
|
* Serialize a drive folder
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
import * as mongo from 'mongodb';
|
import * as mongo from 'mongodb';
|
||||||
import DriveTag from '../models/drive-tag';
|
import DriveTag from '../models/drive-tag';
|
||||||
const deepcopy = require('deepcopy');
|
import deepcopy = require('deepcopy');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Serialize a drive tag
|
* Serialize a drive tag
|
||||||
|
|
|
@ -7,7 +7,7 @@ import * as mongo from 'mongodb';
|
||||||
import Message from '../models/messaging-message';
|
import Message from '../models/messaging-message';
|
||||||
import serializeUser from './user';
|
import serializeUser from './user';
|
||||||
import serializeDriveFile from './drive-file';
|
import serializeDriveFile from './drive-file';
|
||||||
const deepcopy = require('deepcopy');
|
import deepcopy = require('deepcopy');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Serialize a message
|
* Serialize a message
|
||||||
|
|
|
@ -7,7 +7,7 @@ import * as mongo from 'mongodb';
|
||||||
import Notification from '../models/notification';
|
import Notification from '../models/notification';
|
||||||
import serializeUser from './user';
|
import serializeUser from './user';
|
||||||
import serializePost from './post';
|
import serializePost from './post';
|
||||||
const deepcopy = require('deepcopy');
|
import deepcopy = require('deepcopy');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Serialize a notification
|
* Serialize a notification
|
||||||
|
|
|
@ -8,7 +8,7 @@ import Post from '../models/post';
|
||||||
import Like from '../models/like';
|
import Like from '../models/like';
|
||||||
import serializeUser from './user';
|
import serializeUser from './user';
|
||||||
import serializeDriveFile from './drive-file';
|
import serializeDriveFile from './drive-file';
|
||||||
const deepcopy = require('deepcopy');
|
import deepcopy = require('deepcopy');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Serialize a post
|
* Serialize a post
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/**
|
/**
|
||||||
* Module dependencies
|
* Module dependencies
|
||||||
*/
|
*/
|
||||||
const deepcopy = require('deepcopy');
|
import deepcopy = require('deepcopy');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Serialize a signin record
|
* Serialize a signin record
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* Module dependencies
|
* Module dependencies
|
||||||
*/
|
*/
|
||||||
import * as mongo from 'mongodb';
|
import * as mongo from 'mongodb';
|
||||||
const deepcopy = require('deepcopy');
|
import deepcopy = require('deepcopy');
|
||||||
import User from '../models/user';
|
import User from '../models/user';
|
||||||
import Following from '../models/following';
|
import Following from '../models/following';
|
||||||
import getFriends from '../common/get-friends';
|
import getFriends from '../common/get-friends';
|
||||||
|
|
|
@ -12,7 +12,7 @@ import * as os from 'os';
|
||||||
import * as cluster from 'cluster';
|
import * as cluster from 'cluster';
|
||||||
import Logger from './utils/logger';
|
import Logger from './utils/logger';
|
||||||
import * as chalk from 'chalk';
|
import * as chalk from 'chalk';
|
||||||
const portUsed = require('tcp-port-used');
|
import portUsed = require('tcp-port-used');
|
||||||
import isRoot = require('is-root');
|
import isRoot = require('is-root');
|
||||||
import ProgressBar from './utils/cli/progressbar';
|
import ProgressBar from './utils/cli/progressbar';
|
||||||
import initdb from './db/mongodb';
|
import initdb from './db/mongodb';
|
||||||
|
|
|
@ -5,9 +5,8 @@
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as http from 'http';
|
import * as http from 'http';
|
||||||
import * as https from 'https';
|
import * as https from 'https';
|
||||||
|
|
||||||
import * as express from 'express';
|
import * as express from 'express';
|
||||||
const vhost = require('vhost');
|
import vhost = require('vhost');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Init app
|
* Init app
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import Logger from './logger';
|
import Logger from './logger';
|
||||||
import * as chalk from 'chalk';
|
import * as chalk from 'chalk';
|
||||||
const prominence = require('prominence');
|
import prominence = require('prominence');
|
||||||
const git = require('git-last-commit');
|
import git = require('git-last-commit');
|
||||||
|
|
||||||
export default class {
|
export default class {
|
||||||
static async show(): Promise<void> {
|
static async show(): Promise<void> {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as express from 'express';
|
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) => {
|
module.exports = async (req: express.Request, res: express.Response) => {
|
||||||
// Get commit info
|
// Get commit info
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import * as express from 'express';
|
import * as express from 'express';
|
||||||
import * as ms from 'ms';
|
import ms = require('ms');
|
||||||
|
|
||||||
export default (name: string) => (req: express.Request, res: express.Response) => {
|
export default (name: string) => (req: express.Request, res: express.Response) => {
|
||||||
res.sendFile(path.resolve(`${__dirname}/app/${name}/view.html`), {
|
res.sendFile(path.resolve(`${__dirname}/app/${name}/view.html`), {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* Web Server
|
* Web Server
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as ms from 'ms';
|
import ms = require('ms');
|
||||||
|
|
||||||
// express modules
|
// express modules
|
||||||
import * as express from 'express';
|
import * as express from 'express';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as express from 'express';
|
import * as express from 'express';
|
||||||
import * as request from 'request';
|
import * as request from 'request';
|
||||||
const xml2json = require('xml2json');
|
import xml2json = require('xml2json');
|
||||||
|
|
||||||
module.exports = (req: express.Request, res: express.Response) => {
|
module.exports = (req: express.Request, res: express.Response) => {
|
||||||
const url: string = req.body.url;
|
const url: string = req.body.url;
|
||||||
|
|
Loading…
Reference in a new issue