���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.1
/
@nuxt
/
ui
/
dist
/
runtime
/
components
/
overlays
/
Viewing: Notifications.vue
<template> <Teleport to="body"> <div :class="wrapperClass" role="region" v-bind="attrs"> <div v-if="notifications.length" :class="ui.container"> <div v-for="notification of notifications" :key="notification.id"> <UNotification v-bind="notification" :class="notification.click && 'cursor-pointer'" @click="notification.click && notification.click(notification)" @close="toast.remove(notification.id)" > <template v-for="(_, name) in $slots" #[name]="slotData"> <slot :name="name" v-bind="slotData" /> </template> </UNotification> </div> </div> </div> </Teleport> </template> <script> import { computed, toRef, defineComponent } from "vue"; import { twMerge, twJoin } from "tailwind-merge"; import UNotification from "./Notification.vue"; import { useUI } from "../../composables/useUI"; import { useToast } from "../../composables/useToast"; import { mergeConfig } from "../../utils"; import { useState } from "#imports"; import appConfig from "#build/app.config"; import { notifications } from "#ui/ui.config"; const config = mergeConfig(appConfig.ui.strategy, appConfig.ui.notifications, notifications); export default defineComponent({ components: { UNotification }, inheritAttrs: false, props: { class: { type: [String, Object, Array], default: () => "" }, ui: { type: Object, default: () => ({}) } }, setup(props) { const { ui, attrs } = useUI("notifications", toRef(props, "ui"), config); const toast = useToast(); const notifications2 = useState("notifications", () => []); const wrapperClass = computed(() => { return twMerge(twJoin( ui.value.wrapper, ui.value.position, ui.value.width ), props.class); }); return { // eslint-disable-next-line vue/no-dupe-keys ui, attrs, toast, notifications: notifications2, wrapperClass }; } }); </script>
Coded With 💗 by
0x6ick Mod By V1rus_Alfa