diff options
author | HampusM <hampus@hampusmat.com> | 2021-07-06 14:55:58 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-07-06 14:55:58 +0200 |
commit | c2dc7906e47a05cecc6350fd6a3d6f6f955a3423 (patch) | |
tree | 0f3895eb00783943a13d27235dfd88bcda5a844c /packages/client/src/views/RepositoryTree.vue | |
parent | 49e6ae50447130ba6e2efd2b561f1b1dcc033099 (diff) |
Frontend uses shared types
Diffstat (limited to 'packages/client/src/views/RepositoryTree.vue')
-rw-r--r-- | packages/client/src/views/RepositoryTree.vue | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/packages/client/src/views/RepositoryTree.vue b/packages/client/src/views/RepositoryTree.vue index ae4fd6b..8ffb480 100644 --- a/packages/client/src/views/RepositoryTree.vue +++ b/packages/client/src/views/RepositoryTree.vue @@ -28,6 +28,7 @@ import { defineComponent, Ref, ref } from "vue"; import fetchData from "../util/fetch"; import { getParam } from "../util/util"; +import { Tree, TreeEntry } from "shared_types"; import BaseBreadcrumb from "../components/BaseBreadcrumb.vue"; import RepositoryTreeBlob from "../components/RepositoryTreeBlob.vue"; @@ -35,21 +36,6 @@ import RepositoryTreeTree from "../components/RepositoryTreeTree.vue"; import BaseErrorMessage from "../components/BaseErrorMessage.vue"; import Loading from "vue-loading-overlay"; -type TreeEntry = { - name: string, - type: "tree" | "blob", - latest_commit: { - id: string, - message: string, - date: number - } -}; - -type Tree = { - type: "tree" | "blob", - content: string | TreeEntry[] -}; - export default defineComponent({ name: "RepositoryTree", components: { |