refactor: remove frontend, move JSONs to json/ top-level

- Archive frontend to community-scripts/ProxmoxVE-Frontend-Archive
- Move frontend/public/json/ -> json/
- Update workflow paths in 5 actions:
  - update-versions-github.yml
  - update-json-date.yml
  - push-json-to-pocketbase.yml
  - delete-pocketbase-entry-on-removal.yml
  - autolabeler.yml
- Remove frontend-cicd.yml (no longer needed)
- Clean up .gitignore (remove frontend-specific entries)
This commit is contained in:
CanbiZ (MickLesk)
2026-03-12 13:52:25 +01:00
parent 12bdbcce5c
commit 6b33afca1e
605 changed files with 10 additions and 11576 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- "frontend/public/json/**"
- "json/**"
jobs:
push-json:
@@ -19,7 +19,7 @@ jobs:
- name: Get changed JSON files with slug
id: changed
run: |
changed=$(git diff --name-only "${{ github.event.before }}" "${{ github.event.after }}" -- frontend/public/json/ | grep '\.json$' || true)
changed=$(git diff --name-only "${{ github.event.before }}" "${{ github.event.after }}" -- json/ | grep '\.json$' || true)
with_slug=""
for f in $changed; do
[[ -f "$f" ]] || continue
@@ -96,7 +96,7 @@ jobs:
const recordsUrl = apiBase + '/collections/' + encodeURIComponent(coll) + '/records';
let categoryIdToName = {};
try {
const metadata = JSON.parse(fs.readFileSync('frontend/public/json/metadata.json', 'utf8'));
const metadata = JSON.parse(fs.readFileSync('json/metadata.json', 'utf8'));
(metadata.categories || []).forEach(function(cat) { categoryIdToName[cat.id] = cat.name; });
} catch (e) { console.warn('Could not load metadata.json:', e.message); }
let typeValueToId = {};