Refactor compare-view component to use observables for data loading, enhancing performance and responsiveness. Update compare service interfaces and methods for improved delta computation. Modify audit log component to handle optional event properties gracefully. Optimize Monaco editor worker loading to reduce bundle size. Introduce shared SCSS mixins for consistent styling across components. Add Gitea test instance setup and NuGet package publishing test scripts for CI/CD validation. Update documentation paths and ensure all references are accurate.
This commit is contained in:
@@ -18,7 +18,7 @@ else
|
||||
fi
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
||||
SEED_DIR="${ROOT_DIR}/seed-data/concelier/store-aoc-19-005"
|
||||
SEED_DIR="${ROOT_DIR}/src/__Tests/__Datasets/seed-data/concelier/store-aoc-19-005"
|
||||
OUT_DIR="${ROOT_DIR}/out/linksets"
|
||||
OUT_PATH="${1:-${OUT_DIR}/linksets-stage-backfill.tar.zst}"
|
||||
GEN_TIME="2025-12-07T00:00:00Z"
|
||||
@@ -46,7 +46,7 @@ cat >"${WORKDIR}/manifest.json" <<EOF
|
||||
{
|
||||
"datasetId": "store-aoc-19-005-dev",
|
||||
"generatedAt": "${GEN_TIME}",
|
||||
"source": "seed-data/concelier/store-aoc-19-005",
|
||||
"source": "src/__Tests/__Datasets/seed-data/concelier/store-aoc-19-005",
|
||||
"records": {
|
||||
"linksets": ${linksets_count},
|
||||
"advisory_chunks": ${advisory_count}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
param(
|
||||
[string]$Destination = "$(Join-Path (Split-Path -Parent $PSCommandPath) '..' | Resolve-Path)/seed-data/ics-cisa"
|
||||
[string]$Destination = "$(Join-Path (Split-Path -Parent $PSCommandPath) '../..' | Resolve-Path)/src/__Tests/__Datasets/seed-data/ics-cisa"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
DEST_DIR="${1:-$ROOT_DIR/seed-data/ics-cisa}"
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
||||
DEST_DIR="${1:-$ROOT_DIR/src/__Tests/__Datasets/seed-data/ics-cisa}"
|
||||
mkdir -p "$DEST_DIR"
|
||||
|
||||
info() { printf "[ics-seed] %s\n" "$*"; }
|
||||
|
||||
@@ -45,7 +45,7 @@ def capture(idx: str, title: str, out_dir: Path) -> Path:
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--out", type=Path, default=Path("seed-data/kisa/html"))
|
||||
parser.add_argument("--out", type=Path, default=Path("src/__Tests/__Datasets/seed-data/kisa/html"))
|
||||
parser.add_argument("--limit", type=int, default=10, help="Maximum advisories to download")
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<RestorePackagesPath>../../local-nugets/packages</RestorePackagesPath>
|
||||
<RestorePackagesPath>../../.nuget/packages</RestorePackagesPath>
|
||||
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
|
||||
<EnableDefaultItems>false</EnableDefaultItems>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<RestorePackagesPath>../../local-nugets/packages</RestorePackagesPath>
|
||||
<RestorePackagesPath>../../.nuget/packages</RestorePackagesPath>
|
||||
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
|
||||
<EnableDefaultItems>false</EnableDefaultItems>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -2,12 +2,11 @@
|
||||
# Convenience wrapper to run the isolated Node analyzer suite with cleanup enabled.
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
||||
|
||||
# auto-clean workspace outputs before running tests (uses cleanup helper inside test script)
|
||||
export CLEAN_BEFORE_NODE_TESTS="${CLEAN_BEFORE_NODE_TESTS:-1}"
|
||||
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
|
||||
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
export NUGET_PACKAGES="${ROOT}/offline/packages"
|
||||
|
||||
exec "${ROOT}/src/Scanner/__Tests/node-tests-isolated.sh"
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"""Generate manifests for curated binaries.
|
||||
|
||||
- .nuget/manifest.json : NuGet packages (id, version, sha256)
|
||||
- vendor/manifest.json : Plugin/tool/deploy/ops binaries with sha256
|
||||
- offline/feeds/manifest.json : Offline bundles (tar/tgz/zip) with sha256
|
||||
- devops/manifests/binary-plugins.manifest.json : Plugin/tool/deploy/ops binaries with sha256
|
||||
- devops/offline/feeds/manifest.json : Offline bundles (tar/tgz/zip) with sha256
|
||||
|
||||
Intended to be idempotent and run in CI to ensure manifests stay current.
|
||||
"""
|
||||
@@ -99,16 +99,16 @@ def generate_vendor_manifest() -> None:
|
||||
"entries": entries,
|
||||
}
|
||||
|
||||
vendor_dir = ROOT / "vendor"
|
||||
vendor_dir.mkdir(exist_ok=True)
|
||||
write_json(vendor_dir / "manifest.json", manifest)
|
||||
manifests_dir = ROOT / "devops" / "manifests"
|
||||
manifests_dir.mkdir(parents=True, exist_ok=True)
|
||||
write_json(manifests_dir / "binary-plugins.manifest.json", manifest)
|
||||
|
||||
|
||||
FEED_SUFFIXES = (".tar.gz", ".tgz", ".tar", ".zip", ".gz")
|
||||
|
||||
|
||||
def generate_offline_manifest() -> None:
|
||||
feeds_dir = ROOT / "offline" / "feeds"
|
||||
feeds_dir = ROOT / "devops" / "offline" / "feeds"
|
||||
feeds_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
existing = {}
|
||||
|
||||
Reference in New Issue
Block a user