Skip to content

Commit

Permalink
Merge pull request #110 from botmaster/fix/no-ref/Fix-ts-issues
Browse files Browse the repository at this point in the history
fix/no-ref/Fix-ts-issues
  • Loading branch information
botmaster authored Jun 22, 2024
2 parents 3422995 + 6dd5d87 commit e674f76
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions components/content/prose/ProseH2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const slots = useSlots();
const slotContent = computed(() => {
if (slots.default)
return slots.default()[0].children;
else return '';
});
</script>

Expand Down
1 change: 1 addition & 0 deletions components/content/prose/ProseH3.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const slots = useSlots();
const slotContent = computed(() => {
if (slots.default)
return slots.default()[0].children;
else return '';
});
</script>

Expand Down
4 changes: 2 additions & 2 deletions composables/useOFetchWithCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default async <T>(url: string, options: Record<string, any>): Promise<T>

if (!cached.value) {
try {
console.log(`Fetching value from ${url}`);
// console.log(`Fetching value from ${url}`);
const data = await $fetch<T>(url, { ...options });
cached.value = data as T;
}
Expand All @@ -18,7 +18,7 @@ export default async <T>(url: string, options: Record<string, any>): Promise<T>
}
}
else {
console.log(`Getting value from cache for ${url}`);
// console.log(`Getting value from cache for ${url}`);
}

return cached.value;
Expand Down
2 changes: 1 addition & 1 deletion stores/article-database-info.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const useArticleDatabaseInfoStore = defineStore('articleDatabaseInfo', ()

// Actions
const fetchDatabase = async () => {
console.log('Fetching database info');
// console.log('Fetching database info');
loading.value = true;

try {
Expand Down
2 changes: 1 addition & 1 deletion stores/articles.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const useArticlesStore = defineStore('articles', () => {

// Actions
const fetchArticles = async (body: any) => {
console.log('Fetching articles');
// console.log('Fetching articles');
loading.value = true;

try {
Expand Down
2 changes: 1 addition & 1 deletion types/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { MarkdownParsedContent } from '@nuxt/content/dist/runtime/types';
import type { MarkdownParsedContent } from '@nuxt/content/';

export interface ITheme {
name: string
Expand Down

0 comments on commit e674f76

Please sign in to comment.