Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

Remove hash router

Katos9ee6b7b72fe5
diff --git a/docs/en/api.md b/docs/en/api.md
index 398e1b85..5e99656e 100644
--- a/docs/en/api.md
+++ b/docs/en/api.md
@@ -5,17 +5,6 @@ sidebar: false
<script setup lang="ts">
import { useData } from 'vitepress';
-import { onBeforeRouteUpdate } from 'vue-router';
-import { ref } from 'vue';
-
-// Create a key ref to force re-render of the elements-api component
-const componentKey = ref(0);
-
-onBeforeRouteUpdate((to, from, next) => {
- // Increment the key to trigger re-initialization on route change
- componentKey.value++;
- next();
-});
const elementScript = document.createElement('script');
elementScript.src = 'https://unpkg.com/@stoplight/elements/web-components.min.js';
@@ -35,16 +24,13 @@ if (isDark.value) {
<style>
.TryItPanel {
- display: none;
+ display: none;
}
</style>
-<client-only>
- <elements-api
- :key="componentKey"
- apiDescriptionUrl="https://cdn.jsdelivr.net/gh/sysadminsmedia/homebox@main/docs/docs/api/openapi-2.0.json"
- layout="responsive"
- hideSchemas="true"
- :data-theme="theme"
- />
-</client-only>
+<elements-api
+apiDescriptionUrl="https://cdn.jsdelivr.net/gh/sysadminsmedia/homebox@main/docs/docs/api/openapi-2.0.json"
+layout="responsive"
+hideSchemas="true"
+:data-theme="theme"
+/>