mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 22:36:29 +00:00
Add query-string helper and centralize filtering
Introduce getQueryStringFilteredAssignments in lib/fetchData and use it across task pages to append backend filter params to API requests. Move client/assignment filtering into shared helpers (getFilteredAssignments, getFilteredClients) and remove duplicated local filter logic from client/project pages. Expand searchable fields and adjust getFilteredAssignments signature to accept (list, query, sortBy). Update IClient type and add ProjectStatusSummary. Miscellaneous UI/UX fixes: use fullname in AssignmentTable tooltip, fix debounce usage, pass correct prop to FilterComponent in HomeTask, and normalize isEdit handling in project-assignment page.
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
import { ArrowLeft, Plus } from 'lucide-react';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Card900, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
|
||||
import { Separator } from '@/components/ui/separator';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import Link from 'next/link';
|
||||
|
||||
import ClientDetailComponent from './ClientDetailComponent';
|
||||
import fetchData from '@/lib/fetchData';
|
||||
import fetchData, { getQueryStringFilteredAssignments } from '@/lib/fetchData';
|
||||
import { LazyImage } from '@/components/ui/lazy-image';
|
||||
import { IProjectAssignment } from '../../../type.assignment';
|
||||
import { getFilteredAssignments } from '../../../data';
|
||||
|
||||
type Props = {
|
||||
params: Promise<{ client_id: string }>
|
||||
@@ -17,23 +14,21 @@ type Props = {
|
||||
|
||||
export default async function ClientDetailPage({ params, searchParams }: Props) {
|
||||
const { client_id } = await params;
|
||||
const q = (await searchParams)!.q
|
||||
const status = (await searchParams)!.status
|
||||
const sort = (await searchParams)!.sort
|
||||
|
||||
const searchParams_ = await searchParams;
|
||||
const q = searchParams_!.q
|
||||
const sort = searchParams_!.sort
|
||||
|
||||
const query = (q || '').toLowerCase()
|
||||
const activeStatuses = status ? status.toLowerCase()?.split(',') : [];
|
||||
const sortBy = sort || 'default';
|
||||
|
||||
const queryString = getQueryStringFilteredAssignments(searchParams_)
|
||||
|
||||
const getClientById = fetchData(`/client/${client_id}`)
|
||||
const getAssignmentsByClient = fetchData(`/client/project-assignment/${client_id}`)
|
||||
// const getAssignmentsByClient = fetchData(`/project-assignment`)
|
||||
const getAssignmentsByClient = fetchData(queryString ? `/client/project-assignment/${client_id}?${queryString}` : `/client/project-assignment/${client_id}`)
|
||||
|
||||
const [client, assignmentList] = await Promise.all([getClientById, getAssignmentsByClient]);
|
||||
|
||||
console.log(client)
|
||||
|
||||
if (!client) {
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center h-[60vh] space-y-4">
|
||||
@@ -45,53 +40,7 @@ export default async function ClientDetailPage({ params, searchParams }: Props)
|
||||
);
|
||||
}
|
||||
|
||||
const filterData = () => {
|
||||
if (assignmentList && assignmentList.length === 0) return []
|
||||
// 1. FILTERING
|
||||
let processedData = assignmentList.filter((item: IProjectAssignment) => {
|
||||
const matchesSearch = query === '' || (
|
||||
(item.im_name?.toLowerCase().includes(query)) ||
|
||||
(item.im_code?.toLowerCase().includes(query)) ||
|
||||
(item.project?.name?.toLowerCase().includes(query)) ||
|
||||
(item.project?.code?.toLowerCase().includes(query)) ||
|
||||
(item.wo_name?.toLowerCase().includes(query)) ||
|
||||
(item.wo_code?.toLowerCase().includes(query))
|
||||
);
|
||||
|
||||
// --- Status Filter ---
|
||||
const itemStatus = item.project_assignment_status?.name?.toLowerCase();
|
||||
const matchesStatus = activeStatuses.length === 0 || (itemStatus && activeStatuses.includes(itemStatus));
|
||||
|
||||
return matchesSearch && matchesStatus;
|
||||
});
|
||||
|
||||
// 2. SORTING
|
||||
processedData = processedData.sort((a: IProjectAssignment, b: IProjectAssignment) => {
|
||||
if (sortBy === 'latest') {
|
||||
return new Date(b.created_at).getTime() - new Date(a.created_at).getTime();
|
||||
}
|
||||
|
||||
if (sortBy === 'oldest') {
|
||||
return new Date(a.created_at).getTime() - new Date(b.created_at).getTime();
|
||||
}
|
||||
|
||||
if (sortBy === 'participants_desc') {
|
||||
const aCount = a.project_assignment_work_order_detail?.length || 0;
|
||||
const bCount = b.project_assignment_work_order_detail?.length || 0;
|
||||
return bCount - aCount; // Highest count first
|
||||
}
|
||||
|
||||
if (sortBy === 'participants_asc') {
|
||||
const aCount = a.project_assignment_work_order_detail?.length || 0;
|
||||
const bCount = b.project_assignment_work_order_detail?.length || 0;
|
||||
return aCount - bCount; // Lowest count first
|
||||
}
|
||||
|
||||
return 0; // 'default' - keeps original array order
|
||||
});
|
||||
|
||||
return processedData;
|
||||
}
|
||||
const filterAssignments = getFilteredAssignments(assignmentList, query, sortBy)
|
||||
|
||||
return (
|
||||
<div className="flex-1 space-y-8 p-6 sm:p-8 pt-6">
|
||||
@@ -121,7 +70,7 @@ export default async function ClientDetailPage({ params, searchParams }: Props)
|
||||
|
||||
<ClientDetailComponent
|
||||
clientId={client_id}
|
||||
assignmentLists={filterData()}
|
||||
assignmentLists={filterAssignments}
|
||||
/>
|
||||
{/* <div className="grid gap-8 lg:grid-cols-3">
|
||||
|
||||
|
||||
+13
-52
@@ -1,15 +1,14 @@
|
||||
import { Button } from '@/components/ui/button';
|
||||
import Link from 'next/link';
|
||||
import fetchData from '@/lib/fetchData';
|
||||
import fetchData, { getQueryStringFilteredAssignments } from '@/lib/fetchData';
|
||||
import { ArrowLeft, Briefcase, Calendar, CheckCircle2, ClipboardList, Clock3, Hash, Users } from 'lucide-react';
|
||||
import { IProjectAssignment } from '@/app/(dashboard)/task/type.assignment';
|
||||
import { Card, Card900, CardContent } from '@/components/ui/card';
|
||||
import WorkOrderCard from './WorkOrderCard';
|
||||
import { MotionDiv } from '@/components/ui/motion-wrapper';
|
||||
import { LazyImage } from '@/components/ui/lazy-image';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import FilterComponent from '@/app/(dashboard)/task/component/FilterComponent';
|
||||
import { COMPLETE_STATUS_LIST, ONPROGRESS_STATUS_LIST } from '@/app/(dashboard)/task/data';
|
||||
import { COMPLETE_STATUS_LIST, getFilteredAssignments, ONPROGRESS_STATUS_LIST } from '@/app/(dashboard)/task/data';
|
||||
|
||||
type Props = {
|
||||
params: Promise<{ client_id: string; project_id: string }>
|
||||
@@ -18,16 +17,19 @@ type Props = {
|
||||
|
||||
export default async function ProjectDetailPage({ params, searchParams }: Props) {
|
||||
const { client_id, project_id } = await params;
|
||||
const q = (await searchParams)!.q
|
||||
const status = (await searchParams)!.status
|
||||
const sort = (await searchParams)!.sort
|
||||
const searchParams_ = await searchParams;
|
||||
|
||||
const q = searchParams_!.q
|
||||
const sort = searchParams_!.sort
|
||||
|
||||
const query = (q || '').toLowerCase()
|
||||
const activeStatuses = status ? status.toLowerCase()?.split(',') : [];
|
||||
const sortBy = sort || 'default';
|
||||
|
||||
const queryString = getQueryStringFilteredAssignments(searchParams_)
|
||||
|
||||
const getClientById = fetchData(`/client/${client_id}`)
|
||||
const getAssignmentByProjectId = fetchData(`/project/${project_id}`)
|
||||
const getAssignmentByProjectId = fetchData(queryString ? `/project/project-assignment/${project_id}?${queryString}` : `/project/project-assignment/${project_id}`)
|
||||
// const getAssignmentByProjectId = fetchData(`/project/${project_id}`)
|
||||
|
||||
const [client, project] = await Promise.all([getClientById, getAssignmentByProjectId]);
|
||||
|
||||
@@ -43,6 +45,8 @@ export default async function ProjectDetailPage({ params, searchParams }: Props)
|
||||
);
|
||||
}
|
||||
|
||||
const filterAssignments = getFilteredAssignments(project.project_assignment, query, sortBy)
|
||||
|
||||
const formatDate = (date: string) =>
|
||||
new Date(date).toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' });
|
||||
|
||||
@@ -96,49 +100,6 @@ export default async function ProjectDetailPage({ params, searchParams }: Props)
|
||||
},
|
||||
];
|
||||
|
||||
const filterData = () => {
|
||||
if (project.project_assignment && project.project_assignment?.length === 0) return []
|
||||
// 1. FILTERING
|
||||
let processedData = project.project_assignment?.filter((item: IProjectAssignment) => {
|
||||
const matchesSearch = query === '' || (
|
||||
(item.wo_name?.toLowerCase().includes(query)) ||
|
||||
(item.wo_code?.toLowerCase().includes(query))
|
||||
);
|
||||
|
||||
// --- Status Filter ---
|
||||
const itemStatus = item.project_assignment_status?.name?.toLowerCase();
|
||||
const matchesStatus = activeStatuses.length === 0 || (itemStatus && activeStatuses.includes(itemStatus));
|
||||
|
||||
return matchesSearch && matchesStatus;
|
||||
});
|
||||
|
||||
// 2. SORTING
|
||||
processedData = processedData.sort((a: IProjectAssignment, b: IProjectAssignment) => {
|
||||
if (sortBy === 'latest') {
|
||||
return new Date(b.created_at).getTime() - new Date(a.created_at).getTime();
|
||||
}
|
||||
|
||||
if (sortBy === 'oldest') {
|
||||
return new Date(a.created_at).getTime() - new Date(b.created_at).getTime();
|
||||
}
|
||||
|
||||
if (sortBy === 'participants_desc') {
|
||||
const aCount = a.project_assignment_work_order_detail?.length || 0;
|
||||
const bCount = b.project_assignment_work_order_detail?.length || 0;
|
||||
return bCount - aCount; // Highest count first
|
||||
}
|
||||
|
||||
if (sortBy === 'participants_asc') {
|
||||
const aCount = a.project_assignment_work_order_detail?.length || 0;
|
||||
const bCount = b.project_assignment_work_order_detail?.length || 0;
|
||||
return aCount - bCount; // Lowest count first
|
||||
}
|
||||
|
||||
return 0; // 'default' - keeps original array order
|
||||
});
|
||||
|
||||
return processedData;
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<MotionDiv
|
||||
@@ -265,7 +226,7 @@ export default async function ProjectDetailPage({ params, searchParams }: Props)
|
||||
<FilterComponent hideCategory hideProjectDateFilter hideImDateFilter />
|
||||
</div>
|
||||
<div className="space-y-4">
|
||||
{filterData() && filterData().length > 0 ? project.project_assignment.map((wo: any, i: number) =>
|
||||
{filterAssignments && filterAssignments.length > 0 ? project.project_assignment.map((wo: any, i: number) =>
|
||||
<WorkOrderCard key={wo.id} workOrder={wo} index={i} defaultOpen={i === 0} />
|
||||
)
|
||||
:
|
||||
|
||||
@@ -115,7 +115,7 @@ export default function AssignmentTable({ data }: { data: IProjectAssignment[] }
|
||||
<LazyImage src={user?.user?.avatar ? `${process.env.BASE_URL_IMG}/${user?.user?.avatar}` : '/assets/no-avatar.jpg'} alt={user?.user?.fullname!} className="inline-block h-8 w-8 rounded-full border-2 border-background cursor-help hover:scale-110 hover:z-10 transition-transform" />
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>
|
||||
<p className="text-xs font-bold">{user?.user?.name}</p>
|
||||
<p className="text-xs font-bold">{user?.user?.fullname}</p>
|
||||
<p className="text-[10px] opacity-80">{user?.user?.position?.name}</p>
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
|
||||
@@ -33,7 +33,7 @@ const FilterComponent: FC<Props> = ({ hideFilterModal, hideClient, hideEndUser,
|
||||
|
||||
const [searchText, setSearchText] = useState(currentQuery);
|
||||
|
||||
const [debouncedSearchText] = useDebounce(searchText, 500);
|
||||
const debouncedSearchText = useDebounce(searchText, 500);
|
||||
|
||||
useEffect(() => {
|
||||
const params = new URLSearchParams(searchParams!);
|
||||
@@ -67,7 +67,7 @@ const FilterComponent: FC<Props> = ({ hideFilterModal, hideClient, hideEndUser,
|
||||
<Input
|
||||
placeholder="Search..."
|
||||
className="pl-10 w-full bg-white dark:bg-zinc-900"
|
||||
value={searchText} // ✅ Controlled by local state for snappy typing
|
||||
value={searchText}
|
||||
onChange={(e) => setSearchText(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -73,7 +73,7 @@ export default function HomeTask({ currentView }: ShellProps) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<FilterComponent hideCategory />
|
||||
<FilterComponent hideFilterModal={currentView === 'clients'} />
|
||||
|
||||
{showForm && <FormClient isRedirectToDetail onCancel={() => setShowForm(false)} onSuccess={() => { setShowForm(false); router.refresh() }} />}
|
||||
</>
|
||||
|
||||
@@ -8,7 +8,8 @@ export const ONPROGRESS_STATUS_LIST = ['ON PROGRESS', 'ON GOING', 'HALTED', 'ISS
|
||||
export const getFilteredClients = (clientLists: IClient[], query?: string, sortBy?: string) => {
|
||||
let processedData = clientLists.filter((c) =>
|
||||
c.name.toLowerCase().includes(query!) ||
|
||||
c.end_user_name?.toLowerCase().includes(query!)
|
||||
c.code?.toLowerCase().includes(query!) ||
|
||||
c.description?.toLowerCase().includes(query!)
|
||||
);
|
||||
|
||||
processedData = processedData.sort((a, b) => {
|
||||
@@ -38,31 +39,38 @@ export const getFilteredClients = (clientLists: IClient[], query?: string, sortB
|
||||
return processedData;
|
||||
}
|
||||
|
||||
export const getFilteredAssignments = (assignmentList: IProjectAssignment[], query?: string, status?: string, sortBy?: string) => {
|
||||
export const getFilteredAssignments = (assignmentList: IProjectAssignment[], query?: string, sortBy?: string) => {
|
||||
if (assignmentList && assignmentList.length === 0) return []
|
||||
|
||||
const activeStatuses = status ? status.toLowerCase()?.split(',') : [];
|
||||
// const activeStatuses = status ? status.toLowerCase()?.split(',') : [];
|
||||
|
||||
// 1. FILTERING
|
||||
let processedData = assignmentList.filter((item) => {
|
||||
let processedData = assignmentList?.filter((item) => {
|
||||
const matchesSearch = query === '' || (
|
||||
(item.client.name?.toLowerCase().includes(query!)) ||
|
||||
(item.client.code?.toLowerCase().includes(query!)) ||
|
||||
(item.end_user.name?.toLowerCase().includes(query!)) ||
|
||||
(item.end_user.code?.toLowerCase().includes(query!)) ||
|
||||
(item.im_name?.toLowerCase().includes(query)) ||
|
||||
(item.im_code?.toLowerCase().includes(query)) ||
|
||||
(item.im_description?.toLowerCase().includes(query)) ||
|
||||
(item.project?.name?.toLowerCase().includes(query!)) ||
|
||||
(item.project?.code?.toLowerCase().includes(query!)) ||
|
||||
(item.project?.description?.toLowerCase().includes(query!)) ||
|
||||
(item.wo_name?.toLowerCase().includes(query!)) ||
|
||||
(item.wo_code?.toLowerCase().includes(query!))
|
||||
);
|
||||
|
||||
// --- Status Filter ---
|
||||
const itemStatus = item.project_assignment_status?.name?.toLowerCase();
|
||||
const matchesStatus = activeStatuses.length === 0 || (itemStatus && activeStatuses.includes(itemStatus));
|
||||
// const itemStatus = item.project_assignment_status?.name?.toLowerCase();
|
||||
// const matchesStatus = activeStatuses.length === 0 || (itemStatus && activeStatuses.includes(itemStatus));
|
||||
|
||||
return matchesSearch && matchesStatus;
|
||||
// return matchesSearch && matchesStatus;
|
||||
return matchesSearch;
|
||||
});
|
||||
|
||||
// 2. SORTING
|
||||
processedData = processedData.sort((a: IProjectAssignment, b: IProjectAssignment) => {
|
||||
processedData = processedData?.sort((a: IProjectAssignment, b: IProjectAssignment) => {
|
||||
if (sortBy === 'latest') {
|
||||
return new Date(b.created_at).getTime() - new Date(a.created_at).getTime();
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Suspense } from 'react';
|
||||
import HomeTask from './component/HomeTask';
|
||||
import ClientGrid from './component/ClientGrid';
|
||||
import AssignmentTable from './component/AssignmentTable';
|
||||
import fetchData from '@/lib/fetchData';
|
||||
import fetchData, { getQueryStringFilteredAssignments } from '@/lib/fetchData';
|
||||
import { getFilteredAssignments, getFilteredClients } from './data';
|
||||
|
||||
type Props = {
|
||||
@@ -10,22 +10,22 @@ type Props = {
|
||||
};
|
||||
|
||||
export default async function ClientsPage({ searchParams }: Props) {
|
||||
const params = await searchParams;
|
||||
const searchParams_ = await searchParams;
|
||||
|
||||
const view = params.view === 'assignments' ? 'assignments' : 'clients';
|
||||
const query = (params.q || '').toLowerCase();
|
||||
const status = (params.status || '').toLowerCase();
|
||||
const sort = (params.sort || '').toLowerCase();
|
||||
const view = searchParams_.view === 'assignments' ? 'assignments' : 'clients';
|
||||
const query = (searchParams_.q || '').toLowerCase();
|
||||
const sort = (searchParams_.sort || '').toLowerCase();
|
||||
const sortBy = sort || 'default';
|
||||
|
||||
const queryString = getQueryStringFilteredAssignments(searchParams_)
|
||||
|
||||
const getClient = fetchData('/client')
|
||||
const getAssignment = fetchData('/project-assignment')
|
||||
const getAssignment = fetchData(queryString ? `/project-assignment?${queryString}` : '/project-assignment')
|
||||
|
||||
const [allClients, allAssignments] = await Promise.all([getClient, getAssignment]);
|
||||
|
||||
const filteredClients = getFilteredClients(allClients, query, sortBy)
|
||||
|
||||
const filterAssignments = getFilteredAssignments(allAssignments, query, status, sortBy)
|
||||
const filterAssignments = getFilteredAssignments(allAssignments, query, sortBy)
|
||||
|
||||
return (
|
||||
<div className="flex-1 space-y-8 p-6 sm:p-8 pt-6">
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import fetchData from "@/lib/fetchData";
|
||||
import ProjectAssignmentForm from "../client-detail/[client_id]/project-assignments/ProjectAssignmentForm";
|
||||
|
||||
type Props = {
|
||||
@@ -11,7 +10,7 @@ export default async function CreateAssignmentPage({ searchParams }: Props) {
|
||||
|
||||
return (
|
||||
<div className="max-w-4xl mx-auto p-6 sm:p-8 pt-6 pb-20">
|
||||
<ProjectAssignmentForm isEdit={isEdit ? true : false} assignmentId={assignmentId as any} />
|
||||
<ProjectAssignmentForm isEdit={isEdit === 'true' ? true : false} assignmentId={assignmentId as any} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -8,22 +8,19 @@ export type IEndUser = {
|
||||
};
|
||||
|
||||
export type IClient = {
|
||||
id?: string;
|
||||
name: string;
|
||||
description?: string;
|
||||
end_user_id?: number
|
||||
photo?: string
|
||||
code?: string
|
||||
end_user_code?: string
|
||||
end_user_name?: string
|
||||
end_user_photo?: any
|
||||
status_id?: number
|
||||
status_code?: string
|
||||
status_name?: string
|
||||
total_project?: number
|
||||
total_work_order?: number
|
||||
total_user_assigned?: number
|
||||
users?: IUser[]
|
||||
id: number
|
||||
code: string
|
||||
name: string
|
||||
photo: string
|
||||
description: any
|
||||
status_id: number
|
||||
status_code: string
|
||||
status_name: string
|
||||
total_project: number
|
||||
total_work_order: number
|
||||
total_user_assigned: number
|
||||
users: IUser[]
|
||||
project_status_summary: ProjectStatusSummary[]
|
||||
created_at?: string
|
||||
created_by?: number
|
||||
updated_at?: string
|
||||
@@ -32,13 +29,7 @@ export type IClient = {
|
||||
deleted_by?: number
|
||||
};
|
||||
|
||||
export interface IStatus {
|
||||
id: number
|
||||
name: string
|
||||
created_at: string
|
||||
created_by: any
|
||||
updated_at: any
|
||||
updated_by: any
|
||||
deleted_at: any
|
||||
deleted_by: any
|
||||
}
|
||||
export interface ProjectStatusSummary {
|
||||
total: number
|
||||
project_status: string
|
||||
}
|
||||
@@ -68,4 +68,50 @@ export async function fetchDataWithPost(url: string = '/', payload: any = {}, ca
|
||||
}
|
||||
|
||||
return data.data
|
||||
}
|
||||
|
||||
type PageSearchParams = {
|
||||
[key: string]: string | undefined;
|
||||
}
|
||||
|
||||
export async function getQueryStringFilteredAssignments(searchParams: PageSearchParams) {
|
||||
const apiParams = new URLSearchParams();
|
||||
|
||||
// Helper function to safely map and append values if they exist
|
||||
const appendIfPresent = (nextJsKey: string, backendApiKey: string) => {
|
||||
const value = searchParams[nextJsKey];
|
||||
if (value) {
|
||||
// const stringValue = Array.isArray(value) ? value.join(',') : value;
|
||||
// apiParams.append(backendApiKey, stringValue);
|
||||
|
||||
value.split(',').forEach(v => {
|
||||
if (v.trim()) apiParams.append(backendApiKey, v.trim())
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
// --- 1. Map IDs ---
|
||||
// appendIfPresent('client', 'client_id');
|
||||
// appendIfPresent('end_user', 'end_user_id');
|
||||
appendIfPresent('status', 'project_assignment_status_id');
|
||||
appendIfPresent('users', 'user_id');
|
||||
|
||||
// --- 2. Map Dates (Project) ---
|
||||
appendIfPresent('project_date_from', 'project_start_date');
|
||||
appendIfPresent('project_date_to', 'project_end_date');
|
||||
|
||||
// --- 3. Map Dates (Work Order) ---
|
||||
appendIfPresent('wo_date_from', 'wo_start_date');
|
||||
appendIfPresent('wo_date_to', 'wo_end_date');
|
||||
|
||||
// --- 4. Map Dates (Internal Memo) ---
|
||||
appendIfPresent('im_date_from', 'im_start_date');
|
||||
appendIfPresent('im_date_to', 'im_end_date');
|
||||
|
||||
// Construct the final URL.
|
||||
// If no params exist, apiParams.toString() is empty, so we safely handle the '?'
|
||||
const queryString = apiParams.toString();
|
||||
// const finalUrl = queryString ? `${baseUrl}?${queryString}` : baseUrl;
|
||||
|
||||
return queryString
|
||||
}
|
||||
Reference in New Issue
Block a user