This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = import.meta.glob('../data/*.json') | |
const imp = ref([{}]) | |
// eslint-disable-next-line no-restricted-syntax | |
for (const path in data) { | |
data[path]().then((mod) => { | |
// const p = new URL(path, import.meta.url) | |
// eslint-disable-next-line no-console | |
console.log(path) | |
// imp.value.push(path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = import.meta.glob('../data/*.json') | |
const imp = ref([{}]) | |
// eslint-disable-next-line no-restricted-syntax | |
for (const path in data) { | |
data[path]().then((mod) => { | |
// const p = new URL(path, import.meta.url) | |
// eslint-disable-next-line no-console | |
console.log(path) | |
// imp.value.push(path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const gallery = Object.values(import.meta.glob('@assets/*.{png,jpg,jpeg,PNG,JPEG}', { eager: true, as: 'url' })) |