adjust code to new repository

This commit is contained in:
T. R. Bernstein
2025-10-09 21:02:10 +02:00
committed by T. R. Bernstein
parent 0a74d2f25d
commit 4128071070
335 changed files with 814 additions and 808 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strings"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/pocketbase/tools/inflector"
"github.com/tabshift-gh/pocketbase/tools/inflector"
)
// SafeErrorItem defines a common error interface for a printable public safe error.
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"testing"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/pocketbase/tools/router"
"github.com/tabshift-gh/pocketbase/tools/router"
)
func TestNewApiErrorWithRawData(t *testing.T) {
+4 -4
View File
@@ -12,10 +12,10 @@ import (
"path/filepath"
"strings"
"github.com/pocketbase/pocketbase/tools/filesystem"
"github.com/pocketbase/pocketbase/tools/hook"
"github.com/pocketbase/pocketbase/tools/picker"
"github.com/pocketbase/pocketbase/tools/store"
"github.com/tabshift-gh/pocketbase/tools/filesystem"
"github.com/tabshift-gh/pocketbase/tools/hook"
"github.com/tabshift-gh/pocketbase/tools/picker"
"github.com/tabshift-gh/pocketbase/tools/store"
)
var ErrUnsupportedContentType = NewBadRequestError("Unsupported Content-Type", nil)
+1 -1
View File
@@ -19,7 +19,7 @@ import (
"testing"
validation "github.com/pocketbase/ozzo-validation/v4"
"github.com/pocketbase/pocketbase/tools/router"
"github.com/tabshift-gh/pocketbase/tools/router"
)
type unwrapTester struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"regexp"
"strings"
"github.com/pocketbase/pocketbase/tools/hook"
"github.com/tabshift-gh/pocketbase/tools/hook"
)
// (note: the struct is named RouterGroup instead of Group so that it can
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"slices"
"testing"
"github.com/pocketbase/pocketbase/tools/hook"
"github.com/tabshift-gh/pocketbase/tools/hook"
)
func TestRouterGroupGroup(t *testing.T) {
+1 -1
View File
@@ -1,6 +1,6 @@
package router
import "github.com/pocketbase/pocketbase/tools/hook"
import "github.com/tabshift-gh/pocketbase/tools/hook"
type Route[T hook.Resolver] struct {
excludedMiddlewares map[string]struct{}
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"slices"
"testing"
"github.com/pocketbase/pocketbase/tools/hook"
"github.com/tabshift-gh/pocketbase/tools/hook"
)
func TestRouteBindFunc(t *testing.T) {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"net"
"net/http"
"github.com/pocketbase/pocketbase/tools/hook"
"github.com/tabshift-gh/pocketbase/tools/hook"
)
type EventCleanupFunc func()
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"net/http/httptest"
"testing"
"github.com/pocketbase/pocketbase/tools/hook"
"github.com/pocketbase/pocketbase/tools/router"
"github.com/tabshift-gh/pocketbase/tools/hook"
"github.com/tabshift-gh/pocketbase/tools/router"
)
func TestRouter(t *testing.T) {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"testing"
"time"
"github.com/pocketbase/pocketbase/tools/router"
"github.com/tabshift-gh/pocketbase/tools/router"
)
func pointer[T any](val T) *T {