���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
/
public
/
_nuxt
/
Viewing: FJNdZ5-s.js
import{q as T,h as D,u as R,i as A,O as H,r as w,P as J,y as F,Q as G,o as f,c as C,b as i,w as d,a as t,t as l,k as e,E as x,X as K,I as Q,J as X,K as U,d as _,G as B,S as W,V as Y,U as Z}from"./Bkw0duvu.js";import{_ as ee}from"./Bk3PtmvI.js";import{_ as te}from"./DIw30OlD.js";import{_ as se}from"./yDnVNt26.js";import{u as P}from"./DKnm8qnS.js";import"./CeT3hz8W.js";import"./MkS-KXZ9.js";import"./CyhgVoz5.js";import"./DmDSYH1u.js";const oe=["dir"],ne={class:"block bold text-xs truncate !top-0 !bottom-auto !justify-start"},le=["dir"],ae={class:"flex justify-start items-center w-full mb-3"},re={class:"flex justify-start items-center w-full mb-3"},ie={class:"flex justify-around mb-2 items-center"},ce={class:"block px-2 text-xs truncate"},de={class:"block px-2 text-xs truncate"},ue=["dir"],me={class:"pb-2 px-2 cursor-pointer flex justify-between items-center"},pe={class:"block w-full text-main-700 cursor-pointer text-xs"},_e={class:"flex justify-end items-center"},fe={class:"block p-1 text-xs truncate"},xe={class:"mt-4"},ge={class:"flex w-full flex-col items-center"},he=t("svg",{class:"w-3.5 h-3.5 me-2 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 10"},[t("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 5H1m0 0 4 4M1 5l4-4"})],-1),we=t("svg",{class:"w-3.5 h-3.5 ms-2 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 10"},[t("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M1 5h12m0 0L9 1m4 4L9 9"})],-1),ye=["dir"],be={class:"bold text-gray-900"},ve={class:"bold text-gray-900"},je={class:"bold text-gray-900"},ke={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"},Ce={class:"px-1 w-6/12"},Pe={class:"block px-2 text-sm truncate"},$e={class:"px-1 w-6/12"},Ve={class:"block px-2 text-sm truncate"},De=T({__name:"index",async setup(qe){let g,$;const{t:n}=D();R({title:n("Projects")});const y=A(),b=H(),u=w(!1),p=w(!1),v=w(!1),j=w(!1),s=J({project_id:void 0,name:void 0,name_employer:void 0,page:1}),E=F(()=>({page:s.page})),{data:c,pending:Ne,error:Ue,refresh:h}=([g,$]=G(()=>P("/analyze/project/get",{query:E,immediate:!0,server:!0,transform:o=>JSON.parse(o).data,onResponse({request:o,response:a,options:m}){v.value=!1,j.value=!1}})),g=await g,$(),g),V=o=>{o=="increment"?(v.value=!0,s.page=s.page+1,h()):s.page!=1&&(j.value=!0,s.page=s.page-1,h())},O=o=>{s.project_id=o.id,s.name=o.name,s.name_employer=o.name_employer,u.value=!0};async function I(){if(!s.name)return b.add({title:n("project_name"),color:"orange"});if(!s.name_employer)return b.add({title:n("Employer name"),color:"orange"});if(!s.project_id)return b.add({title:n("refresh page"),color:"orange"});p.value=!0,await P("/analyze/project/edit",{method:"POST",body:{project_id:s.project_id,name:s.name,name_employer:s.name_employer},immediate:!0,server:!0}),p.value=!1,u.value=!1,h()}async function M(o){p.value=!0,await P("/analyze/project/delete",{method:"POST",body:{project_id:o},immediate:!0,server:!0}),p.value=!1,h()}return(o,a)=>{const m=W,q=ee,S=te,N=Z,k=Y,z=se;return f(),C("div",null,[i(S,{modelValue:e(u),"onUpdate:modelValue":a[5]||(a[5]=r=>K(u)?u.value=r:null),class:"!top-0"},{default:d(()=>[t("div",{dir:o.$i18n.locale=="en"?"ltr":"rtl",class:"flex justify-between items-center p-2"},[t("span",ne,l(e(n)("Project Information")),1),i(m,{color:"gray",variant:"ghost",icon:"i-heroicons-x-mark-20-solid",class:"-my-1",onClick:a[0]||(a[0]=r=>u.value=!1)})],8,oe),t("div",{dir:o.$i18n.locale=="en"?"ltr":"rtl",class:"h-96 w-full mb-6 mt-3 px-4 pt-3 max-h-full overflow-y-auto"},[t("div",ae,[t("label",{class:x([o.$i18n.locale=="en"?" text-left":" text-right","block w-4/12 text-gray-500 bg-white text-xs"])},l(e(n)("Project Name")),3),i(q,{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(s).name,"onUpdate:modelValue":a[1]||(a[1]=r=>e(s).name=r)},null,8,["modelValue"])]),t("div",re,[t("label",{class:x([o.$i18n.locale=="en"?" text-left":" text-right","block w-4/12 text-gray-500 bg-white text-xs"])},l(e(n)("Name Of Employer")),3),i(q,{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(s).name_employer,"onUpdate:modelValue":a[2]||(a[2]=r=>e(s).name_employer=r)},null,8,["modelValue"])])],8,le),t("div",ie,[i(m,{onClick:a[3]||(a[3]=r=>u.value=!1),square:"",class:"w-5/12 flex px-2 text-white rounded bg-blue-700 items-center justify-center"},{default:d(()=>[t("span",ce,l(e(n)("Cancel")),1)]),_:1}),i(m,{loading:e(p),onClick:a[4]||(a[4]=r=>I()),square:"",class:"w-5/12 flex px-2 h-8 text-white rounded bg-main-700 items-center justify-center"},{default:d(()=>[t("span",de,l(e(n)("Edit")),1)]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),t("section",{dir:o.$i18n.locale=="en"?"ltr":"rtl",class:"mt-1 mb-10"},[t("ul",null,[(f(!0),C(Q,null,X(e(c).projects.data,r=>(f(),C("li",{class:"w-full border-b-2 mb-2",key:r.id},[t("div",me,[t("label",pe,l(r.name),1),t("div",_e,[i(N,{onClick:L=>O(r),name:"i-heroicons-pencil-square",class:x([o.$i18n.locale=="en"?"mr-4":"ml-4","text-green-600 cursor-pointer ml-4 text-base"])},null,8,["onClick","class"]),i(m,{square:"",loading:e(p),onClick:L=>M(r.id),class:"flex items-center !bg-white !text-red-600 !shadow-none hover:!bg-white justify-center"},{default:d(()=>[i(N,{name:"i-heroicons-trash",class:x([o.$i18n.locale=="en"?"mr-4":"ml-4","text-red-600 cursor-pointer text-base"])},null,8,["class"])]),_:2},1032,["loading","onClick"]),i(k,{to:e(y)("/project/"+r.id),square:"",class:"flex text-white rounded bg-red-700 items-center justify-center"},{default:d(()=>[t("span",fe,l(e(n)("View_Details")),1)]),_:2},1032,["to"])])])]))),128)),t("li",xe,[i(z,null,{default:d(()=>[t("div",ge,[t("div",{class:x([e(c).projects.prev_page_url&&e(c).projects.next_page_url?"justify-between":e(c).projects.prev_page_url?"justify-start":e(c).projects.next_page_url?"justify-end":"justify-between","flex w-[95%] items-center mt-2 xs:mt-0"])},[e(c).projects.prev_page_url?(f(),U(m,{key:0,loading:e(j),onClick:a[6]||(a[6]=r=>V("decrement")),class:"flex items-center justify-center px-3 h-8 text-sm text-white bg-main-700 rounded"},{default:d(()=>[he,_(" "+l(e(n)("Prev")),1)]),_:1},8,["loading"])):B("",!0),e(c).projects.next_page_url?(f(),U(m,{key:1,square:"",loading:e(v),onClick:a[7]||(a[7]=r=>V("increment")),class:"flex items-center justify-center px-3 h-8 text-sm text-white bg-main-700 border-0 rounded"},{default:d(()=>[_(l(e(n)("Next"))+" ",1),we]),_:1},8,["loading"])):B("",!0)],2),t("span",{class:"text-sm text-gray-700 mt-2",dir:o.$i18n.locale=="en"?"ltr":"rtl"},[_(l(e(n)("Showing"))+" ",1),t("span",be,l(e(c).projects.from),1),_(" "+l(e(n)("to"))+" ",1),t("span",ve,l(e(c).projects.to),1),_(" "+l(e(n)("of"))+" ",1),t("span",je,l(e(c).projects.total),1),_(" "+l(e(n)("Entries")),1)],8,ye)])]),_:1})])])],8,ue),t("footer",ke,[t("div",Ce,[i(k,{external:"",to:e(y)("/analyze/start"),class:"w-full flex bg-green-700 hover:bg-green-600 rounded border h-7 text-white items-center justify-center"},{default:d(()=>[t("span",Pe,l(e(n)("New Project")),1)]),_:1},8,["to"])]),t("div",$e,[i(k,{to:e(y)("/"),class:"w-full flex bg-red-700 rounded border h-7 text-white items-center justify-center",color:"red"},{default:d(()=>[t("span",Ve,l(e(n)("Main Page")),1)]),_:1},8,["to"])])])])}}});export{De as default};
Coded With 💗 by
0x6ick Mod By V1rus_Alfa