From 9365af280a5eb6a064aac2d379312e383131216f Mon Sep 17 00:00:00 2001 From: Yurii Zinets Date: Mon, 14 Oct 2024 11:57:52 +0200 Subject: [PATCH] Change domain reference (see https://github.com/yznts/kyoto/issues/170) --- README.md | 2 +- component/state.server.go | 4 ++-- component/state.universal.go | 4 ++-- component/use.go | 4 ++-- go.mod | 4 ++-- go.sum | 4 ++-- htmx/funcmap.go | 2 +- htmx/post.go | 2 +- rendering/funcmap.go | 9 +++++---- rendering/handler.go | 2 +- rendering/renderer.go | 2 +- rendering/renderer.template.go | 2 +- 12 files changed, 21 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 51a48b5..3d92c89 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@

```go -import "go.kyoto.codes/v3" +import "github.com/yznts/kyoto/v3" ``` Kyoto is a library for creating fast, server side frontend avoiding vanilla templating downsides. diff --git a/component/state.server.go b/component/state.server.go index 3abd442..9b9f463 100644 --- a/component/state.server.go +++ b/component/state.server.go @@ -8,8 +8,8 @@ import ( "strings" "time" - "go.kyoto.codes/zen/v3/errorsx" - "go.kyoto.codes/zen/v3/logic" + "github.com/yznts/zen/v3/errorsx" + "github.com/yznts/zen/v3/logic" ) // Server is a default server component state implementation. diff --git a/component/state.universal.go b/component/state.universal.go index c8edda9..596769c 100644 --- a/component/state.universal.go +++ b/component/state.universal.go @@ -5,8 +5,8 @@ import ( "encoding/json" "net/url" - "go.kyoto.codes/zen/v3/errorsx" - "go.kyoto.codes/zen/v3/jsonx" + "github.com/yznts/zen/v3/errorsx" + "github.com/yznts/zen/v3/jsonx" ) // Universal is a default universal component state implementation. diff --git a/component/use.go b/component/use.go index d609eee..21aedec 100644 --- a/component/use.go +++ b/component/use.go @@ -1,8 +1,8 @@ package component import ( - "go.kyoto.codes/zen/v3/async" - "go.kyoto.codes/zen/v3/errorsx" + "github.com/yznts/zen/v3/async" + "github.com/yznts/zen/v3/errorsx" ) // Use allows you to use your components in asynchronous way. diff --git a/go.mod b/go.mod index 1902b29..5eecdfc 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ -module go.kyoto.codes/v3 +module github.com/yznts/kyoto/v3 go 1.20 -require go.kyoto.codes/zen/v3 v3.0.0 +require github.com/yznts/zen/v3 v3.2.1 diff --git a/go.sum b/go.sum index bd288b5..549640b 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -go.kyoto.codes/zen/v3 v3.0.0 h1:USERmDZJlJYrMnTK/2e8b0JCa5X9AXCC4iULwD/+SB4= -go.kyoto.codes/zen/v3 v3.0.0/go.mod h1:mL1cTOqQ9EgZ1QeItYltjO4MPQakLXz/Xeu+dd/LO1g= +github.com/yznts/zen/v3 v3.2.1 h1:kMtN/B3DwnsKNExTNVcqv3cbFr5IWcqbEOpaIsiAaXg= +github.com/yznts/zen/v3 v3.2.1/go.mod h1:iXXQhyljuxrlcl13iFSxsGNGZISkUdgQhPdVj5UNRXU= diff --git a/htmx/funcmap.go b/htmx/funcmap.go index 26ba9e6..b4003a4 100644 --- a/htmx/funcmap.go +++ b/htmx/funcmap.go @@ -4,7 +4,7 @@ import ( "fmt" "html/template" - "go.kyoto.codes/v3/component" + "github.com/yznts/kyoto/v3/component" ) // FuncMap holds a library predefined template functions. diff --git a/htmx/post.go b/htmx/post.go index 13161d9..91ec41c 100644 --- a/htmx/post.go +++ b/htmx/post.go @@ -1,6 +1,6 @@ package htmx -import "go.kyoto.codes/v3/component" +import "github.com/yznts/kyoto/v3/component" // Post is a helper function that simplifies the handling of stateful htmx POST requests. func Post(ctx *component.Context, state component.State, handler func()) { diff --git a/rendering/funcmap.go b/rendering/funcmap.go index ef532b6..90bc67b 100644 --- a/rendering/funcmap.go +++ b/rendering/funcmap.go @@ -1,13 +1,14 @@ package rendering import ( - "go.kyoto.codes/v3/htmx" "html/template" "strings" - "go.kyoto.codes/v3/component" - "go.kyoto.codes/zen/v3/errorsx" - "go.kyoto.codes/zen/v3/mapx" + "github.com/yznts/kyoto/v3/htmx" + + "github.com/yznts/kyoto/v3/component" + "github.com/yznts/zen/v3/errorsx" + "github.com/yznts/zen/v3/mapx" ) // FuncMap holds a library predefined template functions. diff --git a/rendering/handler.go b/rendering/handler.go index c7a9f12..00ac663 100644 --- a/rendering/handler.go +++ b/rendering/handler.go @@ -3,7 +3,7 @@ package rendering import ( "net/http" - "go.kyoto.codes/v3/component" + "github.com/yznts/kyoto/v3/component" ) // Handler builds a http.HandlerFunc that renders provided component. diff --git a/rendering/renderer.go b/rendering/renderer.go index 545ccd2..9c53789 100644 --- a/rendering/renderer.go +++ b/rendering/renderer.go @@ -3,7 +3,7 @@ package rendering import ( "io" - "go.kyoto.codes/v3/component" + "github.com/yznts/kyoto/v3/component" ) // Renderer defines requirements for rendering implementations. diff --git a/rendering/renderer.template.go b/rendering/renderer.template.go index e97c986..81cf304 100644 --- a/rendering/renderer.template.go +++ b/rendering/renderer.template.go @@ -5,7 +5,7 @@ import ( "html/template" "io" - "go.kyoto.codes/v3/component" + "github.com/yznts/kyoto/v3/component" ) // Global template configuration defaults.