Compare commits
1 Commits
5-remove-u
...
fix-lockfi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
22fa5d4aa2 |
38
.gitea/workflows/pr.yml
Normal file
38
.gitea/workflows/pr.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
name: PR Build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
env:
|
||||
IMAGE_PR: git.sebse.de/${{ github.repository }}
|
||||
IMAGE_MIGRATE_PR: git.sebse.de/${{ github.repository }}-migrate
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build app
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./web
|
||||
push: false
|
||||
tags: ${{ env.IMAGE_PR }}:pr-${{ github.event.pull_request.head.sha }}
|
||||
cache-from: type=registry,ref=${{ env.IMAGE_PR }}:latest
|
||||
|
||||
- name: Build migrate
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./web
|
||||
file: ./web/Dockerfile.migrate
|
||||
push: false
|
||||
tags: ${{ env.IMAGE_MIGRATE_PR }}:pr-${{ github.event.pull_request.head.sha }}
|
||||
cache-from: type=registry,ref=${{ env.IMAGE_MIGRATE_PR }}:latest
|
||||
@@ -24,13 +24,15 @@ export default function UpsChart({ config, upsRows, timeMode, onEdit, onDelete }
|
||||
(el, w, h, lRef) => {
|
||||
if (upsRows.length < 2) return null;
|
||||
|
||||
const data = timeMode === 'tick'
|
||||
? [...upsRows].sort((a, b) => a.game_tick - b.game_tick)
|
||||
: upsRows;
|
||||
const xs = data.map((r) =>
|
||||
const sorted = [...upsRows].sort((a, b) =>
|
||||
timeMode === 'tick'
|
||||
? a.game_tick - b.game_tick
|
||||
: new Date(a.real_time).getTime() - new Date(b.real_time).getTime(),
|
||||
);
|
||||
const xs = sorted.map((r) =>
|
||||
timeMode === 'tick' ? r.game_tick : new Date(r.real_time).getTime() / 1000,
|
||||
);
|
||||
const ys = data.map((r) => r.ups);
|
||||
const ys = sorted.map((r) => r.ups);
|
||||
|
||||
const xAxis: uPlot.Axis = {
|
||||
...AXIS_BASE,
|
||||
|
||||
1
web/package-lock.json
generated
1
web/package-lock.json
generated
@@ -1593,6 +1593,7 @@
|
||||
"integrity": "sha512-h2MPBLoNtjc3qZWfY3Tl51yPorQ2McHn8pJfcMNTcIvrrZrr90Ykffit0yjrPFWQcRcUxzH20+6OcVdW4yHtUg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.9.1",
|
||||
"@typescript-eslint/scope-manager": "8.60.1",
|
||||
|
||||
Reference in New Issue
Block a user