1
0
포크 0
의 미러 https://git.sr.ht/~cadence/bibliogram synced 2026-04-16 08:31:37 +00:00

Add screenshot tester

This commit is contained in:
Cadence Ember 2020-06-21 04:09:36 +12:00
부모 b439158cbc
커밋 ee2626924a
No known key found for this signature in database
GPG 키 ID: 128B99B1B74A6412
17개의 변경된 파일860개의 추가작업 그리고 12개의 파일을 삭제

파일 보기

@ -13,7 +13,7 @@ setInterval((new (function() {
for (const waiter of waiters.values()) {
waiter.stream.push(payload)
}
})).constructor, 50000)
})).constructor, 50000).unref()
class Waiter {
constructor(username) {

파일 보기

@ -7,7 +7,7 @@ setInterval((new (function() {
for (const stream of streams.values()) {
stream.push(payload)
}
})).constructor, 50000)
})).constructor, 50000).unref()
module.exports = [
{

파일 보기

@ -60,7 +60,7 @@ function cleanCSRF() {
db.prepare("DELETE FROM CSRFTokens WHERE expires <= ?").run(Date.now())
}
cleanCSRF()
setInterval(cleanCSRF, constants.caching.csrf_time)
setInterval(cleanCSRF, constants.caching.csrf_time).unref()
module.exports.getToken = getToken
module.exports.getSettings = getSettings

파일 보기

@ -26,6 +26,8 @@ const pinski = new Pinski({
onionLocation: constants.onion_location
})
pinski.startServer()
subdirs("pug", async (err, dirs) => {
if (err) throw err
@ -60,8 +62,6 @@ subdirs("pug", async (err, dirs) => {
pinski.addAPIDir("assistant_api")
}
pinski.startServer()
require("pinski/plugins").setInstance(pinski)
Object.assign(passthrough, pinski.getExports())
@ -74,3 +74,5 @@ subdirs("pug", async (err, dirs) => {
})
}
})
module.exports = pinski