Fix dependencies: Add flag-icons, tailwind directives, and postcss config

This commit is contained in:
MivoDev
2026-01-18 11:16:21 +07:00
commit 266a4b1296
10758 changed files with 1547435 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { computed } from 'vue';
import { useData } from './data';
export function useEditLink() {
const { theme, page } = useData();
return computed(() => {
const { text = 'Edit this page', pattern = '' } = theme.value.editLink || {};
let url;
if (typeof pattern === 'function') {
url = pattern(page.value);
}
else {
url = pattern.replace(/:path/g, page.value.filePath);
}
return { url, text };
});
}