Updated documentation, a thing here and there and bumped the version
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<div class="login-container">
|
||||
<div id="login-state" class="warning"></div><br>
|
||||
<!-- <label for="login-user">USERNAME</label> -->
|
||||
<input class="tui-input" type="text" name="login-user" id="login-user"><br><br>
|
||||
<input autofocus class="tui-input" type="text" name="login-user" id="login-user"><br><br>
|
||||
<!-- <label for="login-pass">PASSWORD</label> -->
|
||||
<input class="tui-input" type="password" name="login-pass" id="login-pass"><br><br>
|
||||
<button
|
||||
|
||||
@@ -56,6 +56,8 @@
|
||||
{{ template "mainPage" . }}
|
||||
{{ else if eq .content "login" }}
|
||||
{{ template "login" . }}
|
||||
{{ else if eq .content "expense" }}
|
||||
{{ template "expense" . }}
|
||||
{{ else if eq .content "newExpense" }}
|
||||
{{ template "expense" . }}
|
||||
{{ else if eq .content "panic" }}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# v0.0.93-alpha
|
||||
Breaking changes:
|
||||
- In the configuration file, the following fields have be to be renamed:
|
||||
- `migrations_path` -> `migrationsPath`
|
||||
- `mig_custom_scripts` -> `migCustomScripts`
|
||||
- The `server` command is now `http`
|
||||
|
||||
|
||||
New features:
|
||||
- Filters in the main page
|
||||
- Autofocus on the user field on the login page
|
||||
+1
-1
@@ -26,7 +26,7 @@ import (
|
||||
// TODO MOVE THIS REGISTERED FUNCTIONS SOMEWHER ELSE
|
||||
// This can be set in the compilation command - in the Makefile
|
||||
var (
|
||||
ginMode = "debug"
|
||||
ginMode = "release"
|
||||
tmplFuncMap = template.FuncMap{
|
||||
"formatDate": func(t time.Time) string {
|
||||
return t.Format("02-Jan-2006")
|
||||
|
||||
@@ -112,7 +112,7 @@ AND
|
||||
($5::int[] IS NULL OR expenses."StoreID" = ANY($5::int[]))
|
||||
AND
|
||||
($6::int[] IS NULL OR expenses."TypeID" = ANY($6::int[]))
|
||||
ORDER BY expenses."ExpDate"
|
||||
ORDER BY expenses."ExpDate" DESC
|
||||
`
|
||||
|
||||
type GetExpensesParams struct {
|
||||
|
||||
@@ -26,7 +26,7 @@ AND
|
||||
(sqlc.narg(StoreIDs)::int[] IS NULL OR expenses."StoreID" = ANY(sqlc.narg(StoreIDs)::int[]))
|
||||
AND
|
||||
(sqlc.narg(TypeIDs)::int[] IS NULL OR expenses."TypeID" = ANY(sqlc.narg(TypeIDs)::int[]))
|
||||
ORDER BY expenses."ExpDate";
|
||||
ORDER BY expenses."ExpDate" DESC;
|
||||
|
||||
-- name: GetExpense :one
|
||||
SELECT
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ module github.com/ESilva15/expenses
|
||||
go 1.24.6
|
||||
|
||||
require (
|
||||
github.com/ESilva15/gofatqr v1.0.0
|
||||
github.com/ESilva15/gofatqr v1.1.1
|
||||
github.com/gin-contrib/sessions v1.0.4
|
||||
github.com/gin-gonic/gin v1.10.1
|
||||
github.com/golang-jwt/jwt/v5 v5.3.0
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0=
|
||||
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E=
|
||||
github.com/ESilva15/gofatqr v1.0.0 h1:uQXfqdDW9dZwLlAZvUOwHmmXF5jvLgsGEXDgNAMAces=
|
||||
github.com/ESilva15/gofatqr v1.0.0/go.mod h1:9sstTFOww1SkBUGbdtW+iWmIi7tikaZkvX+qA4ahgbo=
|
||||
github.com/ESilva15/gofatqr v1.1.1 h1:+tWvZ1LOffrEUEkLMpPiINZSStUxV0qa+bytchEsGOM=
|
||||
github.com/ESilva15/gofatqr v1.1.1/go.mod h1:9sstTFOww1SkBUGbdtW+iWmIi7tikaZkvX+qA4ahgbo=
|
||||
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
|
||||
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
|
||||
github.com/bytedance/sonic v1.13.2 h1:8/H1FempDZqC4VqjptGo14QQlJx8VdZJegxs6wwfqpQ=
|
||||
|
||||
@@ -136,6 +136,7 @@ func getNIF(c *gin.Context) {
|
||||
err := fat.Scan(qr, 0)
|
||||
if err != nil {
|
||||
// TODO - handle the error here for the user
|
||||
log.Println("error parsing qr code:", err)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
set -e
|
||||
|
||||
cd /usr/share/webapps/expensesweb
|
||||
./expensesweb server
|
||||
./expensesweb http
|
||||
|
||||
+1
-1
@@ -5,4 +5,4 @@ REQUIRED_VARS := registry repo
|
||||
$(foreach v,$(REQUIRED_VARS),\
|
||||
$(if $(value $(v)),,$(error Variable '$(v)' is required but empty)))
|
||||
|
||||
tag = v0.0.92-alpha
|
||||
tag = v0.0.93-alpha
|
||||
|
||||
Reference in New Issue
Block a user