Updating to latest pagoda release

This commit is contained in:
Cam Zalewski 2026-05-20 08:00:26 +00:00
parent 05cf6c8318
commit 4d5d45d1a4
111 changed files with 358 additions and 1535 deletions

View file

@ -10,9 +10,9 @@ import (
"entgo.io/ent/dialect/sql"
"github.com/labstack/echo/v4"
"github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/user"
)
const dateTimeFormat = "2006-01-02T15:04:05"

View file

@ -9,14 +9,14 @@ import (
"log"
"reflect"
"github.com/mikestefanello/pagoda/ent/migrate"
"github.com/camzawacki/personal-site/ent/migrate"
"entgo.io/ent"
"entgo.io/ent/dialect"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/user"
)
// Client is the client that holds all ent builders.

View file

@ -12,8 +12,8 @@ import (
"entgo.io/ent"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/user"
)
// ent aliases to avoid import conflicts in user's code.

View file

@ -8,7 +8,7 @@ import (
"entgo.io/ent/entc"
"entgo.io/ent/entc/gen"
"github.com/mikestefanello/pagoda/ent/admin"
"github.com/camzawacki/personal-site/ent/admin"
)
func main() {

View file

@ -5,12 +5,12 @@ package enttest
import (
"context"
"github.com/mikestefanello/pagoda/ent"
"github.com/camzawacki/personal-site/ent"
// required by schema hooks.
_ "github.com/mikestefanello/pagoda/ent/runtime"
_ "github.com/camzawacki/personal-site/ent/runtime"
"entgo.io/ent/dialect/sql/schema"
"github.com/mikestefanello/pagoda/ent/migrate"
"github.com/camzawacki/personal-site/ent/migrate"
)
type (

View file

@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/mikestefanello/pagoda/ent"
"github.com/camzawacki/personal-site/ent"
)
// The PasswordTokenFunc type is an adapter to allow the use of ordinary

View file

@ -11,9 +11,9 @@ import (
"entgo.io/ent"
"entgo.io/ent/dialect/sql"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/predicate"
"github.com/camzawacki/personal-site/ent/user"
)
const (

View file

@ -9,8 +9,8 @@ import (
"entgo.io/ent"
"entgo.io/ent/dialect/sql"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/user"
)
// PasswordToken is the model entity for the PasswordToken schema.

View file

@ -56,7 +56,7 @@ func ValidColumn(column string) bool {
// package on the initialization of the application. Therefore,
// it should be imported in the main as follows:
//
// import _ "github.com/mikestefanello/pagoda/ent/runtime"
// import _ "github.com/camzawacki/personal-site/ent/runtime"
var (
Hooks [1]ent.Hook
// TokenValidator is a validator for the "token" field. It is called by the builders before save.

View file

@ -7,7 +7,7 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/camzawacki/personal-site/ent/predicate"
)
// ID filters vertices based on their ID field.

View file

@ -10,8 +10,8 @@ import (
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/user"
)
// PasswordTokenCreate is the builder for creating a PasswordToken entity.

View file

@ -8,8 +8,8 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/predicate"
)
// PasswordTokenDelete is the builder for deleting a PasswordToken entity.

View file

@ -11,9 +11,9 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/predicate"
"github.com/camzawacki/personal-site/ent/user"
)
// PasswordTokenQuery is the builder for querying PasswordToken entities.

View file

@ -11,9 +11,9 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/predicate"
"github.com/camzawacki/personal-site/ent/user"
)
// PasswordTokenUpdate is the builder for updating PasswordToken entities.

View file

@ -2,4 +2,4 @@
package ent
// The schema-stitching logic is generated in github.com/mikestefanello/pagoda/ent/runtime/runtime.go
// The schema-stitching logic is generated in github.com/camzawacki/personal-site/ent/runtime/runtime.go

View file

@ -5,9 +5,9 @@ package runtime
import (
"time"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/schema"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/schema"
"github.com/camzawacki/personal-site/ent/user"
)
// The init function reads all schema descriptors with runtime code

View file

@ -7,8 +7,8 @@ import (
"entgo.io/ent"
"entgo.io/ent/schema/edge"
"entgo.io/ent/schema/field"
ge "github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/ent/hook"
ge "github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/ent/hook"
"golang.org/x/crypto/bcrypt"
)

View file

@ -6,8 +6,8 @@ import (
"strings"
"time"
ge "github.com/mikestefanello/pagoda/ent"
"github.com/mikestefanello/pagoda/ent/hook"
ge "github.com/camzawacki/personal-site/ent"
"github.com/camzawacki/personal-site/ent/hook"
"golang.org/x/crypto/bcrypt"
"entgo.io/ent"

View file

@ -9,7 +9,7 @@ import (
"entgo.io/ent"
"entgo.io/ent/dialect/sql"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/user"
)
// User is the model entity for the User schema.

View file

@ -65,7 +65,7 @@ func ValidColumn(column string) bool {
// package on the initialization of the application. Therefore,
// it should be imported in the main as follows:
//
// import _ "github.com/mikestefanello/pagoda/ent/runtime"
// import _ "github.com/camzawacki/personal-site/ent/runtime"
var (
Hooks [1]ent.Hook
// NameValidator is a validator for the "name" field. It is called by the builders before save.

View file

@ -7,7 +7,7 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/camzawacki/personal-site/ent/predicate"
)
// ID filters vertices based on their ID field.

View file

@ -10,8 +10,8 @@ import (
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/user"
)
// UserCreate is the builder for creating a User entity.

View file

@ -8,8 +8,8 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/predicate"
"github.com/camzawacki/personal-site/ent/user"
)
// UserDelete is the builder for deleting a User entity.

View file

@ -12,9 +12,9 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/predicate"
"github.com/camzawacki/personal-site/ent/user"
)
// UserQuery is the builder for querying User entities.

View file

@ -10,9 +10,9 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
"github.com/mikestefanello/pagoda/ent/passwordtoken"
"github.com/mikestefanello/pagoda/ent/predicate"
"github.com/mikestefanello/pagoda/ent/user"
"github.com/camzawacki/personal-site/ent/passwordtoken"
"github.com/camzawacki/personal-site/ent/predicate"
"github.com/camzawacki/personal-site/ent/user"
)
// UserUpdate is the builder for updating User entities.