Cody Joyce 2 months ago
parent
commit
b6d83419e5

+ 5 - 5
app/app.go

@@ -1,12 +1,12 @@
 package app
 
 import (
-	"gex/app/route/home"
-	"gex/pkg/sec"
-	"gex/pkg/sess"
+	"git.clearsky.net.au/cody/gex.git/app/route/home"
+	"git.clearsky.net.au/cody/gex.git/pkg/sec"
+	"git.clearsky.net.au/cody/gex.git/pkg/sess"
 
-	"gex/pkg/gen"
-	"gex/pkg/gex"
+	"git.clearsky.net.au/cody/gex.git/pkg/gen"
+	"git.clearsky.net.au/cody/gex.git/pkg/gex"
 )
 
 func Init() {

+ 2 - 2
app/route/home/home.go

@@ -1,8 +1,8 @@
 package home
 
 import (
-	"gex/pkg/gex"
-	"gex/pkg/render"
+	"git.clearsky.net.au/cody/gex.git/pkg/gex"
+	"git.clearsky.net.au/cody/gex.git/pkg/render"
 )
 
 func Index(req *gex.Req, res gex.Res) {

+ 1 - 1
go.mod

@@ -1,3 +1,3 @@
-module gex
+module git.clearsky.net.au/cody/gex.git
 
 go 1.23.4

+ 3 - 4
main.go

@@ -1,10 +1,9 @@
 package main
 
 import (
-	"gex/app"
-
-	"gex/pkg/gex"
-	"gex/pkg/utils"
+	"git.clearsky.net.au/cody/gex.git/app"
+	"git.clearsky.net.au/cody/gex.git/pkg/gex"
+	"git.clearsky.net.au/cody/gex.git/pkg/utils"
 )
 
 func main() {

+ 1 - 1
pkg/gen/html.go

@@ -1,7 +1,7 @@
 package gen
 
 import (
-	"gex/pkg/gen/domquery"
+	"git.clearsky.net.au/cody/gex.git/pkg/gen/domquery"
 )
 
 func AddClassAttr(htmlStr string, className string) string {

+ 2 - 1
pkg/gen/img/img.go

@@ -2,11 +2,12 @@ package img
 
 import (
 	"fmt"
-	"gex/pkg/gen/domquery"
 	"os"
 	"os/exec"
 	"path/filepath"
 	"strings"
+
+	"git.clearsky.net.au/cody/gex.git/pkg/gen/domquery"
 )
 
 func Process(htmlDir string, tag *domquery.Node) string {

+ 2 - 1
pkg/gen/layout/main.go

@@ -2,9 +2,10 @@ package layout
 
 import (
 	"fmt"
-	"gex/pkg/gen/domquery"
 	"os"
 	"strings"
+
+	"git.clearsky.net.au/cody/gex.git/pkg/gen/domquery"
 )
 
 func ProcessHTML(htmlStr string) (string, error) {

+ 5 - 4
pkg/gen/main.go

@@ -2,14 +2,15 @@ package gen
 
 import (
 	"fmt"
-	"gex/pkg/gen/domquery"
-	"gex/pkg/gen/img"
-	"gex/pkg/gen/layout"
-	"gex/pkg/gen/partial"
 	"math/rand"
 	"os"
 	"path/filepath"
 	"strings"
+
+	"git.clearsky.net.au/cody/gex.git/pkg/gen/domquery"
+	"git.clearsky.net.au/cody/gex.git/pkg/gen/img"
+	"git.clearsky.net.au/cody/gex.git/pkg/gen/layout"
+	"git.clearsky.net.au/cody/gex.git/pkg/gen/partial"
 )
 
 var appRuleList cssRuleList

+ 2 - 1
pkg/gen/partial/partial.go

@@ -2,9 +2,10 @@ package partial
 
 import (
 	"fmt"
-	"gex/pkg/gen/domquery"
 	"os"
 	"strings"
+
+	"git.clearsky.net.au/cody/gex.git/pkg/gen/domquery"
 )
 
 func ProcessHTML(htmlStr string) (string, error) {

+ 2 - 2
pkg/render/global.go

@@ -1,8 +1,8 @@
 package render
 
 import (
-	"gex/pkg/gex"
-	"gex/pkg/sess"
+	"git.clearsky.net.au/cody/gex.git/pkg/gex"
+	"git.clearsky.net.au/cody/gex.git/pkg/sess"
 )
 
 func global(req *gex.Req, props Props, funcs Funcs) {

+ 3 - 2
pkg/render/render.go

@@ -2,11 +2,12 @@ package render
 
 import (
 	"bytes"
-	"gex/pkg/gex"
-	"gex/pkg/utils"
 	"html/template"
 	"path/filepath"
 	"strings"
+
+	"git.clearsky.net.au/cody/gex.git/pkg/gex"
+	"git.clearsky.net.au/cody/gex.git/pkg/utils"
 )
 
 type Props map[string]any

+ 2 - 2
pkg/sec/middleware.go

@@ -1,8 +1,8 @@
 package sec
 
 import (
-	"gex/pkg/gex"
-	"gex/pkg/sess"
+	"git.clearsky.net.au/cody/gex.git/pkg/gex"
+	"git.clearsky.net.au/cody/gex.git/pkg/sess"
 )
 
 func Middleware(req *gex.Req, res gex.Res) bool {

+ 1 - 1
pkg/sec/secure.go

@@ -1,6 +1,6 @@
 package sec
 
-import "gex/pkg/gex"
+import "git.clearsky.net.au/cody/gex.git/pkg/gex"
 
 var permissions = make(map[string][]string)
 

+ 2 - 1
pkg/sess/jwt/jwt.go

@@ -6,8 +6,9 @@ import (
 	"crypto/sha256"
 	"errors"
 	"fmt"
-	"gex/pkg/sess/base64"
 	"strings"
+
+	"git.clearsky.net.au/cody/gex.git/pkg/sess/base64"
 )
 
 // encode json bytes to a jwt token string

+ 1 - 1
pkg/sess/middleware.go

@@ -1,6 +1,6 @@
 package sess
 
-import "gex/pkg/gex"
+import "git.clearsky.net.au/cody/gex.git/pkg/gex"
 
 func Middleware(req *gex.Req, res gex.Res) bool {
 	var sess Sess

+ 3 - 2
pkg/sess/session.go

@@ -3,8 +3,9 @@ package sess
 import (
 	"encoding/json"
 	"fmt"
-	"gex/pkg/gex"
-	"gex/pkg/sess/jwt"
+
+	"git.clearsky.net.au/cody/gex.git/pkg/gex"
+	"git.clearsky.net.au/cody/gex.git/pkg/sess/jwt"
 
 	"time"
 )