diff --git a/components/explorer/PreviewContent.vue b/components/explorer/PreviewContent.vue
index 4d782d8..74b9f1a 100644
--- a/components/explorer/PreviewContent.vue
+++ b/components/explorer/PreviewContent.vue
@@ -1,7 +1,7 @@
-
+
@@ -22,7 +22,7 @@
-
+
diff --git a/components/prose/ProseA.vue b/components/prose/ProseA.vue
index 1d43ae5..cdf9c39 100644
--- a/components/prose/ProseA.vue
+++ b/components/prose/ProseA.vue
@@ -1,13 +1,13 @@
-
-
+
-
+
-
+
@@ -33,32 +33,18 @@ const props = defineProps({
}
});
-const nuxt = useNuxtApp();
const route = useRoute();
const { hash, pathname, protocol } = parseURL(props.href);
const project = computed(() => parseInt(Array.isArray(route.params.projectId) ? '0' : route.params.projectId));
-const key = computed(() => `file:${project.value}:%${pathname}`);
-
-const { data, status, execute } = await useFetch(`/api/project/${project.value}/file`, {
- method: 'GET',
- query: {
- search: `%${pathname}`
- },
- transform: (data) => data?.map(e => ({ path: e.path, type: e.type })),
- key: key.value,
- ignoreResponseError: true,
- immediate: false,
- server: false,
- dedupe: 'defer'
-});
+const data = ref();
if(!!pathname && !protocol)
{
- await execute();
- if(data.value === null && status.value === 'idle')
- {
- data.value = nuxt.payload.data[key.value] ?? nuxt.static.data[key.value];
- status.value = 'success';
- }
+ data.value = await $fetch(`/api/project/${project.value}/file`, {
+ query: {
+ search: `%${pathname}`
+ },
+ ignoreResponseError: true,
+ });
}
\ No newline at end of file
diff --git a/components/standard/MarkdownRenderer.client.vue b/components/standard/MarkdownRenderer.vue
similarity index 100%
rename from components/standard/MarkdownRenderer.client.vue
rename to components/standard/MarkdownRenderer.vue
diff --git a/server/api/project/[projectId]/tags/[tag].get.ts b/server/api/project/[projectId]/tags/[tag].get.ts
index a8fe618..4b9f359 100644
--- a/server/api/project/[projectId]/tags/[tag].get.ts
+++ b/server/api/project/[projectId]/tags/[tag].get.ts
@@ -22,9 +22,6 @@ export default defineCachedEventHandler(async (e) => {
const criteria: Record = { $project: project, $tag: tag };
const db = useDatabase();
-
- console.log(`SELECT * FROM explorer_tags WHERE ${where.join(" and ")}`, criteria);
-
const content = db.query(`SELECT * FROM explorer_tags WHERE ${where.join(" and ")}`).get(criteria) as Tag;
if(content !== undefined)