Commit 10fe784
Optimize website json-editor page and components (#265)
* Update mariadb.json
* Update vaultwarden.json
* Update vaultwarden.json
* Update keycloak.json
* Update json/keycloak.json
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update mariadb.json
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Add canonical link to layout for improved SEO and page indexing
* Fix image source fallback for script logos to use a consistent relative path
* Fix image source for script logos across components to consistently use the "/ProxmoxVE/logo.png" path
* Update image source for script logos to use basePath for consistent paths across all components
* Fix image source for script logos to ensure leading slash is consistent for all components' paths
* Add JSON generator component with validation and UI elements for managing scripts, categories, and installation methods
* Add calendar and label components; enhance JSON generator with date selection and script path updates for installation methods
* Enhance Alerts component with dynamic colored notes using AlertColors from config for better visibility and consistency
* Remove MultiSelect component
* Update JSON generator: streamline install methods, enhance note type selection, and refine button behavior for better UX
* Refactor AlertColors: unify warning and danger styles for consistency and improved visual hierarchy in alerts
* Enhance JSONGenerator: improve SelectItem layout with color indicators for better visual representation of alert types
* Refactor JSON schema definitions in JSONGenerator: separate InstallMethod and Note schemas for better structure and readability
* Fix JSONGenerator: streamline SelectItem markup and enhance JSON display layout for improved readability and user experience
* Refactor JSON schema handling: move schema definitions to separate file
* Enhance error handling in JSONGenerator: display Zod validation errors on user input for better feedback and debugging
* Export InstallMethodSchema and integrate into JSONGenerator for better validation of install method data input
* Add Categories and Note components to JSONGenerator for better organization and modularity in the JSON editing interface
* Remove unused imports
* Add JSON Editor route to sitemap for improved SEO and navigation
* Refactor JSON Editor components to improve performance with memoization and streamline state updates with useCallback
---------
Co-authored-by: CanbiZ <[email protected]>
Co-authored-by: Håvard Gjøby Thom <[email protected]>1 parent f6cc26a commit 10fe784
File tree
4 files changed
+271
-242
lines changed- frontend/src/app/json-editor
- _components
4 files changed
+271
-242
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
25 | 61 | | |
26 | 62 | | |
27 | 63 | | |
| |||
40 | 76 | | |
41 | 77 | | |
42 | 78 | | |
| 79 | + | |
| 80 | + | |
43 | 81 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
100 | 114 | | |
101 | | - | |
| 115 | + | |
102 | 116 | | |
103 | 117 | | |
| 118 | + | |
| 119 | + | |
Lines changed: 49 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
| 48 | + | |
48 | 49 | | |
49 | | - | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
| 86 | + | |
86 | 87 | | |
87 | | - | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
93 | 115 | | |
94 | 116 | | |
95 | 117 | | |
| |||
109 | 131 | | |
110 | 132 | | |
111 | 133 | | |
112 | | - | |
| 134 | + | |
113 | 135 | | |
114 | 136 | | |
115 | | - | |
116 | | - | |
| 137 | + | |
| 138 | + | |
117 | 139 | | |
118 | 140 | | |
119 | 141 | | |
120 | 142 | | |
121 | 143 | | |
122 | 144 | | |
123 | | - | |
| 145 | + | |
124 | 146 | | |
125 | 147 | | |
126 | | - | |
127 | | - | |
| 148 | + | |
| 149 | + | |
128 | 150 | | |
129 | 151 | | |
130 | 152 | | |
131 | 153 | | |
132 | 154 | | |
133 | 155 | | |
134 | | - | |
135 | | - | |
| 156 | + | |
| 157 | + | |
136 | 158 | | |
137 | | - | |
138 | | - | |
| 159 | + | |
| 160 | + | |
139 | 161 | | |
140 | 162 | | |
141 | 163 | | |
| |||
144 | 166 | | |
145 | 167 | | |
146 | 168 | | |
147 | | - | |
| 169 | + | |
148 | 170 | | |
149 | | - | |
150 | | - | |
| 171 | + | |
| 172 | + | |
151 | 173 | | |
152 | 174 | | |
153 | 175 | | |
154 | 176 | | |
155 | 177 | | |
156 | 178 | | |
157 | | - | |
| 179 | + | |
158 | 180 | | |
159 | 181 | | |
160 | | - | |
161 | | - | |
| 182 | + | |
| 183 | + | |
162 | 184 | | |
163 | 185 | | |
164 | 186 | | |
| |||
168 | 190 | | |
169 | 191 | | |
170 | 192 | | |
171 | | - | |
| 193 | + | |
172 | 194 | | |
173 | 195 | | |
174 | 196 | | |
| |||
178 | 200 | | |
179 | 201 | | |
180 | 202 | | |
181 | | - | |
| 203 | + | |
182 | 204 | | |
183 | 205 | | |
184 | 206 | | |
| |||
187 | 209 | | |
188 | 210 | | |
189 | 211 | | |
| 212 | + | |
| 213 | + | |
0 commit comments