From 263812f98fc6d2ea9cc282665341c135a2ca2900 Mon Sep 17 00:00:00 2001
From: Steven
Date: Sat, 25 Nov 2023 10:40:16 +0800
Subject: [PATCH] chore: update package name
---
.golangci.yaml | 2 +-
README.md | 8 ++++----
api/v1/analytics.go | 4 ++--
api/v1/auth.go | 10 +++++-----
api/v1/jwt.go | 8 ++++----
api/v1/redirector.go | 6 +++---
api/v1/shortcut.go | 8 ++++----
api/v1/user.go | 8 ++++----
api/v1/v1.go | 6 +++---
api/v1/workspace.go | 6 +++---
api/v2/acl.go | 8 ++++----
api/v2/auth_service.go | 12 ++++++------
api/v2/collection_service.go | 10 +++++-----
api/v2/common.go | 4 ++--
api/v2/shortcut_service.go | 8 ++++----
api/v2/subscription_service.go | 2 +-
api/v2/user_service.go | 10 +++++-----
api/v2/user_setting_service.go | 6 +++---
api/v2/v2.go | 8 ++++----
api/v2/workspace_service.go | 6 +++---
bin/slash/main.go | 14 +++++++-------
docs/install.md | 2 +-
.../src/components/CreateShortcutsButton.tsx | 2 +-
frontend/extension/src/options.tsx | 2 +-
frontend/extension/src/popup.tsx | 9 ++++++++-
frontend/web/src/components/AboutDialog.tsx | 2 +-
frontend/web/src/components/DemoBanner.tsx | 2 +-
frontend/web/src/pages/SubscriptionSetting.tsx | 2 +-
go.mod | 2 +-
internal/cron/schedule_test.go | 2 +-
proto/buf.gen.yaml | 2 +-
server/embed_frontend.go | 2 +-
server/metric/metric.go | 2 +-
server/profile/profile.go | 2 +-
server/server.go | 18 +++++++++---------
server/service/license/license.go | 8 ++++----
server/service/resource/resource.go | 4 ++--
store/collection.go | 4 ++--
store/common.go | 2 +-
store/db/db.go | 4 ++--
store/shortcut.go | 2 +-
store/store.go | 2 +-
store/user_setting.go | 2 +-
store/workspace_setting.go | 2 +-
test/server/auth_test.go | 2 +-
test/server/server.go | 12 ++++++------
test/server/shortcut_test.go | 2 +-
test/server/user_test.go | 2 +-
test/store/activity_test.go | 2 +-
test/store/collection_test.go | 4 ++--
test/store/shortcut_test.go | 4 ++--
test/store/store.go | 6 +++---
test/store/user_setting_test.go | 4 ++--
test/store/user_test.go | 4 ++--
test/store/workspace_setting_test.go | 4 ++--
test/test.go | 4 ++--
56 files changed, 146 insertions(+), 139 deletions(-)
diff --git a/.golangci.yaml b/.golangci.yaml
index a687e02..3d9984e 100644
--- a/.golangci.yaml
+++ b/.golangci.yaml
@@ -29,7 +29,7 @@ issues:
linters-settings:
goimports:
# Put imports beginning with prefix after 3rd-party packages.
- local-prefixes: github.com/boojack/slash
+ local-prefixes: github.com/yourselfhosted/slash
revive:
# Default to run all linters so that new rules in the future could automatically be added to the static check.
enable-all-rules: true
diff --git a/README.md b/README.md
index b440f87..b2c956e 100644
--- a/README.md
+++ b/README.md
@@ -6,13 +6,13 @@
🧩 Browser extension(v1.0.0) now available! - [Chrome Web Store](https://chrome.google.com/webstore/detail/slash/ebaiehmkammnacjadffpicipfckgeobg), [Firefox Add-on](https://addons.mozilla.org/firefox/addon/your-slash/)
-Getting started with Slash's [Shortcuts](https://github.com/boojack/slash/blob/main/docs/getting-started/shortcuts.md) and [Collections](https://github.com/boojack/slash/blob/main/docs/getting-started/collections.md).
+Getting started with Slash's [Shortcuts](https://github.com/yourselfhosted/slash/blob/main/docs/getting-started/shortcuts.md) and [Collections](https://github.com/yourselfhosted/slash/blob/main/docs/getting-started/collections.md).
Live Demo • Discord
-
+

@@ -38,7 +38,7 @@ That's why we developed Slash, a solution that transforms these links into easil
docker run -d --name slash -p 5231:5231 -v ~/.slash/:/var/opt/slash yourselfhosted/slash:latest
```
-Learn more in [Self-hosting Slash with Docker](https://github.com/boojack/slash/blob/main/docs/install.md).
+Learn more in [Self-hosting Slash with Docker](https://github.com/yourselfhosted/slash/blob/main/docs/install.md).
## Browser Extension
@@ -46,7 +46,7 @@ Slash provides a browser extension to help you use your shortcuts in the search

-Learn more in [The Browser Extension of Slash](https://github.com/boojack/slash/blob/main/docs/install-browser-extension.md).
+Learn more in [The Browser Extension of Slash](https://github.com/yourselfhosted/slash/blob/main/docs/install-browser-extension.md).
### Chromium based browsers
diff --git a/api/v1/analytics.go b/api/v1/analytics.go
index e366d0b..16fba55 100644
--- a/api/v1/analytics.go
+++ b/api/v1/analytics.go
@@ -10,8 +10,8 @@ import (
"github.com/mssola/useragent"
"golang.org/x/exp/slices"
- "github.com/boojack/slash/server/metric"
- "github.com/boojack/slash/store"
+ "github.com/yourselfhosted/slash/server/metric"
+ "github.com/yourselfhosted/slash/store"
)
type ReferenceInfo struct {
diff --git a/api/v1/auth.go b/api/v1/auth.go
index 3fc192e..056146f 100644
--- a/api/v1/auth.go
+++ b/api/v1/auth.go
@@ -11,11 +11,11 @@ import (
"github.com/pkg/errors"
"golang.org/x/crypto/bcrypt"
- "github.com/boojack/slash/api/auth"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/server/metric"
- "github.com/boojack/slash/server/service/license"
- "github.com/boojack/slash/store"
+ "github.com/yourselfhosted/slash/api/auth"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/server/metric"
+ "github.com/yourselfhosted/slash/server/service/license"
+ "github.com/yourselfhosted/slash/store"
)
type SignInRequest struct {
diff --git a/api/v1/jwt.go b/api/v1/jwt.go
index 545e62f..6d03a6d 100644
--- a/api/v1/jwt.go
+++ b/api/v1/jwt.go
@@ -9,10 +9,10 @@ import (
"github.com/labstack/echo/v4"
"github.com/pkg/errors"
- "github.com/boojack/slash/api/auth"
- "github.com/boojack/slash/internal/util"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/store"
+ "github.com/yourselfhosted/slash/api/auth"
+ "github.com/yourselfhosted/slash/internal/util"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/store"
)
const (
diff --git a/api/v1/redirector.go b/api/v1/redirector.go
index 187d715..4475ada 100644
--- a/api/v1/redirector.go
+++ b/api/v1/redirector.go
@@ -11,9 +11,9 @@ import (
"github.com/labstack/echo/v4"
"github.com/pkg/errors"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/server/metric"
- "github.com/boojack/slash/store"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/server/metric"
+ "github.com/yourselfhosted/slash/store"
)
func (s *APIV1Service) registerRedirectorRoutes(g *echo.Group) {
diff --git a/api/v1/shortcut.go b/api/v1/shortcut.go
index 9047620..b7c2ff5 100644
--- a/api/v1/shortcut.go
+++ b/api/v1/shortcut.go
@@ -10,10 +10,10 @@ import (
"github.com/labstack/echo/v4"
"github.com/pkg/errors"
- "github.com/boojack/slash/internal/util"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/server/metric"
- "github.com/boojack/slash/store"
+ "github.com/yourselfhosted/slash/internal/util"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/server/metric"
+ "github.com/yourselfhosted/slash/store"
)
// Visibility is the type of a shortcut visibility.
diff --git a/api/v1/user.go b/api/v1/user.go
index c516fd4..7370199 100644
--- a/api/v1/user.go
+++ b/api/v1/user.go
@@ -10,10 +10,10 @@ import (
"github.com/pkg/errors"
"golang.org/x/crypto/bcrypt"
- "github.com/boojack/slash/internal/util"
- "github.com/boojack/slash/server/metric"
- "github.com/boojack/slash/server/service/license"
- "github.com/boojack/slash/store"
+ "github.com/yourselfhosted/slash/internal/util"
+ "github.com/yourselfhosted/slash/server/metric"
+ "github.com/yourselfhosted/slash/server/service/license"
+ "github.com/yourselfhosted/slash/store"
)
const (
diff --git a/api/v1/v1.go b/api/v1/v1.go
index cd9f085..db1826b 100644
--- a/api/v1/v1.go
+++ b/api/v1/v1.go
@@ -3,9 +3,9 @@ package v1
import (
"github.com/labstack/echo/v4"
- "github.com/boojack/slash/server/profile"
- "github.com/boojack/slash/server/service/license"
- "github.com/boojack/slash/store"
+ "github.com/yourselfhosted/slash/server/profile"
+ "github.com/yourselfhosted/slash/server/service/license"
+ "github.com/yourselfhosted/slash/store"
)
type APIV1Service struct {
diff --git a/api/v1/workspace.go b/api/v1/workspace.go
index ef218b5..b2630ef 100644
--- a/api/v1/workspace.go
+++ b/api/v1/workspace.go
@@ -6,9 +6,9 @@ import (
"github.com/labstack/echo/v4"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/server/profile"
- "github.com/boojack/slash/store"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/server/profile"
+ "github.com/yourselfhosted/slash/store"
)
type WorkspaceProfile struct {
diff --git a/api/v2/acl.go b/api/v2/acl.go
index 36306b2..da4d5a5 100644
--- a/api/v2/acl.go
+++ b/api/v2/acl.go
@@ -12,10 +12,10 @@ import (
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"
- "github.com/boojack/slash/api/auth"
- "github.com/boojack/slash/internal/util"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/store"
+ "github.com/yourselfhosted/slash/api/auth"
+ "github.com/yourselfhosted/slash/internal/util"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/store"
)
// ContextKey is the key type of context value.
diff --git a/api/v2/auth_service.go b/api/v2/auth_service.go
index fad20af..af6d006 100644
--- a/api/v2/auth_service.go
+++ b/api/v2/auth_service.go
@@ -12,12 +12,12 @@ import (
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"
- "github.com/boojack/slash/api/auth"
- apiv2pb "github.com/boojack/slash/proto/gen/api/v2"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/server/metric"
- "github.com/boojack/slash/server/service/license"
- "github.com/boojack/slash/store"
+ "github.com/yourselfhosted/slash/api/auth"
+ apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/server/metric"
+ "github.com/yourselfhosted/slash/server/service/license"
+ "github.com/yourselfhosted/slash/store"
)
func (s *APIV2Service) SignIn(ctx context.Context, request *apiv2pb.SignInRequest) (*apiv2pb.SignInResponse, error) {
diff --git a/api/v2/collection_service.go b/api/v2/collection_service.go
index 5bac48f..e0294f4 100644
--- a/api/v2/collection_service.go
+++ b/api/v2/collection_service.go
@@ -8,11 +8,11 @@ import (
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/timestamppb"
- apiv2pb "github.com/boojack/slash/proto/gen/api/v2"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/server/metric"
- "github.com/boojack/slash/server/service/license"
- "github.com/boojack/slash/store"
+ apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/server/metric"
+ "github.com/yourselfhosted/slash/server/service/license"
+ "github.com/yourselfhosted/slash/store"
)
func (s *APIV2Service) ListCollections(ctx context.Context, _ *apiv2pb.ListCollectionsRequest) (*apiv2pb.ListCollectionsResponse, error) {
diff --git a/api/v2/common.go b/api/v2/common.go
index bfbd327..7d3374c 100644
--- a/api/v2/common.go
+++ b/api/v2/common.go
@@ -1,8 +1,8 @@
package v2
import (
- apiv2pb "github.com/boojack/slash/proto/gen/api/v2"
- "github.com/boojack/slash/store"
+ apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
+ "github.com/yourselfhosted/slash/store"
)
func convertRowStatusFromStore(rowStatus store.RowStatus) apiv2pb.RowStatus {
diff --git a/api/v2/shortcut_service.go b/api/v2/shortcut_service.go
index 00d37f2..23429c4 100644
--- a/api/v2/shortcut_service.go
+++ b/api/v2/shortcut_service.go
@@ -14,10 +14,10 @@ import (
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/types/known/timestamppb"
- apiv2pb "github.com/boojack/slash/proto/gen/api/v2"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/server/metric"
- "github.com/boojack/slash/store"
+ apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/server/metric"
+ "github.com/yourselfhosted/slash/store"
)
func (s *APIV2Service) ListShortcuts(ctx context.Context, _ *apiv2pb.ListShortcutsRequest) (*apiv2pb.ListShortcutsResponse, error) {
diff --git a/api/v2/subscription_service.go b/api/v2/subscription_service.go
index 0e67747..7c4350e 100644
--- a/api/v2/subscription_service.go
+++ b/api/v2/subscription_service.go
@@ -6,7 +6,7 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
- apiv2pb "github.com/boojack/slash/proto/gen/api/v2"
+ apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
)
func (s *APIV2Service) GetSubscription(ctx context.Context, _ *apiv2pb.GetSubscriptionRequest) (*apiv2pb.GetSubscriptionResponse, error) {
diff --git a/api/v2/user_service.go b/api/v2/user_service.go
index a7553d1..08fd100 100644
--- a/api/v2/user_service.go
+++ b/api/v2/user_service.go
@@ -12,11 +12,11 @@ import (
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/timestamppb"
- "github.com/boojack/slash/api/auth"
- apiv2pb "github.com/boojack/slash/proto/gen/api/v2"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/server/service/license"
- "github.com/boojack/slash/store"
+ "github.com/yourselfhosted/slash/api/auth"
+ apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/server/service/license"
+ "github.com/yourselfhosted/slash/store"
)
func (s *APIV2Service) ListUsers(ctx context.Context, _ *apiv2pb.ListUsersRequest) (*apiv2pb.ListUsersResponse, error) {
diff --git a/api/v2/user_setting_service.go b/api/v2/user_setting_service.go
index fca8dfc..143c9bb 100644
--- a/api/v2/user_setting_service.go
+++ b/api/v2/user_setting_service.go
@@ -7,9 +7,9 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
- apiv2pb "github.com/boojack/slash/proto/gen/api/v2"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/store"
+ apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/store"
)
func (s *APIV2Service) GetUserSetting(ctx context.Context, request *apiv2pb.GetUserSettingRequest) (*apiv2pb.GetUserSettingResponse, error) {
diff --git a/api/v2/v2.go b/api/v2/v2.go
index 9c6c6c4..839fdb3 100644
--- a/api/v2/v2.go
+++ b/api/v2/v2.go
@@ -11,10 +11,10 @@ import (
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/reflection"
- apiv2pb "github.com/boojack/slash/proto/gen/api/v2"
- "github.com/boojack/slash/server/profile"
- "github.com/boojack/slash/server/service/license"
- "github.com/boojack/slash/store"
+ apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
+ "github.com/yourselfhosted/slash/server/profile"
+ "github.com/yourselfhosted/slash/server/service/license"
+ "github.com/yourselfhosted/slash/store"
)
type APIV2Service struct {
diff --git a/api/v2/workspace_service.go b/api/v2/workspace_service.go
index 4ce7f10..986bc8e 100644
--- a/api/v2/workspace_service.go
+++ b/api/v2/workspace_service.go
@@ -6,9 +6,9 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
- apiv2pb "github.com/boojack/slash/proto/gen/api/v2"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/store"
+ apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/store"
)
func (s *APIV2Service) GetWorkspaceProfile(ctx context.Context, _ *apiv2pb.GetWorkspaceProfileRequest) (*apiv2pb.GetWorkspaceProfileResponse, error) {
diff --git a/bin/slash/main.go b/bin/slash/main.go
index 81a2d78..a25e84b 100644
--- a/bin/slash/main.go
+++ b/bin/slash/main.go
@@ -13,12 +13,12 @@ import (
"go.uber.org/zap"
_ "modernc.org/sqlite"
- "github.com/boojack/slash/internal/log"
- "github.com/boojack/slash/server"
- "github.com/boojack/slash/server/metric"
- "github.com/boojack/slash/server/profile"
- "github.com/boojack/slash/store"
- "github.com/boojack/slash/store/db"
+ "github.com/yourselfhosted/slash/internal/log"
+ "github.com/yourselfhosted/slash/server"
+ "github.com/yourselfhosted/slash/server/metric"
+ "github.com/yourselfhosted/slash/server/profile"
+ "github.com/yourselfhosted/slash/store"
+ "github.com/yourselfhosted/slash/store/db"
)
const (
@@ -134,7 +134,7 @@ func printGreetings() {
fmt.Printf("Version %s has been started on port %d\n", serverProfile.Version, serverProfile.Port)
println("---")
println("See more in:")
- fmt.Printf("👉GitHub: %s\n", "https://github.com/boojack/slash")
+ fmt.Printf("👉GitHub: %s\n", "https://github.com/yourselfhosted/slash")
println("---")
}
diff --git a/docs/install.md b/docs/install.md
index 1b50f0c..06f7b32 100644
--- a/docs/install.md
+++ b/docs/install.md
@@ -44,7 +44,7 @@ Assume that docker compose is deployed in the `/opt/slash` directory.
```bash
mkdir -p /opt/slash && cd /opt/slash
-curl -#LO https://github.com/boojack/slash/raw/main/docker-compose.yml
+curl -#LO https://github.com/yourselfhosted/slash/raw/main/docker-compose.yml
docker compose up -d
```
diff --git a/frontend/extension/src/components/CreateShortcutsButton.tsx b/frontend/extension/src/components/CreateShortcutsButton.tsx
index 3dca7bf..69ff494 100644
--- a/frontend/extension/src/components/CreateShortcutsButton.tsx
+++ b/frontend/extension/src/components/CreateShortcutsButton.tsx
@@ -150,7 +150,7 @@ const CreateShortcutsButton = () => {
diff --git a/frontend/extension/src/options.tsx b/frontend/extension/src/options.tsx
index f1b7349..7aeb7d7 100644
--- a/frontend/extension/src/options.tsx
+++ b/frontend/extension/src/options.tsx
@@ -70,7 +70,7 @@ const IndexOptions = () => {
diff --git a/frontend/web/src/components/AboutDialog.tsx b/frontend/web/src/components/AboutDialog.tsx
index bcb53eb..0ae3a7e 100644
--- a/frontend/web/src/components/AboutDialog.tsx
+++ b/frontend/web/src/components/AboutDialog.tsx
@@ -25,7 +25,7 @@ const AboutDialog: React.FC = (props: Props) => {
See more in
-
+
GitHub
diff --git a/frontend/web/src/components/DemoBanner.tsx b/frontend/web/src/components/DemoBanner.tsx
index 26d0f9c..5754767 100644
--- a/frontend/web/src/components/DemoBanner.tsx
+++ b/frontend/web/src/components/DemoBanner.tsx
@@ -13,7 +13,7 @@ const DemoBanner: React.FC = () => {
✨🔗 Slash - An open source, self-hosted bookmarks and link sharing platform
Install
diff --git a/frontend/web/src/pages/SubscriptionSetting.tsx b/frontend/web/src/pages/SubscriptionSetting.tsx
index f1dfd85..34839a3 100644
--- a/frontend/web/src/pages/SubscriptionSetting.tsx
+++ b/frontend/web/src/pages/SubscriptionSetting.tsx
@@ -73,7 +73,7 @@ const SubscriptionSetting: React.FC = () => {
Slash is open source bookmarks and link sharing platform. Our source code is available and accessible on{" "}
- GitHub so anyone can get it, inspect it and review it.
+ GitHub so anyone can get it, inspect it and review it.
diff --git a/go.mod b/go.mod
index d137c46..85983e4 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/boojack/slash
+module github.com/yourselfhosted/slash
go 1.21
diff --git a/internal/cron/schedule_test.go b/internal/cron/schedule_test.go
index 7c4950c..4ca0f53 100644
--- a/internal/cron/schedule_test.go
+++ b/internal/cron/schedule_test.go
@@ -5,7 +5,7 @@ import (
"testing"
"time"
- "github.com/boojack/slash/internal/cron"
+ "github.com/yourselfhosted/slash/internal/cron"
)
func TestNewMoment(t *testing.T) {
diff --git a/proto/buf.gen.yaml b/proto/buf.gen.yaml
index 4a6878a..d642082 100644
--- a/proto/buf.gen.yaml
+++ b/proto/buf.gen.yaml
@@ -2,7 +2,7 @@ version: v1
managed:
enabled: true
go_package_prefix:
- default: github.com/boojack/slash/proto/gen
+ default: github.com/yourselfhosted/slash/proto/gen
except:
- buf.build/googleapis/googleapis
plugins:
diff --git a/server/embed_frontend.go b/server/embed_frontend.go
index 4e759ff..fa7e0ee 100644
--- a/server/embed_frontend.go
+++ b/server/embed_frontend.go
@@ -8,7 +8,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
- "github.com/boojack/slash/internal/util"
+ "github.com/yourselfhosted/slash/internal/util"
)
//go:embed dist
diff --git a/server/metric/metric.go b/server/metric/metric.go
index aa6c992..608fff0 100644
--- a/server/metric/metric.go
+++ b/server/metric/metric.go
@@ -3,7 +3,7 @@ package metric
import (
"github.com/posthog/posthog-go"
- "github.com/boojack/slash/server/profile"
+ "github.com/yourselfhosted/slash/server/profile"
)
const (
diff --git a/server/profile/profile.go b/server/profile/profile.go
index 3dbaad5..23ff1ec 100644
--- a/server/profile/profile.go
+++ b/server/profile/profile.go
@@ -10,7 +10,7 @@ import (
"github.com/pkg/errors"
"github.com/spf13/viper"
- "github.com/boojack/slash/server/version"
+ "github.com/yourselfhosted/slash/server/version"
)
// Profile is the configuration to start main server.
diff --git a/server/server.go b/server/server.go
index 6d9fab4..a053312 100644
--- a/server/server.go
+++ b/server/server.go
@@ -15,15 +15,15 @@ import (
"github.com/pkg/errors"
"go.uber.org/zap"
- apiv1 "github.com/boojack/slash/api/v1"
- apiv2 "github.com/boojack/slash/api/v2"
- "github.com/boojack/slash/internal/log"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/server/metric"
- "github.com/boojack/slash/server/profile"
- "github.com/boojack/slash/server/service/license"
- "github.com/boojack/slash/server/service/resource"
- "github.com/boojack/slash/store"
+ apiv1 "github.com/yourselfhosted/slash/api/v1"
+ apiv2 "github.com/yourselfhosted/slash/api/v2"
+ "github.com/yourselfhosted/slash/internal/log"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/server/metric"
+ "github.com/yourselfhosted/slash/server/profile"
+ "github.com/yourselfhosted/slash/server/service/license"
+ "github.com/yourselfhosted/slash/server/service/resource"
+ "github.com/yourselfhosted/slash/store"
)
type Server struct {
diff --git a/server/service/license/license.go b/server/service/license/license.go
index 96a7c06..912a5f1 100644
--- a/server/service/license/license.go
+++ b/server/service/license/license.go
@@ -7,10 +7,10 @@ import (
"github.com/pkg/errors"
"google.golang.org/protobuf/types/known/timestamppb"
- apiv2pb "github.com/boojack/slash/proto/gen/api/v2"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/server/profile"
- "github.com/boojack/slash/store"
+ apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/server/profile"
+ "github.com/yourselfhosted/slash/store"
)
type LicenseService struct {
diff --git a/server/service/resource/resource.go b/server/service/resource/resource.go
index 02cd71f..af76972 100644
--- a/server/service/resource/resource.go
+++ b/server/service/resource/resource.go
@@ -9,8 +9,8 @@ import (
"github.com/h2non/filetype"
"github.com/labstack/echo/v4"
- "github.com/boojack/slash/server/profile"
- "github.com/boojack/slash/store"
+ "github.com/yourselfhosted/slash/server/profile"
+ "github.com/yourselfhosted/slash/store"
)
const (
diff --git a/store/collection.go b/store/collection.go
index 130bca9..4bac2da 100644
--- a/store/collection.go
+++ b/store/collection.go
@@ -7,8 +7,8 @@ import (
"github.com/pkg/errors"
- "github.com/boojack/slash/internal/util"
- storepb "github.com/boojack/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/internal/util"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
)
type UpdateCollection struct {
diff --git a/store/common.go b/store/common.go
index a50e8d8..515644a 100644
--- a/store/common.go
+++ b/store/common.go
@@ -1,7 +1,7 @@
package store
import (
- storepb "github.com/boojack/slash/proto/gen/store"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
)
// RowStatus is the status for a row.
diff --git a/store/db/db.go b/store/db/db.go
index 6c14be2..6d9db47 100644
--- a/store/db/db.go
+++ b/store/db/db.go
@@ -14,8 +14,8 @@ import (
"github.com/pkg/errors"
- "github.com/boojack/slash/server/profile"
- "github.com/boojack/slash/server/version"
+ "github.com/yourselfhosted/slash/server/profile"
+ "github.com/yourselfhosted/slash/server/version"
)
//go:embed migration
diff --git a/store/shortcut.go b/store/shortcut.go
index a72eadd..13e65b9 100644
--- a/store/shortcut.go
+++ b/store/shortcut.go
@@ -9,7 +9,7 @@ import (
"github.com/pkg/errors"
"google.golang.org/protobuf/encoding/protojson"
- storepb "github.com/boojack/slash/proto/gen/store"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
)
type UpdateShortcut struct {
diff --git a/store/store.go b/store/store.go
index f6274f8..8d6c001 100644
--- a/store/store.go
+++ b/store/store.go
@@ -4,7 +4,7 @@ import (
"database/sql"
"sync"
- "github.com/boojack/slash/server/profile"
+ "github.com/yourselfhosted/slash/server/profile"
)
// Store provides database access to all raw objects.
diff --git a/store/user_setting.go b/store/user_setting.go
index f755dee..01dc552 100644
--- a/store/user_setting.go
+++ b/store/user_setting.go
@@ -8,7 +8,7 @@ import (
"google.golang.org/protobuf/encoding/protojson"
- storepb "github.com/boojack/slash/proto/gen/store"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
)
type FindUserSetting struct {
diff --git a/store/workspace_setting.go b/store/workspace_setting.go
index 1fd5f8a..401a35c 100644
--- a/store/workspace_setting.go
+++ b/store/workspace_setting.go
@@ -8,7 +8,7 @@ import (
"google.golang.org/protobuf/encoding/protojson"
- storepb "github.com/boojack/slash/proto/gen/store"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
)
type FindWorkspaceSetting struct {
diff --git a/test/server/auth_test.go b/test/server/auth_test.go
index aad2330..5cfcfdd 100644
--- a/test/server/auth_test.go
+++ b/test/server/auth_test.go
@@ -9,7 +9,7 @@ import (
"github.com/pkg/errors"
"github.com/stretchr/testify/require"
- apiv1 "github.com/boojack/slash/api/v1"
+ apiv1 "github.com/yourselfhosted/slash/api/v1"
)
func TestAuthServer(t *testing.T) {
diff --git a/test/server/server.go b/test/server/server.go
index 8721bd3..601763f 100644
--- a/test/server/server.go
+++ b/test/server/server.go
@@ -14,12 +14,12 @@ import (
// sqlite driver.
_ "modernc.org/sqlite"
- "github.com/boojack/slash/api/auth"
- "github.com/boojack/slash/server"
- "github.com/boojack/slash/server/profile"
- "github.com/boojack/slash/store"
- "github.com/boojack/slash/store/db"
- "github.com/boojack/slash/test"
+ "github.com/yourselfhosted/slash/api/auth"
+ "github.com/yourselfhosted/slash/server"
+ "github.com/yourselfhosted/slash/server/profile"
+ "github.com/yourselfhosted/slash/store"
+ "github.com/yourselfhosted/slash/store/db"
+ "github.com/yourselfhosted/slash/test"
)
type TestingServer struct {
diff --git a/test/server/shortcut_test.go b/test/server/shortcut_test.go
index ae67981..f2cbc4f 100644
--- a/test/server/shortcut_test.go
+++ b/test/server/shortcut_test.go
@@ -10,7 +10,7 @@ import (
"github.com/pkg/errors"
"github.com/stretchr/testify/require"
- apiv1 "github.com/boojack/slash/api/v1"
+ apiv1 "github.com/yourselfhosted/slash/api/v1"
)
func TestShortcutServer(t *testing.T) {
diff --git a/test/server/user_test.go b/test/server/user_test.go
index 6d19414..4ee5203 100644
--- a/test/server/user_test.go
+++ b/test/server/user_test.go
@@ -10,7 +10,7 @@ import (
"github.com/pkg/errors"
"github.com/stretchr/testify/require"
- apiv1 "github.com/boojack/slash/api/v1"
+ apiv1 "github.com/yourselfhosted/slash/api/v1"
)
func TestUserServer(t *testing.T) {
diff --git a/test/store/activity_test.go b/test/store/activity_test.go
index b2b5f23..12d88fe 100644
--- a/test/store/activity_test.go
+++ b/test/store/activity_test.go
@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
- "github.com/boojack/slash/store"
+ "github.com/yourselfhosted/slash/store"
)
func TestActivityStore(t *testing.T) {
diff --git a/test/store/collection_test.go b/test/store/collection_test.go
index 5c9d5dd..98e8734 100644
--- a/test/store/collection_test.go
+++ b/test/store/collection_test.go
@@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/require"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/store"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/store"
)
func TestCollectionStore(t *testing.T) {
diff --git a/test/store/shortcut_test.go b/test/store/shortcut_test.go
index 0ddf56d..137b579 100644
--- a/test/store/shortcut_test.go
+++ b/test/store/shortcut_test.go
@@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/require"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/store"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/store"
)
func TestShortcutStore(t *testing.T) {
diff --git a/test/store/store.go b/test/store/store.go
index 2a21f42..cf8d606 100644
--- a/test/store/store.go
+++ b/test/store/store.go
@@ -8,9 +8,9 @@ import (
// sqlite driver.
_ "modernc.org/sqlite"
- "github.com/boojack/slash/store"
- "github.com/boojack/slash/store/db"
- test "github.com/boojack/slash/test"
+ "github.com/yourselfhosted/slash/store"
+ "github.com/yourselfhosted/slash/store/db"
+ test "github.com/yourselfhosted/slash/test"
)
func NewTestingStore(ctx context.Context, t *testing.T) *store.Store {
diff --git a/test/store/user_setting_test.go b/test/store/user_setting_test.go
index 776babe..0aa097b 100644
--- a/test/store/user_setting_test.go
+++ b/test/store/user_setting_test.go
@@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/require"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/store"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/store"
)
func TestUserSettingStore(t *testing.T) {
diff --git a/test/store/user_test.go b/test/store/user_test.go
index 9b8b6ed..3c835c7 100644
--- a/test/store/user_test.go
+++ b/test/store/user_test.go
@@ -7,8 +7,8 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/crypto/bcrypt"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/store"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/store"
)
func TestUserStore(t *testing.T) {
diff --git a/test/store/workspace_setting_test.go b/test/store/workspace_setting_test.go
index af33690..d9e5363 100644
--- a/test/store/workspace_setting_test.go
+++ b/test/store/workspace_setting_test.go
@@ -7,8 +7,8 @@ import (
"github.com/google/uuid"
"github.com/stretchr/testify/require"
- storepb "github.com/boojack/slash/proto/gen/store"
- "github.com/boojack/slash/store"
+ storepb "github.com/yourselfhosted/slash/proto/gen/store"
+ "github.com/yourselfhosted/slash/store"
)
func TestWorkspaceSettingStore(t *testing.T) {
diff --git a/test/test.go b/test/test.go
index a3f3464..6bd507c 100644
--- a/test/test.go
+++ b/test/test.go
@@ -5,8 +5,8 @@ import (
"net"
"testing"
- "github.com/boojack/slash/server/profile"
- "github.com/boojack/slash/server/version"
+ "github.com/yourselfhosted/slash/server/profile"
+ "github.com/yourselfhosted/slash/server/version"
)
func getUnusedPort() int {