How awadwd/arknightsauthorizationseriesdata_editor works
This repository is a web-based collaborative editor and data portal, with GitHub/GitCode authentication, repository editing and PR creation, feedback review, and cloud-data synchronization. The principal documented workflow is authenticate, load or edit JSON, validate it, then save changes as a PR targeting dev; sampled frontend and API excerpts support the save path. The tree and README also describe admin synchronization and data endpoints, though some implementation details were not sampled. The README describes a local Node server workflow that is not fully represented by the current tree.
Main entry points: App.vue Editor interface · auth.js Token verification · kcGen.js Cloud-data generator · appConfig.js Application configuration
Components 29
Web client
- Editor interface
src/App.vue - Feedback review
src/components/AdminReview.vue - Admin configuration UI
src/components/AdminConfig.vue - Localization
src/i18n/index.ts
Repository editing
- Repository clone/update
functions/api/repo/clone.js - Repository file access
functions/api/repo/file.js - Save and create PR
functions/api/repo/save-and-pr.js
Identity and config
- Authentication API
functions/api/auth/validate.js - OAuth callback
functions/api/auth/callback.js - Token verification
functions/api/_lib/auth.js - Owner policy
functions/api/_lib/owner.js - Session helpers
functions/api/_lib/session.js - Application configuration
functions/api/_lib/appConfig.js
Data services
- Feedback submissions
functions/api/feedback.js - Feedback moderation
functions/api/feedback-update.js - Box data service
functions/api/_lib/boxData.js - Box manifest endpoint
functions/api/box-data/manifest.js - Box records endpoint
functions/api/box-data/records.js - Cloud data endpoint
functions/api/kc-data.js - Table route
functions/api/kc/[table].js
Admin operations
- Data synchronization API
functions/api/admin/sync.js - Table administration API
functions/api/admin/tables.js - Sync status API
functions/api/admin/sync-status.js - Cloud-data generator
functions/api/_lib/kcGen.js - KnowCloud sync job
scripts/sync-knowcloud.mjs - Carousel sync job
scripts/sync-weibo-carousel.mjs
Other components
- Editor user
- GitHub API
- KnowCloud
Connections 35
- Editor user → Editor interface: edits and submits
README.md - Editor interface → Authentication API: validates credentials
src/App.vue - Editor interface → Repository clone/update: clones repository
README.md - Editor interface → Repository file access: loads file
README.md - Editor interface → Save and create PR: saves and requests PR
src/App.vue - Editor interface → Localization: uses translations
src/App.vue - Editor interface → Feedback review: renders review view
src/App.vue - Editor interface → Admin configuration UI: renders config view
src/App.vue - Editor interface → GitHub API: starts OAuth
src/App.vue - Authentication API → Token verification: verifies token
functions/api/_lib/auth.js - Token verification → Owner policy: checks owner
functions/api/_lib/auth.js - OAuth callback → Session helpers: uses session helpers
functions/api/auth/callback.js - OAuth callback → Application configuration: loads OAuth config
functions/api/auth/callback.js - Repository clone/update → Application configuration: loads repository config
functions/api/repo/clone.js - Repository clone/update → Token verification: verifies request
functions/api/repo/clone.js - Repository file access → Application configuration: loads repository config
functions/api/repo/file.js - Repository file access → Token verification: verifies request
functions/api/repo/file.js - Save and create PR → Application configuration: loads repository config
functions/api/repo/save-and-pr.js - Save and create PR → Token verification: verifies request
functions/api/repo/save-and-pr.js - Save and create PR → GitHub API: creates pull request
README.md - Feedback review → Feedback submissions: loads feedback
src/components/AdminReview.vue - Feedback review → Feedback moderation: updates review status
src/components/AdminReview.vue - Box manifest endpoint → Box data service: reads box data
functions/api/box-data/manifest.js - Box records endpoint → Box data service: reads box data
functions/api/box-data/records.js - Table route → Cloud data endpoint: delegates table route
functions/api/kc/[table].js - Cloud data endpoint → KnowCloud: fetches fallback data
functions/api/kc-data.js - Data synchronization API → Application configuration: reads sync config
functions/api/admin/sync.js - Data synchronization API → Token verification: verifies request
functions/api/admin/sync.js - Data synchronization API → Cloud-data generator: uses generator
functions/api/admin/sync.js - Table administration API → Token verification: verifies request
functions/api/admin/tables.js - Table administration API → Cloud-data generator: uses generator
functions/api/admin/tables.js - KnowCloud sync job → Cloud-data generator: uses generator
scripts/sync-knowcloud.mjs - Carousel sync job → Cloud-data generator: uses generator
scripts/sync-weibo-carousel.mjs - Cloud-data generator → KnowCloud: fetches cloud tables
functions/api/_lib/kcGen.js - Cloud-data generator → GitHub API: pushes generated data
functions/api/_lib/kcGen.js