Commit Graph

15 Commits (28ddbd2ce623d18c8b19eee49be9d7949a66886a)

Author SHA1 Message Date
Jan Dittberner 01b95f2253 Start notification job refactoring 2 years ago
Jan Dittberner 933f21a43c Move migrations to internal/migrations 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 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 b0aa52fc24 Fix issue with stricter template syntax 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 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 29a7a1c90c Apply Apache License 2.0 5 years ago
Jan Dittberner eaced9af06 Remove unused styles.css file 5 years ago
Jan Dittberner 4266620eff Update to latest jQuery and Semantic-UI 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