How zrqg-znb/sensitivewordsdetection works
This is a web-based sensitive-word moderation system: administrators configure categorized, levelled, enabled/disabled terms, then users submit text or web-page content for detection and receive results. The Vue application provides login, navigation and management screens; its API client communicates with FastAPI routes, which delegate domain work to controllers and persist through the ORM models. The README also documents batch, real-time, OCR and request-parameter checks. Those capabilities are represented at the available view/API paths, but their internal implementation and wiring could not be verified from the sampled source.
Main entry points: crud.py CRUD layer · index.js HTTP client · v1 API routes · sensitive_words.py Sensitive-word routes
Components 23
Vue application
- Vue application
web/src/main.js - Login
web/src/views/login/index.vue - Sensitive words
web/src/views/sen-word/index.vue - Text detection
web/src/views/text-det/index.vue - Crawler screens
web/src/views/web-crawler/index.vue - System administration
web/src/views/system - HTTP client
web/src/api/index.js - Routes and guards
web/src/router - Authentication guard
web/src/router/guard/auth-guard.js
FastAPI interface
- API routes
app/api/v1 - Sensitive-word routes
app/api/v1/sen_words/sensitive_words.py - Text-check schema
app/schemas/text_check.py - Crawler routes
app/api/v1/crawler/crawler.py - Admin routes
app/api/v1
Moderation and administration
- Sensitive-word controller
app/controllers/sensitive_word.py - Crawler controller
app/controllers/crawler.py - Admin controllers
app/controllers
Identity and persistence
- Domain models
app/models/admin.py - CRUD layer
app/core/crud.py - Application database
app/models/base.py - JWT utilities
app/utils/jwt.py - Runtime settings
app/settings/config.py
Other components
- Administrator / user
Connections 23
- Administrator / user → Vue application: uses
- Vue application → Routes and guards: mounts routes
- Routes and guards → Authentication guard: checks access
- Administrator / user → Login: signs in
- Sensitive words → HTTP client: requests management
- Text detection → HTTP client: submits text
- Crawler screens → HTTP client: requests crawl
- System administration → HTTP client: requests administration
- HTTP client → API routes: HTTP requests
- API routes → Sensitive-word routes: dispatches
- API routes → Crawler routes: dispatches
- API routes → Admin routes: dispatches
- Sensitive-word routes → Sensitive-word controller: delegates
- Crawler routes → Crawler controller: delegates
- Admin routes → Admin controllers: delegates
- Sensitive-word controller → CRUD layer: uses CRUD
- Admin controllers → CRUD layer: uses CRUD
- Crawler controller → CRUD layer: uses CRUD
- CRUD layer → Domain models: operates on
- Domain models → Application database: persists data
- Sensitive-word routes → Text-check schema: validates input
- Admin routes → JWT utilities: uses tokens
- CRUD layer → Runtime settings: uses configuration