reza added something

temp
Reza_ashrafi 3 years ago
parent f004bc9074
commit e6e365d6df
  1. 162
      src/views/BugsAndProblems/data.js
  2. 37
      src/views/BugsAndProblems/index.js
  3. 3
      src/views/Products/index.js

@ -1,164 +1,122 @@
const list = [ const list = [
{ {
title: "r", title: "دسکتاپ - بنر بالای سایت",
description: "r", description: "گرفتن لیست واقعی بنرها از دیتابیس",
status: "r", status: 0,
developer: "r",
},
{
title: "",
description: "",
status: null,
developer: "",
},
{
title: "",
description: "",
status: null,
developer: "",
},
{
title: "",
description: "",
status: null,
developer: "",
},
{
title: "",
description: "",
status: null,
developer: "",
},
{
title: "",
description: "",
status: null,
developer: "",
},
{
title: "",
description: "",
status: null,
developer: "",
},
{
title: "",
description: "",
status: null,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - اسلایدر",
description: "", description: "اضافه کردن دکمه های اسلایدر",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - منوی بالای سایت",
description: "", description: "فعال سازی جستجو",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - منوی بالای سایت",
description: "", description: "تعداد محصولات داخل سبد خرید نمایش داده شود",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - صفحه محصولات ",
description: "", description: "فیلتر محصولات کاملا درست شود.",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - صفحه محصول",
description: "", description: "خطای اجرای منطق داریم",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - صفحه محصول",
description: "", description: "اسلایدر عکس محصول کار نمیکند و به سرور وصل نیست.",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - صفحه محصول",
description: "", description: "دکمه مشاهده نمونه کار نمیکند.",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - صفحه محصول",
description: "", description: "دکمه مشاهده دوره ویدیویی محصول کار نمیکند.",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - صفحه محصول",
description: "", description: "قسمت ثبت رضایت مشتری توسط ستاره به سرور وصل نیست",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - صفحه محصول",
description: "", description: "اصلاعات منوی سمت چپ واقعی نیست و همچنین دکمه اضافه کردن به سبد خرید کار نمیکند.",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - صفحه محصول",
description: "", description: "تب مشخصات اطلاعاتش واقعی نیست.",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - صفحه محصول",
description: "", description: "تب پرسش و پاسخ و محتوایی ندارد.",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - صفحه محصول",
description: "", description: "امکان ثبت نظر برای محصول فراهم نیست.",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - صفحه ویدئو",
description: "", description: "قسمت نمایش ویدئو به api وصل نیست.",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - صفحه ویدئو",
description: "", description: "اسلایدر کار نمیکند.",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - صفحه ویدئو",
description: "", description: "تب مشخصات و پرسش و پاسخ محتوایی ندارد.",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - صفحه ویدئو",
description: "", description: "تب سرفصل ها مرتب نیست.",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - صفحه ویدئو",
description: "", description: "اضافه کردن به سبد خرید کار نمیکند.",
status: null, status: 0,
developer: "", developer: "",
}, },
{ {
title: "", title: "دسکتاپ - صفحه نمایش ویدئو",
description: "", description: "دیزاین این صفحه مرتب نیست کاملا.",
status: null, status: 0,
developer: "", developer: "",
}, },
]; ];

@ -1,14 +1,17 @@
import React from "react"; import React from "react";
import list from "./data"; import list from "./data";
const colors = ['bg-white', 'bg-blue-200', 'bg-green-200', 'bg-red-200'];
const statuses = ['کاری انجام نشده', 'در حال انجام', 'انجام شد', 'به مشکل خوردم'];
function Bugs({}) { function Bugs({}) {
return ( return (
<ul className="flex flex-col w-4/5 gap-4 mx-auto h-screen"> <ul className="flex flex-col w-4/5 gap-4 mx-auto h-screen">
<div className="w-full flex justify-center mx-auto h-full"> <div className="w-full flex justify-center mx-auto">
<div className="flex flex-col w-full h-full"> <div className="flex flex-col w-full">
<div className="w-full h-full"> <div className="w-full">
<div className="w-full h-full"> <div className="w-full ">
<table className="w-full h-full bg-green-300"> <table className="w-full">
<thead className="bg-gray-500"> <thead className="bg-gray-500">
<tr> <tr>
<th className="px-6 py-2 text-tiny text-white">Title</th> <th className="px-6 py-2 text-tiny text-white">Title</th>
@ -27,28 +30,24 @@ function Bugs({}) {
> >
{list.map((bug, index) => ( {list.map((bug, index) => (
<tr <tr
className={`whitespace-nowrap p-2 w-full ${ className={`whitespace-nowrap p-2 w-full border border-solid border-gray-300 ${
bug?.status colors[bug.status]
? "bg-green-200"
: bug.status === null
? "bg-white"
: "bg-red-200"
}`} }`}
key={bug.title} key={bug.title}
> >
<td className="px-6 py-4 text-center"> <td className="px-6 py-4 text-center border border-solid border-gray-300">
<div className="text-lg text-gray-900">{bug.title}</div> <div className="text-sm text-gray-900">{bug.title}</div>
</td> </td>
<td className="px-6 py-4 text-center"> <td className="px-6 py-4 text-center border border-solid border-gray-300">
<div className="text-lg text-gray-500"> <div className="text-sm text-gray-900">
{bug?.description} {bug?.description}
</div> </div>
</td> </td>
<td className="px-6 py-4 text-lg text-gray-500 text-center"> <td className="px-6 py-4 text-sm text-gray-900 text-center border border-solid border-gray-300">
{bug?.status} {statuses[bug.status]}
</td> </td>
<td className="px-6 py-4 text-center"> <td className="px-6 py-4 text-center border border-solid border-gray-300">
<div className="text-lg text-gray-900"> <div className="text-sm text-gray-900">
{bug?.developer} {bug?.developer}
</div> </div>
</td> </td>

@ -164,8 +164,7 @@ export const Products = ({
className={`w-full flex flex-row gap-10 px-5 overflow-y-hidden mt-3 justify-center`} className={`w-full flex flex-row gap-10 px-5 overflow-y-hidden mt-3 justify-center`}
// style={{ height: 1500 }} // style={{ height: 1500 }}
> >
<div className="w-11/12 flex">
<div className="w-4/5 flex">
<Sidebar onChange={onChange}/> <Sidebar onChange={onChange}/>
<Main filter={filter}/> <Main filter={filter}/>
</div> </div>

Loading…
Cancel
Save