4
0
Fork
You've already forked admin-sync
1
tool to sync administrative information across tools
Nix 82.2%
Scala 16.6%
HTML 0.8%
CSS 0.3%
Arnout Engelen 4a0c14d9e1
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
also query for reports archived in 2025
2026年01月08日 11:38:49 +01:00
assets Consistentere indentatie 2025年12月01日 15:11:30 +01:00
project sbtix-gen-all 2025年10月28日 23:40:52 +01:00
src Parse numbers from workshop participants 2024年11月28日 21:19:20 +01:00
.env.example Get Nextcloud URL from .env 2025年03月01日 13:37:15 +01:00
.gitignore Genereren Mijn-pagina 2025年11月05日 00:07:31 +01:00
.woodpecker.yml Update syntax 2025年11月29日 10:57:34 +01:00
bezoekers.html Show last-updated timestamp 2024年09月22日 19:52:48 +02:00
Bezoekers.scala also query for reports archived in 2025 2026年01月08日 11:38:49 +01:00
build.sbt upgrade nextcloud api binding, use 'Using' 2025年10月28日 11:45:32 +01:00
cached.scala Combined report museumkaart + zettle 2024年07月16日 09:29:51 +02:00
CachedHttp.scala Toevoegen 'maandplanning' 2024年08月27日 12:40:28 +02:00
Calendar.scala Kalender op mijn-pagina 2025年11月08日 11:49:40 +01:00
default.nix include assets in output 2025年11月08日 11:07:01 +01:00
dotenv.scala allow .env not to exist 2026年01月04日 00:56:02 +01:00
echarts.min.js viz by day and by week 2024年07月16日 11:15:38 +02:00
footer.png split things up, also generate signatures 2023年07月24日 09:17:40 +02:00
FormNaarDoc.scala Format and push callsheets 2025年10月29日 01:11:08 +01:00
geennextcloud.scala.example show example of what geennextcloud.scala can look like 2023年06月26日 17:39:08 +02:00
GenerateAddressBook.scala Make sure the Using try is checked for errors 2025年10月29日 12:06:51 +01:00
GenerateMaandplanning.scala Kalender op mijn-pagina 2025年11月08日 11:49:40 +01:00
GenerateNawExport.scala upgrade nextcloud api binding, use 'Using' 2025年10月28日 11:45:32 +01:00
GenerateSmoelenboek.scala Make sure the Using try is checked for errors 2025年10月29日 12:06:51 +01:00
GenerateTeams.scala Make sure the Using try is checked for errors 2025年10月29日 12:06:51 +01:00
GenerateVerjaardagskalender.scala upgrade nextcloud api binding, use 'Using' 2025年10月28日 11:45:32 +01:00
index.html fonts 2025年11月08日 11:02:16 +01:00
jquery.min.js viz by day and by week 2024年07月16日 11:15:38 +02:00
KalenderAlgemeen.scala minder filtering kalender 2025年11月18日 09:24:37 +01:00
Mailboxes.scala upgrade nextcloud api binding, use 'Using' 2025年10月28日 11:45:32 +01:00
manual-repo.nix Package as sbtix java app 2023年09月04日 23:07:26 +02:00
Mijn.scala Merge pull request 'Mijn.scala bijwerken' ( #13 ) from kadir001/admin-sync:main into main 2025年12月02日 14:37:12 +01:00
NextcloudFetch.scala add some error handling 2025年12月04日 15:52:44 +01:00
NextcloudHttp.scala add some error handling 2025年12月04日 15:52:44 +01:00
NextcloudSync.scala Make sure the Using try is checked for errors 2025年10月29日 12:06:51 +01:00
PageWriter.scala Kalender op mijn-pagina 2025年11月08日 11:49:40 +01:00
PdfUtils.scala Overzicht teamsamenstelling 2024年08月02日 09:08:48 +02:00
process.sh Fix name of main class 2024年01月05日 18:59:17 +01:00
README.md Version updates 2024年09月20日 12:37:11 +02:00
repo.nix upgrade nextcloud api binding, use 'Using' 2025年10月28日 11:45:32 +01:00
sbtix.nix Update sbt and scala versions 2024年03月16日 00:25:01 +01:00
SuppoostenRapportage.scala opschonen datakwaliteit suppoostenrapportage 2025年11月15日 10:25:50 +01:00
sync.yaml.example exclusions for NC sync 2023年11月28日 20:27:16 +01:00
TeammappenOverzicht.scala teammappen: rows are folders, not groups 2025年12月04日 16:11:42 +01:00
Vrijwilligers.scala correctly stop at first empty line in admin 2025年10月07日 09:03:18 +02:00
Zettle.scala bezoekersrapportage: start in 2024 2026年01月04日 17:25:25 +01:00

Scripts to sync volunteer database with other resources

Use ./process.sh

Then:

  • sbt "runMain vrijwilligers.generateSmoelenboek"
  • rm cache/nc*; sbt "runMain nextcloud.Sync" to check for mismatches there
  • sbt "runMain mailboxes.generateSignatures" and apply them like in process.sh

Plans:

  • run more of this automatically
  • move Mailinglists.scala and the list of mailboxes in GenerateAddressBook.scala into a json input file
  • enable 'Compose HTML messages' automatically (to option 4, 'always except when replying to plain')

Development

run sbt in the admin-sync directory to get the sbt prompt. Run ~compile to keep compiling the sources. Run runMain bezoekers.bezoekersrapportage to run the bezoekersrapportage.

To view the bezoekersrapportage, run python3 -m http.server in the admin-sync directory.

Updates

When updating dependencies, we use sbtix to also update the nix lock file:

$ nix shell github:natural-transformation/sbtix
$ sbtix-gen-all # when updating the Scala version or plugin versions
$ sbtix-gen # when only updating 'regular' library versions