Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
peace-maker committed Jan 9, 2024
1 parent e065d47 commit e75ea17
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
6 changes: 5 additions & 1 deletion web/src/components/Results.vue
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,11 @@
{{ stream.Stream.FirstPacket | formatDate }}
</td>
<td style="width: 0" class="px-0">
<v-btn :href="`/api/download/${stream.Stream.ID}.pcap`" icon @click.native.stop>
<v-btn
:href="`/api/download/${stream.Stream.ID}.pcap`"
icon
@click.native.stop
>
<v-icon>mdi-download</v-icon>
</v-btn>
</td>
Expand Down
6 changes: 1 addition & 5 deletions web/src/components/Stream.vue
Original file line number Diff line number Diff line change
Expand Up @@ -475,11 +475,7 @@ export default {
}
}
const encoded_data = btoa(data);
window.open(
`${CYBERCHEF_URL}#input=${encodeURIComponent(
encoded_data
)}`
);
window.open(`${CYBERCHEF_URL}#input=${encodeURIComponent(encoded_data)}`);
},
createMark() {
EventBus.$emit("showCreateTagDialog", {
Expand Down
14 changes: 4 additions & 10 deletions web/src/components/streamSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ function escape(text) {
}

function chunkToQueryPart(chunk, data) {
return `${"cs"[chunk.Direction]}data:"${escape(
data
)}"`;
return `${"cs"[chunk.Direction]}data:"${escape(data)}"`;
}

function onSelectionChange() {
Expand Down Expand Up @@ -127,15 +125,11 @@ function onSelectionChange() {
) {
const chunk = chunks[currentChunkIdx];
const start = currentChunkIdx === startChunkIdx ? startChunkOffset : 0;
const end = currentChunkIdx === endChunkIdx ? endChunkOffset + 1 : undefined;
const end =
currentChunkIdx === endChunkIdx ? endChunkOffset + 1 : undefined;
const data = atob(chunk.Content).substring(start, end);
queryData += data;
queryParts.push(
chunkToQueryPart(
chunk,
data
)
);
queryParts.push(chunkToQueryPart(chunk, data));
}
this.selectionData = queryData;
this.selectionQuery = queryParts.join(" then ");
Expand Down

0 comments on commit e75ea17

Please sign in to comment.