mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
bump beta.18
This commit is contained in:
15 files changed
+32
-16
No files matched your search
@@ -111,6 +111,15 @@ Hydro 用户群:1085853538
|
|||||||
<details>
|
<details>
|
||||||
<summary><h2>更新日志(点击展开)</h2></summary>
|
<summary><h2>更新日志(点击展开)</h2></summary>
|
||||||
|
|
||||||
|
## Hydro 5.0.0-beta.18 / UI 4.58.0-beta.19
|
||||||
|
|
||||||
|
- ui: problemconfig: 修复子任务测试点拖拽
|
||||||
|
- ui: problemconfig: 修复子任务依赖设置
|
||||||
|
- ui: 调整默认编译空间设置
|
||||||
|
- core: 修复重载设置导致设置项复制的问题
|
||||||
|
- core: 修复题解被赞数量显示
|
||||||
|
- ui: 修复题解区长数学公式显示
|
||||||
|
|
||||||
## Hydro 5.0.0-beta.17 / UI 4.58.0-beta.18
|
## Hydro 5.0.0-beta.17 / UI 4.58.0-beta.18
|
||||||
|
|
||||||
- ui: 自动折叠过长的题解内容
|
- ui: 自动折叠过长的题解内容
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/eslint-config",
|
"name": "@hydrooj/eslint-config",
|
||||||
"version": "3.0.7",
|
"version": "3.1.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "base.mjs",
|
"main": "base.mjs",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro",
|
"repository": "https://github.com/hydro-dev/Hydro",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/framework",
|
"name": "@hydrooj/framework",
|
||||||
"version": "0.2.6",
|
"version": "0.2.7",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro",
|
"repository": "https://github.com/hydro-dev/Hydro",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/utils",
|
"name": "@hydrooj/utils",
|
||||||
"version": "1.5.3",
|
"version": "1.5.4",
|
||||||
"description": "hydrooj utils",
|
"description": "hydrooj utils",
|
||||||
"main": "lib/utils.ts",
|
"main": "lib/utils.ts",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/components",
|
"name": "@hydrooj/components",
|
||||||
"version": "1.0.0-beta.10",
|
"version": "1.0.0-beta.11",
|
||||||
"main": "./frontend/index.ts",
|
"main": "./frontend/index.ts",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro",
|
"repository": "https://github.com/hydro-dev/Hydro",
|
||||||
"sideEffects": [
|
"sideEffects": [
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/elastic-search",
|
"name": "@hydrooj/elastic-search",
|
||||||
"version": "1.2.0-beta.3",
|
"version": "1.2.0-beta.4",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro",
|
"repository": "https://github.com/hydro-dev/Hydro",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/geoip",
|
"name": "@hydrooj/geoip",
|
||||||
"version": "1.4.0-beta.1",
|
"version": "1.4.0-beta.2",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro",
|
"repository": "https://github.com/hydro-dev/Hydro",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/hydrojudge",
|
"name": "@hydrooj/hydrojudge",
|
||||||
"bin": "bin/hydrojudge.js",
|
"bin": "bin/hydrojudge.js",
|
||||||
"version": "3.5.0-beta.13",
|
"version": "3.5.0-beta.14",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "5.0.0-beta.17",
|
"version": "5.0.0-beta.18",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/plugin-api",
|
"main": "src/plugin-api",
|
||||||
"module": "src/plugin-api",
|
"module": "src/plugin-api",
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ export default class GoogleOAuthService extends Service {
|
|||||||
_id: payload.sub.toString(),
|
_id: payload.sub.toString(),
|
||||||
email: payload.email,
|
email: payload.email,
|
||||||
uname: [`${payload.given_name} ${payload.family_name}`, payload.name],
|
uname: [`${payload.given_name} ${payload.family_name}`, payload.name],
|
||||||
viewLang: payload.locale.replace('-', '_'),
|
...(payload.locale ? { viewLang: payload.locale.replace('-', '_') } : {}),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
get: async function get(this: Handler) {
|
get: async function get(this: Handler) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/migrate",
|
"name": "@hydrooj/migrate",
|
||||||
"version": "0.5.0-beta.6",
|
"version": "0.5.0-beta.7",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro",
|
"repository": "https://github.com/hydro-dev/Hydro",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/onsite-toolkit",
|
"name": "@hydrooj/onsite-toolkit",
|
||||||
"version": "0.1.0-beta.5",
|
"version": "0.1.0-beta.6",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro",
|
"repository": "https://github.com/hydro-dev/Hydro",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@react-spring/web": "^10.0.3",
|
"@react-spring/web": "^10.0.3",
|
||||||
|
|||||||
@@ -31,13 +31,20 @@ try {
|
|||||||
__webpack_public_path__ = UiContext.cdn_prefix;
|
__webpack_public_path__ = UiContext.cdn_prefix;
|
||||||
} catch (e) { }
|
} catch (e) { }
|
||||||
if ('serviceWorker' in navigator) {
|
if ('serviceWorker' in navigator) {
|
||||||
navigator.serviceWorker.register('/service-worker.js').then((registration) => {
|
const sendConfig = () => fetch('/service-worker-config', {
|
||||||
console.log('SW registered: ', registration);
|
|
||||||
fetch('/service-worker-config', {
|
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify(UiContext.SWConfig),
|
body: JSON.stringify(UiContext.SWConfig),
|
||||||
});
|
});
|
||||||
|
navigator.serviceWorker.register('/service-worker.js').then((registration) => {
|
||||||
|
console.log('SW registered: ', registration);
|
||||||
|
const sw = registration.active || registration.waiting || registration.installing;
|
||||||
|
if (sw.state === 'activated') sendConfig();
|
||||||
|
else {
|
||||||
|
sw.addEventListener('statechange', (e) => {
|
||||||
|
if (e.target.state === 'activated') sendConfig();
|
||||||
|
});
|
||||||
|
}
|
||||||
}).catch((registrationError) => {
|
}).catch((registrationError) => {
|
||||||
console.log('SW registration failed: ', registrationError);
|
console.log('SW registration failed: ', registrationError);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.58.0-beta.18",
|
"version": "4.58.0-beta.19",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/vjudge",
|
"name": "@hydrooj/vjudge",
|
||||||
"version": "1.10.0-beta.5",
|
"version": "1.10.0-beta.6",
|
||||||
"description": "Submit problems to remote oj",
|
"description": "Submit problems to remote oj",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
|
|||||||
Reference in new issue
Block a user