Skip to content

Commit

Permalink
Remove lines
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskerr committed Nov 14, 2024
1 parent 45265f4 commit 9db6789
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 284 deletions.
6 changes: 1 addition & 5 deletions apps/zui/src/electron/app-state-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ export class AppStateFile {
}

get isEmpty() {
return (
!this.state ||
typeof this.state != "object" ||
!isNumber(this.state.version)
)
return !this.state
}

get name() {
Expand Down
280 changes: 1 addition & 279 deletions apps/zui/src/test/unit/states/v1.18.0-b61d012.json
Original file line number Diff line number Diff line change
@@ -1,279 +1 @@
{
"version": 202407221450,
"data": {
"order": ["FiEVtlKMI-k1LeDnSB61j"],
"windows": {
"FiEVtlKMI-k1LeDnSB61j": {
"name": "search",
"state": {
"appearance": {
"sidebarIsOpen": true,
"sidebarWidth": 250,
"secondarySidebarIsOpen": true,
"secondarySidebarWidth": 400,
"currentSectionName": "queries",
"historyView": "linear",
"poolsOpenState": {},
"queriesOpenState": {},
"isSortingTabs": false
},
"tabHistories": {
"ids": [
"_FExT0scD_-XFp-lxL6dZ",
"QlwRUuFE4nYZopzWgLOK9",
"pKFY9thwX7eQrPAMl0h1V"
],
"entities": {
"_FExT0scD_-XFp-lxL6dZ": {
"id": "_FExT0scD_-XFp-lxL6dZ",
"entries": ["/welcome"],
"index": 0
},
"QlwRUuFE4nYZopzWgLOK9": {
"id": "QlwRUuFE4nYZopzWgLOK9",
"entries": [
"/",
"/pools/0x13bacfb21a9505d2d9104c67cfcde807d66734d7"
],
"index": 1
},
"pKFY9thwX7eQrPAMl0h1V": {
"id": "pKFY9thwX7eQrPAMl0h1V",
"entries": [
"/queries/pKFY9thwX7eQrPAMl0h1V/versions/LkKmfOtyvDYL_LI2yIuPu",
"/queries/pKFY9thwX7eQrPAMl0h1V/versions/WAfjrQzK4YITca_gDjq9u",
"/queries/a0FoFCUE7UVQumRiDx1EX/versions/-q4NSj7Rtjy9jjwk2JZtU",
"/queries/a0FoFCUE7UVQumRiDx1EX/versions/Gn_aCB0Kj_0z3TQpxSX2A"
],
"index": 3
}
}
},
"window": {
"tabs": {
"localhost:9867": {
"active": "pKFY9thwX7eQrPAMl0h1V",
"preview": null,
"data": [
{
"editor": {
"value": "",
"pins": [],
"pinEditIndex": null,
"pinHoverIndex": null,
"markers": []
},
"id": "_FExT0scD_-XFp-lxL6dZ",
"lastFocused": "2024-11-07T20:06:02.964Z",
"layout": {
"columnHeadersView": "AUTO",
"resultsView": "TABLE",
"currentPaneName": "history",
"isEditingTitle": false,
"titleFormAction": "create",
"showHistogram": true,
"editorHeight": 100,
"chartHeight": 100
}
},
{
"editor": {
"value": "",
"pins": [],
"pinEditIndex": null,
"pinHoverIndex": null,
"markers": []
},
"id": "QlwRUuFE4nYZopzWgLOK9",
"lastFocused": "2024-11-07T20:06:10.228Z",
"layout": {
"columnHeadersView": "AUTO",
"resultsView": "TABLE",
"currentPaneName": "history",
"isEditingTitle": false,
"titleFormAction": "create",
"showHistogram": true,
"editorHeight": 100,
"chartHeight": 100
}
},
{
"editor": {
"value": "^%&#^*4687378683",
"pins": [{"type": "from", "value": "sample.zng"}],
"pinEditIndex": null,
"pinHoverIndex": null,
"markers": [
{
"message": "error parsing Zed",
"startLineNumber": 0,
"startColumn": null,
"endLineNumber": 0,
"endColumn": null
}
]
},
"id": "pKFY9thwX7eQrPAMl0h1V",
"lastFocused": "2024-11-07T20:06:12.047Z",
"layout": {
"columnHeadersView": "AUTO",
"resultsView": "TABLE",
"currentPaneName": "history",
"isEditingTitle": false,
"titleFormAction": "create",
"showHistogram": true,
"editorHeight": 100,
"chartHeight": 100
}
}
]
}
},
"lakeId": "localhost:9867"
}
},
"size": [1470, 900],
"position": [225, 94]
}
},
"globalState": {
"configPropValues": {
"application": {"updateMode": "startup"},
"pools": {"nameDelimiter": "/"},
"display": {
"timeZone": "UTC",
"timeFormat": "",
"thousandsSeparator": ",",
"decimal": "."
},
"editor": {"runQueryOnEnter": "enter"},
"defaultLake": {"address": "localhost"},
"brimcap": {
"yamlConfigPath": "",
"suricataLocalRulesPath": "",
"pcapExtractionFolderPath": ""
}
},
"lakes": {
"localhost:9867": {
"host": "http://localhost",
"port": 9867,
"id": "localhost:9867",
"name": "phil's Zed Lake",
"authType": "none",
"version": "v1.18.0-8-g402bd931",
"features": {"describe": true}
}
},
"launches": {},
"queries": {
"id": "root",
"name": "root",
"isOpen": true,
"items": [{"id": "a0FoFCUE7UVQumRiDx1EX", "name": "Google"}]
},
"queryVersions": {
"pKFY9thwX7eQrPAMl0h1V": {
"ids": [
"LkKmfOtyvDYL_LI2yIuPu",
"WAfjrQzK4YITca_gDjq9u",
"-q4NSj7Rtjy9jjwk2JZtU",
"Gn_aCB0Kj_0z3TQpxSX2A"
],
"entities": {
"LkKmfOtyvDYL_LI2yIuPu": {
"version": "LkKmfOtyvDYL_LI2yIuPu",
"ts": "2024-11-07T20:06:12.048Z",
"value": "",
"pins": [{"type": "from", "value": "sample.zng"}]
},
"WAfjrQzK4YITca_gDjq9u": {
"version": "WAfjrQzK4YITca_gDjq9u",
"ts": "2024-11-07T20:06:14.408Z",
"value": "google",
"pins": [{"type": "from", "value": "sample.zng"}]
},
"-q4NSj7Rtjy9jjwk2JZtU": {
"version": "-q4NSj7Rtjy9jjwk2JZtU",
"ts": "2024-11-07T20:06:16.510Z",
"value": "google",
"pins": [{"type": "from", "value": "sample.zng"}]
},
"Gn_aCB0Kj_0z3TQpxSX2A": {
"version": "Gn_aCB0Kj_0z3TQpxSX2A",
"ts": "2024-11-07T20:06:23.312Z",
"value": "^%&#^*4687378683",
"pins": [{"type": "from", "value": "sample.zng"}]
}
}
},
"a0FoFCUE7UVQumRiDx1EX": {
"ids": ["-q4NSj7Rtjy9jjwk2JZtU"],
"entities": {
"-q4NSj7Rtjy9jjwk2JZtU": {
"ts": "2024-11-07T20:06:16.510Z",
"version": "-q4NSj7Rtjy9jjwk2JZtU",
"value": "google",
"pins": [{"type": "from", "value": "sample.zng"}]
}
}
}
},
"sessionQueries": {
"_FExT0scD_-XFp-lxL6dZ": {
"id": "_FExT0scD_-XFp-lxL6dZ",
"name": "Query Session"
},
"cQcR4Hl4yvA3L63GR2HKA": {
"id": "cQcR4Hl4yvA3L63GR2HKA",
"name": "Query Session"
},
"QlwRUuFE4nYZopzWgLOK9": {
"id": "QlwRUuFE4nYZopzWgLOK9",
"name": "Query Session"
},
"pKFY9thwX7eQrPAMl0h1V": {
"id": "pKFY9thwX7eQrPAMl0h1V",
"name": "Query Session"
}
},
"poolSettings": {
"ids": ["0x13bacfb21a9505d2d9104c67cfcde807d66734d7"],
"entities": {
"0x13bacfb21a9505d2d9104c67cfcde807d66734d7": {
"id": "0x13bacfb21a9505d2d9104c67cfcde807d66734d7",
"timeField": "ts",
"colorField": "typeof(this)",
"colorMap": null
}
}
},
"querySessions": {
"ids": ["pKFY9thwX7eQrPAMl0h1V"],
"entities": {
"pKFY9thwX7eQrPAMl0h1V": {
"id": "pKFY9thwX7eQrPAMl0h1V",
"createdAt": "2024-11-07T20:06:12.046Z",
"updatedAt": "2024-11-07T20:06:12.046Z"
}
}
},
"sessionHistories": {
"pKFY9thwX7eQrPAMl0h1V": [
{
"queryId": "pKFY9thwX7eQrPAMl0h1V",
"version": "LkKmfOtyvDYL_LI2yIuPu"
},
{
"queryId": "pKFY9thwX7eQrPAMl0h1V",
"version": "WAfjrQzK4YITca_gDjq9u"
},
{
"queryId": "a0FoFCUE7UVQumRiDx1EX",
"version": "-q4NSj7Rtjy9jjwk2JZtU"
}
]
}
}
}
}
{ "version": 202407221450, "data": { "order": ["FiEVtlKMI-k1LeDnSB61j"], "windows": { "FiEVtlKMI-k1LeDnSB61j": { "name": "search", "state": { "appearance": { "sidebarIsOpen": true, "sidebarWidth": 250, "secondarySidebarIsOpen": true, "secondarySidebarWidth": 400, "currentSectionName": "queries", "historyView": "linear", "poolsOpenState": {}, "queriesOpenState": {}, "isSortingTabs": false }, "tabHistories": { "ids": [ "_FExT0scD_-XFp-lxL6dZ", "QlwRUuFE4nYZopzWgLOK9", "pKFY9thwX7eQrPAMl0h1V" ], "entities": { "_FExT0scD_-XFp-lxL6dZ": { "id": "_FExT0scD_-XFp-lxL6dZ", "entries": ["/welcome"], "index": 0 }, "QlwRUuFE4nYZopzWgLOK9": { "id": "QlwRUuFE4nYZopzWgLOK9", "entries": [ "/", "/pools/0x13bacfb21a9505d2d9104c67cfcde807d66734d7" ], "index": 1 }, "pKFY9thwX7eQrPAMl0h1V": { "id": "pKFY9thwX7eQrPAMl0h1V", "entries": [ "/queries/pKFY9thwX7eQrPAMl0h1V/versions/LkKmfOtyvDYL_LI2yIuPu", "/queries/pKFY9thwX7eQrPAMl0h1V/versions/WAfjrQzK4YITca_gDjq9u", "/queries/a0FoFCUE7UVQumRiDx1EX/versions/-q4NSj7Rtjy9jjwk2JZtU", "/queries/a0FoFCUE7UVQumRiDx1EX/versions/Gn_aCB0Kj_0z3TQpxSX2A" ], "index": 3 } } }, "window": { "tabs": { "localhost:9867": { "active": "pKFY9thwX7eQrPAMl0h1V", "preview": null, "data": [ { "editor": { "value": "", "pins": [], "pinEditIndex": null, "pinHoverIndex": null, "markers": [] }, "id": "_FExT0scD_-XFp-lxL6dZ", "lastFocused": "2024-11-07T20:06:02.964Z", "layout": { "columnHeadersView": "AUTO", "resultsView": "TABLE", "currentPaneName": "history", "isEditingTitle": false, "titleFormAction": "create", "showHistogram": true, "editorHeight": 100, "chartHeight": 100 } }, { "editor": { "value": "", "pins": [], "pinEditIndex": null, "pinHoverIndex": null, "markers": [] }, "id": "QlwRUuFE4nYZopzWgLOK9", "lastFocused": "2024-11-07T20:06:10.228Z", "layout": { "columnHeadersView": "AUTO", "resultsView": "TABLE", "currentPaneName": "history", "isEditingTitle": false, "titleFormAction": "create", "showHistogram": true, "editorHeight": 100, "chartHeight": 100 } }, { "editor": { "value": "^%&#^*4687378683", "pins": [{"type": "from", "value": "sample.zng"}], "pinEditIndex": null, "pinHoverIndex": null, "markers": [ { "message": "error parsing Zed", "startLineNumber": 0, "startColumn": null, "endLineNumber": 0, "endColumn": null } ] }, "id": "pKFY9thwX7eQrPAMl0h1V", "lastFocused": "2024-11-07T20:06:12.047Z", "layout": { "columnHeadersView": "AUTO", "resultsView": "TABLE", "currentPaneName": "history", "isEditingTitle": false, "titleFormAction": "create", "showHistogram": true, "editorHeight": 100, "chartHeight": 100 } } ] } }, "lakeId": "localhost:9867" } }, "size": [1470, 900], "position": [225, 94] } }, "globalState": { "configPropValues": { "application": {"updateMode": "startup"}, "pools": {"nameDelimiter": "/"}, "display": { "timeZone": "UTC", "timeFormat": "", "thousandsSeparator": ",", "decimal": "." }, "editor": {"runQueryOnEnter": "enter"}, "defaultLake": {"address": "localhost"}, "brimcap": { "yamlConfigPath": "", "suricataLocalRulesPath": "", "pcapExtractionFolderPath": "" } }, "lakes": { "localhost:9867": { "host": "http://localhost", "port": 9867, "id": "localhost:9867", "name": "phil's Zed Lake", "authType": "none", "version": "v1.18.0-8-g402bd931", "features": {"describe": true} } }, "launches": {}, "queries": { "id": "root", "name": "root", "isOpen": true, "items": [{"id": "a0FoFCUE7UVQumRiDx1EX", "name": "Google"}] }, "queryVersions": { "pKFY9thwX7eQrPAMl0h1V": { "ids": [ "LkKmfOtyvDYL_LI2yIuPu", "WAfjrQzK4YITca_gDjq9u", "-q4NSj7Rtjy9jjwk2JZtU", "Gn_aCB0Kj_0z3TQpxSX2A" ], "entities": { "LkKmfOtyvDYL_LI2yIuPu": { "version": "LkKmfOtyvDYL_LI2yIuPu", "ts": "2024-11-07T20:06:12.048Z", "value": "", "pins": [{"type": "from", "value": "sample.zng"}] }, "WAfjrQzK4YITca_gDjq9u": { "version": "WAfjrQzK4YITca_gDjq9u", "ts": "2024-11-07T20:06:14.408Z", "value": "google", "pins": [{"type": "from", "value": "sample.zng"}] }, "-q4NSj7Rtjy9jjwk2JZtU": { "version": "-q4NSj7Rtjy9jjwk2JZtU", "ts": "2024-11-07T20:06:16.510Z", "value": "google", "pins": [{"type": "from", "value": "sample.zng"}] }, "Gn_aCB0Kj_0z3TQpxSX2A": { "version": "Gn_aCB0Kj_0z3TQpxSX2A", "ts": "2024-11-07T20:06:23.312Z", "value": "^%&#^*4687378683", "pins": [{"type": "from", "value": "sample.zng"}] } } }, "a0FoFCUE7UVQumRiDx1EX": { "ids": ["-q4NSj7Rtjy9jjwk2JZtU"], "entities": { "-q4NSj7Rtjy9jjwk2JZtU": { "ts": "2024-11-07T20:06:16.510Z", "version": "-q4NSj7Rtjy9jjwk2JZtU", "value": "google", "pins": [{"type": "from", "value": "sample.zng"}] } } } }, "sessionQueries": { "_FExT0scD_-XFp-lxL6dZ": { "id": "_FExT0scD_-XFp-lxL6dZ", "name": "Query Session" }, "cQcR4Hl4yvA3L63GR2HKA": { "id": "cQcR4Hl4yvA3L63GR2HKA", "name": "Query Session" }, "QlwRUuFE4nYZopzWgLOK9": { "id": "QlwRUuFE4nYZopzWgLOK9", "name": "Query Session" }, "pKFY9thwX7eQrPAMl0h1V": { "id": "pKFY9thwX7eQrPAMl0h1V", "name": "Query Session" } }, "poolSettings": { "ids": ["0x13bacfb21a9505d2d9104c67cfcde807d66734d7"], "entities": { "0x13bacfb21a9505d2d9104c67cfcde807d66734d7": { "id": "0x13bacfb21a9505d2d9104c67cfcde807d66734d7", "timeField": "ts", "colorField": "typeof(this)", "colorMap": null } } }, "querySessions": { "ids": ["pKFY9thwX7eQrPAMl0h1V"], "entities": { "pKFY9thwX7eQrPAMl0h1V": { "id": "pKFY9thwX7eQrPAMl0h1V", "createdAt": "2024-11-07T20:06:12.046Z", "updatedAt": "2024-11-07T20:06:12.046Z" } } }, "sessionHistories": { "pKFY9thwX7eQrPAMl0h1V": [ { "queryId": "pKFY9thwX7eQrPAMl0h1V", "version": "LkKmfOtyvDYL_LI2yIuPu" }, { "queryId": "pKFY9thwX7eQrPAMl0h1V", "version": "WAfjrQzK4YITca_gDjq9u" }, { "queryId": "a0FoFCUE7UVQumRiDx1EX", "version": "-q4NSj7Rtjy9jjwk2JZtU" } ] } } } }

0 comments on commit 9db6789

Please sign in to comment.