mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-11-04 00:40:21 +00:00
3a66e3154cda6691c6be158f07e06438e37f73d2
Bumps the npm-dependencies group with 9 updates: | Package | From | To | | --- | --- | --- | | [framer-motion](https://github.com/motiondivision/motion) | `13.3.0` | `13.4.1` | | [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react) | `1.46.0` | `1.47.0` | | [react-i18next](https://github.com/i18next/react-i18next) | `17.0.14` | `17.0.15` | | [react-virtuoso](https://github.com/petyosi/react-virtuoso/tree/HEAD/packages/react-virtuoso) | `4.18.13` | `4.18.15` | | [simple-icons](https://github.com/simple-icons/simple-icons) | `16.31.0` | `16.32.0` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `26.6.1` | `26.6.2` | | [jsdom](https://github.com/jsdom/jsdom) | `30.0.1` | `30.1.1` | | [oxlint](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxlint) | `1.83.0` | `1.85.0` | | [swagger-typescript-api](https://github.com/acacode/swagger-typescript-api) | `13.12.6` | `13.13.0` | Updates `framer-motion` from 13.3.0 to 13.4.1 - [Changelog](https://github.com/motiondivision/motion/blob/main/CHANGELOG.md) - [Commits](https://github.com/motiondivision/motion/compare/v13.3.0...v13.4.1) Updates `lucide-react` from 1.46.0 to 1.47.0 - [Release notes](https://github.com/lucide-icons/lucide/releases) - [Commits](https://github.com/lucide-icons/lucide/commits/1.47.0/packages/lucide-react) Updates `react-i18next` from 17.0.14 to 17.0.15 - [Changelog](https://github.com/i18next/react-i18next/blob/master/CHANGELOG.md) - [Commits](https://github.com/i18next/react-i18next/compare/v17.0.14...v17.0.15) Updates `react-virtuoso` from 4.18.13 to 4.18.15 - [Release notes](https://github.com/petyosi/react-virtuoso/releases) - [Changelog](https://github.com/petyosi/react-virtuoso/blob/main/packages/react-virtuoso/CHANGELOG.md) - [Commits](https://github.com/petyosi/react-virtuoso/commits/react-virtuoso@4.18.15/packages/react-virtuoso) Updates `simple-icons` from 16.31.0 to 16.32.0 - [Release notes](https://github.com/simple-icons/simple-icons/releases) - [Commits](https://github.com/simple-icons/simple-icons/compare/16.31.0...16.32.0) Updates `@types/node` from 26.6.1 to 26.6.2 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `jsdom` from 30.0.1 to 30.1.1 - [Release notes](https://github.com/jsdom/jsdom/releases) - [Commits](https://github.com/jsdom/jsdom/compare/v30.0.1...v30.1.1) Updates `oxlint` from 1.83.0 to 1.85.0 - [Release notes](https://github.com/oxc-project/oxc/releases) - [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxlint/CHANGELOG.md) - [Commits](https://github.com/oxc-project/oxc/commits/oxlint_v1.85.0/npm/oxlint) Updates `swagger-typescript-api` from 13.12.6 to 13.13.0 - [Release notes](https://github.com/acacode/swagger-typescript-api/releases) - [Changelog](https://github.com/acacode/swagger-typescript-api/blob/main/CHANGELOG.md) - [Commits](https://github.com/acacode/swagger-typescript-api/compare/v13.12.6...v13.13.0) --- updated-dependencies: - dependency-name: framer-motion dependency-version: 13.4.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: npm-dependencies - dependency-name: lucide-react dependency-version: 1.47.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: npm-dependencies - dependency-name: react-i18next dependency-version: 17.0.15 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-dependencies - dependency-name: react-virtuoso dependency-version: 4.18.15 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-dependencies - dependency-name: simple-icons dependency-version: 16.32.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: npm-dependencies - dependency-name: "@types/node" dependency-version: 26.6.2 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-dependencies - dependency-name: jsdom dependency-version: 30.1.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-dependencies - dependency-name: oxlint dependency-version: 1.85.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-dependencies - dependency-name: swagger-typescript-api dependency-version: 13.13.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
Nezha Admin Frontend
Bootstrap
npx swagger-typescript-api -p http://localhost:8008/swagger/doc.json -o ./src/types -n api.ts --no-client --union-enums
End-to-end tests
Playwright suite lives in tests/e2e/ and runs in CI via
.github/workflows/e2e.yml. The workflow checks out the backend
(nezhahq/nezha master), starts it on 127.0.0.1:8008, then runs
npm run e2e here.
Run locally
First install browsers once:
npm run e2e:install
Then start the backend separately. The shape the CI workflow uses is:
# in a checkout of nezhahq/nezha
mkdir -p cmd/dashboard/admin-dist cmd/dashboard/user-dist
printf '<!doctype html><title>admin e2e</title>\n' > cmd/dashboard/admin-dist/index.html
printf '<!doctype html><title>user e2e</title>\n' > cmd/dashboard/user-dist/index.html
go install github.com/swaggo/swag/cmd/swag@latest
"$(go env GOPATH)/bin/swag" init --pd -d cmd/dashboard -g main.go -o cmd/dashboard/docs
go build -o /tmp/nezha-dashboard ./cmd/dashboard
NZ_LISTENHOST=127.0.0.1 NZ_LISTENPORT=8008 \
NZ_JWTSECRETKEY=e2e-jwt-secret-key-min-32-chars-long-ok \
NZ_AGENTSECRETKEY=e2e-agent-secret-32-bytes-long-ok \
NZ_SITENAME=nezha-e2e GIN_MODE=release \
/tmp/nezha-dashboard -c data/config.yaml -db data/sqlite.db
Then back in this repo:
npm run e2e # Vite dev server starts automatically
npm run e2e -- --ui # interactive runner for debugging
Reusing a running stack
If you already have Vite (npm run dev) and the backend up:
E2E_SKIP_WEBSERVER=1 E2E_BASE_URL=http://localhost:5173 npm run e2e
Override credentials for a non-default admin account with E2E_ADMIN_USER
and E2E_ADMIN_PASS.
Triaging a CI failure
The workflow uploads two artifacts on failure:
playwright-report— HTML report; openindex.htmllocally.dashboard-log— full backend stdout/stderr for the test run.
Languages
TypeScript
91.6%
HTML
7.4%
CSS
0.7%
JavaScript
0.3%