const components = import.meta.glob('@/CustomComponents/*.vue');
_.forEach(components, function(component, path) {
const [ name ] = path.match(/[^\/]+(?=\.vue$)/i);
app.component(name, defineAsyncComponent(component))
});
.js
в импортах.:) document.querySelector('input[value="Создать лот"]')?.click()
?function findLink(text) {
for (const a of document.querySelectorAll('.amt-link > a:not(._lock-time)')) {
if (a.querySelector('.link-icon + span').textContent.trim() === text)
return a.href;
}
return '';
}
findLink("Ярость богов")
function normalize(text) {
return text.normalize().replace(/\s+/, '').toLowerCase();
}
function findLink(text) {
text = normalize(text);
for (const a of document.querySelectorAll('.amt-link > a:not(._lock-time)')) {
if (normalize(a.querySelector('.link-icon + span').textContent) === text)
return a.href;
}
return '';
}
findLink("Ярость богов")