diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-11 01:51:46 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-11 01:51:46 +0300 |
commit | 8f174c37751e17af887c8f783b21077974f90101 (patch) | |
tree | 2505fa1f46beae92a1af2f6cfd7e7d40c0f79976 /pkg | |
parent | b30d3b26f0d9274b13582b7aa759cae26417d9f9 (diff) |
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/config/config.go | 2 | ||||
-rw-r--r-- | pkg/handler/error.go | 2 | ||||
-rw-r--r-- | pkg/handler/user/errors.go | 2 | ||||
-rw-r--r-- | pkg/handler/user/handler.go | 2 | ||||
-rw-r--r-- | pkg/handler/user/login.go | 4 | ||||
-rw-r--r-- | pkg/handler/user/logout.go | 2 | ||||
-rw-r--r-- | pkg/handler/user/profile.go | 4 | ||||
-rw-r--r-- | pkg/handler/user/register.go | 4 | ||||
-rw-r--r-- | pkg/service/user/login.go | 4 | ||||
-rw-r--r-- | pkg/service/user/register.go | 4 | ||||
-rw-r--r-- | pkg/tpl/layout.templ | 2 | ||||
-rw-r--r-- | pkg/tpl/layout_templ.go | 2 | ||||
-rw-r--r-- | pkg/tpl/profile.templ | 2 | ||||
-rw-r--r-- | pkg/tpl/profile_templ.go | 2 | ||||
-rw-r--r-- | pkg/utils/user.go | 4 |
15 files changed, 21 insertions, 21 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go index 6a9d30c..2d97609 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -3,8 +3,8 @@ package config import ( "os" - "go.neonxp.ru/framework/pkg/db" "gopkg.in/yaml.v3" + "neonxp.ru/go/framework/pkg/db" ) type Config struct { diff --git a/pkg/handler/error.go b/pkg/handler/error.go index eac791d..821a3f3 100644 --- a/pkg/handler/error.go +++ b/pkg/handler/error.go @@ -5,7 +5,7 @@ import ( "net/http" "github.com/labstack/echo/v4" - "go.neonxp.ru/framework/pkg/tpl" + "neonxp.ru/go/framework/pkg/tpl" ) func ErrorHandler(err error, c echo.Context) { diff --git a/pkg/handler/user/errors.go b/pkg/handler/user/errors.go index ab8fc4a..875dec5 100644 --- a/pkg/handler/user/errors.go +++ b/pkg/handler/user/errors.go @@ -3,7 +3,7 @@ package user import ( "errors" - "go.neonxp.ru/framework/pkg/service/user" + "neonxp.ru/go/framework/pkg/service/user" ) var UserErrors = Errors{ diff --git a/pkg/handler/user/handler.go b/pkg/handler/user/handler.go index 6bc8bff..b23003f 100644 --- a/pkg/handler/user/handler.go +++ b/pkg/handler/user/handler.go @@ -2,7 +2,7 @@ package user import ( "github.com/labstack/echo/v4" - "go.neonxp.ru/framework/pkg/service/user" + "neonxp.ru/go/framework/pkg/service/user" ) type Handler struct { diff --git a/pkg/handler/user/login.go b/pkg/handler/user/login.go index b3fbdbf..fca8465 100644 --- a/pkg/handler/user/login.go +++ b/pkg/handler/user/login.go @@ -5,8 +5,8 @@ import ( "github.com/labstack/echo/v4" - "go.neonxp.ru/framework/pkg/tpl" - "go.neonxp.ru/framework/pkg/utils" + "neonxp.ru/go/framework/pkg/tpl" + "neonxp.ru/go/framework/pkg/utils" ) const oneyear = 86400 * 365 diff --git a/pkg/handler/user/logout.go b/pkg/handler/user/logout.go index 9b7ea5f..4844ede 100644 --- a/pkg/handler/user/logout.go +++ b/pkg/handler/user/logout.go @@ -4,7 +4,7 @@ import ( "net/http" "github.com/labstack/echo/v4" - "go.neonxp.ru/framework/pkg/utils" + "neonxp.ru/go/framework/pkg/utils" ) func (*Handler) Logout(c echo.Context) error { diff --git a/pkg/handler/user/profile.go b/pkg/handler/user/profile.go index 7181ca7..ab8457b 100644 --- a/pkg/handler/user/profile.go +++ b/pkg/handler/user/profile.go @@ -2,8 +2,8 @@ package user import ( "github.com/labstack/echo/v4" - "go.neonxp.ru/framework/pkg/tpl" - "go.neonxp.ru/framework/pkg/utils" + "neonxp.ru/go/framework/pkg/tpl" + "neonxp.ru/go/framework/pkg/utils" ) func (*Handler) Profile(c echo.Context) error { diff --git a/pkg/handler/user/register.go b/pkg/handler/user/register.go index 2bd810a..40d4265 100644 --- a/pkg/handler/user/register.go +++ b/pkg/handler/user/register.go @@ -4,8 +4,8 @@ import ( "net/http" "github.com/labstack/echo/v4" - "go.neonxp.ru/framework/pkg/tpl" - "go.neonxp.ru/framework/pkg/utils" + "neonxp.ru/go/framework/pkg/tpl" + "neonxp.ru/go/framework/pkg/utils" ) func (h *Handler) RegisterForm(c echo.Context) error { diff --git a/pkg/service/user/login.go b/pkg/service/user/login.go index d1f5c65..c1ef0c0 100644 --- a/pkg/service/user/login.go +++ b/pkg/service/user/login.go @@ -7,8 +7,8 @@ import ( normalizer "github.com/dimuska139/go-email-normalizer/v3" "golang.org/x/crypto/bcrypt" - "go.neonxp.ru/framework/pkg/model" - "go.neonxp.ru/framework/pkg/tpl" + "neonxp.ru/go/framework/pkg/model" + "neonxp.ru/go/framework/pkg/tpl" ) var ErrInvalidUserOrPassword = errors.New("invalid_user_or_password") diff --git a/pkg/service/user/register.go b/pkg/service/user/register.go index 69f19a2..cc47de5 100644 --- a/pkg/service/user/register.go +++ b/pkg/service/user/register.go @@ -9,8 +9,8 @@ import ( "github.com/uptrace/bun/driver/pgdriver" "golang.org/x/crypto/bcrypt" - "go.neonxp.ru/framework/pkg/model" - "go.neonxp.ru/framework/pkg/tpl" + "neonxp.ru/go/framework/pkg/model" + "neonxp.ru/go/framework/pkg/tpl" ) var ( diff --git a/pkg/tpl/layout.templ b/pkg/tpl/layout.templ index 4993b97..d95fcb3 100644 --- a/pkg/tpl/layout.templ +++ b/pkg/tpl/layout.templ @@ -1,6 +1,6 @@ package tpl -import "go.neonxp.ru/framework/pkg/utils" +import "neonxp.ru/go/framework/pkg/utils" templ Layout() { {{ user := utils.GetUserCtx(ctx) }} diff --git a/pkg/tpl/layout_templ.go b/pkg/tpl/layout_templ.go index 1edca5a..6f5f524 100644 --- a/pkg/tpl/layout_templ.go +++ b/pkg/tpl/layout_templ.go @@ -8,7 +8,7 @@ package tpl import "github.com/a-h/templ" import templruntime "github.com/a-h/templ/runtime" -import "go.neonxp.ru/framework/pkg/utils" +import "neonxp.ru/go/framework/pkg/utils" func Layout() templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { diff --git a/pkg/tpl/profile.templ b/pkg/tpl/profile.templ index 61a9221..0038dd2 100644 --- a/pkg/tpl/profile.templ +++ b/pkg/tpl/profile.templ @@ -1,6 +1,6 @@ package tpl -import "go.neonxp.ru/framework/pkg/model" +import "neonxp.ru/go/framework/pkg/model" templ Profile(user *model.User) { @Layout() { diff --git a/pkg/tpl/profile_templ.go b/pkg/tpl/profile_templ.go index e51ab9a..afc6e86 100644 --- a/pkg/tpl/profile_templ.go +++ b/pkg/tpl/profile_templ.go @@ -8,7 +8,7 @@ package tpl import "github.com/a-h/templ" import templruntime "github.com/a-h/templ/runtime" -import "go.neonxp.ru/framework/pkg/model" +import "neonxp.ru/go/framework/pkg/model" func Profile(user *model.User) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { diff --git a/pkg/utils/user.go b/pkg/utils/user.go index 4006b3c..bb6c0bf 100644 --- a/pkg/utils/user.go +++ b/pkg/utils/user.go @@ -6,8 +6,8 @@ import ( "github.com/gorilla/sessions" "github.com/labstack/echo-contrib/session" "github.com/labstack/echo/v4" - "go.neonxp.ru/framework/pkg/middleware" - "go.neonxp.ru/framework/pkg/model" + "neonxp.ru/go/framework/pkg/middleware" + "neonxp.ru/go/framework/pkg/model" ) func GetUserCtx(ctx context.Context) *model.User { |