Rewrite imports for plugin, blocks, templates, auth, settings, crypto, and rbac packages from git.dev.alexdunmow.com/block/core/* to git.dev.alexdunmow.com/block/pluginsdk/* across all Go files. The captcha package stays on block/core, so the repo keeps both requires. go.mod: add pluginsdk v0.1.0; bump core v0.20.2 -> v0.20.3 (satisfies the check-safety core-version gate); transitive churn pgx v5.9.2 -> v5.10.0 and x/mod v0.34.0 -> v0.37.0 from go mod tidy. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
24 lines
785 B
Go
24 lines
785 B
Go
package main
|
|
|
|
import (
|
|
"io/fs"
|
|
"net/http"
|
|
|
|
"git.dev.alexdunmow.com/block/pluginsdk/blocks"
|
|
"git.dev.alexdunmow.com/block/pluginsdk/plugin"
|
|
"git.dev.alexdunmow.com/block/pluginsdk/templates"
|
|
)
|
|
|
|
// Registration is the compile-time plugin registration for the Cal.com Booking block.
|
|
var Registration = plugin.PluginRegistration{
|
|
Name: "calcomblock",
|
|
Version: plugin.ParseModVersion(pluginModBytes),
|
|
Register: func(tr templates.TemplateRegistry, br blocks.BlockRegistry) error {
|
|
return Register(tr, br)
|
|
},
|
|
Assets: func() http.Handler { return AssetsHandler() },
|
|
Schemas: func() fs.FS { return Schemas() },
|
|
HTTPHandler: func(deps plugin.CoreServices) http.Handler { return NewCalcomRouter(deps) },
|
|
SettingsPanel: func() string { return SettingsPanel() },
|
|
}
|