Slight page refactoring, text pages, tooltips

This commit is contained in:
Simon Martens
2025-02-22 00:11:25 +01:00
parent 0d79239fd8
commit 29576ec7a0
47 changed files with 2079 additions and 295 deletions

View File

@@ -1,26 +1 @@
package cmd
import (
"github.com/Theodor-Springmann-Stiftung/musenalm/app"
"github.com/pocketbase/pocketbase"
"github.com/pocketbase/pocketbase/core"
"github.com/spf13/cobra"
)
func AddResetPagesCommand(pb *pocketbase.PocketBase, app *app.App) *cobra.Command {
var resetPagesCmd = &cobra.Command{
Use: "resetpages",
Short: "Reset all pages",
Run: func(cmd *cobra.Command, args []string) {
pb.OnBootstrap().BindFunc(func(e *core.BootstrapEvent) error {
e.Next()
if err := app.ResetPages(); err != nil {
panic(err)
}
return nil
})
},
}
return resetPagesCmd
}