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:
@@ -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) => {
|
||||
|
||||
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user