Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
7716134
恢复以往更新
Aug 1, 2024
df33154
Merge branch 'master' of https://github.com/hydro-dev/Hydro
Aug 2, 2024
2f6a1f5
修复文件缺少空行
Aug 2, 2024
2451e5f
删除多余的文件,修复GitHub test
Aug 2, 2024
f05b4b8
调整导航栏顺序
Aug 2, 2024
eb20f6e
修复部分问题
guke1024 Aug 3, 2024
cad1528
修复部分warning
guke1024 Aug 3, 2024
abe441f
删除多余的分号
guke1024 Aug 3, 2024
95a32fb
修复reggol报错
guke1024 Aug 3, 2024
74af766
修复utils
guke1024 Aug 3, 2024
982aafe
修复reggol报错
guke1024 Aug 3, 2024
402e256
添加缺少的依赖
guke1024 Aug 3, 2024
ddaec1c
Merge branch 'master' of https://github.com/hydro-dev/Hydro
ZTL123Z Aug 3, 2024
30c98a6
zh.yaml修复
ZTL123Z Aug 3, 2024
3e3bd99
zh.ymal修改,两个star Topic
ZTL123Z Aug 3, 2024
619fd19
修改NODE_OPTIONS=--max_old_space_size从8g到10g
ZTL123Z Aug 3, 2024
6f0ae5f
NODE_OPTIONS=--max_old_space_size到12g
ZTL123Z Aug 3, 2024
91f24fd
回退node size
ZTL123Z Aug 3, 2024
9c37381
调整题目列表显示
guke1024 Aug 3, 2024
0225535
调整html5代码
guke1024 Aug 3, 2024
5e79517
删除不必要的代码
guke1024 Aug 3, 2024
282b4f4
删除不必要的vjudge代码
guke1024 Aug 4, 2024
215556c
Merge branch 'master' of https://githubfast.com/HGNU/HGNUOJ
guke1024 Aug 4, 2024
49b92b9
merge https://github.com/hydro-dev/Hydro
guke1024 Aug 4, 2024
ed94cb4
Merge branch 'master' of https://githubfast.com/HGNU/HGNUOJ
guke1024 Aug 4, 2024
a966b7c
修复创建域
guke1024 Aug 4, 2024
bc595ba
Merge branch 'master' of https://githubfast.com/HGNU/HGNUOJ
guke1024 Aug 4, 2024
6115019
优化hduoj vjudge题面
guke1024 Aug 4, 2024
99d3582
Update hduoj.ts
guke1024 Aug 4, 2024
db18b37
Update footer.html
guke1024 Aug 4, 2024
58c0606
Merge branch 'master' of https://githubfast.com/HGNU/HGNUOJ
guke1024 Aug 4, 2024
d76d059
修复hduoj以及训练姓名显示
guke1024 Aug 4, 2024
e5af148
修改badge颜色
ZTL123Z Aug 5, 2024
fe2027f
Merge branch 'master' of https://githubfast.com/HGNU/HGNUOJ
guke1024 Aug 5, 2024
78e48fc
禁用站内消息
guke1024 Aug 6, 2024
818a89c
Merge branch 'master' of https://github.com/HGNU/HGNUOJ
guke1024 Aug 6, 2024
e2c8b62
作业显示错误答案对比
guke1024 Aug 13, 2024
5bbbe6f
作业显示总分,创建时默认延期0天
guke1024 Aug 13, 2024
24d572a
更新rating计算方式
guke1024 Aug 13, 2024
721d172
修复userpriv页面报错
guke1024 Aug 13, 2024
88c91ba
Snapshot deployed HGNU customizations before upstream upgrade
guke1024 Nov 12, 2026
0451082
Merge Hydro 5.1 upstream while adapting HGNU student and classroom fe…
guke1024 Nov 12, 2026
6934565
Normalize inherited line endings for reviewable custom changes
guke1024 Nov 12, 2026
52bf4a7
Fix legacy settings migration and add HGNU upgrade regression checks
guke1024 Nov 12, 2026
1e97b66
Retain maintenance scripts and report student import failures accurately
guke1024 Nov 12, 2026
a64b723
Preserve HGNU profile badges and school footer credits
guke1024 Nov 12, 2026
637aee8
Fix legacy provider APIs and Koa types for current dependencies
guke1024 Nov 12, 2026
c5331ce
Make legacy settings migration retryable and idempotent
guke1024 Nov 12, 2026
7d6684d
Prevent CLI judge consumers and validate preserved customizations
guke1024 Nov 12, 2026
7c89b96
Limit upstream package publishing to the Hydro upstream repository
guke1024 Nov 13, 2026
aef15ed
Keep HGNU problem search compatible with Elasticsearch 8
guke1024 Nov 13, 2026
78f5ec3
Migrate legacy remote judge mounts when the channel is first initialized
guke1024 Nov 13, 2026
c440cc4
Preserve access to migrated public domains without overriding explici…
guke1024 Nov 13, 2026
ad54737
Follow official v5 domain membership and repair system enrollment
guke1024 Nov 13, 2026
1bb828a
Restore upstream Elasticsearch 9 client
guke1024 Nov 13, 2026
fc9f938
Merge master history while preserving the adapted HGNU features
guke1024 Nov 13, 2026
bc4771e
同步最新上游更新
guke1024 Nov 13, 2026
1547f4b
Optimize discussion images with lazy responsive previews and versione…
guke1024 Nov 18, 2026
b5487d2
Add responsive discussion directory with heading navigation and readi…
guke1024 Nov 18, 2026
3375224
新增比赛相册与奖项展示,完善公告浏览布局
guke1024 Nov 18, 2026
7a66b1f
合并公告浏览优化与比赛相册更新
guke1024 Nov 18, 2026
46115bc
配置 Docker 国内源与后端端口 8083,更新依赖并忽略运行时数据目录
ZTL123Z Nov 18, 2026
b86e5a7
fix(workflow) 修复了yarn版本与github action上面版本不同的问题
ZTL123Z Nov 18, 2026
e950e72
restore(docker) 恢复原本的docker-compose 文件
ZTL123Z Nov 18, 2026
b794d7e
fix(ui): version shared asset URLs on rebuild
yjwyyds1 Nov 18, 2026
e2faa1f
feat(wiki): add permissioned articles and directory management
yjwyyds1 Nov 18, 2026
b1ba830
feat(oj): add external practice stats and sortable rankings
yjwyyds1 Nov 18, 2026
f62273c
Merge pull request #1 from ZTL123Z/ops-test
ZTL123Z Nov 19, 2026
65eb1a0
fix: 解决与上游冲突
ZTL123Z Nov 19, 2026
231993b
merge: 同步 origin/master
ZTL123Z Nov 19, 2026
cd8cd02
feat(ci) 改为手动确认发布,镜像 tag 用 UTC 时间戳
ZTL123Z Nov 19, 2026
b5ec277
Merge pull request #3 from ZTL123Z/ci/image-timestamp-tag
ZTL123Z Nov 19, 2026
81a5c4a
feat(ci) 改为手动确认发布,镜像 tag 用 UTC 时间戳 (#2)
ZTL123Z Nov 19, 2026
64e3e72
Merge branch 'HGNU:master' into master
ZTL123Z Nov 19, 2026
4be1e06
Merge pull request #4 from ZTL123Z/master
ZTL123Z Nov 19, 2026
f897897
fix(wiki): type the route registration test stub
yjwyyds1 Nov 19, 2026
8b1ede7
refactor(docker): 把 HGNU 定制编排拆到 install/docker-hgnu,三镜像统一构建发布
ZTL123Z Nov 20, 2026
d3ee279
Merge pull request #5 from HGNU/review/external-oj-ranking
ZTL123Z Nov 20, 2026
1d5081c
Merge pull request #6 from HGNU/review/wiki-framework
ZTL123Z Nov 20, 2026
835ecad
Merge pull request #8 from ZTL123Z/ops/docker-ci
ZTL123Z Nov 20, 2026
83f15f3
fix: 修复排行榜兼容性并合并每日做题统计
yjwyyds1 Nov 20, 2026
0b69eb0
Merge pull request #9 from HGNU/fix/external-oj-ranking-21h
yjwyyds1 Nov 20, 2026
42aac6d
feat(wiki): 调整导航位置并完善卡片总览、实时预览模板、别名检索与文章删除
yjwyyds1 Nov 20, 2026
fafb1e3
Merge pull request #10 from HGNU/review/wiki-framework
yjwyyds1 Nov 20, 2026
5710cf3
feat(oj): support manual sync and yesterday practice rankings
yjwyyds1 Nov 21, 2026
587064c
Merge pull request #11 from HGNU/feat/external-oj-manual-refresh
yjwyyds1 Nov 21, 2026
0b787b3
fix(judge): serialize sandbox errors safely
yjwyyds1 Nov 21, 2026
516f5e0
Merge pull request #12 from HGNU/fix/judge-sandbox-error-bson
yjwyyds1 Nov 21, 2026
fd1c69d
feat(contest): add onsite contests and ICPC Resolver export
guke1024 Nov 22, 2026
b6b61b7
fix(contest): align arena with repository build and lint checks
guke1024 Nov 22, 2026
7cdc1e6
合并现场赛模式与 ICPC 滚榜导出
guke1024 Nov 22, 2026
0b4e9d3
feat(contest): add live judging details to onsite submissions
guke1024 Nov 22, 2026
58634b7
fix(resolver): detect compatible Java in exported Windows launchers
guke1024 Nov 22, 2026
ba6d673
完善现场赛评测详情与滚榜包启动
guke1024 Nov 22, 2026
90e42b9
完善现场赛提交队列、计时与裁判通知
guke1024 Nov 23, 2026
79eade7
完善现场赛实时展示、PDF题面与气球发放
guke1024 Nov 28, 2026
8d625ed
补齐参赛者座位导入的模板说明
guke1024 Nov 28, 2026
f42ed03
合并现场赛实时展示、PDF题面与气球发放更新
guke1024 Nov 28, 2026
23b182a
feat(judge,oj): 现场赛首错即停/TLE优化与外站同步重试及提示改进
yjwyyds1 Nov 28, 2026
cfcfe34
Merge remote-tracking branch 'origin/master' into zkx/dev
yjwyyds1 Nov 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 只作用于「以仓库根目录为上下文」的构建(.github/workflows/image.yml)。
# install/docker-hgnu/docker-compose.yml 里 judge 的构建上下文是子目录,不受这里影响。

# 版本库与本地开发产物
.git
.gitmodules
node_modules
**/node_modules
.cache
**/*.tsbuildinfo
.build
dist

# 由构建过程重新生成的前端产物
packages/ui-default/public
packages/ui-default/misc/.iconfont
packages/ui-default/static/locale
packages/ui-next/public

# yarn 本地状态(缓存由构建时的 cache mount 提供)
.yarn/cache
.yarn/unplugged
.yarn/sdks
.yarn/install-state.gz

# 运行时数据与本地配置(docker-hgnu 的数据目录不跟随官方 install/docker/data)
install/docker/data
install/docker-hgnu/data
*.log
*.mmdb
# .env 不只在仓库根目录(install/docker-hgnu/.env 是 compose 本地配置),
# 不带目录前缀的写法只匹配根目录,所以这里用 ** 覆盖任意层级
**/.env
**/.env.*
63 changes: 44 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ permissions:
env:
CI: true
YARN_ENABLE_IMMUTABLE_INSTALLS: 'false'
# Corepack 首次下载 yarn 时会交互式询问,CI 里必须关掉
COREPACK_ENABLE_DOWNLOAD_PROMPT: '0'

jobs:
build:
Expand All @@ -25,29 +27,52 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22
- name: Enable Corepack
run: |
corepack enable
corepack --version
yarn --version
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v4
run: echo "dir=$(yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
# commit message 含 skip-cache 时让缓存 key 带随机后缀,等于强制不命中。
# 用 env 中转而不是把 commit message 直接拼进 shell,避免命令注入。
- name: Compute cache key suffix
id: cache-key
env:
COMMIT_MSG: ${{ github.event.head_commit.message }}
RUN_ID: ${{ github.run_id }}
run: |
if printf '%s' "$COMMIT_MSG" | grep -q 'skip-cache'; then
echo "suffix=skip-$RUN_ID" >> "$GITHUB_OUTPUT"
else
echo "suffix=" >> "$GITHUB_OUTPUT"
fi
# 依赖缓存:只跟 yarn.lock 绑定,依赖没变就复用,装包时不走网络
- name: Restore yarn cache
uses: actions/cache@v4
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
yarn.lock
.cache
**/tsconfig.tsbuildinfo
key: cache-${{ github.ref }}-${{ github.sha }}
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ runner.os }}-${{ steps.cache-key.outputs.suffix }}${{ hashFiles('yarn.lock') }}
restore-keys: |
cache-${{ github.ref }}-
cache-
- name: Clear Cache
if: "contains(github.event.head_commit.message, 'skip-cache')"
run: |
rm -rf node_modules yarn.lock **/tsconfig.tsbuildinfo
yarn-${{ runner.os }}-
# 构建缓存:.cache 里是 tsc 增量产物 + webpack 持久化缓存。
# 用源码哈希做 key、用"仅含 lock 哈希"的前缀做 restore-keys:
# 源码一改 key 就变,但仍能回退到最近一次构建结果做增量。
- name: Restore build cache
uses: actions/cache@v4
with:
path: .cache
key: build-${{ runner.os }}-${{ steps.cache-key.outputs.suffix }}${{ hashFiles('yarn.lock') }}-${{ hashFiles('packages/**/*.ts', 'packages/**/*.tsx', 'packages/**/*.vue', 'framework/**/*.ts') }}
restore-keys: |
build-${{ runner.os }}-${{ steps.cache-key.outputs.suffix }}${{ hashFiles('yarn.lock') }}-
build-${{ runner.os }}-
- name: Config And Install
run: |
git config --global user.name undefined
git config --global user.email i@undefined.moe
yarn set version 4.18.1
corepack install
yarn --version
yarn
yarn dedupe
node build/prepare.js
Expand All @@ -68,14 +93,14 @@ jobs:
yarn build:ui:iconfont # icon font file needed for types
if [[ ${{ steps.ui-changed-files.outputs.any_changed }} == true ]] || [[ $(npm info @hydrooj/ui-default version) != $(node -e 'console.log(require("./packages/ui-default/package.json").version)') ]]
then
parallel --tty -j+0 yarn ::: lint:ci build build:ui:production:webpack test
parallel --tty -j+0 yarn ::: lint:ci build build:ui:production:webpack test test:arena
else
parallel --tty -j+0 yarn ::: lint:ci build test
parallel --tty -j+0 yarn ::: lint:ci build test test:arena
fi
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
- name: Publish
if: ${{ github.event_name == 'push' }}
if: ${{ github.event_name == 'push' && github.repository == 'hydro-dev/Hydro' }}
run: node -r @hydrooj/register build/publish.ts
# - name: Benchmark
# run: yarn benchmark
Expand Down Expand Up @@ -136,4 +161,4 @@ jobs:
# context: ./install/docker/judge
# tags: |
# docker.pkg.github.com/hydro-dev/judge:${{ github.sha }}
# docker.pkg.github.com/hydro-dev/judge:${{ github.ref }}
# docker.pkg.github.com/hydro-dev/judge:${{ github.ref }}
23 changes: 15 additions & 8 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@ name: "CodeQL"

on:
push:
branches: [ "master" ]
branches: [ "master", "ops-test" ]
pull_request:
branches: [ "master" ]
branches: [ "master", "ops-test" ]
schedule:
- cron: "37 0 * * 2"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
actions: read
contents: read
Expand All @@ -20,22 +25,24 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ javascript ]
language: [ javascript-typescript ]

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v4

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"
Loading
Loading