Updated example plugins

- Updated example plugins
- Added debugger
- Removed some trash files
This commit is contained in:
Toby Chui
2025-02-28 22:03:08 +08:00
parent 3993ac954c
commit 214b69b0b8
16 changed files with 453 additions and 4 deletions

View File

@ -19,6 +19,7 @@
height: 100vh;
margin: 0;
font-family: Arial, sans-serif;
background:none;
}
</style>
</head>

View File

@ -65,7 +65,6 @@ func (p *PluginUiRouter) populateCSRFToken(r *http.Request, fsHandler http.Handl
targetFilePath := strings.TrimPrefix(r.URL.Path, "/")
targetFilePath = p.TargetFsPrefix + "/" + targetFilePath
targetFilePath = strings.TrimPrefix(targetFilePath, "/")
fmt.Println(targetFilePath)
targetFileContent, err := fs.ReadFile(*p.TargetFs, targetFilePath)
if err != nil {
http.Error(w, "File not found", http.StatusNotFound)