feat: separate data classification architecture

- Create separate scanner interfaces for storage, system, and docker data
- Add dedicated endpoints for metrics and docker images instead of misclassifying as updates
- Implement proper database tables for storage metrics and docker images
- Fix storage/system metrics appearing incorrectly as package updates
- Add scanner types with proper data structures for each subsystem
- Update agent handlers to use correct endpoints for each data type
This commit is contained in:
Fimeg
2025-11-03 21:44:48 -05:00
parent 57be3754c6
commit eccc38d7c9
16 changed files with 2183 additions and 100 deletions

View File

@@ -96,7 +96,11 @@ const TokenManagement: React.FC = () => {
};
const getServerUrl = () => {
return `${window.location.protocol}//${window.location.host}`;
// Use API server port (8080) instead of web UI port (3000)
const protocol = window.location.protocol;
const hostname = window.location.hostname;
const port = hostname === 'localhost' || hostname === '127.0.0.1' ? ':8080' : '';
return `${protocol}//${hostname}${port}`;
};
const copyToClipboard = async (text: string) => {

View File

@@ -48,7 +48,11 @@ const AgentManagement: React.FC = () => {
];
const getServerUrl = () => {
return `${window.location.protocol}//${window.location.host}`;
// Use API server port (8080) instead of web UI port (3000)
const protocol = window.location.protocol;
const hostname = window.location.hostname;
const port = hostname === 'localhost' || hostname === '127.0.0.1' ? ':8080' : '';
return `${protocol}//${hostname}${port}`;
};
const getActiveToken = () => {