mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
bump version
This commit is contained in:
11 files changed
+41
-23
No files matched your search
@@ -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 = {
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -13,3 +13,8 @@ pdf:
|
||||
name: pdf
|
||||
desc: Handle pdf documents
|
||||
default: false
|
||||
externalSign:
|
||||
type: text
|
||||
name: externalSign
|
||||
desc: External Sign URL
|
||||
default: ''
|
||||
Reference in new issue
Block a user