Commit Graph

48 Commits

Author SHA1 Message Date
Bram Suurd
e5c7df88a6 Update src/lib/data.ts with necessary changes.
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-06 21:53:23 +01:00
Bram Suurd
ada264ecb8
Update frontend/src/app/scripts/_components/ScriptItems/DefaultPassword.tsx
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-06 21:48:41 +01:00
Bram Suurd
e8ff2858d6
Update frontend/src/app/api/categories/route.ts
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-06 21:47:07 +01:00
Bram Suurd
16657ec891
Update frontend/src/app/api/categories/route.ts
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-06 21:47:02 +01:00
Bram Suurd
9c55665ea9
Update frontend/src/components/CommandMenu.tsx
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-06 21:46:56 +01:00
Bram Suurd
8b59207a9b
Update frontend/src/components/ui/theme-toggle.tsx
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-06 21:46:50 +01:00
Bram Suurd
dd50c048ab
Update frontend/src/components/CommandMenu.tsx
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-06 21:46:44 +01:00
Bram Suurd
9eeba5220d
Update frontend/src/app/api/categories/route.ts
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-06 21:46:37 +01:00
Bram Suurd
bdaea5ae79
Update frontend/src/app/api/categories/route.ts
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-06 21:46:31 +01:00
Bram Suurd
3b59f5b0ab
Update frontend/src/app/api/categories/route.ts
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-06 21:46:21 +01:00
Bram Suurd
1c4321c466 use cleaner basePath variable around codebase for easier management 2024-11-06 21:45:09 +01:00
Bram Suurd
49527dde19 Refactor layout to utilize basePath for metadata base URL and image links for better configurability 2024-11-06 21:37:45 +01:00
Bram Suurd
e67b1c5b11 Update sitemap to use a fixed domain for the generated sitemap instead of deriving from headers 2024-11-06 21:37:28 +01:00
Bram Suurd
d3007c1123 Remove obsolete environment files for analytics and PocketBase 2024-11-06 21:32:33 +01:00
Bram Suurd
d7accced7f Add analytics configuration and basePath to siteConfig 2024-11-06 21:32:01 +01:00
Bram Suurd
70ae6ae8d1 Add category sorting and fetching logic in data.ts 2024-11-06 21:31:52 +01:00
Bram Suurd
d9a6b8bdd3 Remove basePath from Next.js config to simplify configuration and avoid potential issues with path resolution 2024-11-06 21:31:39 +01:00
Bram Suurd
d59af116b9 Refactor layout to use centralized analytics configuration 2024-11-06 21:23:23 +01:00
Bram Suurd
ec12789b15 Refactor to replace PocketBase with a new data module across components 2024-11-06 21:23:10 +01:00
Bram Suurd
9b20f49bfe Refactor sitemap generation to use centralized basePath from config, enhancing adaptability for URL management 2024-11-06 21:22:54 +01:00
Bram Suurd
b6ab3dd37d Refactor site configuration to utilize centralized settings for analytics and base path; replace PocketBase imports with new data module 2024-11-06 21:22:44 +01:00
Bram Suurd
860186e4fa Refactor Next.js config to use dynamic basePath and update sitemap URLs for improved adaptability and host configuration 2024-11-06 21:22:33 +01:00
Bram Suurd
07e46207b4 Add conversion utility to display RAM in GB for better readability in DefaultSettings component 2024-11-06 20:15:08 +01:00
Bram Suurd
96bc5ade61 Enhance ScriptItem component to display correct type naming alongside script name for better clarity in the UI 2024-11-06 20:15:01 +01:00
Bram Suurd
974b31bfb3 Add most popular scripts feature and update script rendering logic in ScriptInfoBlocks component 2024-11-06 20:08:25 +01:00
Bram Suurd
36b0691ad9 Fix install command generation to handle optional script parameter and update copy button logic for improved functionality 2024-11-06 19:52:04 +01:00
Bram Suurd
db82fe8ec6 Check default settings availability in DefaultSettings component and handle undefined values more gracefully in rendering 2024-11-06 19:51:52 +01:00
Bram Suurd
994e958df0 Refactor source URL generation in Buttons component to enhance clarity and streamline the installation script logic 2024-11-06 19:51:28 +01:00
Bram Suurd
440d3b6aef Use formattedBadge in ScriptAccordion and CommandMenu for consistent badge rendering across script types 2024-11-06 19:15:51 +01:00
Bram Suurd
c700d04422 Refactor category fetching in ScriptContent and CommandMenu to utilize centralized fetchCategories for improved maintainability 2024-11-06 19:01:53 +01:00
Bram Suurd
c9b639a636 Remove unnecessary console log for file name in fetchAllMetaDataFiles to clean up code 2024-11-06 18:59:13 +01:00
Bram Suurd
62ef9ec88c Fix animation duration in globals.css to ensure proper view transition functionality across the application 2024-11-06 18:01:05 +01:00
Bram Suurd
2261790fd1 Refactor CommandMenu component to utilize updated Category and Script types, simplifying the sorting logic and enhancing clarity 2024-11-06 17:32:16 +01:00
Bram Suurd
5a633a145a Refactor InterFaces component to use updated Script type and streamline interface/port handling for better clarity 2024-11-06 17:29:10 +01:00
Bram Suurd
76cf85293c Refactor all components to use data from new API 2024-11-06 17:25:02 +01:00
Bram Suurd
1ef3c5a0eb Fetch categories and scripts from external sources, updating GET endpoint to aggregate data. Adjust type definitions for Script and Category 2024-11-06 17:24:34 +01:00
Bram Suurd
26c29f5955 Reduce animation duration for view transition effect to improve responsiveness 2024-11-06 15:12:15 +01:00
Bram Suurd
a1cce93f8c increase duration on theme switch 2024-11-06 01:20:36 +01:00
Bram Suurd
5abb3ccf9c Remove unused metadata files from testing 2024-11-06 01:17:33 +01:00
Bram Suurd
249946bbf0 Add new animation for switching themes. 2024-11-06 01:05:24 +01:00
Bram Suurd
2f9f51ec7c Fix API path in category fetch calls by removing leading slash 2024-11-05 00:20:10 +01:00
Bram Suurd
1a412bce38 Update NEXT_PUBLIC_BUILD_TIME type to string 2024-11-05 00:17:17 +01:00
Bram Suurd
1795dd1a80 Remove revalidate from categories route to maintain static fetching behavior without forced updates on each build 2024-11-05 00:15:19 +01:00
Bram Suurd
63aa8e2aa8 Add NEXT_PUBLIC_BUILD_TIME to config and append timestamp to API requests for fresh category data retrieval 2024-11-05 00:14:19 +01:00
Bram Suurd
4ca45042cc Update basePath in next.config.mjs for ProxmoxVE deployment configuration 2024-11-05 00:08:58 +01:00
Bram Suurd
a4a373e890 Set revalidate to 0 in categories route to ensure fresh data fetch on each build 2024-11-05 00:06:35 +01:00
Bram Suurd
84675838de Refactor import paths for TextCopyBlock component in Alerts and Description files 2024-11-04 23:57:43 +01:00
Bram Suurd
56837d7dcd merge frontend website into scripts repo 2024-11-04 23:55:08 +01:00