mirror of
https://github.com/BreizhHardware/ntfy_alerts.git
synced 2026-05-09 00:07:06 +02:00
[PR #23] [MERGED] refactor(web): refactor the web interface using Nuxt and NuxtUI #22
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
BreizhHardware/ntfy_alerts#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BreizhHardware/ntfy_alerts/pull/23
Author: @BreizhHardware
Created: 6/20/2025
Status: ✅ Merged
Merged: 6/20/2025
Merged by: @BreizhHardware
Base:
dev← Head:refactor/web-nuxt📝 Commits (8)
bdffae8refactor(web): refactor the web interface using Nuxt and NuxtUIa1faa3eUpdate web/components/LatestUpdates.vue4c696bfUpdate src/api.rsebe8853Update web/components/LatestUpdates.vue869f22aUpdate src/api.rs82c613fUpdate Dockerfile5e3af6fUpdate src/api.rsc01603ffix(api): Fix missing import📊 Changes
28 files changed (+9225 additions, -257 deletions)
View changed files
📝
.github/dependabot.yaml(+18 -0)📝
.github/workflows/create_dev.yml(+45 -3)📝
.github/workflows/create_release.yml(+62 -8)📝
.github/workflows/dependabot-build.yml(+24 -11)📝
.gitignore(+1 -0)📝
Dockerfile(+4 -4)📝
entrypoint.sh(+4 -1)📝
nginx.conf(+14 -2)📝
src/api.rs(+98 -1)➕
web/.gitignore(+24 -0)➕
web/README.md(+75 -0)➕
web/app.vue(+26 -0)➕
web/assets/css/main.css(+2 -0)➕
web/components/AppFooter.vue(+6 -0)➕
web/components/AppHeader.vue(+6 -0)➕
web/components/DockerRepoSection.vue(+106 -0)➕
web/components/GithubRepoSection.vue(+106 -0)➕
web/components/LatestUpdates.vue(+48 -0)➖
web/index.html(+0 -69)➕
web/nuxt.config.ts(+25 -0)...and 8 more files
📄 Description
This pull request introduces significant changes to integrate a Nuxt.js frontend with the existing Rust backend, enhance CI/CD workflows, and improve the Docker setup. The most important changes include adding a frontend build process, updating workflows to handle both frontend and backend artifacts, modifying the API to expose update information, and updating the Docker configuration to serve the frontend alongside the backend.
Frontend Integration:
AppHeader,AppFooter,LatestUpdates, etc.) and Tailwind CSS for styling. (web/app.vue,web/components/AppFooter.vue,web/components/AppHeader.vue,web/assets/css/main.css, [1] [2] [3] [4].gitignoreandREADME.mdfor the frontend project to manage dependencies and document setup instructions. (web/.gitignore,web/README.md, [1] [2]CI/CD Workflow Enhancements:
create_dev.ymlandcreate_release.ymlworkflows to include steps for building the Nuxt.js frontend and uploading it as an artifact. (.github/workflows/create_dev.yml,.github/workflows/create_release.yml, [1] [2]dependabot-build.ymlto build both the backend and frontend during Dependabot-triggered builds. (.github/workflows/dependabot-build.yml, .github/workflows/dependabot-build.ymlL31-R59)API Enhancements:
/latest_updatesto fetch the latest updates from the database, including repository, version, and changelog details. (src/api.rs, F9aa122fL9R9, [1] [2] [3]Docker Configuration Updates:
Dockerfileto include Node.js and serve the Nuxt.js frontend alongside the Rust backend. (Dockerfile, [1] [2]nginx.confto proxy requests to the Nuxt.js server for frontend and to the Rust backend for API routes. (nginx.conf, [1] [2]Runtime Changes:
entrypoint.shto start the Nuxt.js server in the background alongside the Rust application. (entrypoint.sh, entrypoint.shL9-R12)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.