Commit 93fd495
Switch from Pocketbase data retrieval to JSON (#100)
* Add new animation for switching themes.
* Remove unused metadata files from testing
* increase duration on theme switch
* Reduce animation duration for view transition effect to improve responsiveness
* Fetch categories and scripts from external sources, updating `GET` endpoint to aggregate data. Adjust type definitions for Script and Category
* Refactor all components to use data from new API
* Refactor `InterFaces` component to use updated `Script` type and streamline interface/port handling for better clarity
* Refactor `CommandMenu` component to utilize updated `Category` and `Script` types, simplifying the sorting logic and enhancing clarity
* Fix animation duration in `globals.css` to ensure proper view transition functionality across the application
* Remove unnecessary console log for file name in `fetchAllMetaDataFiles` to clean up code
* Refactor category fetching in `ScriptContent` and `CommandMenu` to utilize centralized `fetchCategories` for improved maintainability
* Use `formattedBadge` in `ScriptAccordion` and `CommandMenu` for consistent badge rendering across script types
* Refactor source URL generation in `Buttons` component to enhance clarity and streamline the installation script logic
* Check default settings availability in `DefaultSettings` component and handle undefined values more gracefully in rendering
* Fix install command generation to handle optional script parameter and update copy button logic for improved functionality
* Add most popular scripts feature and update script rendering logic in `ScriptInfoBlocks` component
* Enhance `ScriptItem` component to display correct type naming alongside script name for better clarity in the UI
* Add conversion utility to display RAM in GB for better readability in `DefaultSettings` component
* Refactor Next.js config to use dynamic basePath and update sitemap URLs for improved adaptability and host configuration
* Refactor site configuration to utilize centralized settings for analytics and base path; replace PocketBase imports with new data module
* Refactor sitemap generation to use centralized basePath from config, enhancing adaptability for URL management
* Refactor to replace PocketBase with a new data module across components
* Refactor layout to use centralized analytics configuration
* Update deployment workflow to include JSON files for GitHub Pages publishing
* Remove caching step from GitHub Pages deploy workflow to avoid caching
* Remove basePath from Next.js config to simplify configuration and avoid potential issues with path resolution
* Add category sorting and fetching logic in data.ts
* Add analytics configuration and basePath to siteConfig
* Remove obsolete environment files for analytics and PocketBase
* Update sitemap to use a fixed domain for the generated sitemap instead of deriving from headers
* Refactor layout to utilize basePath for metadata base URL and image links for better configurability
* use cleaner `basePath` variable around codebase for easier management
* Update frontend/src/app/api/categories/route.ts
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update frontend/src/app/api/categories/route.ts
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update frontend/src/app/api/categories/route.ts
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update frontend/src/components/CommandMenu.tsx
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update frontend/src/components/ui/theme-toggle.tsx
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update frontend/src/components/CommandMenu.tsx
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update frontend/src/app/api/categories/route.ts
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update frontend/src/app/api/categories/route.ts
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update frontend/src/app/scripts/_components/ScriptItems/DefaultPassword.tsx
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update frontend/src/app/scripts/_components/ScriptItems/DefaultSettings.tsx
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update src/lib/data.ts with necessary changes.
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update src/app/api/categories/route.ts with necessary modifications
* Update frontend/src/app/scripts/_components/ScriptItems/InstallCommand.tsx
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update src/components/CommandMenu.tsx with necessary improvements
* Add renamed themetoggle
* Update frontend/src/app/scripts/_components/ScriptInfoBlocks.tsx
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update frontend/src/app/scripts/_components/ScriptItems/DefaultSettings.tsx
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update frontend/src/app/scripts/_components/ScriptItems/DefaultSettings.tsx with new settings configuration
* Update src/app/scripts/_components/ScriptInfoBlocks.tsx with enhancements and fixes
* Update src/app/scripts/_components/ScriptItems/InstallCommand.tsx
* Update src/app/scripts/_components/ScriptItem.tsx
* Update src/app/scripts/_components/ScriptAccordion.tsx with necessary adjustments and improvements
* Update Interfaces to use strict check
* updated interfaces to use normal string label instead of jsx
* Update configuration to use environment variable for BASE_PATH and reflect changes in siteConfig
* force static base path
* Update CommandMenu.tsx
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update DefaultSettings.tsx
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Update DefaultSettings.tsx
Co-authored-by: Håvard Gjøby Thom <[email protected]>
* Ensure fetchScripts returns a typed Script array by specifying return type in map function
* Remove commented-out import for unused Category type in CommandMenu component
* Fix fetch URLs by removing unnecessary slashes and ensure proper return type in fetchScripts map function
* Refactor MostViewedScripts to ensure proper type annotations and improve array concatenation method for better readability
* Update BASE_PATH handling in next.config and fix fetch URLs to ensure correct path structure in API routes
---------
Co-authored-by: Håvard Gjøby Thom <[email protected]>1 parent 97008d0 commit 93fd495
File tree
37 files changed
+474
-453
lines changed- .github/workflows
- frontend
- public/metadata
- src
- app
- api/categories
- scripts
- _components
- ScriptItems
- components
- ui
- config
- lib
- styles
37 files changed
+474
-453
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 61 | | |
69 | 62 | | |
70 | 63 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
7 | 30 | | |
8 | 31 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
15 | 38 | | |
16 | | - | |
| 39 | + | |
17 | 40 | | |
18 | 41 | | |
19 | 42 | | |
20 | 43 | | |
21 | 44 | | |
22 | 45 | | |
23 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
64 | | - | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
0 commit comments