From 19cccbef94caaa6904ee6f11aa1bc2bbdf0d3072 Mon Sep 17 00:00:00 2001 From: Helio Chissini de Castro Date: Tue, 10 Oct 2023 23:06:14 +0200 Subject: [PATCH 1/2] fix(project): Allow render page again Signed-off-by: Helio Chissini de Castro --- src/app/[locale]/projects/page.tsx | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/src/app/[locale]/projects/page.tsx b/src/app/[locale]/projects/page.tsx index 9ab1f2b32..c8bf9d8c5 100644 --- a/src/app/[locale]/projects/page.tsx +++ b/src/app/[locale]/projects/page.tsx @@ -16,15 +16,15 @@ import { Dropdown } from 'react-bootstrap' import { AdvancedSearch, PageButtonHeader, Table } from '@/components/sw360' -interface ProjectType { - name: string - description: string - projectResponsible: string - state: string -} +// interface ProjectType { +// name: string +// description: string +// projectResponsible: string +// state: string +// } function Project() { - const [data, setData] = useState([]) + const [projectData, setProjectData] = useState([]) const t = useTranslations('default') const pagination = { limit: 10 } @@ -143,8 +143,7 @@ function Project() { } useEffect(() => { - const testData: ProjectType = null - setData([testData]) + setProjectData([]) }, []) return ( @@ -156,7 +155,7 @@ function Project() {
- +
@@ -169,12 +168,7 @@ function Project() {
- [data.name, data.description, data.projectResponsible])} - pagination={pagination} - selector={true} - /> +
From ec6f90b4804ff37803cb4b95327b5f7a2cec9dcd Mon Sep 17 00:00:00 2001 From: Helio Chissini de Castro Date: Tue, 10 Oct 2023 23:06:41 +0200 Subject: [PATCH 2/2] chore(messages): Add new messages Signed-off-by: Helio Chissini de Castro --- messages/en.json | 7 ++++++- messages/ja.json | 7 ++++++- messages/pt-BR.json | 7 ++++++- messages/vi.json | 7 ++++++- messages/zh.json | 7 ++++++- 5 files changed, 30 insertions(+), 5 deletions(-) diff --git a/messages/en.json b/messages/en.json index 314a9a41c..4544df2d5 100644 --- a/messages/en.json +++ b/messages/en.json @@ -429,8 +429,11 @@ "New Components": "New Components", "New Release": "New Release", "Name of the component": "Name of the component", + "No subscriptions available": "No subscriptions available.", "NONE": "NONE", "NAME_COMPONENT": "Name of the component", + "NoModerationRequests": "You do not have any open moderation requests.", + "NoProjectsFound": "There are no projects found with your selection.", "Obligations": "Obligations", "OPEN": "Open", "Open": "Open", @@ -698,6 +701,8 @@ "Your project is created": "Your project is created", "My Subscriptions": "My Subscriptions", "Recent Components": "Recent Components", - "Recent Releases": "Recent Releases" + "Recent Releases": "Recent Releases", + "NotOwnComponent": "You do not own any components.", + "NoTasksAssigned": "There are no tasks assigned to you." } } diff --git a/messages/ja.json b/messages/ja.json index 94971ff9e..11e27b081 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -690,6 +690,11 @@ "There are some errors while creating project": "NOT TRANSLATED", "My Subscriptions": "私の定期購読", "Recent Components": "最近のコンポーネント", - "Recent Releases": "最近のリリース" + "Recent Releases": "最近のリリース", + "NoModerationRequests": "オープンなモデレーションリクエストはありません。", + "NoProjectsFound": "選択したプロジェクトは見つかりませんでした。", + "No subscriptions available": "利用できるサブスクリプションはありません。", + "NotOwnComponent": "あなたはコンポーネントを所有していません。", + "NoTasksAssigned": "あなたに割り当てられたタスクはありません。" } } diff --git a/messages/pt-BR.json b/messages/pt-BR.json index 03fe44d0b..7626c1c0c 100644 --- a/messages/pt-BR.json +++ b/messages/pt-BR.json @@ -697,6 +697,11 @@ "Your project is created": "Seu projeto foi criado", "My Subscriptions": "Minhas assinaturas", "Recent Components": "Componentes recentes", - "Recent Releases": "Lançamentos recentes" + "Recent Releases": "Lançamentos recentes", + "NoModerationRequests": "Você não tem nenhuma solicitação de moderação aberta.", + "NoProjectsFound": "Não foram encontrados projetos com sua seleção.", + "No subscriptions available": "Nenhuma assinatura disponível.", + "NotOwnComponent": "Você não possui nenhum componente.", + "NoTasksAssigned": "Não há tarefas atribuídas a você." } } diff --git a/messages/vi.json b/messages/vi.json index eb666d980..7e57ec7f3 100644 --- a/messages/vi.json +++ b/messages/vi.json @@ -689,6 +689,11 @@ "There are some errors while creating project": "NOT TRANSLATED", "My Subscriptions": "Đăng ký của tôi", "Recent Components": "Các thành phần gần đây", - "Recent Releases": "Các bản phát hành gần đây" + "Recent Releases": "Các bản phát hành gần đây", + "NoModerationRequests": "Bạn không có bất kỳ yêu cầu kiểm duyệt mở nào.", + "NoProjectsFound": "Không có dự án nào được tìm thấy với lựa chọn của bạn.", + "No subscriptions available": "Không có đăng ký có sẵn.", + "NotOwnComponent": "Bạn không sở hữu bất kỳ thành phần nào.", + "NoTasksAssigned": "Không có nhiệm vụ nào được giao cho bạn." } } diff --git a/messages/zh.json b/messages/zh.json index 9b53b1b35..b26c97b11 100644 --- a/messages/zh.json +++ b/messages/zh.json @@ -685,6 +685,11 @@ "There are some errors while creating project": "NOT TRANSLATED", "My Subscriptions": "我的订阅", "Recent Components": "最近的组件", - "Recent Releases": "最近发布" + "Recent Releases": "最近发布", + "NoModerationRequests": "您没有任何开放的审核请求。", + "NoProjectsFound": "没有找到您选择的项目。", + "No subscriptions available": "没有可用的订阅。", + "NotOwnComponent": "您不拥有任何组件。", + "NoTasksAssigned": "没有任务分配给您。" } }