Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
56 changed files
with
24,010 additions
and
697 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import axios from "axios"; | ||
|
||
import { Response } from "@/types"; | ||
|
||
const client = axios.create(); | ||
|
||
export const API = { | ||
async analyzeFile(file: File | undefined): Promise<Response> { | ||
const formData = new FormData(); | ||
if (file !== undefined) { | ||
formData.append("file", file); | ||
} | ||
|
||
const res = await client.post<Response>("/api/analyze/file", formData, { | ||
headers: { | ||
"Content-Type": "multipart/form-data", | ||
}, | ||
}); | ||
return res.data; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
<template> | ||
<div> | ||
<Headers v-bind:header="eml.header" /> | ||
<Bodies v-bind:bodies="eml.bodies" /> | ||
<Attachments v-bind:attachments="eml.attachments" /> | ||
<Headers :header="eml.header" /> | ||
<Bodies :bodies="eml.bodies" /> | ||
<Attachments :attachments="eml.attachments" /> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Prop, Vue } from "vue-property-decorator"; | ||
import { defineComponent, PropType } from "@vue/composition-api"; | ||
import Attachments from "@/components/attachments/Attachments.vue"; | ||
import Bodies from "@/components/bodies/Bodies.vue"; | ||
import Headers from "@/components/headers/Headers.vue"; | ||
import { Eml } from "@/types"; | ||
@Component({ | ||
components: { | ||
Attachments, | ||
Bodies, | ||
Headers, | ||
export default defineComponent({ | ||
name: "DnsRecords", | ||
props: { | ||
eml: { | ||
type: Object as PropType<Eml>, | ||
required: true, | ||
}, | ||
}, | ||
}) | ||
export default class EmlComponent extends Vue { | ||
@Prop() private eml!: Eml; | ||
} | ||
components: { Attachments, Bodies, Headers }, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
<template> | ||
<div> | ||
<Verdicts v-bind:verdicts="response.verdicts" /> | ||
<Eml v-bind:eml="response.eml" /> | ||
<Verdicts :verdicts="response.verdicts" /> | ||
<Eml :eml="response.eml" /> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Prop, Vue } from "vue-property-decorator"; | ||
import { defineComponent, PropType } from "@vue/composition-api"; | ||
import Eml from "@/components/Eml.vue"; | ||
import Verdicts from "@/components/verdicts/Verdicts.vue"; | ||
import { Response } from "@/types"; | ||
@Component({ | ||
components: { | ||
Eml, | ||
Verdicts, | ||
export default defineComponent({ | ||
name: "Response", | ||
props: { | ||
response: { | ||
type: Object as PropType<Response>, | ||
required: true, | ||
}, | ||
}, | ||
}) | ||
export default class ResponseComponent extends Vue { | ||
@Prop() private response!: Response; | ||
} | ||
components: { Eml, Verdicts }, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.