Skip to content

Commit

Permalink
Change domain reference (see #170)
Browse files Browse the repository at this point in the history
  • Loading branch information
yznts committed Oct 14, 2024
1 parent 069f55a commit 9365af2
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</p>

```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.
Expand Down
4 changes: 2 additions & 2 deletions component/state.server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions component/state.universal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions component/use.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=
2 changes: 1 addition & 1 deletion htmx/funcmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion htmx/post.go
Original file line number Diff line number Diff line change
@@ -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()) {
Expand Down
9 changes: 5 additions & 4 deletions rendering/funcmap.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion rendering/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion rendering/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion rendering/renderer.template.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"html/template"
"io"

"go.kyoto.codes/v3/component"
"github.com/yznts/kyoto/v3/component"
)

// Global template configuration defaults.
Expand Down

0 comments on commit 9365af2

Please sign in to comment.