Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display modified timestamps in the list and info cards #240

Merged
merged 3 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions src/definitions/dfiqDefinitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export const DFIQ_TYPES = [
{ field: "dfiq_tags", type: "list", label: "DFIQ tags", displayList: true, editable: true },
{ field: "contributors", type: "list", label: "Contributors", displayList: false, editable: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{ field: "modified", type: "date", label: "Modified on", displayList: false, editable: false },
{
field: "created",
type: "date",
Expand All @@ -52,6 +51,15 @@ export const DFIQ_TYPES = [
editable: false,
width: "200px",
sortable: true
},
{
field: "modified",
type: "date",
label: "Modified on",
width: "200px",
displayList: true,
editable: false,
sortable: true
}
],
filterAliases: ["dfiq_tags", "dfiq_id"],
Expand Down Expand Up @@ -101,7 +109,6 @@ export const DFIQ_TYPES = [
{ field: "parent_ids", type: "list", label: "Parent IDs", displayList: true, editable: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{ field: "contributors", type: "list", label: "Contributors", displayList: false, editable: true },
{ field: "modified", type: "date", label: "Modified on", displayList: false, editable: false },
{
field: "created",
type: "date",
Expand All @@ -110,6 +117,15 @@ export const DFIQ_TYPES = [
editable: false,
width: "200px",
sortable: true
},
{
field: "modified",
type: "date",
label: "Modified on",
width: "200px",
displayList: true,
editable: false,
sortable: true
}
],
filterAliases: ["dfiq_tags", "dfiq_id", "parent_ids"],
Expand Down Expand Up @@ -159,7 +175,6 @@ export const DFIQ_TYPES = [
{ field: "parent_ids", type: "list", label: "Parent IDs", displayList: true, editable: true },
{ field: "contributors", type: "list", label: "Contributors", displayList: false, editable: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{ field: "modified", type: "date", label: "Modified on", displayList: false, editable: false },
{
field: "created",
type: "date",
Expand All @@ -168,6 +183,15 @@ export const DFIQ_TYPES = [
editable: false,
width: "200px",
sortable: true
},
{
field: "modified",
type: "date",
label: "Modified on",
width: "200px",
displayList: true,
editable: false,
sortable: true
}
],
filterAliases: ["dfiq_tags", "dfiq_id", "parent_ids"],
Expand Down
123 changes: 111 additions & 12 deletions src/definitions/entityDefinitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const ENTITY_TYPES = [
{
field: "created",
type: "date",
label: "Created on",
label: "Created",
displayList: true,
editable: false,
sortable: true,
Expand All @@ -33,7 +33,16 @@ export const ENTITY_TYPES = [
editable: false,
sortable: true
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["reference"],
icon: "mdi-fire",
Expand Down Expand Up @@ -72,7 +81,16 @@ export const ENTITY_TYPES = [
},
{ field: "family", type: "text", label: "Family", displayList: true, editable: true },
{ field: "aliases", type: "list", label: "Aliases", displayList: true, editable: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["family", "aliases"],
icon: "mdi-spider",
Expand Down Expand Up @@ -111,7 +129,16 @@ export const ENTITY_TYPES = [
},
{ field: "aliases", type: "list", label: "Aliases", displayList: true, editable: true },
{ field: "kill_chain_phases", type: "list", label: "Kill chain phases", displayList: true, editable: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["aliases"],
icon: "mdi-tools",
Expand Down Expand Up @@ -150,7 +177,16 @@ export const ENTITY_TYPES = [
},
{ field: "aliases", type: "list", label: "Aliases", displayList: true, editable: true },
{ field: "kill_chain_phases", type: "list", label: "Kill chain phases", displayList: true, editable: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["aliases"],
icon: "mdi-flash",
Expand Down Expand Up @@ -191,7 +227,16 @@ export const ENTITY_TYPES = [
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{ field: "threat_actor_types", type: "list", label: "Threat actor types", displayList: true, editable: true },
{ field: "first_seen", type: "date", label: "First seen", displayList: true, editable: true, width: "200px" },
{ field: "last_seen", type: "date", label: "Last seen", displayList: true, editable: true, width: "200px" }
{ field: "last_seen", type: "date", label: "Last seen", displayList: true, editable: true, width: "200px" },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["aliases"],
icon: "mdi-incognito",
Expand Down Expand Up @@ -229,7 +274,16 @@ export const ENTITY_TYPES = [
sortable: true
},
{ field: "aliases", type: "list", label: "Aliases", displayList: true, editable: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["aliases"],
icon: "mdi-account-tie",
Expand Down Expand Up @@ -285,7 +339,16 @@ export const ENTITY_TYPES = [
sortable: true
},
{ field: "aliases", type: "list", label: "Aliases", displayList: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["aliases"],
icon: "mdi-bullhorn",
Expand Down Expand Up @@ -323,7 +386,16 @@ export const ENTITY_TYPES = [
sortable: true
},
{ field: "aliases", type: "list", label: "Aliases", displayList: true },
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["aliases"],
icon: "mdi-information-outline",
Expand Down Expand Up @@ -360,7 +432,16 @@ export const ENTITY_TYPES = [
editable: false,
sortable: true
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: [],
icon: "mdi-office-building",
Expand Down Expand Up @@ -398,7 +479,16 @@ export const ENTITY_TYPES = [
editable: false,
sortable: true
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["title"],
icon: "mdi-shield-alert",
Expand Down Expand Up @@ -435,7 +525,16 @@ export const ENTITY_TYPES = [
editable: false,
sortable: true
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: [],
icon: "mdi-medical-bag",
Expand Down
66 changes: 60 additions & 6 deletions src/definitions/indicatorDefinitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,16 @@ export const INDICATOR_TYPES = [
editable: true,
width: "160px"
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["aliases"],
icon: "mdi-script-text-outline",
Expand Down Expand Up @@ -82,7 +91,16 @@ export const INDICATOR_TYPES = [
editable: true,
width: "160px"
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: [],
icon: "mdi-regex",
Expand Down Expand Up @@ -131,7 +149,16 @@ export const INDICATOR_TYPES = [
displayList: true,
editable: true
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: ["target_systems"],
icon: "mdi-database-search",
Expand Down Expand Up @@ -171,7 +198,16 @@ export const INDICATOR_TYPES = [
displayList: true,
editable: true
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: [],
icon: "mdi-code-braces",
Expand Down Expand Up @@ -211,7 +247,16 @@ export const INDICATOR_TYPES = [
displayList: true,
editable: true
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: [],
icon: "mdi-security-network",
Expand Down Expand Up @@ -251,7 +296,16 @@ export const INDICATOR_TYPES = [
displayList: true,
editable: true
},
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true }
{ field: "description", type: "longtext", label: "Description", displayList: false, editable: true },
{
field: "modified",
type: "date",
label: "Modified",
displayList: true,
editable: false,
sortable: true,
width: "200px"
}
],
filterAliases: [],
icon: "mdi-xml",
Expand Down
Loading
Loading