Skip to content

Commit

Permalink
Minor interface changes for Yara rule management
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchop committed Jan 2, 2025
1 parent 0593236 commit c2af962
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/definitions/indicatorDefinitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,13 @@ export const INDICATOR_TYPES = [
type: "text",
label: "Name",
displayList: true,
editable: true,
editable: false,
sortable: true,
maxWidth: "500px"
},
{ field: "pattern", type: "code", label: "Rule text", displayList: false, editable: true },
{ field: "private", type: "nool", label: "Private", displayList: false, editable: false },
{ field: "dependencies", type: "yara", label: "Dependencies", displayList: false, editable: false },
{ field: "tags", type: "list", label: "Tags", displayList: true, editable: false },
{ field: "relevant_tags", type: "list", label: "Relevant tags", displayList: true, editable: true },
{ field: "location", type: "text", label: "Location", displayList: false, editable: true, sortable: true },
Expand Down
3 changes: 3 additions & 0 deletions src/views/ObjectDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@
<td v-if="field.type === 'list'">
<v-chip v-for="item in object[field.field]" :text="item" class="mr-1" />
</td>
<td v-else-if="field.type === 'yara'">
<v-chip v-for="item in object[field.field]" class="mr-1" density="compact">{{ item }} </v-chip>
</td>
<td v-else-if="field.type === 'date'">
{{ moment(object[field.field]).toISOString() }}
</td>
Expand Down

0 comments on commit c2af962

Please sign in to comment.