feat: G15Office job, widget settings and submissions admin, embed.js and the settings importer
- SyncG15Office files each submission as a G15Office task with its screenshot through a fetchguard client limited to the configured host; a River job with 3 attempts, PHP's messages on failure, nothing sent when unconfigured - the replay of PHP's recorded G15Office exchange (classes/testdata) asserts the task JSON, headers and the screenshot part - settings screen (cabana field types only), read-only submissions list, manage_settings permission and navigation - embed.js served byte for byte at /plugins/golem15/feedback/assets/js/embed.js - feedback:import-settings copies the WinterCMS settings row once
This commit is contained in:
13
controllers/admin_registry.go
Normal file
13
controllers/admin_registry.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// Package controllers holds the golem15.feedback admin controllers.
|
||||
package controllers
|
||||
|
||||
import "git.golem15.com/golem15/summercms/modules/pact"
|
||||
|
||||
// PermissionManageSettings guards the widget settings and the submissions
|
||||
// list (WinterCMS registers it for the developer role).
|
||||
const PermissionManageSettings = "golem15.feedback.manage_settings"
|
||||
|
||||
// AdminControllers lists the plugin's admin controllers.
|
||||
func AdminControllers() []pact.AdminController {
|
||||
return []pact.AdminController{SubmissionsAdminController{}}
|
||||
}
|
||||
Reference in New Issue
Block a user