From a809adfcab406695e45583493defacd33e3f4e7b Mon Sep 17 00:00:00 2001 From: Teya Veselinova Date: Thu, 14 Nov 2024 14:08:21 +0200 Subject: [PATCH] chore(html): simplify Gantt templates --- .../html/src/gantt/templates/gantt-normal.tsx | 540 +---------------- .../gantt/templates/gantt-row-reordering.tsx | 558 +----------------- 2 files changed, 4 insertions(+), 1094 deletions(-) diff --git a/packages/html/src/gantt/templates/gantt-normal.tsx b/packages/html/src/gantt/templates/gantt-normal.tsx index 84894936bb..19334543ff 100644 --- a/packages/html/src/gantt/templates/gantt-normal.tsx +++ b/packages/html/src/gantt/templates/gantt-normal.tsx @@ -8,7 +8,7 @@ import { Button } from "../../button"; import { Icon } from "../../icon"; -export const GanttNormal = ({ flexBasis = "30%", gridContentHeight = "530px", tablesWidth = "4200px", tablesHeight = "828px", currentTimeLeftOffset = "243px", ganttDependencies, menu, ...other }: any) => ( +export const GanttNormal = ({ flexBasis = "30%", gridContentHeight = "180px", tablesWidth = "675px", tablesHeight = "828px", currentTimeLeftOffset = "243px", ganttDependencies, menu, ...other }: any) => ( @@ -106,162 +106,6 @@ export const GanttNormal = ({ flexBasis = "30%", gridContentHeight = "530px", ta Market Research - - 39 - - - - - Functional and Technical Specification - - - - 12 - - - - Design - - - - 22 - - - - - UI Design - - - - 23 - - - - - HTML Prototype - - - - 13 - - - - Implementation - - - - 24 - - - - - Prototype - - - - 26 - - - - - Architecture - - - - 27 - - - - - Data Layer - - - - 29 - - - - - UI and Interaction - - - - 28 - - - - - Unit Tests - - - - 14 - - - - Testing - - - - 32 - - - - - Integration Testing - - - - 33 - - - - - Load Testing - - - - 30 - - - - Documentation - - - - 34 - - - - - Structure - - - - 35 - - - - - Articles - - - - 31 - - - - Demos - - - - 17 - - - - Release - - @@ -275,20 +119,10 @@ export const GanttNormal = ({ flexBasis = "30%", gridContentHeight = "530px", ta - - - - - Sun 6/01 - Sat 6/07 - Sun 6/08 - Sat 6/14 - Sun 6/15 - Sat 6/21 - Sun 6/22 - Sat 6/28 - Sun 6/29 - Sat 7/05 - Sun 7/06 - Sat 7/12 Sun 6/01 @@ -298,41 +132,6 @@ export const GanttNormal = ({ flexBasis = "30%", gridContentHeight = "530px", ta Thu 6/05 Fri 6/06 Sat 6/07 - Sun 6/08 - Mon 6/09 - Tue 6/10 - Wed 6/11 - Thu 6/12 - Fri 6/13 - Sat 6/14 - Sun 6/15 - Mon 6/16 - Tue 6/17 - Wed 6/18 - Thu 6/19 - Fri 6/20 - Sat 6/21 - Sun 6/22 - Mon 6/23 - Tue 6/24 - Wed 6/25 - Thu 6/26 - Fri 6/27 - Sat 6/28 - Sun 6/29 - Mon 6/30 - Tue 7/01 - Wed 7/02 - Thu 7/03 - Fri 7/04 - Sat 7/05 - Sun 7/06 - Mon 7/07 - Tue 7/08 - Wed 7/09 - Thu 7/10 - Fri 7/11 - Sat 7/12 @@ -350,55 +149,17 @@ export const GanttNormal = ({ flexBasis = "30%", gridContentHeight = "530px", ta - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -468,236 +229,6 @@ export const GanttNormal = ({ flexBasis = "30%", gridContentHeight = "530px", ta - - - - -
- -
- - -
-
-
-
- - - - -
-
-
-
- - -
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
-
-
-
- - -
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
-
-
-
- - -
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
-
-
-
- - -
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
-
-
-
- - -
-
-
- - - - - - - - - @@ -708,82 +239,15 @@ export const GanttNormal = ({ flexBasis = "30%", gridContentHeight = "530px", ta - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + }
diff --git a/packages/html/src/gantt/templates/gantt-row-reordering.tsx b/packages/html/src/gantt/templates/gantt-row-reordering.tsx index 67b3136ca3..4b3b612acd 100644 --- a/packages/html/src/gantt/templates/gantt-row-reordering.tsx +++ b/packages/html/src/gantt/templates/gantt-row-reordering.tsx @@ -8,7 +8,7 @@ import { Button } from "../../button"; import { Icon } from "../../icon"; -export const GanttRowReordering = ({ flexBasis = "30%", gridContentHeight = "530px", tablesWidth = "4200px", tablesHeight = "828px", currentTimeLeftOffset = "243px", ganttDependencies, menu, ...other }: any) => ( +export const GanttRowReordering = ({ flexBasis = "30%", gridContentHeight = "180px", tablesWidth = "675px", tablesHeight = "828px", currentTimeLeftOffset = "243px", ganttDependencies, menu, ...other }: any) => ( @@ -114,180 +114,6 @@ export const GanttRowReordering = ({ flexBasis = "30%", gridContentHeight = "530 Market Research - - - 39 - - - - - Functional and Technical Specification - - - - - 12 - - - - Design - - - - - 22 - - - - - UI Design - - - - - 23 - - - - - HTML Prototype - - - - - 13 - - - - Implementation - - - - - 24 - - - - - Prototype - - - - - 26 - - - - - Architecture - - - - - 27 - - - - - Data Layer - - - - - 29 - - - - - UI and Interaction - - - - - 28 - - - - - Unit Tests - - - - - 14 - - - - Testing - - - - - 32 - - - - - Integration Testing - - - - - 33 - - - - - Load Testing - - - - - 30 - - - - Documentation - - - - - 34 - - - - - Structure - - - - - 35 - - - - - Articles - - - - - 31 - - - - Demos - - - - - 17 - - - - Release - - @@ -301,20 +127,10 @@ export const GanttRowReordering = ({ flexBasis = "30%", gridContentHeight = "530 - - - - - Sun 6/01 - Sat 6/07 - Sun 6/08 - Sat 6/14 - Sun 6/15 - Sat 6/21 - Sun 6/22 - Sat 6/28 - Sun 6/29 - Sat 7/05 - Sun 7/06 - Sat 7/12 Sun 6/01 @@ -324,41 +140,6 @@ export const GanttRowReordering = ({ flexBasis = "30%", gridContentHeight = "530 Thu 6/05 Fri 6/06 Sat 6/07 - Sun 6/08 - Mon 6/09 - Tue 6/10 - Wed 6/11 - Thu 6/12 - Fri 6/13 - Sat 6/14 - Sun 6/15 - Mon 6/16 - Tue 6/17 - Wed 6/18 - Thu 6/19 - Fri 6/20 - Sat 6/21 - Sun 6/22 - Mon 6/23 - Tue 6/24 - Wed 6/25 - Thu 6/26 - Fri 6/27 - Sat 6/28 - Sun 6/29 - Mon 6/30 - Tue 7/01 - Wed 7/02 - Thu 7/03 - Fri 7/04 - Sat 7/05 - Sun 7/06 - Mon 7/07 - Tue 7/08 - Wed 7/09 - Thu 7/10 - Fri 7/11 - Sat 7/12 @@ -376,55 +157,17 @@ export const GanttRowReordering = ({ flexBasis = "30%", gridContentHeight = "530 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -494,236 +237,6 @@ export const GanttRowReordering = ({ flexBasis = "30%", gridContentHeight = "530 - - - - -
- -
- - -
-
-
-
- - - - -
-
-
-
- - -
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
-
-
-
- - -
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
-
-
-
- - -
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
-
-
-
- - -
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
- -
- - -
-
-
-
- - - - -
-
-
-
- - -
-
-
- - - - - - - - - @@ -734,82 +247,15 @@ export const GanttRowReordering = ({ flexBasis = "30%", gridContentHeight = "530 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + }