feat(cabana): code editor, colour and mail image fields, mail branding and the image library
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -168,6 +168,7 @@ func Activate(app *backpack.App, plugins []party.Plugin) (*Routes, error) {
|
||||
// soon as the database is there. The hook never fails the boot; until a
|
||||
// sync succeeded, the first mail list request retries it.
|
||||
if mail := screens.mail; mail != nil {
|
||||
injectLayoutCreateDefaults(reg, mail.editor)
|
||||
if err := lagoon.OnDatabase(app, func(_ *sql.DB, gdb *gorm.DB) error {
|
||||
mail.syncOnDatabase(gdb)
|
||||
return nil
|
||||
@@ -353,6 +354,11 @@ func (s *service) mount(r pact.Router) {
|
||||
g.Get("/field-types", s.fieldTypesList)
|
||||
// Form previews render through RenderMarkdown; nothing is stored.
|
||||
g.Post("/markdown/preview", requireAjax(s.markdownPreview))
|
||||
// Mail image library (absolute public URLs); preview and test-send
|
||||
// join these in plan 35-02 Task 4.
|
||||
g.Get("/mail/images", s.mailImagesList)
|
||||
g.Get("/mail/images/{id}", s.mailImagesShow)
|
||||
g.Post("/mail/images", requireAjax(s.mailImagesUpload))
|
||||
g.Get("/settings", s.settingsList)
|
||||
// The read-only Plugins screen (backend.view_plugins).
|
||||
g.Get("/plugins", s.pluginsInstalled)
|
||||
|
||||
Reference in New Issue
Block a user