docs: rename DEVELOPMENT.md to development.md and update links

- Rename docs/contributing/DEVELOPMENT.md to development.md (lowercase)
- Update all references from DEVELOPMENT.md to Development.md (titlecase links)
- Update docs/contributing/contributing.md
- Update docs/index.md
This commit is contained in:
2026-02-03 13:54:11 -05:00
parent 3cd378bbee
commit d9c6be1429
12 changed files with 1376 additions and 404 deletions
+6 -2
View File
@@ -357,14 +357,18 @@ func (h *AuthHandler) Login(c echo.Context) error {
}
if c.Request().Header.Get("HX-Request") == "true" {
redirect := c.FormValue("redirect")
if redirect == "" {
redirect = "/bookshelf"
}
html := fmt.Sprintf(`<div class="text-green-500">Login successful! Redirecting...</div>
<script>
localStorage.setItem('token', '%s');
localStorage.setItem('refreshToken', '%s');
localStorage.setItem('user', JSON.stringify(%s));
document.cookie = 'token=%s; path=/; max-age=3600';
window.location.href = '/bookshelf';
</script>`, accessToken, refreshToken, fmt.Sprintf(`{"id":"%s","email":"%s","username":"%s","first_name":"%s","last_name":"%s"}`, uuid.UUID(user.ID.Bytes).String(), user.Email, user.Username, user.FirstName.String, user.LastName.String), accessToken)
window.location.href = '%s';
</script>`, accessToken, refreshToken, fmt.Sprintf(`{"id":"%s","email":"%s","username":"%s","first_name":"%s","last_name":"%s"}`, uuid.UUID(user.ID.Bytes).String(), user.Email, user.Username, user.FirstName.String, user.LastName.String), accessToken, redirect)
return c.HTML(http.StatusOK, html)
}