Commit Graph

159 Commits (47af34f1cd1b1860d0804e5c8addf24963e7bfd2)
 

Author SHA1 Message Date
Jan Dittberner 47af34f1cd Use httprouter.NotFound and httprouter.PanicHandler 2 years ago
Jan Dittberner 0ad88fe5f4 Implement motion detail view
- add httprouter for parameterized routing
- improve styling
- add routes and handlers
- implement motion detail handler
2 years ago
Jan Dittberner 44a6180a09 Use alice to chain middleware 2 years ago
Jan Dittberner 2ddc013c84 Add panic recovery middleware 2 years ago
Jan Dittberner c0a73494c3 Add request logging 2 years ago
Jan Dittberner 4ce321dc36 Implement security headers and HTTPS 2 years ago
Jan Dittberner c4c64d0202 Add output buffering for rendered pages 2 years ago
Jan Dittberner 65cce5b723 Use embedded templates 2 years ago
Jan Dittberner ff93acb65c Refactorings
- fix typo in nav.html and template functions
- implement template cache and render function
- refactor motion list methods to reduce cyclomatic complexity
2 years ago
Jan Dittberner ec7623a51a Implement timestamp pagination for motion list 2 years ago
Jan Dittberner 2b8beadb77 Remove unused Print method 2 years ago
Jan Dittberner 49295d2caa Add context to model methods 2 years ago
Jan Dittberner 3346cb5dba Fix golangci-lint warnings 2 years ago
Jan Dittberner 68d6f4bcdc Reimplement decision close job 2 years ago
Jan Dittberner 01b95f2253 Start notification job refactoring 2 years ago
Jan Dittberner 933f21a43c Move migrations to internal/migrations 2 years ago
Jan Dittberner ec7d2fe324 Start refactoring to packages 2 years ago
Jan Dittberner a5c1a64a3c Update go and dependency versions 2 years ago
Jan Dittberner 8d0d968441 Start move to new directory structure
- create cmd/boardvoting/main.go
- adapt .goreleaser.yml and Makefile to use cmd/boardvoting for the main
  package
2 years ago
Jan Dittberner d7a742d97d Update UI framework
- add package.json for npm/npx
- update to fomantic-ui
- move ui files to ui directory
- add UI build documentation to README.md
- add ui target to Makefile
- add addPrefix handler in boardvoting.go to allow the same /static/
  prefix for static resources
2 years ago
Jan Dittberner d22f31e823 Fix copyright headers in Go files 2 years ago
Jan Dittberner 87b87f7de3 Fix golangci-lint configuration
- remove redundante whitespace
- rename wrong linter-settings to linters-settings
- ignore strconv functions for gomnd linter
- use australian locale for spell checking
2 years ago
Jan Dittberner 7dbef080b1 Update README 2 years ago
Jan Dittberner 3a25296b37 Handle client certificate failures 2 years ago
Jan Dittberner 0c2fbf9d54 Wrap error when db connection closing fails 2 years ago
Jan Dittberner 623bdf6d56 Replace magic numbers with constants
- use strconv.Atoi and strconv.Itoa where appropriate
- use constants for number base and size
- use constant for reminder job interval
2 years ago
Jan Dittberner 63c748bb1d Update golangci-lint configuration
- replace deprecated linters
- add more linters
2 years ago
Jan Dittberner a9290b9717 Update to go 1.17, remove duplicate go-mail
- update module to go 1.17 level
- ran go mod tidy
- bump go version in Jenkinsfile
- drop github.com/go-mail/mail
2 years ago
Jan Dittberner c3adfd9e8b Add short section explaining the project ideas 3 years ago
Jan Dittberner 975f3c0837 Adapt Makefile and boardvoting.go to new ldflags 3 years ago
Jan Dittberner 4d87e35ec2 Add nfpms configuration 3 years ago
Jan Dittberner 806d706d4f Add goreleaser config 3 years ago
Jan Dittberner 32f271ca7a Remove old assets, improve Makefile 3 years ago
Jan Dittberner 96797ec4ef Remove space character from go version 3 years ago
Jan Dittberner fdc5c5cc61 Use tools section for Jenkins 3 years ago
Jan Dittberner 23d586e99d Attempt to define pipeline for go1.16 3 years ago
Jan Dittberner 70cc0942ca Upgrade to Go 1.16 and newer libraries
- use embed from the standard library instead of packr
- upgrade to sprig v3
- upgrade gomail version
- use golang-migrate instead of sql-migrate to get embed support
- use statigz to deliver compressed static assets
3 years ago
Jan Dittberner 03827874cf Configure golangci-lint and apply suggestions 3 years ago
Jan Dittberner 594df29dc1 Explicitly define timeouts for http and https 4 years ago
Jan Dittberner bf67dfbc10 Remove call to deprecated BuildNameToCertificate 4 years ago
Jan Dittberner e6fb26e5ef Fix Goland warnings caused by large assets.go 4 years ago
Jan Dittberner b0aa52fc24 Fix issue with stricter template syntax 4 years ago
Jan Dittberner 03247b420d Update go.mod for Go 1.14 4 years ago
Jan Dittberner 58898b29a7 Add new table user_roles
This commit adds a new database table user_roles to prepare for the
introduction of a voter management system. All existing enabled voters
are added to the VOTER role.
4 years ago
Jan Dittberner 6c9bf09f1a Add missing newline in README 5 years ago
Jan Dittberner ea9641cfb1 Refine HTML layout
This commit improves the page structure and unifies the layout. Some
reusable parts of the HTML code have been moved into
page_fragments.html.
5 years ago
Jan Dittberner 1f32b6d25b Add icon images 5 years ago
Jan Dittberner 96089d49df Improve documentation
- fix parameter name in curl invocation
- add default port of Python aoismtpd
5 years ago
Jan Dittberner fc9d0042c0 Remove .htaccess from PHP age 5 years ago
Jan Dittberner 6ff78cde48 Initialize logger with timestamps 5 years ago