mirror of
https://github.com/fleetdm/fleet
synced 2026-05-06 14:58:33 +00:00
Add tooltip to surface bundle_identifier in software inventory table Add new column to software inventory table to surface "last used" information Add link from software inventory table to manage hosts page filtered by software id Replace software vulnerabilities table with info banner directing users to manage hosts page filtered by software id where software-specific vulnerabilities will be displayed Refactor SoftwareVulnerabilities.jsx using TypeScript Add utility function for sorting string representations of dates and refactor semantics of existing sort functions
24 lines
736 B
TypeScript
24 lines
736 B
TypeScript
import PropTypes from "prop-types";
|
|
import vulnerabilityInterface, { IVulnerability } from "./vulnerability";
|
|
|
|
export default PropTypes.shape({
|
|
type: PropTypes.string,
|
|
name: PropTypes.string,
|
|
version: PropTypes.string,
|
|
source: PropTypes.string,
|
|
id: PropTypes.number,
|
|
vulnerabilities: PropTypes.arrayOf(vulnerabilityInterface),
|
|
});
|
|
|
|
export interface ISoftware {
|
|
hosts_count?: number;
|
|
id: number;
|
|
name: string; // e.g., "Figma.app"
|
|
version: string; // e.g., "2.1.11"
|
|
source: string; // e.g., "apps"
|
|
generated_cpe: string;
|
|
vulnerabilities: IVulnerability[];
|
|
last_opened_at?: string | null; // e.g., "2021-08-18T15:11:35Z”
|
|
bundle_identifier?: string | null; // e.g., "com.figma.Desktop"
|
|
// type: string;
|
|
}
|