Skip to content

A self-hosted media server and file management system

incomplete files

aminnausin22ec6dd53de8
diff --git a/resources/js/components/inputs/NavBarButton.vue b/resources/js/components/inputs/NavBarButton.vue
new file mode 100644
index 00000000..40f31bbd
--- /dev/null
+++ b/resources/js/components/inputs/NavBarButton.vue
@@ -0,0 +1,10 @@
+<script setup>
+ const {action, label, colour} = defineProps({action, label, colour});
+</script>
+<template>
+ <button :id="'btn-nav-' + label" @click="action" :class="`hidden justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg bg-${colour}-300 hover:bg-${colour}-200`" :aria-label="label">
+ <svg xmlns="https://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" height="24" width="24" class="fill-slate-900">
+ <path fill-rule="evenodd" d="M3 6.75A.75.75 0 0 1 3.75 6h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.75ZM3 12a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 12Zm0 5.25a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75Z" clip-rule="evenodd" />
+ </svg>
+ </button>
+</template>
\ No newline at end of file
diff --git a/resources/js/components/inputs/NavBarLink.vue b/resources/js/components/inputs/NavBarLink.vue
new file mode 100644
index 00000000..512d56aa
--- /dev/null
+++ b/resources/js/components/inputs/NavBarLink.vue
@@ -0,0 +1,11 @@
+<script setup>
+ import { RouterLink } from 'vue-router';
+ const {action, label, colour, icon} = defineProps({action, label, colour, icon});
+</script>
+<template>
+ <router-link :id="'btn-nav-' + label" @click="action" :class="`hidden justify-center items-center shrink-0 h-8 w-8 rounded-lg shadow-lg bg-${colour}-300 hover:bg-${colour}-200`" :aria-label="label">
+ <svg xmlns="https://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" height="24" width="24" class="fill-slate-900">
+ <path fill-rule="evenodd" d="M3 6.75A.75.75 0 0 1 3.75 6h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.75ZM3 12a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 12Zm0 5.25a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75Z" clip-rule="evenodd" />
+ </svg>
+ </router-link>
+</template>
\ No newline at end of file
diff --git a/resources/js/service/serviceRecords.js b/resources/js/service/serviceRecords.js
index c9699421..fc9e9c22 100644
--- a/resources/js/service/serviceRecords.js
+++ b/resources/js/service/serviceRecords.js
@@ -1,5 +1,4 @@
import { ref } from 'vue';
-import axios from "axios";
/*