From 518bd58c5aba1a6eaa645074f3ae2d780c45f6dc Mon Sep 17 00:00:00 2001
From: HampusM <hampus@hampusmat.com>
Date: Mon, 24 May 2021 10:49:41 +0200
Subject: Restructured the whole project & added Nodemon and Concurrently

---
 src/frontend/views/Repository.vue | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 src/frontend/views/Repository.vue

(limited to 'src/frontend/views/Repository.vue')

diff --git a/src/frontend/views/Repository.vue b/src/frontend/views/Repository.vue
new file mode 100644
index 0000000..8863529
--- /dev/null
+++ b/src/frontend/views/Repository.vue
@@ -0,0 +1,29 @@
+<template>
+	<RepositoryHeader :repository="repository" />
+	<router-view :repository="repository" />
+</template>
+
+<script>
+import RepositoryHeader from "../components/RepositoryHeader";
+
+export default {
+	name: "Repository",
+	components: {
+		RepositoryHeader
+	},
+	props: {
+		repository: {
+			type: String,
+			required: true
+		}
+	},
+	created()
+	{
+		if(/^\/[a-zA-Z0-9.\-_]+[/]?$/.test(window.location.pathname)) {
+			this.$router.push({ path: `${window.location.pathname}${( window.location.pathname.endsWith("/") ) ? "log" : "/log"}`, replace: true});
+		}
+
+		console.log(this.repository);
+	}
+}
+</script>
\ No newline at end of file
-- 
cgit v1.2.3-18-g5258

