-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding missing description to api spec * Renaming directory & removing unused templ templates * transactions handler and template * accounts template * Moving components template into new directory * cleaning up openapi.json * cleanup * newline * formatting
- Loading branch information
Showing
13 changed files
with
425 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package templates | ||
|
||
import ( | ||
"github.com/esteanes/expense-manager/datafetcher/upclient" | ||
"strings" | ||
) | ||
|
||
templ Accounts(accounts []upclient.AccountResource) { | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | ||
<title>Accounts</title> | ||
</head> | ||
<body> | ||
<h1>Accounts</h1> | ||
<ul> | ||
for _, account := range accounts { | ||
<div> | ||
<h2>{ account.Attributes.DisplayName }</h2> | ||
<p>Account Type: { strings.ToTitle(string(account.Attributes.AccountType)) }</p> | ||
<p>Balance: { account.Attributes.Balance.CurrencyCode } { account.Attributes.Balance.Value }</p> | ||
<p>Created At: { account.Attributes.CreatedAt.String() }</p> | ||
</div> | ||
<hr/> | ||
} | ||
</ul> | ||
</body> | ||
</html> | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
datafetcher/templ/components.templ → datafetcher/templates/components.templ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package templ | ||
package templates | ||
|
||
import ( | ||
"strconv" | ||
|
12 changes: 7 additions & 5 deletions
12
datafetcher/templ/components_templ.go → datafetcher/templates/components_templ.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.