From 0734d4b344f8ff98a00890fa1f3c3995837dea11 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 3 Jun 2021 12:05:43 +0200 Subject: Created a breadcrumb component & the tree page has a breadcrumb and a better font size --- src/frontend/components/BaseBreadcrumb.vue | 33 ++++++++++++++++++++++++++++++ src/frontend/views/RepositoryCommit.vue | 17 ++++----------- src/frontend/views/RepositoryTree.vue | 14 +++++++++++-- 3 files changed, 49 insertions(+), 15 deletions(-) create mode 100644 src/frontend/components/BaseBreadcrumb.vue diff --git a/src/frontend/components/BaseBreadcrumb.vue b/src/frontend/components/BaseBreadcrumb.vue new file mode 100644 index 0000000..df82968 --- /dev/null +++ b/src/frontend/components/BaseBreadcrumb.vue @@ -0,0 +1,33 @@ + + + + \ No newline at end of file diff --git a/src/frontend/views/RepositoryCommit.vue b/src/frontend/views/RepositoryCommit.vue index f596601..d3ba174 100644 --- a/src/frontend/views/RepositoryCommit.vue +++ b/src/frontend/views/RepositoryCommit.vue @@ -2,18 +2,7 @@
- + import RepositoryNavbar from "../components/RepositoryNavbar"; import CommitPatch from "../components/CommitPatch"; +import BaseBreadcrumb from "../components/BaseBreadcrumb"; import Loading from "vue-loading-overlay"; import 'vue-loading-overlay/dist/vue-loading.css'; import { watch, reactive, toRefs } from "vue"; @@ -62,7 +52,8 @@ export default { components: { RepositoryNavbar, CommitPatch, - Loading + Loading, + BaseBreadcrumb }, props: { repository: { diff --git a/src/frontend/views/RepositoryTree.vue b/src/frontend/views/RepositoryTree.vue index 80a5c3b..dc2c067 100644 --- a/src/frontend/views/RepositoryTree.vue +++ b/src/frontend/views/RepositoryTree.vue @@ -5,7 +5,15 @@ v-model:active="is_loading" :height="24" :width="24" color="#ffffff" :opacity="0" /> -
+
+ @@ -20,6 +28,7 @@ import RepositoryNavbar from "../components/RepositoryNavbar"; import RepositoryTreeTree from "../components/RepositoryTreeTree"; import RepositoryTreeBlob from "../components/RepositoryTreeBlob"; +import BaseBreadcrumb from "../components/BaseBreadcrumb"; import Loading from "vue-loading-overlay"; import 'vue-loading-overlay/dist/vue-loading.css'; import { ref } from "vue"; @@ -30,7 +39,8 @@ export default { RepositoryNavbar, Loading, RepositoryTreeTree, - RepositoryTreeBlob + RepositoryTreeBlob, + BaseBreadcrumb }, props: { repository: { -- cgit v1.2.3-18-g5258