From c2dc7906e47a05cecc6350fd6a3d6f6f955a3423 Mon Sep 17 00:00:00 2001
From: HampusM <hampus@hampusmat.com>
Date: Tue, 6 Jul 2021 14:55:58 +0200
Subject: Frontend uses shared types

---
 packages/client/src/views/RepositoryTree.vue | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

(limited to 'packages/client/src/views/RepositoryTree.vue')

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: {
-- 
cgit v1.2.3-18-g5258

