aboutsummaryrefslogtreecommitdiff
path: root/packages/client/src/views/RepositoryTree.vue
diff options
context:
space:
mode:
Diffstat (limited to 'packages/client/src/views/RepositoryTree.vue')
-rw-r--r--packages/client/src/views/RepositoryTree.vue16
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: {