���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
node_modules.2
/
nuxt
/
dist
/
pages
/
runtime
/
Viewing: router.options.js
import { useNuxtApp } from "#app/nuxt"; import { isChangingPage } from "#app/components/utils"; import { useRouter } from "#app/composables/router"; import { appPageTransition as defaultPageTransition } from "#build/nuxt.config.mjs"; export default { scrollBehavior(to, from, savedPosition) { const nuxtApp = useNuxtApp(); const behavior = useRouter().options?.scrollBehaviorType ?? "auto"; let position = savedPosition || void 0; const routeAllowsScrollToTop = typeof to.meta.scrollToTop === "function" ? to.meta.scrollToTop(to, from) : to.meta.scrollToTop; if (!position && from && to && routeAllowsScrollToTop !== false && isChangingPage(to, from)) { position = { left: 0, top: 0 }; } if (to.path === from.path) { if (from.hash && !to.hash) { return { left: 0, top: 0 }; } if (to.hash) { return { el: to.hash, top: _getHashElementScrollMarginTop(to.hash), behavior }; } return false; } const hasTransition = (route) => !!(route.meta.pageTransition ?? defaultPageTransition); const hookToWait = hasTransition(from) && hasTransition(to) ? "page:transition:finish" : "page:finish"; return new Promise((resolve) => { nuxtApp.hooks.hookOnce(hookToWait, async () => { await new Promise((resolve2) => setTimeout(resolve2, 0)); if (to.hash) { position = { el: to.hash, top: _getHashElementScrollMarginTop(to.hash), behavior }; } resolve(position); }); }); } }; function _getHashElementScrollMarginTop(selector) { try { const elem = document.querySelector(selector); if (elem) { return (Number.parseFloat(getComputedStyle(elem).scrollMarginTop) || 0) + (Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop) || 0); } } catch { } return 0; }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa