[PR #100] [MERGED] Switch from Pocketbase data retrieval to JSON #2468

Closed
opened 2026-02-05 04:57:28 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/100
Author: @BramSuurdje
Created: 11/6/2024
Status: Merged
Merged: 11/7/2024
Merged by: @BramSuurdje

Base: mainHead: main


📝 Commits (10+)

  • 249946b Add new animation for switching themes.
  • 5abb3cc Remove unused metadata files from testing
  • a1cce93 increase duration on theme switch
  • 26c29f5 Reduce animation duration for view transition effect to improve responsiveness
  • 6c6ffc1 Merge branch 'main' of github.com:BramSuurdje/ProxmoxVE
  • 1ef3c5a Fetch categories and scripts from external sources, updating GET endpoint to aggregate data. Adjust type definitions for Script and Category
  • 76cf852 Refactor all components to use data from new API
  • 5a633a1 Refactor InterFaces component to use updated Script type and streamline interface/port handling for better clarity
  • 2261790 Refactor CommandMenu component to utilize updated Category and Script types, simplifying the sorting logic and enhancing clarity
  • 62ef9ec Fix animation duration in globals.css to ensure proper view transition functionality across the application

📊 Changes

37 files changed (+474 additions, -453 deletions)

View changed files

📝 .github/workflows/deploy-pages.yml (+1 -8)
frontend/.env.local (+0 -3)
frontend/example.env (+0 -4)
📝 frontend/next.config.mjs (+2 -2)
📝 frontend/package-lock.json (+10 -1)
📝 frontend/package.json (+2 -1)
frontend/public/metadata/docker.json (+0 -23)
frontend/public/metadata/nginxproxymanager.json (+0 -20)
📝 frontend/src/app/api/categories/route.ts (+32 -10)
📝 frontend/src/app/layout.tsx (+11 -5)
📝 frontend/src/app/manifest.ts (+4 -3)
📝 frontend/src/app/page.tsx (+2 -1)
📝 frontend/src/app/robots.ts (+2 -1)
📝 frontend/src/app/scripts/_components/ScriptAccordion.tsx (+32 -45)
📝 frontend/src/app/scripts/_components/ScriptInfoBlocks.tsx (+38 -52)
📝 frontend/src/app/scripts/_components/ScriptItem.tsx (+6 -5)
📝 frontend/src/app/scripts/_components/ScriptItems/Alerts.tsx (+3 -3)
📝 frontend/src/app/scripts/_components/ScriptItems/Buttons.tsx (+13 -38)
📝 frontend/src/app/scripts/_components/ScriptItems/DefaultPassword.tsx (+6 -6)
📝 frontend/src/app/scripts/_components/ScriptItems/DefaultSettings.tsx (+27 -9)

...and 17 more files

📄 Description

Note

We are meticulous when it comes to merging code into the main branch, so please understand that we may reject pull requests that do not meet the project's standards. It's never personal. Also, game-related scripts have a lower chance of being merged.

Description

In this pull request. the data fetching of the website will change from the old Pocketbase system to the new JSON based system. making it easier to maintain in the future.

Type of change

Please check the relevant option(s):

  • New feature (non-breaking change that adds functionality)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE/pull/100 **Author:** [@BramSuurdje](https://github.com/BramSuurdje) **Created:** 11/6/2024 **Status:** ✅ Merged **Merged:** 11/7/2024 **Merged by:** [@BramSuurdje](https://github.com/BramSuurdje) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`249946b`](https://github.com/community-scripts/ProxmoxVE/commit/249946bbf04ab9d0edde96129ea29311d258905b) Add new animation for switching themes. - [`5abb3cc`](https://github.com/community-scripts/ProxmoxVE/commit/5abb3ccf9cb2dd877039c5fc795d2220554a875c) Remove unused metadata files from testing - [`a1cce93`](https://github.com/community-scripts/ProxmoxVE/commit/a1cce93f8c1791a15adf98396c11131bb289c4e6) increase duration on theme switch - [`26c29f5`](https://github.com/community-scripts/ProxmoxVE/commit/26c29f5955ba9700446bc58f99422946f7dec93b) Reduce animation duration for view transition effect to improve responsiveness - [`6c6ffc1`](https://github.com/community-scripts/ProxmoxVE/commit/6c6ffc17ab318fa96d46a9ad3f3477677a6eb34c) Merge branch 'main' of github.com:BramSuurdje/ProxmoxVE - [`1ef3c5a`](https://github.com/community-scripts/ProxmoxVE/commit/1ef3c5a0eb4a37eb22fb31cabb7b541dc26bd356) Fetch categories and scripts from external sources, updating `GET` endpoint to aggregate data. Adjust type definitions for Script and Category - [`76cf852`](https://github.com/community-scripts/ProxmoxVE/commit/76cf85293c3c119c9f02fa430976e1a0939cacf4) Refactor all components to use data from new API - [`5a633a1`](https://github.com/community-scripts/ProxmoxVE/commit/5a633a145a5d01a71424327ccc2339ea6d150e87) Refactor `InterFaces` component to use updated `Script` type and streamline interface/port handling for better clarity - [`2261790`](https://github.com/community-scripts/ProxmoxVE/commit/2261790fd10621db4f4d8aa431a4d2df024912d2) Refactor `CommandMenu` component to utilize updated `Category` and `Script` types, simplifying the sorting logic and enhancing clarity - [`62ef9ec`](https://github.com/community-scripts/ProxmoxVE/commit/62ef9ec88cb992ba1fb75e8fcae746247c704005) Fix animation duration in `globals.css` to ensure proper view transition functionality across the application ### 📊 Changes **37 files changed** (+474 additions, -453 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/deploy-pages.yml` (+1 -8) ➖ `frontend/.env.local` (+0 -3) ➖ `frontend/example.env` (+0 -4) 📝 `frontend/next.config.mjs` (+2 -2) 📝 `frontend/package-lock.json` (+10 -1) 📝 `frontend/package.json` (+2 -1) ➖ `frontend/public/metadata/docker.json` (+0 -23) ➖ `frontend/public/metadata/nginxproxymanager.json` (+0 -20) 📝 `frontend/src/app/api/categories/route.ts` (+32 -10) 📝 `frontend/src/app/layout.tsx` (+11 -5) 📝 `frontend/src/app/manifest.ts` (+4 -3) 📝 `frontend/src/app/page.tsx` (+2 -1) 📝 `frontend/src/app/robots.ts` (+2 -1) 📝 `frontend/src/app/scripts/_components/ScriptAccordion.tsx` (+32 -45) 📝 `frontend/src/app/scripts/_components/ScriptInfoBlocks.tsx` (+38 -52) 📝 `frontend/src/app/scripts/_components/ScriptItem.tsx` (+6 -5) 📝 `frontend/src/app/scripts/_components/ScriptItems/Alerts.tsx` (+3 -3) 📝 `frontend/src/app/scripts/_components/ScriptItems/Buttons.tsx` (+13 -38) 📝 `frontend/src/app/scripts/_components/ScriptItems/DefaultPassword.tsx` (+6 -6) 📝 `frontend/src/app/scripts/_components/ScriptItems/DefaultSettings.tsx` (+27 -9) _...and 17 more files_ </details> ### 📄 Description > [!NOTE] > We are meticulous when it comes to merging code into the main branch, so please understand that we may reject pull requests that do not meet the project's standards. It's never personal. Also, game-related scripts have a lower chance of being merged. ## Description In this pull request. the data fetching of the website will change from the old Pocketbase system to the new JSON based system. making it easier to maintain in the future. ## Type of change Please check the relevant option(s): - [x] New feature (non-breaking change that adds functionality) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 04:57:28 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#2468