Skip to content

Commit 4e1a2bd

Browse files
BramSuurdjeMickLeskhavardthom
authored
Add JSON Generator page for easier configuring of new metadata (#230)
* 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 --------- Co-authored-by: CanbiZ <[email protected]> Co-authored-by: Håvard Gjøby Thom <[email protected]>
1 parent 72bee44 commit 4e1a2bd

File tree

15 files changed

+1354
-5
lines changed

15 files changed

+1354
-5
lines changed

frontend/package-lock.json

Lines changed: 179 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,20 @@
2323
"@radix-ui/react-dialog": "^1.0.5",
2424
"@radix-ui/react-dropdown-menu": "^2.0.6",
2525
"@radix-ui/react-icons": "^1.3.1",
26+
"@radix-ui/react-label": "^2.1.0",
2627
"@radix-ui/react-navigation-menu": "^1.1.4",
28+
"@radix-ui/react-popover": "^1.1.2",
29+
"@radix-ui/react-select": "^2.1.2",
2730
"@radix-ui/react-separator": "^1.1.0",
2831
"@radix-ui/react-slot": "^1.1.0",
32+
"@radix-ui/react-switch": "^1.1.1",
2933
"@radix-ui/react-tabs": "^1.1.0",
3034
"@radix-ui/react-tooltip": "^1.1.2",
3135
"@vercel/analytics": "^1.2.2",
3236
"class-variance-authority": "^0.7.0",
3337
"clsx": "^2.1.1",
3438
"cmdk": "^1.0.0",
39+
"date-fns": "^4.1.0",
3540
"framer-motion": "^11.11.11",
3641
"fuse.js": "^7.0.0",
3742
"lucide-react": "^0.453.0",
@@ -43,13 +48,15 @@
4348
"prettier-plugin-organize-imports": "^4.1.0",
4449
"react": "19.0.0-rc-02c0e824-20241028",
4550
"react-code-blocks": "^0.1.6",
51+
"react-day-picker": "8.10.1",
4652
"react-dom": "19.0.0-rc-02c0e824-20241028",
4753
"react-icons": "^5.1.0",
4854
"react-simple-typewriter": "^5.0.1",
4955
"sharp": "^0.33.5",
5056
"simple-icons": "^13.5.0",
5157
"sonner": "^1.5.0",
52-
"tailwind-merge": "^2.3.0"
58+
"tailwind-merge": "^2.3.0",
59+
"zod": "^3.23.8"
5360
},
5461
"devDependencies": {
5562
"@types/node": "^22",

0 commit comments

Comments
 (0)