Commit Graph

21 Commits

Author SHA1 Message Date
Vincent Bernat
9e697db49a console/database: move database initialization to Start() 2025-09-16 21:50:09 +02:00
Vincent Bernat
18beb310ee chore: replace interface{} with any 2025-07-29 07:42:49 +02:00
Vincent Bernat
f24d4c0e5d console/database: convert gorm to generics
See: https://gorm.io/docs/the_generics_way.html
Also: https://github.com/go-gorm/gorm/discussions/7471
2025-05-31 18:51:14 +02:00
Vincent Bernat
dbcdd27934 console/database: fix synchronization of saved filters 2024-12-19 06:12:54 +01:00
Vincent Bernat
2897e6a35c console/database: add support for MySQL as well 2024-04-14 09:40:33 +02:00
Vincent Bernat
783f0f1072 docker: prefer bitnami/postgresql
When available, prefer bitnami images over vendor ones to ensure some
consistency.
2024-04-14 09:37:52 +02:00
Francois Espinet
e2cf908179 console/database: use docker-compose for postgresql testing 2024-04-14 09:34:18 +02:00
netixx
d998388d06 console/database: add support for postgresql for filter save 2024-04-14 09:34:18 +02:00
Vincent Bernat
1ec89aac1f build: fix various lint issues
revive default configuration has changed in 1.3.0. Some stuff is a bit
silly (like empty blocks), but I find it easier to follow that than to
try to tweak the configuration.
2023-03-21 00:01:13 +01:00
Vincent Bernat
a877ca226d inlet/bmp: l.r.Error().Err() → l.r.Err() 2022-11-09 20:51:02 +01:00
Vincent Bernat
2d0ab556ad console: ability to populate filters from the configuration file 2022-10-15 14:31:42 +02:00
Vincent Bernat
38fa03f27b console: switch to pure Go implementation of SQLite driver
cgo can be disabled and we don't need to embed a libc in the Docker
image
2022-09-25 23:21:51 +02:00
Vincent Bernat
985e678e42 chore: replace map[string]interface{} by gin.H 2022-08-16 19:43:28 +02:00
Vincent Bernat
61c8143fe8 build: fix linting issues introduced by latest revive release 2022-08-07 23:54:24 +02:00
Vincent Bernat
7340894ad7 console: store ID as uint64 to ensure arch-independent size 2022-07-24 21:46:00 +02:00
Vincent Bernat
6121aaea15 config: use a validator for better configuration validation 2022-06-30 01:23:29 +02:00
Vincent Bernat
8be1bca4fd license: AGPL-3.0-only
```
git ls-files \*.js \*.go \
  | xargs sed -i '1i // SPDX-FileCopyrightText: 2022 Free Mobile\n// SPDX-License-Identifier: AGPL-3.0-only\n'
git ls-files \*.vue \
  | xargs sed -i '1i <!-- SPDX-FileCopyrightText: 2022 Free Mobile -->\n<!-- SPDX-License-Identifier: AGPL-3.0-only -->\n'
```
2022-06-29 11:42:28 +02:00
Vincent Bernat
cc646b7d13 console/frontend: implement filter loading/saving 2022-06-24 22:59:16 +02:00
Vincent Bernat
3d7df92c62 Revert "console: allow to put filters into folders"
This reverts commit 1238dfc552. No need
for folders. Description may contain a `/` if we want.
2022-06-18 12:00:37 +02:00
Vincent Bernat
1238dfc552 console: allow to put filters into folders
And remove the sharing option. Folders seem more important first.
We'll implement sharing later.
2022-06-13 16:47:41 +02:00
Vincent Bernat
bf0c474726 console: implement "filter/saved" endpoints 2022-06-13 09:50:43 +02:00