Commit Graph

38 Commits (47092bfa9bc7bddde04d20c48527382cc14ded52)

Author SHA1 Message Date
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 3a25296b37 Handle client certificate failures 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 975f3c0837 Adapt Makefile and boardvoting.go to new ldflags 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 4 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 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 6ff78cde48 Initialize logger with timestamps 5 years ago
Jan Dittberner c55617edc0 Remove unused MigrationsPath config parameter 5 years ago
Jan Dittberner 29a7a1c90c Apply Apache License 2.0 5 years ago
Jan Dittberner 2d7f0cc0e3 Modernize Go code
- switch from go-logging to logrus
- handle all errors
- use gomail's NewDialer instead of deprecated NewPlainDialer
5 years ago
Jan Dittberner 5977eb5a7a Implement CSRF protection 6 years ago
Jan Dittberner 94dcb5bd75 Use static assets for HTML templates
- implement custom http.Filesystem boardvoting.AssetFS
- replace "footer" and "header" with "footer.html" and "header.html"
- change renderTemplate to use Assets
- use boardvoting.GetAssetFS() with http.Fileserver
6 years ago
Jan Dittberner 4dd5e09820 Embed database migrations
- switch from goose to github.com/rubenv/sql-migrate
- move assets (static, templates, migrations) to boardvoting package
- add generated boardvoting/assets.go
- remove unused static files from static directory
- add package db with db migration configuration
6 years ago
Jan Dittberner e5d0b98514 Improve denied error page and output current authenticated user 7 years ago
Jan Dittberner 14ed5a5020 Change motion content formatting
Use a linebreak sensitive paragraph instead of <pre> for motion content
output.
7 years ago
Jan Dittberner c48bd9e356 Use Semantic UI for all HTML templates 7 years ago
Jan Dittberner 4d23b6a48f Switch to more flexible go-logging
This commit switches from loggo to the more flexible go-logging
framework. Logs of severity INFO or higher are now written to a separate
boardvoting.log file.

Errors during execution of mail templates are now logged.

A reasoning for the vote result is now logged and put into the mail
notification when a decision is closed.
7 years ago
Jan Dittberner 5a449926f4 Use loggo for logging 7 years ago
Jan Dittberner fd0a8ed972 Run goose migration on application startup 7 years ago
Jan Dittberner 8d1f18e16d Implement direct voting 7 years ago
Jan Dittberner 2cac50ee86 Implement proxy voting 7 years ago
Jan Dittberner b6ad5d8ad3 Implement reminder job 7 years ago
Jan Dittberner dcdd5f715f Implement decision closing job 7 years ago
Jan Dittberner 2de96dc13d Implement vote closing, refactor notifications 7 years ago
Jan Dittberner 0ce9ad6dcc Implement withdraw motion 7 years ago
Jan Dittberner bc194e8943 Implement motion editing 7 years ago
Jan Dittberner cc0f5c0b7b Implement motion creation mail template 7 years ago
Jan Dittberner bcfbad42b6 Add version and build number output 7 years ago
Jan Dittberner 471daf12ea Partialy add new motion creation 7 years ago
Jan Dittberner e0be1a6aa5 Switch to context API 7 years ago
Jan Dittberner 6fe515ea52 Implement proper model, actions and template structure 7 years ago
Jan Dittberner f4360b98c8 Implement more RESTful URLs for motions
This commit implements URLs /motions/ and /motions/{:tag} handlers.
7 years ago
Jan Dittberner 74987ce184 Initial Go code for reimplementation 7 years ago