���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.1
/
dist
/
client
/
_nuxt
/
Viewing: v6QpOFCr.js
import{_ as N}from"./DbU6YvtQ.js";import{s as R,g as T,h as E,i as F,O as H,r as p,P as J,Q as K,u as Q,k as Y,l as e,o as g,c as y,b as n,a as t,J as Z,K as G,w as m,t as i,F as h,Y as W,V as X,S as ee,Z as te,U as oe}from"./B_6d-9uz.js";import{_ as se}from"./CmNiw3BJ.js";import{_ as ne}from"./CMN_rtbD.js";import{_ as ae}from"./GEUOYCnp.js";import{u as k}from"./aG0p4yd5.js";import"./COvY8u_i.js";import"./Cgqmfd8w.js";import"./ByH0FjRO.js";import"./DKlaZ6Hy.js";import"./BGGxw1gv.js";const le={key:0,class:"flex items-center justify-center"},re={key:1},ie=["dir"],ce={class:"pb-2 px-2 cursor-pointer flex justify-between items-center"},ue={class:"block w-full text-main-700 cursor-pointer text-xs"},de={class:"flex justify-end items-center"},me={class:"block p-1 text-xs truncate"},_e=["dir"],pe={class:"block bold text-xs truncate !top-0 !bottom-auto !justify-start"},fe=["dir"],xe={class:"flex justify-start items-center w-full mb-3"},ge={class:"flex justify-start items-center w-full mb-3"},ye={class:"flex justify-around mb-2 items-center"},he={class:"block px-2 text-xs truncate"},ve={class:"block px-2 text-xs truncate"},we={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"},be={class:"px-1 w-6/12"},je={class:"block px-2 text-sm truncate"},ke={class:"px-1 w-6/12"},Ce={class:"block px-2 text-sm truncate"},Be=R({__name:"index",async setup(Ve){let C,V;const{t:s,locale:u}=T(),q=E(),v=F(),w=H(),d=p(!1),c=p(!0),P=p(null),_=p(!1);function U(r=null){P.value=r,_.value=!_.value}const a=J({project_id:void 0,name:void 0,name_employer:void 0,page:1}),b=p([{id:null,name:""}]);async function $(){var o,f;const{data:r}=await k("/analyze/project/get",{immediate:!0,server:!0});b.value=(f=(o=r.value)==null?void 0:o.projects)==null?void 0:f.data}[C,V]=K(()=>$()),await C,V(),console.log("projects",b);const z=r=>{a.project_id=r.id,a.name=r.name,a.name_employer=r.name_employer,d.value=!0};async function S(){if(!a.name)return w.add({title:s("project_name"),color:"orange"});if(!a.name_employer)return w.add({title:s("employer_name"),color:"orange"});if(!a.project_id)return w.add({title:s("refresh page"),color:"orange"});c.value=!0,await k("/analyze/project/edit",{method:"POST",body:{project_id:a.project_id,name:a.name,name_employer:a.name_employer},immediate:!0,server:!0}),c.value=!1,d.value=!1}async function I(r){var o;c.value=!0,await k("/analyze/project/delete",{method:"POST",body:{project_id:r??((o=P.value)==null?void 0:o.id)},immediate:!0,server:!0}),await $(),_.value=!_.value,c.value=!1}return Q({title:s("projects_list")}),Y(()=>{q.meta.title=s("projects_list"),c.value=!1}),(r,o)=>{const f=N,D=oe,x=X,M=se,j=ee,O=ne,A=ae;return e(c)?(g(),y("div",le,[n(f)])):(g(),y("div",re,[t("section",{dir:e(u)=="en"?"ltr":"rtl",class:"mt-6 mb-10"},[t("ul",null,[(g(!0),y(Z,null,G(e(b),(l,B)=>(g(),y("li",{class:"py-4 w-full border-b-2 odd:bg-gray-100 even:bg-white even:text-gray-900",key:B},[t("div",ce,[t("label",ue,i(l.name),1),t("div",de,[n(D,{onClick:L=>z(l),name:"i-heroicons-pencil-square",class:h([e(u)=="en"?"mr-4":"ml-4","text-green-600 cursor-pointer ml-4 text-base"])},null,8,["onClick","class"]),n(x,{square:"",loading:e(c),onClick:te(L=>U(l),["prevent","stop"]),class:"flex items-center !text-red-600 !shadow-none justify-center"},{default:m(()=>[n(D,{name:"i-heroicons-trash",class:h([e(u)=="en"?"mr-4":"ml-4","text-red-600 cursor-pointer text-base"])},null,8,["class"])]),_:2},1032,["loading","onClick"]),n(x,{to:e(v)("/projects/"+l.id),square:"",class:"flex text-white rounded bg-red-700 items-center justify-center"},{default:m(()=>[t("span",me,i(e(s)("View_Details")),1)]),_:2},1032,["to"])])])]))),128))])],8,ie),n(M,{"toggle-show-up":e(_),message:e(s)("are_you_sure_to_do_this_operation"),onOnClosed:U,onOnConfirmed:I},null,8,["toggle-show-up","message"]),n(A,{modelValue:e(d),"onUpdate:modelValue":o[5]||(o[5]=l=>W(d)?d.value=l:null),class:"!top-0"},{default:m(()=>[t("div",{dir:e(u)=="en"?"ltr":"rtl",class:"flex justify-between items-center p-2"},[t("span",pe,i(e(s)("project_information")),1),n(j,{color:"gray",variant:"ghost",icon:"i-heroicons-x-mark-20-solid",class:"-my-1",onClick:o[0]||(o[0]=l=>d.value=!1)})],8,_e),t("div",{dir:e(u)=="en"?"ltr":"rtl",class:"h-96 w-full mb-6 mt-3 px-4 pt-3 max-h-full overflow-y-auto"},[t("div",xe,[t("label",{class:h([e(u)=="en"?" text-left":" text-right","block w-4/12 text-gray-500 bg-white text-xs"])},i(e(s)("project_name")),3),n(O,{variant:"outline",class:"w-9/12",inputClass:" w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs",modelValue:e(a).name,"onUpdate:modelValue":o[1]||(o[1]=l=>e(a).name=l)},null,8,["modelValue"])]),t("div",ge,[t("label",{class:h([e(u)=="en"?" text-left":" text-right","block w-4/12 text-gray-500 bg-white text-xs"])},i(e(s)("employer_name")),3),n(O,{loading:!1,variant:"outline",class:"w-9/12",inputClass:" w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs",modelValue:e(a).name_employer,"onUpdate:modelValue":o[2]||(o[2]=l=>e(a).name_employer=l)},null,8,["modelValue"])])],8,fe),t("div",ye,[n(j,{onClick:o[3]||(o[3]=l=>d.value=!1),square:"",class:"w-5/12 flex px-2 text-white rounded bg-blue-700 items-center justify-center"},{default:m(()=>[t("span",he,i(e(s)("Cancel")),1)]),_:1}),n(j,{loading:e(c),onClick:o[4]||(o[4]=l=>S()),square:"",class:"w-5/12 flex px-2 h-8 text-white rounded bg-main-700 items-center justify-center"},{default:m(()=>[t("span",ve,i(e(s)("Edit")),1)]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),t("footer",we,[t("div",be,[n(x,{external:"",to:e(v)("/analyze/start"),class:"w-full flex bg-green-700 hover:bg-green-600 rounded border h-7 text-white items-center justify-center"},{default:m(()=>[t("span",je,i(e(s)("New Project")),1)]),_:1},8,["to"])]),t("div",ke,[n(x,{to:e(v)("/"),class:"w-full flex bg-red-700 rounded border h-7 text-white items-center justify-center",color:"red"},{default:m(()=>[t("span",Ce,i(e(s)("Main Page")),1)]),_:1},8,["to"])])])]))}}});export{Be as default};
Coded With 💗 by
0x6ick Mod By V1rus_Alfa