bump version

This commit is contained in:
undefined committed 2024-09-26 06:49:10 +08:00
1 parent dcbca065e5
commit 7ccc119e33
11 files changed
+41 -23

No files matched your search

+5 -1
View File
@@ -1,7 +1,7 @@
import { sign } from 'jsonwebtoken';
import { } from '@hydrooj/ui-default/backendlib/markdown-it-media';
import {
Context, Handler, SystemModel, UiContextBase,
Context, Handler, superagent, SystemModel, UiContextBase,
} from 'hydrooj';
declare module 'hydrooj' {
@@ -15,6 +15,10 @@ class OnlyofficeJWTHandler extends Handler {
notUsage = true;
async get({ url }) {
if (SystemModel.get('onlyoffice.externalSign')) {
const res = await superagent.get(SystemModel.get('onlyoffice.externalSign')).query({ url });
this.response.body = res.body;
}
const path = new URL(url).pathname;
const allowDownload = !!SystemModel.get('onlyoffice.allowDownload');
const payload = {
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/onlyoffice",
"version": "1.4.0",
"version": "1.4.1",
"main": "index.ts",
"repository": "git@github.com:hydro-dev/Hydro.git",
"author": "undefined <i@undefined.moe>",
@@ -10,6 +10,6 @@
"jsonwebtoken": "^9.0.2"
},
"devDependencies": {
"@types/jsonwebtoken": "^9"
"@types/jsonwebtoken": "^9.0.7"
}
}
+5
View File
@@ -13,3 +13,8 @@ pdf:
name: pdf
desc: Handle pdf documents
default: false
externalSign:
type: text
name: externalSign
desc: External Sign URL
default: ''