Перенос ветки для демо1 из док-ии Vega

This commit is contained in:
Elena Rechkina
2025-03-27 13:43:31 +06:00
parent 5863c6af9d
commit dd15812268
128 changed files with 9520 additions and 89 deletions
+72
View File
@@ -0,0 +1,72 @@
import { fileURLToPath, URL } from 'node:url'
export const overrideComponents = () => (
[
{
find: /^.*\/VPSidebar\.vue$/,
replacement: fileURLToPath(
new URL('./theme/components/CustomSidebar.vue', import.meta.url)
)
},
{
find: /^.*\/VPNavBar\.vue$/,
replacement: fileURLToPath(
new URL('./theme/components/CustomNavBar.vue', import.meta.url)
)
},
{
find: /^.*\/VPDoc\.vue$/,
replacement: fileURLToPath(
new URL('./theme/components/CustomDoc.vue', import.meta.url)
)
},
{
find: /^.*\/VPContent\.vue$/,
replacement: fileURLToPath(
new URL('./theme/components/CustomContent.vue', import.meta.url)
)
},
{
find: /^.*\/VPDocFooter\.vue$/,
replacement: fileURLToPath(
new URL('./theme/components/CustomDocFooter.vue', import.meta.url)
)
},
{
find: /^.*\/VPNavBarMenuLink\.vue$/,
replacement: fileURLToPath(
new URL('./theme/components/CustomNavBarMenuLink.vue', import.meta.url)
)
},
{
find: /^.*\/VPFeature\.vue$/,
replacement: fileURLToPath(
new URL('./theme/components/CustomFeature.vue', import.meta.url)
)
},
{
find: /^.*\/VPButton\.vue$/,
replacement: fileURLToPath(
new URL('./theme/components/CustomButton.vue', import.meta.url)
)
},
{
find: /^.*\/VPHero\.vue$/,
replacement: fileURLToPath(
new URL('./theme/components/CustomHero.vue', import.meta.url)
)
},
{
find: /^.*\/VPNavBarSearchButton\.vue$/,
replacement: fileURLToPath(
new URL('./theme/components/CustomNavBarSearchButton.vue', import.meta.url)
)
},
{
find: /^.*\/VPLocalSearchBox\.vue$/,
replacement: fileURLToPath(
new URL('./theme/components/CustomLocalSearchBox.vue', import.meta.url)
)
},
]
)