2 Commits

Author SHA1 Message Date
0f4239d179 ci: simplify ci quality checks
Some checks failed
🚀 Lint & Test & Deploy / release (pull_request) Failing after 38s
2026-02-09 15:50:05 +01:00
d9c9bb5234 fix(theme): allow raw html in head style 2026-02-09 15:49:50 +01:00
5 changed files with 9 additions and 38 deletions

View File

@@ -1,18 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
pnpm build
pnpm lint &
LINT_PID=$!
pnpm format:check &
FORMAT_PID=$!
pnpm check &
TYPE_PID=$!
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x24" pnpm test &
TEST_PID=$!
wait $LINT_PID
wait $FORMAT_PID
wait $TYPE_PID
wait $TEST_PID

View File

@@ -50,7 +50,12 @@ jobs:
run: ./.gitea/scripts/ci-checks.sh run: ./.gitea/scripts/ci-checks.sh
- name: 🛠️ Build - name: 🛠️ Build
run: ./.gitea/scripts/build.sh run: |
pnpm build
pnpm lint
pnpm format:check
pnpm check
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x24" pnpm test
- name: 🚀 Create Release Commit - name: 🚀 Create Release Commit
if: gitea.ref_type == 'tag' if: gitea.ref_type == 'tag'

View File

@@ -5,8 +5,8 @@
"lint": "pnpm run -r --parallel lint", "lint": "pnpm run -r --parallel lint",
"format": "pnpm dprint fmt", "format": "pnpm dprint fmt",
"format:check": "pnpm dprint check", "format:check": "pnpm dprint check",
"test": "pnpm run -r test", "test": "pnpm run -r --parallel test",
"check": "pnpm run -r check", "check": "pnpm run -r --parallel check",
"build": "pnpm build:nodes && pnpm build:app", "build": "pnpm build:nodes && pnpm build:app",
"build:app": "BASE_PATH=/ui pnpm -r --filter 'ui' build && pnpm -r --filter 'app' build", "build:app": "BASE_PATH=/ui pnpm -r --filter 'ui' build && pnpm -r --filter 'app' build",
"build:nodes": "cargo build --workspace --target wasm32-unknown-unknown --release && rm -rf ./app/static/nodes/max/plantarium/ && mkdir -p ./app/static/nodes/max/plantarium/ && cp -R ./target/wasm32-unknown-unknown/release/*.wasm ./app/static/nodes/max/plantarium/", "build:nodes": "cargo build --workspace --target wasm32-unknown-unknown --release && rm -rf ./app/static/nodes/max/plantarium/ && mkdir -p ./app/static/nodes/max/plantarium/ && cp -R ./target/wasm32-unknown-unknown/release/*.wasm ./app/static/nodes/max/plantarium/",

View File

@@ -13,16 +13,6 @@
`#${value.map((c) => c.toString(16).padStart(2, '0')).join('')}` `#${value.map((c) => c.toString(16).padStart(2, '0')).join('')}`
); );
let rValue = $state(value[0]);
let gValue = $state(value[1]);
let bValue = $state(value[2]);
$effect(() => {
rValue = value[0];
gValue = value[1];
bValue = value[2];
});
function handleHexInput(e: Event) { function handleHexInput(e: Event) {
const target = e.target as HTMLInputElement; const target = e.target as HTMLInputElement;
let val = target.value.replace(/[^0-9a-fA-F]/g, ''); let val = target.value.replace(/[^0-9a-fA-F]/g, '');
@@ -41,12 +31,6 @@
] as [number, number, number]; ] as [number, number, number];
} }
} }
function handleHexBlur() {
rValue = value[0];
gValue = value[1];
bValue = value[2];
}
</script> </script>
<div class="flex overflow-hidden rounded-sm border border-outline bg-layer-2 w-min"> <div class="flex overflow-hidden rounded-sm border border-outline bg-layer-2 w-min">
@@ -69,7 +53,6 @@
value={hexValue.slice(1)} value={hexValue.slice(1)}
{id} {id}
oninput={handleHexInput} oninput={handleHexInput}
onblur={handleHexBlur}
maxlength={6} maxlength={6}
class="w-15 bg-transparent text-text outline-none" class="w-15 bg-transparent text-text outline-none"
/> />

View File

@@ -52,6 +52,7 @@
}); });
</script> </script>
<svelte:head>
<!-- eslint-disable-next-line svelte/no-at-html-tags --> <!-- eslint-disable-next-line svelte/no-at-html-tags -->
{@html themeCss} {@html themeCss}
</svelte:head> </svelte:head>