diff options
Diffstat (limited to 'packages/client/src/components/CommitPatch.vue')
-rw-r--r-- | packages/client/src/components/CommitPatch.vue | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/packages/client/src/components/CommitPatch.vue b/packages/client/src/components/CommitPatch.vue index a51a6cb..dca886f 100644 --- a/packages/client/src/components/CommitPatch.vue +++ b/packages/client/src/components/CommitPatch.vue @@ -2,25 +2,7 @@ import { defineComponent, h, PropType, VNode } from "vue"; import hljs from "highlight.js"; import hljs_languages from "../util/hljs-languages"; - -type Hunk = { - new_start: number, - new_lines_cnt: number, - new_lines: number[], - old_start: number, - old_lines_cnt: number, - deleted_lines: number[], - hunk: string -} - -type Patch = { - additions: number, - deletions: number, - from: string, - to: string, - too_large: boolean, - hunks: Hunk[] -} +import { Patch } from "shared_types"; export default defineComponent({ name: "CommitPatch", |