Skip to content

Commit

Permalink
Hide null values from explore overview (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
niJsM authored Aug 5, 2024
1 parent f86373e commit 3507cdd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion timesketch/frontend-ng/dist/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta name=csrf-token content="{{ csrf_token() }}"><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/dist/favicon.ico><link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel=stylesheet><title>Timesketch</title><link href=/dist/css/chunk-vendors.c3145da3.css rel=preload as=style><link href=/dist/css/index.27573bd2.css rel=preload as=style><link href=/dist/js/chunk-vendors.ca3984be.js rel=preload as=script><link href=/dist/js/index.b2988982.js rel=preload as=script><link href=/dist/css/chunk-vendors.c3145da3.css rel=stylesheet><link href=/dist/css/index.27573bd2.css rel=stylesheet></head><body><div id=app></div><script src=/dist/js/chunk-vendors.ca3984be.js></script><script src=/dist/js/index.b2988982.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta name=csrf-token content="{{ csrf_token() }}"><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/dist/favicon.ico><link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel=stylesheet><title>Timesketch</title><link href=/dist/css/chunk-vendors.c3145da3.css rel=preload as=style><link href=/dist/css/index.27573bd2.css rel=preload as=style><link href=/dist/js/chunk-vendors.ca3984be.js rel=preload as=script><link href=/dist/js/index.183c7147.js rel=preload as=script><link href=/dist/css/chunk-vendors.c3145da3.css rel=stylesheet><link href=/dist/css/index.27573bd2.css rel=stylesheet></head><body><div id=app></div><script src=/dist/js/chunk-vendors.ca3984be.js></script><script src=/dist/js/index.183c7147.js></script></body></html>
2 changes: 2 additions & 0 deletions timesketch/frontend-ng/dist/js/index.183c7147.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions timesketch/frontend-ng/dist/js/index.183c7147.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions timesketch/frontend-ng/dist/js/index.b2988982.js

This file was deleted.

1 change: 0 additions & 1 deletion timesketch/frontend-ng/dist/js/index.b2988982.js.map

This file was deleted.

9 changes: 2 additions & 7 deletions timesketch/frontend-ng/src/components/Explore/EventList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -665,14 +665,9 @@ export default {
}
},
isIncluded(key, value) {
const hiddenKeys = ["datetime", "timestamp_desc", "tag", "label", "comment", "tag", "label", "data_type", "domain", "hostname"]
const hiddenKeys = ["datetime", "timestamp_desc", "tag", "label", "comment", "data_type", "domain", "hostname"]
const regEx = /^[0-9]+-[0-9]+-[0-9]+[T][0-9]+[:][0-9]+[:][0-9]+/gm
if (key.startsWith("__") || hiddenKeys.includes(key)) {
console.log(regEx.exec(value))
return false
}
// Filter keys that contain ISO-8610 format
else if (regEx.exec(value)) {
if (value == null || key.startsWith("__") || hiddenKeys.includes(key) || regEx.exec(value)) {
return false
}
else {
Expand Down

0 comments on commit 3507cdd

Please sign in to comment.