-
Notifications
You must be signed in to change notification settings - Fork 34
refactor: pwa web #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
…r-pwa Signed-off-by: E99p1ant <i@github.red> # Conflicts: # go.sum # internal/cmd/web.go # internal/db/db.go # internal/db/upload_images.go # internal/dbutil/testing.go # route/question/page.go # route/question/question.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the web application from a server-side rendered template-based architecture to a Progressive Web App (PWA) using Vue.js with a JSON API backend. The refactor maintains the same core functionality while modernizing the frontend architecture.
- Complete migration from server-rendered HTML templates to a Vue.js frontend with TypeScript
- Replacement of form-based endpoints with JSON API endpoints for authentication, user management, and question handling
- Modernization of the build and deployment pipeline to support separate backend and frontend containers
Reviewed Changes
Copilot reviewed 110 out of 115 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
web/* | New Vue.js PWA frontend with TypeScript, including components, pages, stores, and API clients |
internal/route/* | Refactored backend routes to provide JSON APIs instead of template rendering |
internal/form/* | Updated form validation to support JSON request bodies and multipart data |
internal/context/* | Simplified context handling for API responses and removed template dependencies |
templates/embed.go | Removed embedded HTML templates as they're no longer needed |
go.mod | Updated Go version and dependencies to support the new architecture |
Files not reviewed (1)
- web/pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)
internal/form/form.go:1
- The logic for handling slice types appears incomplete. When the field is a slice of FileHeader pointers, it should continue to the file handling section below, but the current code structure may not reach that section properly.
// Copyright 2025 E99p1ant. All rights reserved.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…r-pwa Signed-off-by: E99p1ant <i@github.red> # Conflicts: # internal/conf/static.go # internal/context/context.go # templates/embed.go
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant i@github.red