Skip to content

Commit ebe12bb

Browse files
chore: switch module origin to kcoderhtml/hackatime
1 parent 13d8fed commit ebe12bb

File tree

138 files changed

+674
-576
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+674
-576
lines changed

config/config.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ import (
1313

1414
"github.com/duke-git/lancet/v2/slice"
1515

16+
"log/slog"
17+
1618
"github.com/gofrs/uuid/v5"
1719
"github.com/gorilla/securecookie"
1820
"github.com/jinzhu/configor"
19-
"github.com/muety/wakapi/data"
20-
"github.com/muety/wakapi/utils"
21+
"github.com/kcoderhtml/hackatime/data"
22+
"github.com/kcoderhtml/hackatime/utils"
2123
"github.com/robfig/cron/v3"
22-
"log/slog"
2324
)
2425

2526
const (

config/jobqueue.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package config
22

33
import (
44
"fmt"
5-
"github.com/muety/artifex/v2"
6-
"github.com/muety/wakapi/utils"
75
"log/slog"
6+
7+
"github.com/kcoderhtml/hackatime/utils"
8+
"github.com/muety/artifex/v2"
89
)
910

1011
var jobQueues map[string]*artifex.Dispatcher

helpers/date.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ package helpers
22

33
import (
44
"fmt"
5-
"github.com/muety/wakapi/config"
65
"time"
6+
7+
"github.com/kcoderhtml/hackatime/config"
78
)
89

910
// ParseDateTimeTZ attempts to parse the given date string from multiple formats.

helpers/http.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ package helpers
33
import (
44
"encoding/json"
55
"errors"
6-
"github.com/muety/wakapi/config"
7-
"github.com/muety/wakapi/models"
86
"net/http"
7+
8+
"github.com/kcoderhtml/hackatime/config"
9+
"github.com/kcoderhtml/hackatime/models"
910
)
1011

1112
func ExtractCookieAuth(r *http.Request, config *config.Config) (username *string, err error) {

helpers/interval.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package helpers
22

33
import (
44
"errors"
5-
"github.com/muety/wakapi/models"
6-
"github.com/muety/wakapi/utils"
75
"time"
6+
7+
"github.com/kcoderhtml/hackatime/models"
8+
"github.com/kcoderhtml/hackatime/utils"
89
)
910

1011
func ParseInterval(interval string) (*models.IntervalKey, error) {

helpers/interval_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package helpers
22

33
import (
4-
"github.com/muety/wakapi/models"
5-
"github.com/stretchr/testify/assert"
64
"testing"
75
"time"
6+
7+
"github.com/kcoderhtml/hackatime/models"
8+
"github.com/stretchr/testify/assert"
89
)
910

1011
func TestResolveMaximumRange_Default(t *testing.T) {

helpers/summary.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package helpers
22

33
import (
44
"errors"
5-
"github.com/muety/wakapi/models"
65
"net/http"
76
"time"
7+
8+
"github.com/kcoderhtml/hackatime/models"
89
)
910

1011
func ParseSummaryParams(r *http.Request) (*models.SummaryParams, error) {

main.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ import (
2525
"gorm.io/gorm"
2626
"gorm.io/gorm/logger"
2727

28-
conf "github.com/muety/wakapi/config"
29-
"github.com/muety/wakapi/middlewares"
30-
"github.com/muety/wakapi/migrations"
31-
"github.com/muety/wakapi/repositories"
32-
"github.com/muety/wakapi/routes"
33-
"github.com/muety/wakapi/routes/api"
34-
shieldsV1Routes "github.com/muety/wakapi/routes/compat/shields/v1"
35-
wtV1Routes "github.com/muety/wakapi/routes/compat/wakatime/v1"
36-
"github.com/muety/wakapi/routes/relay"
37-
"github.com/muety/wakapi/services"
38-
"github.com/muety/wakapi/services/mail"
39-
"github.com/muety/wakapi/static/docs"
40-
fsutils "github.com/muety/wakapi/utils/fs"
28+
conf "github.com/kcoderhtml/hackatime/config"
29+
"github.com/kcoderhtml/hackatime/middlewares"
30+
"github.com/kcoderhtml/hackatime/migrations"
31+
"github.com/kcoderhtml/hackatime/repositories"
32+
"github.com/kcoderhtml/hackatime/routes"
33+
"github.com/kcoderhtml/hackatime/routes/api"
34+
shieldsV1Routes "github.com/kcoderhtml/hackatime/routes/compat/shields/v1"
35+
wtV1Routes "github.com/kcoderhtml/hackatime/routes/compat/wakatime/v1"
36+
"github.com/kcoderhtml/hackatime/routes/relay"
37+
"github.com/kcoderhtml/hackatime/services"
38+
"github.com/kcoderhtml/hackatime/services/mail"
39+
"github.com/kcoderhtml/hackatime/static/docs"
40+
fsutils "github.com/kcoderhtml/hackatime/utils/fs"
4141

4242
_ "net/http/pprof"
4343
)

middlewares/authenticate.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ package middlewares
33
import (
44
"errors"
55
"fmt"
6-
"github.com/duke-git/lancet/v2/slice"
7-
"github.com/muety/wakapi/helpers"
86
"net"
97
"net/http"
108
"strings"
119

12-
conf "github.com/muety/wakapi/config"
13-
"github.com/muety/wakapi/models"
14-
"github.com/muety/wakapi/services"
15-
"github.com/muety/wakapi/utils"
10+
"github.com/duke-git/lancet/v2/slice"
11+
"github.com/kcoderhtml/hackatime/helpers"
12+
13+
conf "github.com/kcoderhtml/hackatime/config"
14+
"github.com/kcoderhtml/hackatime/models"
15+
"github.com/kcoderhtml/hackatime/services"
16+
"github.com/kcoderhtml/hackatime/utils"
1617
)
1718

1819
const (

middlewares/authenticate_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ package middlewares
33
import (
44
"encoding/base64"
55
"fmt"
6-
"github.com/muety/wakapi/config"
76
"net/http"
87
"net/url"
98
"testing"
109

11-
"github.com/muety/wakapi/mocks"
12-
"github.com/muety/wakapi/models"
10+
"github.com/kcoderhtml/hackatime/config"
11+
12+
"github.com/kcoderhtml/hackatime/mocks"
13+
"github.com/kcoderhtml/hackatime/models"
1314
"github.com/stretchr/testify/assert"
1415
)
1516

0 commit comments

Comments
 (0)