���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
/
.nuxt.2
/
dist
/
server
/
_nuxt
/
Viewing: units-COvVQf9A.js
import { _ as _sfc_main$1 } from "./Loading-0t7GqpSO.js"; import { b as useI18n, j as useToast, c as useLocalePath, q as useRoute, u as useHead, s as useRuntimeConfig, o as __nuxt_component_1 } from "../server.mjs"; import { u as useAPI } from "./useAPI-dGPJZ6yO.js"; import { defineComponent, ref, withAsyncContext, mergeProps, unref, withCtx, openBlock, createBlock, createVNode, createCommentVNode, toDisplayString, useSSRContext } from "vue"; import { ssrRenderAttrs, ssrRenderComponent, ssrRenderList, ssrRenderAttr, ssrInterpolate } from "vue/server-renderer"; import "ofetch"; import "#internal/nuxt/paths"; import "hookable"; import "unctx"; import "h3"; import "unhead"; import "@unhead/shared"; import "vue-router"; import "radix3"; import "defu"; import "devalue"; import "@vue/devtools-api"; import "destr"; import "klona"; import "cookie-es"; import "ohash"; import "@vueuse/core"; import "tailwind-merge"; import "@iconify/vue"; import "@iconify/utils/lib/css/icon"; import "./fetch-5zL7LryB.js"; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "units", __ssrInlineRender: true, async setup(__props) { let __temp, __restore; const { t, locale } = useI18n(); const toast = useToast(); const localePath = useLocalePath(); const config = useRuntimeConfig(); const { category } = useRoute().query; const loading = ref(true); const units = ref([]); async function getUnitsList() { var _a, _b, _c; const { data } = await useAPI("/analyze/units", { query: { category }, immediate: true, server: true, onRequestError({ error }) { toast.add({ title: t(error.message), color: "red" }); toast.add({ title: t("if your are using vpn, disable it and try again"), color: "red" }); }, onResponseError({ response }) { toast.add({ title: t(response.status), color: "red" }); toast.add({ title: t("if your are using vpn, disable it and try again"), color: "red" }); } // onResponse({response}) { // units.value = response._data?.units.length > 0 ? response._data?.units : []; // } }); units.value = ((_b = (_a = data.value) == null ? void 0 : _a.units) == null ? void 0 : _b.length) > 0 ? (_c = data.value) == null ? void 0 : _c.units : []; } [__temp, __restore] = withAsyncContext(() => getUnitsList()), await __temp, __restore(); useHead({ title: t("Unit Selection") }); return (_ctx, _push, _parent, _attrs) => { const _component_SharedLoading = _sfc_main$1; const _component_ULink = __nuxt_component_1; if (loading.value) { _push(`<div${ssrRenderAttrs(mergeProps({ class: "flex items-center justify-center" }, _attrs))}>`); _push(ssrRenderComponent(_component_SharedLoading, null, null, _parent)); _push(`</div>`); } else { _push(`<div${ssrRenderAttrs(mergeProps({ class: "px-2 mt-1 mb-10" }, _attrs))}><div class="flex flex-wrap justify-between item-center"><!--[-->`); ssrRenderList(units.value, (unit, idx) => { _push(`<div>`); _push(ssrRenderComponent(_component_ULink, { to: unref(localePath)("/unit/" + unit.id), class: "w-4/12 mb-4 sm:w-3/12" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { if (unit.image_3_d) { _push2(`<div class="h-28 mb-3"${_scopeId}><img${ssrRenderAttr("src", unref(config).public.FILE_URL + unit.image_3_d.address)} class="w-28 mx-auto"${ssrRenderAttr("alt", unref(t)("Unit Selection"))}${_scopeId}></div>`); } else { _push2(`<!---->`); } _push2(`<div${_scopeId}><span${ssrRenderAttr("dir", unref(locale) == "en" ? "ltr" : "rtl")} class="block w-28 mx-auto text-xs break-words line-clamp-2"${_scopeId}>${ssrInterpolate(unref(locale) == "en" ? unit.title_en : unit.title)}</span></div>`); } else { return [ unit.image_3_d ? (openBlock(), createBlock("div", { key: 0, class: "h-28 mb-3" }, [ createVNode("img", { src: unref(config).public.FILE_URL + unit.image_3_d.address, class: "w-28 mx-auto", alt: unref(t)("Unit Selection") }, null, 8, ["src", "alt"]) ])) : createCommentVNode("", true), createVNode("div", null, [ createVNode("span", { dir: unref(locale) == "en" ? "ltr" : "rtl", class: "block w-28 mx-auto text-xs break-words line-clamp-2", textContent: toDisplayString(unref(locale) == "en" ? unit.title_en : unit.title) }, null, 8, ["dir", "textContent"]) ]) ]; } }), _: 2 }, _parent)); _push(`</div>`); }); _push(`<!--]--></div></div>`); } }; } }); const _sfc_setup = _sfc_main.setup; _sfc_main.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/units.vue"); return _sfc_setup ? _sfc_setup(props, ctx) : void 0; }; export { _sfc_main as default }; //# sourceMappingURL=units-COvVQf9A.js.map
Coded With 💗 by
0x6ick Mod By V1rus_Alfa