Refactor Pleroma.Frontend, enable a frontend through the CLI, fixes #2672
Downstream MR: https://gitlab.com/soapbox-pub/soapbox/-/merge_requests/34
-
Refactors
Pleroma.Frontendto 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> --primaryto install and enable a frontend with a single command. (--primaryand--adminare supported).
Edited by Alex Gleason