Refactor Pleroma.Frontend, enable a frontend through the CLI, fixes #2672
Downstream MR: https://gitlab.com/soapbox-pub/soapbox/-/merge_requests/34
-
Refactors
Pleroma.Frontend
to use a%Frontend{}
struct. Previously it passed in opts from the mix task, but using a struct makes it more modular. -
Introduces
mix pleroma.frontend enable <name>
. If ConfigDB isn't enabled, it'll raise. -
Adds
mix pleroma.frontend install <name> --primary
to install and enable a frontend with a single command. (--primary
and--admin
are supported).
Edited by Alex Gleason