From 4da3272bf7893760f6710c9a1ec7de02358136e6 Mon Sep 17 00:00:00 2001
From: HampusM <hampus@hampusmat.com>
Date: Sat, 5 Jun 2021 19:37:52 +0200
Subject: Reorganized into a monorepo, refactored the frontend again, goodbye
 Parcel

---
 src/frontend/components/RepositoryHeader.vue | 51 ----------------------------
 1 file changed, 51 deletions(-)
 delete mode 100644 src/frontend/components/RepositoryHeader.vue

(limited to 'src/frontend/components/RepositoryHeader.vue')

diff --git a/src/frontend/components/RepositoryHeader.vue b/src/frontend/components/RepositoryHeader.vue
deleted file mode 100644
index 39ec00d..0000000
--- a/src/frontend/components/RepositoryHeader.vue
+++ /dev/null
@@ -1,51 +0,0 @@
-<template>
-	<div class="row mx-0">
-		<div id="header" class="col d-flex mt-3 ms-2">
-			<BaseBackButton to="/" />
-			<div class="d-inline ms-3">
-				<span id="title" class="fs-1">{{ title }}</span>
-				<p id="about" class="fs-4">
-					{{ about }}
-				</p>
-			</div>
-		</div>
-	</div>
-</template>
-
-<script>
-import BaseBackButton from "./BaseBackButton";
-
-import { watch, reactive, toRefs } from "vue";
-
-export default {
-	name: "RepositoryHeader",
-	components: {
-		BaseBackButton
-	},
-	props: {
-		repository: {
-			type: String,
-			required: true
-		}
-	},
-	setup(props)
-	{
-		const state = reactive({ title: "", about: "" });
-
-		watch(() =>
-		{
-			fetch(`${window.location.protocol}//${window.location.host}/api/v1/repos/${props.repository}`)
-				.then((res) => res.json())
-				.then((data) =>
-				{
-					state.title = data["data"]["name"];
-					state.about = data["data"]["description"];
-				});
-		});
-
-		return {
-			... toRefs(state)
-		};
-	}
-};
-</script>
\ No newline at end of file
-- 
cgit v1.2.3-18-g5258

