403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/elite-events-storybook/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/elite-events-storybook/7463.995bb7d6.iframe.bundle.js
"use strict";(self.webpackChunkelite_events_nextjs=self.webpackChunkelite_events_nextjs||[]).push([[7463],{"./src/components/features/admin/dev/DevTicketManagement/DevTicketTable.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>DevTicketTable});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),next_link__WEBPACK_IMPORTED_MODULE_2__=(__webpack_require__("./node_modules/next/dist/compiled/react/index.js"),__webpack_require__("./node_modules/next/link.js")),next_link__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(next_link__WEBPACK_IMPORTED_MODULE_2__),_constants_dev_ticket__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/constants/dev-ticket.ts"),next_image__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@storybook/nextjs/dist/images/next-image.js"),_components_ui_icons__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/components/ui/icons/index.ts");function SortIndicator({field,sort}){return sort.field!==field?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_ui_icons__WEBPACK_IMPORTED_MODULE_5__.In,{name:"sort",size:16,className:"text-gray-300 ml-1"}):"asc"===sort.direction?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_ui_icons__WEBPACK_IMPORTED_MODULE_5__.In,{name:"chevron-up",size:16,className:"text-indigo-600 ml-1"}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_ui_icons__WEBPACK_IMPORTED_MODULE_5__.In,{name:"chevron-down",size:16,className:"text-indigo-600 ml-1"})}function SortableHeader({field,label,sort,onSort}){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-700 select-none",onClick:()=>onSort(field),children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"flex items-center",children:[label,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SortIndicator,{field,sort})]})})}function DevTicketTable({tickets,loading,selectedIds,onSelectAll,onSelectOne,sort,onSort}){const allSelected=tickets.length>0&&selectedIds.size===tickets.length,someSelected=selectedIds.size>0&&selectedIds.size<tickets.length;return loading?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 text-center",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"animate-spin h-8 w-8 border-4 border-indigo-600 border-t-transparent rounded-full mx-auto"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p",{className:"text-gray-500 dark:text-gray-400 mt-4",children:"Loading tickets..."})]}):tickets&&0!==tickets.length?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 overflow-hidden",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"overflow-x-auto",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-gray-700",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("thead",{className:"bg-gray-50 dark:bg-gray-900",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("tr",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("th",{className:"px-4 py-3 w-10",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("input",{type:"checkbox",checked:allSelected,ref:el=>{el&&(el.indeterminate=someSelected)},onChange:e=>onSelectAll(e.target.checked),className:"h-4 w-4 text-indigo-600 rounded border-gray-300 dark:border-gray-600 focus:ring-indigo-500 dark:bg-gray-700"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SortableHeader,{field:"category",label:"Category",sort,onSort}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SortableHeader,{field:"type",label:"Type",sort,onSort}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SortableHeader,{field:"ticketNumber",label:"Ticket",sort,onSort}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SortableHeader,{field:"status",label:"Status",sort,onSort}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SortableHeader,{field:"priority",label:"Priority",sort,onSort}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Parent"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Project"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Assignee"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Children"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(SortableHeader,{field:"createdAt",label:"Created",sort,onSort})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("tbody",{className:"bg-white dark:bg-gray-800 divide-y divide-gray-200 dark:divide-gray-700",children:tickets.map(ticket=>{const categoryConfig=_constants_dev_ticket__WEBPACK_IMPORTED_MODULE_3__.vV[ticket.category||"TASK"],typeConfig=_constants_dev_ticket__WEBPACK_IMPORTED_MODULE_3__.Pn[ticket.type],statusConfig=_constants_dev_ticket__WEBPACK_IMPORTED_MODULE_3__.HS[ticket.status],priorityConfig=_constants_dev_ticket__WEBPACK_IMPORTED_MODULE_3__.XB[ticket.priority],isOverdue=ticket.dueDate&&new Date(ticket.dueDate)<new Date&&!["COMPLETED","CANCELLED","WONT_FIX"].includes(ticket.status),childCount=ticket.childCount||0,completedChildCount=ticket.completedChildCount||0;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("tr",{className:"hover:bg-gray-50 dark:hover:bg-gray-700",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("td",{className:"px-4 py-3",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("input",{type:"checkbox",checked:selectedIds.has(ticket.id),onChange:e=>onSelectOne(ticket.id,e.target.checked),className:"h-4 w-4 text-indigo-600 rounded border-gray-300 dark:border-gray-600 focus:ring-indigo-500 dark:bg-gray-700"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("td",{className:"px-4 py-3",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span",{className:`inline-flex items-center px-2 py-0.5 text-xs font-medium rounded ${categoryConfig?.bgColor||"bg-gray-100"} ${categoryConfig?.color||"text-gray-600"}`,title:categoryConfig?.description,children:[categoryConfig?.icon&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"mr-1",children:categoryConfig.icon}),categoryConfig?.label||"Task"]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("td",{className:"px-4 py-3",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span",{className:`inline-flex items-center px-2 py-0.5 text-xs font-medium rounded ${typeConfig?.bgColor||"bg-gray-100"} ${typeConfig?.color||"text-gray-600"}`,children:[typeConfig?.icon&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"mr-1",children:typeConfig.icon}),typeConfig?.label||ticket.type]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("td",{className:"px-4 py-3",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(next_link__WEBPACK_IMPORTED_MODULE_2___default(),{href:`/admin/dev/tickets/${ticket.id}`,className:"group",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:ticket.ticketNumber}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100 group-hover:text-indigo-600 dark:group-hover:text-indigo-400",children:ticket.title}),isOverdue&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span",{className:"inline-flex items-center text-xs text-red-600 mt-0.5",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_ui_icons__WEBPACK_IMPORTED_MODULE_5__.In,{name:"warning",size:12,className:"mr-1"}),"Overdue"]})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("td",{className:"px-4 py-3",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:`inline-flex px-2 py-0.5 text-xs font-medium rounded-full ${statusConfig?.bgColor||"bg-gray-100"} ${statusConfig?.color||"text-gray-600"}`,children:statusConfig?.label||ticket.status})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("td",{className:"px-4 py-3",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:`inline-flex px-2 py-0.5 text-xs font-medium rounded-full ${priorityConfig?.bgColor||"bg-gray-100"} ${priorityConfig?.color||"text-gray-600"}`,children:priorityConfig?.label||ticket.priority})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("td",{className:"px-4 py-3",children:ticket.parent?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(next_link__WEBPACK_IMPORTED_MODULE_2___default(),{href:`/admin/dev/tickets/${ticket.parent.id}`,className:"text-xs text-indigo-600 hover:text-indigo-800 dark:text-indigo-400 dark:hover:text-indigo-300",children:ticket.parent.ticketNumber}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"text-xs text-gray-400 dark:text-gray-500",children:"-"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("td",{className:"px-4 py-3",children:ticket.project?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span",{className:"inline-flex items-center px-2 py-0.5 text-xs font-medium rounded",style:{backgroundColor:`${ticket.project.color}20`,color:ticket.project.color},children:["[",ticket.project.key,"] ",ticket.project.name]}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"text-xs text-gray-400 dark:text-gray-500 italic",children:"No project"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("td",{className:"px-4 py-3",children:ticket.assignee?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"flex items-center",children:[ticket.assignee.image?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(next_image__WEBPACK_IMPORTED_MODULE_4__.A,{src:ticket.assignee.image,alt:ticket.assignee.name||"",width:24,height:24,className:"w-6 h-6 rounded-full mr-2"}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"w-6 h-6 rounded-full bg-gray-200 dark:bg-gray-600 flex items-center justify-center mr-2",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"text-xs text-gray-600 dark:text-gray-300",children:ticket.assignee.name?.charAt(0)||"?"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"text-sm text-gray-900 dark:text-gray-100",children:ticket.assignee.name})]}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"text-sm text-gray-400 dark:text-gray-500 italic",children:"Unassigned"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("td",{className:"px-4 py-3",children:childCount>0?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span",{className:"text-sm text-gray-900 dark:text-gray-100",children:[completedChildCount,"/",childCount]}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{className:"text-xs text-gray-400 dark:text-gray-500",children:"-"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("td",{className:"px-4 py-3 text-sm text-gray-500 dark:text-gray-400",children:new Date(ticket.createdAt).toLocaleDateString()})]},ticket.id)})})]})})}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 text-center",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_ui_icons__WEBPACK_IMPORTED_MODULE_5__.In,{name:"clipboard-list",size:48,className:"text-gray-400 dark:text-gray-500 mx-auto mb-4"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p",{className:"text-gray-500 dark:text-gray-400",children:"No tickets found"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(next_link__WEBPACK_IMPORTED_MODULE_2___default(),{href:"/admin/dev/tickets/new",className:"inline-flex items-center mt-4 px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition-colors",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_ui_icons__WEBPACK_IMPORTED_MODULE_5__.In,{name:"plus",size:16,className:"mr-2"}),"Create Ticket"]})]})}},"./src/constants/dev-ticket.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{HS:()=>DEV_TICKET_STATUS_CONFIG,Pn:()=>DEV_TICKET_TYPE_CONFIG,X0:()=>PROJECT_COLOR_OPTIONS,XB:()=>DEV_TICKET_PRIORITY_CONFIG,vV:()=>DEV_TICKET_CATEGORY_CONFIG});const DEV_TICKET_TYPE_CONFIG={BUG:{label:"Bug",icon:"🐛",color:"text-red-700",bgColor:"bg-red-100",description:"Something is not working as expected"},FEATURE:{label:"Feature",icon:"✨",color:"text-purple-700",bgColor:"bg-purple-100",description:"New functionality to be implemented"},ENHANCEMENT:{label:"Enhancement",icon:"📈",color:"text-blue-700",bgColor:"bg-blue-100",description:"Improvement to existing functionality"},TASK:{label:"Task",icon:"📋",color:"text-gray-700",bgColor:"bg-gray-100",description:"General development task"},DOCUMENTATION:{label:"Documentation",icon:"📝",color:"text-teal-700",bgColor:"bg-teal-100",description:"Documentation updates or additions"},REFACTOR:{label:"Refactor",icon:"🔧",color:"text-orange-700",bgColor:"bg-orange-100",description:"Code refactoring without changing behavior"},SECURITY:{label:"Security",icon:"🔒",color:"text-red-800",bgColor:"bg-red-200",description:"Security-related issue or improvement"},PERFORMANCE:{label:"Performance",icon:"⚡",color:"text-yellow-700",bgColor:"bg-yellow-100",description:"Performance optimization"},DEPLOYMENT:{label:"Deployment",icon:"🚀",color:"text-indigo-700",bgColor:"bg-indigo-100",description:"Deployment or infrastructure related"},RESEARCH:{label:"Research",icon:"🔍",color:"text-cyan-700",bgColor:"bg-cyan-100",description:"Investigation or research spike"}},DEV_TICKET_CATEGORY_CONFIG={EPIC:{label:"Epic",icon:"🎯",color:"text-purple-700",bgColor:"bg-purple-100",description:"Large body of work representing a major initiative or plan",level:0,allowedParents:[]},PHASE:{label:"Phase",icon:"📦",color:"text-indigo-700",bgColor:"bg-indigo-100",description:"Major section or milestone within an epic",level:1,allowedParents:["EPIC"]},STORY:{label:"Story",icon:"📖",color:"text-blue-700",bgColor:"bg-blue-100",description:"User-facing deliverable or feature",level:2,allowedParents:["EPIC","PHASE"]},TASK:{label:"Task",icon:"✅",color:"text-green-700",bgColor:"bg-green-100",description:"Individual work item",level:3,allowedParents:["PHASE","STORY"]},SUBTASK:{label:"Subtask",icon:"📌",color:"text-gray-600",bgColor:"bg-gray-100",description:"Granular piece of work within a task",level:4,allowedParents:["TASK"]}},DEV_TICKET_STATUS_CONFIG={OPEN:{label:"Open",color:"text-blue-700",bgColor:"bg-blue-100",description:"Ticket is open and awaiting work",order:1},IN_PROGRESS:{label:"In Progress",color:"text-yellow-700",bgColor:"bg-yellow-100",description:"Work is actively being done",order:2},IN_REVIEW:{label:"In Review",color:"text-purple-700",bgColor:"bg-purple-100",description:"Code review or PR in progress",order:3},TESTING:{label:"Testing",color:"text-cyan-700",bgColor:"bg-cyan-100",description:"Being tested or QA verified",order:4},BLOCKED:{label:"Blocked",color:"text-red-700",bgColor:"bg-red-100",description:"Blocked by external dependency",order:5},ON_HOLD:{label:"On Hold",color:"text-gray-600",bgColor:"bg-gray-100",description:"Paused intentionally",order:6},COMPLETED:{label:"Completed",color:"text-green-700",bgColor:"bg-green-100",description:"Work is done and merged",order:7},CANCELLED:{label:"Cancelled",color:"text-gray-500",bgColor:"bg-gray-50",description:"Ticket was cancelled",order:8},WONT_FIX:{label:"Won't Fix",color:"text-gray-500",bgColor:"bg-gray-50",description:"Decided not to address",order:9}},DEV_TICKET_PRIORITY_CONFIG={LOWEST:{label:"Lowest",icon:"⬇️",color:"text-gray-500",bgColor:"bg-gray-50",order:1},LOW:{label:"Low",icon:"↓",color:"text-blue-500",bgColor:"bg-blue-50",order:2},MEDIUM:{label:"Medium",icon:"➡️",color:"text-yellow-600",bgColor:"bg-yellow-50",order:3},HIGH:{label:"High",icon:"↑",color:"text-orange-600",bgColor:"bg-orange-50",order:4},HIGHEST:{label:"Highest",icon:"⬆️",color:"text-red-600",bgColor:"bg-red-50",order:5},CRITICAL:{label:"Critical",icon:"🔥",color:"text-red-700",bgColor:"bg-red-100",order:6}},PROJECT_COLOR_OPTIONS=["#6366f1","#8b5cf6","#ec4899","#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#06b6d4","#3b82f6","#6b7280"]}}]);

Youez - 2016 - github.com/yon3zu
LinuXploit