���Root Mod By V1rus_Alfa
User / IP
:
216.73.216.158
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.1
/
@nuxtjs
/
i18n
/
dist
/
runtime
/
components
/
Viewing: NuxtLinkLocale.js
import { useLocalePath } from "#i18n"; import { defineComponent, computed, h } from "vue"; import { defineNuxtLink } from "#imports"; import { hasProtocol } from "ufo"; const NuxtLinkLocale = defineNuxtLink({ componentName: "NuxtLinkLocale" }); export default defineComponent({ name: "NuxtLinkLocale", // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- FIXME props: { ...NuxtLinkLocale.props, locale: { type: String, default: void 0, required: false } }, setup(props, { slots }) { const localePath = useLocalePath(); const checkPropConflicts = (props2, main, sub) => { if (import.meta.dev && props2[main] !== void 0 && props2[sub] !== void 0) { console.warn(`[NuxtLinkLocale] \`${main}\` and \`${sub}\` cannot be used together. \`${sub}\` will be ignored.`); } }; const resolvedPath = computed(() => { const destination = props.to ?? props.href; return destination != null ? localePath(destination, props.locale) : destination; }); const isExternal = computed(() => { if (props.external) { return true; } if (props.target && props.target !== "_self") { return true; } const destination = props.to ?? props.href; if (typeof destination === "object") { return false; } return destination === "" || destination == null || hasProtocol(destination, { acceptRelative: true }); }); const getNuxtLinkProps = () => { const _props = { ...props }; if (!isExternal.value) { _props.to = resolvedPath.value; } checkPropConflicts(props, "to", "href"); delete _props.href; delete _props.locale; return _props; }; return () => h(NuxtLinkLocale, getNuxtLinkProps(), slots.default); } });
Coded With 💗 by
0x6ick Mod By V1rus_Alfa