mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Implement contact form on server side
This commit is contained in:
parent
8d00889b60
commit
a4101923e6
32 changed files with 541 additions and 49 deletions
|
@ -7,6 +7,7 @@ import { join } from 'path'
|
|||
import { Instance as ParseTorrent } from 'parse-torrent'
|
||||
import { remove } from 'fs-extra'
|
||||
import * as memoizee from 'memoizee'
|
||||
import { isArray } from './custom-validators/misc'
|
||||
|
||||
function deleteFileAsync (path: string) {
|
||||
remove(path)
|
||||
|
@ -19,10 +20,7 @@ async function generateRandomString (size: number) {
|
|||
return raw.toString('hex')
|
||||
}
|
||||
|
||||
interface FormattableToJSON {
|
||||
toFormattedJSON (args?: any)
|
||||
}
|
||||
|
||||
interface FormattableToJSON { toFormattedJSON (args?: any) }
|
||||
function getFormattedObjects<U, T extends FormattableToJSON> (objects: T[], objectsTotal: number, formattedArg?: any) {
|
||||
const formattedObjects: U[] = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue