This commit is contained in:
F4ilji
2026-04-07 17:54:26 +05:00
parent 04adba6682
commit 936b1fb5b0
468 changed files with 43498 additions and 4176 deletions
+6 -2
View File
@@ -3,12 +3,16 @@
export const linksReform = {
data() {
return {
excludedPaths: ['/sveden/', '/storage/', '/upload/', '/panorama/', '/abitur/', '/admin/']
excludedPaths: ['sveden', 'storage', 'upload', 'panorama', 'abitur', 'admin']
}
},
methods: {
normalizePath(path) {
return path.replace(/^\/+|\/+$/g, '');
},
checkPathname(pathname) {
return this.excludedPaths.some(path => pathname.startsWith(path));
const normalizedPathname = this.normalizePath(pathname);
return this.excludedPaths.some(path => normalizedPathname.startsWith(path));
},
getDefaultLinks() {
const links = document.querySelectorAll('a:not([href^="#"]):not([download])');