@zohodesk/components 1.2.26 → 1.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,101 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <link rel="preconnect" href="https://fonts.googleapis.com">
6
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
7
+ <link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
8
+
9
+ <title>Unvalidated Files</title>
10
+ <style>
11
+ body {
12
+ margin: 0;
13
+ padding: 0;
14
+ font-family: 'Asap Condensed', sans-serif;
15
+ }
16
+
17
+ table {
18
+ width: 100%;
19
+ border-collapse: collapse;
20
+ }
21
+
22
+ th {
23
+ position: sticky;
24
+ top: 0;
25
+ background-color: #001C30;
26
+ color: #F5F5F5;
27
+ }
28
+
29
+ th,
30
+ td {
31
+ border: 1px solid black;
32
+ padding: 8px;
33
+ }
34
+
35
+ tr:nth-child(even) {
36
+ background-color: #EDEEF7;
37
+ }
38
+
39
+ .table-container {
40
+ margin-bottom: 20px;
41
+ }
42
+ </style>
43
+ </head>
44
+
45
+ <body>
46
+ <div id="table-container"></div>
47
+ <script>
48
+ const jsonData = {}
49
+ const tableContainer = document.getElementById('table-container');
50
+ const table = document.createElement('table');
51
+ const thead = document.createElement('thead');
52
+ const tbody = document.createElement('tbody');
53
+
54
+ const headerRow = document.createElement('tr');
55
+ const headers = ['No', 'Component', 'FilePath'];
56
+ headers.forEach(header => {
57
+ const th = document.createElement('th');
58
+ th.textContent = header;
59
+ headerRow.appendChild(th);
60
+ });
61
+ thead.appendChild(headerRow);
62
+ table.appendChild(thead);
63
+ var componentCount = 1;
64
+ function generateRows(component, data, innerComponent = '') {
65
+
66
+ const filePath = data.filePath ? data.filePath : '';
67
+
68
+ const row = document.createElement('tr');
69
+ const numbers = document.createElement('td');
70
+ const componentCell = document.createElement('td');
71
+ const filePathCell = document.createElement('td');
72
+
73
+ numbers.textContent = componentCount;
74
+ componentCell.textContent = component;
75
+ filePathCell.textContent = filePath;
76
+
77
+ row.appendChild(numbers);
78
+ row.appendChild(componentCell);
79
+ row.appendChild(filePathCell);
80
+ tbody.appendChild(row);
81
+
82
+ if (data.innerComponent) {
83
+ Object.entries(data.innerComponent).forEach(([innerComp, innerData]) => {
84
+ generateRows(innerComp, innerData, component);
85
+ });
86
+ }
87
+ componentCount++;
88
+ }
89
+
90
+ Object.entries(jsonData).forEach(([component, data]) => {
91
+ generateRows(component, data);
92
+ });
93
+
94
+ table.appendChild(tbody);
95
+ tableContainer.appendChild(table);
96
+
97
+ generateTable(jsonData);
98
+ </script>
99
+ </body>
100
+
101
+ </html>