30 Commits
Author SHA1 Message Date
pnoker 4eb9b48bef chore(repo): ignore runtime data dirs and sqlite wal files anywhere
services resolve dc3/data against the process cwd, so a driver started
from its module directory writes dc3-driver/<module>/dc3/data/... that
the root-anchored dc3/data/ pattern never matched; use **/dc3/data/
(any depth) and add the sqlite -shm/-wal/-journal sidecars that *.db
alone does not cover
2026-09-18 11:35:46 +08:00
Henry ZhangandClaude Fable 5 7802eeb999 feat(web): static mock demo deployable to demo.dc3.site (#199)
* feat(web): complete static mock demo for GitHub Pages

- register core/dashboard/dictionary handlers + seed data (driver/device/
  profile/point, dictionaries, dashboard stats/topology/alerts)
- fix router-guard timing: pre-seed auth at main.ts top level before router
  install, since the initial navigation runs as a microtask ahead of the
  async mock-chunk import
- hide agentic assistant in mock mode (its chat streams over raw fetch and
  bypasses the axios adapter)
- assetUrl helper for subpath-safe public assets
- GitHub Pages deploy workflow + public/CNAME (demo.dc3.site)
- unit tests covering the mock adapter

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(web): commit mock core handler skipped by core.* gitignore

The repo-root `core.*` rule (meant for JVM crash dumps) silently skipped
dc3-web/src/mock/handlers/core.ts during `git add`, so the PR build failed
type-check with "Cannot find module './handlers/core'". Force-add the file
and add a negation exception so it can't be dropped again.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* test(web): drop `as never` cast in mock-adapter test

The AI guardrail forbids double-assertion / never-cast type laundering.
Use the real AxiosRequestConfig type and a single boundary cast to R
(the interceptor unwraps the envelope) instead of `request(config as never)`.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-06 21:18:10 +08:00
Henry Zhang d06abff597 chore(docs): move docs site to standalone pnoker/iot-dc3-docs repo (#177)
* chore(docs): move docs site to standalone pnoker/iot-dc3-docs repo

The VitePress docs site now lives in pnoker/iot-dc3-docs and serves docs.dc3.site from there. Remove the in-repo docs/ and all docs-only build/deploy wiring so nothing dangles.

- delete docs/ (source moved to pnoker/iot-dc3-docs)

- delete .github/workflows/docs.yml (deploy owned by iot-dc3-docs)

- drop npm /docs dependabot block; clean codeql/.gitignore docs paths

- remove Makefile docs-* targets

- relocate AI testing policy into dc3-web/tests/ so the required Web guardrail test is self-contained (was reading ../docs/...)

- rewire README image refs (7 READMEs) and in-repo doc links (README.ai.md, AGENTS.md, dc3/doc/README.md) to https://docs.dc3.site / the new repo

dc3/doc/{TITLE,CHANGE,USAGE}.md STAY - release tooling (make changelog, docker-ci) regenerates them; the docs repo snapshots them.

* fix(docs): repair pre-existing broken doc links found during migration

- 8 READMEs: /en|zh/introduction/technology-stack -> /en|zh/development/technology-stack (page lives under development/, not introduction/)

- dc3-web/tests/README.md: ../docs/test-debugging.md (missing) -> https://docs.dc3.site/en/frontend/test-debugging
2026-08-06 14:54:17 +08:00
pnoker 99811cdea7 chore: consolidate dc3-web config and legal files into root
Since dc3-web is now part of the monorepo, remove duplicated files
and centralize project-wide configuration at the root level.

.gitignore:
- Merge dc3-web-specific patterns (dist/, coverage/, .vite/, *.tsbuildinfo,
  components.d.ts, .eslintcache, src-tauri/, *.db, *.sqlite, etc.) into root
- Add missing root patterns (*.crt, *.csr, *.backup, .history/, Sublime Text)
- Delete dc3-web/.gitignore

Makefile:
- Auto-generate GROUP_SERVICES_drivers from dc3-driver/ directory wildcard
- Replace 33 hand-written RUN_MODULE_ mappings with 5 explicit + foreach loop
- Fix catch-all %: rule to reject typos instead of silently succeeding

dc3-web/ legal files (7 files deleted):
- CODE_OF_CONDUCT.md, CONTRIBUTING.md — older versions, root has newer
- COPYRIGHT, LICENSE-AGPL.txt, SECURITY.md — identical to root
- LICENSE.txt — older version, root has v2026.5
- LICENSE — Apache 2.0 from standalone era, no longer applicable under AGPL
2026-07-13 19:31:43 +08:00
pnoker cd6dca6881 chore: add .m2/ to gitignore, DC3_SECURITY_KEY, and minor formatting fixes
- Add .m2/ to .gitignore for workspace-local Maven repository
- Add DC3_SECURITY_KEY to dev environment files
- Fix RoleUserBindController parameter formatting
- Fix README.ja.md newline breaks
2026-06-11 09:15:42 +08:00
Vickey dce69688ca chore: update .gitignore for pnpm lock file 2026-05-19 00:30:14 +08:00
Vickey 14faabedc7 style: apply consistent formatting across GitHub workflows, docs and common modules 2026-05-19 00:15:07 +08:00
Vickey 9e9c1dc2e8 docs(site): switch documentation framework from MkDocs Material to VitePress
The MkDocs Material site felt visually dated. Switch to VitePress to
get a fresher default theme (the same one Vue, Vite, Pinia and
Element Plus use) and align the docs toolchain with the project's
Node ecosystem.

- Replace mkdocs.yml/requirements-docs.txt with package.json
  (pnpm scripts), pinned vitepress 1.5+, and pnpm-lock.yaml.
- Add docs/.vitepress/config.mts: zh-CN, /iot-dc3/ base, cleanUrls,
  per-section sidebars, local search with Chinese UI strings, edit
  link, light/dark theme labels in Chinese.
- Rewrite docs/index.md as layout: home with hero, six feature
  cards, and platform/architecture/license blocks underneath.
- docs/assets/ -> docs/public/ rename (VitePress static-asset
  convention). This rename was already absorbed by an unrelated
  upstream commit; only the architecture page reference is updated
  to /images/architecture-cn.png.
- Convert MkDocs snippets to VitePress <!--@include:-->:
  - community/{contributing,code-of-conduct,security} pull repo-root
    governance files,
  - development/changelog and guide/usage pull the docker-ci-
    referenced dc3/doc/{CHANGE,USAGE}.md.
- Wrap R<T> in inline code in architecture/modules.md so the Vue
  parser does not treat it as an unclosed HTML tag.
- Rewrite .github/workflows/docs.yml: pnpm/action-setup@v4 +
  setup-node@v4 (pnpm cache) + pnpm install --frozen-lockfile +
  pnpm docs:build + upload-pages-artifact (docs/.vitepress/dist)
  + deploy-pages. Trigger paths include docs/, package.json,
  pnpm-lock.yaml, governance files, and the two dc3/doc/ files
  referenced via include.
- Update .gitignore: drop /site/ and the Python-only venv entries,
  add docs/.vitepress/{cache,dist}/ and a Node/pnpm section.
- Adjust dc3/doc/README.md wording to mention VitePress include
  syntax instead of MkDocs snippets.

Verification: pnpm install + pnpm docs:build pass locally (5.44s);
the include-based pages (community/contributing, development/
changelog, guide/usage) render content from their source files; all
per-section sidebars resolve.
2026-05-18 19:53:58 +08:00
Vickey 2fed75bcf5 chore(gitignore): expand ignore patterns for build, IDE, OS and secrets
The existing .gitignore relied on non-standard globs ("*target",
"*logs") and missed several categories that contributors regularly
hit: Java class/jar artifacts, JVM crash dumps, common secret
extensions, full IDE templates (IntelliJ/Eclipse/VS Code), editor
swap and backup files, OS junk on macOS/Windows/Linux, Python venvs
(now used by the mkdocs build), and Node fallbacks for any future
frontend tooling.

Reorganize into labelled sections and add the missing patterns. Use
"target/" instead of "*target" and "*.log" + "logs/" instead of
"*logs". Deliberately avoid a bare "bin/" entry so dc3/bin/ shell
scripts stay tracked.

git check-ignore confirms target/ is still ignored, dc3/bin and
.env.example are not affected, and the only currently tracked file
matching a new rule is an existing client.key under
dc3-common-mqtt/src/main/resources/certs/ which is unaffected because
git already tracks it.
2026-05-18 18:36:44 +08:00
Vickey c19720090f chore(test): remove playwright leftover and harden gitignore
Drop the stale `test-results/.last-run.json` Playwright artifact at the
backend repo root and extend `.gitignore` to cover surefire, failsafe and
jacoco report directories plus testcontainers state, in preparation for
the upcoming test infrastructure bootstrap.
2026-05-13 11:00:14 +08:00
Vickey 9d7e238eb1 refactor(config): update default AI model to deepseek-v4-flash and agentic env variables 2026-05-10 21:43:58 +08:00
pnoker 38d4820fe8 chore: ignore local AI assistant scratch files 2026-05-07 00:09:44 +08:00
Vickey a9d0645e80 chore: ignore local AI assistant settings 2026-04-30 01:38:55 +08:00
pnoker ca38651909 feat: add .env file for Docker Compose configuration and update usage instructions 2026-04-21 01:11:59 +08:00
pnoker eca5457dad feat: merge dc3-common and dc3-api subprojects into main repo 2024-07-02 23:05:25 +08:00
pnoker 85d2becd26 refactor: move driver SDK into dc3-common module to simplify dependency configuration 2024-01-03 00:27:33 +08:00
pnoker 6a1af089a6 chore: remove .DS_Store files and add gitignore entry 2023-05-23 16:33:05 +08:00
pnoker 912e570cbf chore: add dc3-api to .gitignore 2023-03-06 00:53:25 +08:00
pnoker 1bb9a43c66 chore: add ide and build output entries to .gitignore 2023-03-01 22:04:42 +08:00
pnoker de77c0b277 refactor(common): flatten dto/model packages, rename Response to R, and add Makefile 2020-01-12 12:41:24 +08:00
pnoker 01306df498 chore: update gitignore patterns 2019-07-12 09:46:10 +08:00
pnoker e803630bfb build: add shell scripts for build, init, startup and shutdown; consolidate .gitignore files 2019-05-22 12:05:12 +08:00
pnoker 0320096f55 chore: add seed data sql file and rename sql scripts to consistent naming 2019-05-05 11:35:08 +08:00
pnoker feca378c2e build: upgrade jackson-databind and add iview frontend static assets 2018-10-30 09:06:05 +08:00
pnoker 09f0e56ded chore: remove legacy webpack-based webpage module 2018-09-14 16:45:36 +08:00
pnoker 6a62a3a088 refactor: remove coap and http transport stubs, update README and gitignore 2018-09-03 14:48:26 +08:00
pnoker 53751724e8 feat(transport): add http and mqtt transport service scaffolding 2018-08-31 14:31:19 +08:00
pnoker bcda35ada2 chore: rename application main classes to Dc3-prefixed convention 2018-08-31 09:18:55 +08:00
pnoker 4e7b6ff76c build: add shell scripts for build, init, startup, and shutdown 2018-08-28 21:42:18 +08:00
pnoker 8b80def621 feat: initial project scaffold with Spring Boot modules and Vue frontend 2018-08-28 21:38:32 +08:00