chore: update package name

This commit is contained in:
Steven 2023-11-25 10:40:16 +08:00
parent b7999a4db2
commit 263812f98f
56 changed files with 146 additions and 139 deletions

View File

@ -29,7 +29,7 @@ issues:
linters-settings: linters-settings:
goimports: goimports:
# Put imports beginning with prefix after 3rd-party packages. # Put imports beginning with prefix after 3rd-party packages.
local-prefixes: github.com/boojack/slash local-prefixes: github.com/yourselfhosted/slash
revive: revive:
# Default to run all linters so that new rules in the future could automatically be added to the static check. # Default to run all linters so that new rules in the future could automatically be added to the static check.
enable-all-rules: true enable-all-rules: true

View File

@ -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/) 🧩 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).
<a href="https://demo.slash.yourselfhosted.com">Live Demo</a><a href="https://discord.gg/QZqUuUAhDV">Discord</a> <a href="https://demo.slash.yourselfhosted.com">Live Demo</a><a href="https://discord.gg/QZqUuUAhDV">Discord</a>
<p> <p>
<a href="https://hub.docker.com/r/yourselfhosted/slash"><img alt="Docker pull" src="https://img.shields.io/docker/pulls/yourselfhosted/slash.svg"/></a> <a href="https://hub.docker.com/r/yourselfhosted/slash"><img alt="Docker pull" src="https://img.shields.io/docker/pulls/yourselfhosted/slash.svg"/></a>
<a href="https://github.com/boojack/slash/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/boojack/slash?logo=github"/></a> <a href="https://github.com/yourselfhosted/slash/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/yourselfhosted/slash?logo=github"/></a>
</p> </p>
![demo](./docs/assets/demo.png) ![demo](./docs/assets/demo.png)
@ -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 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 ## Browser Extension
@ -46,7 +46,7 @@ Slash provides a browser extension to help you use your shortcuts in the search
![browser-extension-example](./docs/assets/browser-extension-example.png) ![browser-extension-example](./docs/assets/browser-extension-example.png)
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 ### Chromium based browsers

View File

@ -10,8 +10,8 @@ import (
"github.com/mssola/useragent" "github.com/mssola/useragent"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
"github.com/boojack/slash/server/metric" "github.com/yourselfhosted/slash/server/metric"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
type ReferenceInfo struct { type ReferenceInfo struct {

View File

@ -11,11 +11,11 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
"github.com/boojack/slash/api/auth" "github.com/yourselfhosted/slash/api/auth"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/server/metric" "github.com/yourselfhosted/slash/server/metric"
"github.com/boojack/slash/server/service/license" "github.com/yourselfhosted/slash/server/service/license"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
type SignInRequest struct { type SignInRequest struct {

View File

@ -9,10 +9,10 @@ import (
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/boojack/slash/api/auth" "github.com/yourselfhosted/slash/api/auth"
"github.com/boojack/slash/internal/util" "github.com/yourselfhosted/slash/internal/util"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
const ( const (

View File

@ -11,9 +11,9 @@ import (
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"github.com/pkg/errors" "github.com/pkg/errors"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/server/metric" "github.com/yourselfhosted/slash/server/metric"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
func (s *APIV1Service) registerRedirectorRoutes(g *echo.Group) { func (s *APIV1Service) registerRedirectorRoutes(g *echo.Group) {

View File

@ -10,10 +10,10 @@ import (
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/boojack/slash/internal/util" "github.com/yourselfhosted/slash/internal/util"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/server/metric" "github.com/yourselfhosted/slash/server/metric"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
// Visibility is the type of a shortcut visibility. // Visibility is the type of a shortcut visibility.

View File

@ -10,10 +10,10 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
"github.com/boojack/slash/internal/util" "github.com/yourselfhosted/slash/internal/util"
"github.com/boojack/slash/server/metric" "github.com/yourselfhosted/slash/server/metric"
"github.com/boojack/slash/server/service/license" "github.com/yourselfhosted/slash/server/service/license"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
const ( const (

View File

@ -3,9 +3,9 @@ package v1
import ( import (
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"github.com/boojack/slash/server/profile" "github.com/yourselfhosted/slash/server/profile"
"github.com/boojack/slash/server/service/license" "github.com/yourselfhosted/slash/server/service/license"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
type APIV1Service struct { type APIV1Service struct {

View File

@ -6,9 +6,9 @@ import (
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/server/profile" "github.com/yourselfhosted/slash/server/profile"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
type WorkspaceProfile struct { type WorkspaceProfile struct {

View File

@ -12,10 +12,10 @@ import (
"google.golang.org/grpc/metadata" "google.golang.org/grpc/metadata"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
"github.com/boojack/slash/api/auth" "github.com/yourselfhosted/slash/api/auth"
"github.com/boojack/slash/internal/util" "github.com/yourselfhosted/slash/internal/util"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
// ContextKey is the key type of context value. // ContextKey is the key type of context value.

View File

@ -12,12 +12,12 @@ import (
"google.golang.org/grpc/metadata" "google.golang.org/grpc/metadata"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
"github.com/boojack/slash/api/auth" "github.com/yourselfhosted/slash/api/auth"
apiv2pb "github.com/boojack/slash/proto/gen/api/v2" apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/server/metric" "github.com/yourselfhosted/slash/server/metric"
"github.com/boojack/slash/server/service/license" "github.com/yourselfhosted/slash/server/service/license"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
func (s *APIV2Service) SignIn(ctx context.Context, request *apiv2pb.SignInRequest) (*apiv2pb.SignInResponse, error) { func (s *APIV2Service) SignIn(ctx context.Context, request *apiv2pb.SignInRequest) (*apiv2pb.SignInResponse, error) {

View File

@ -8,11 +8,11 @@ import (
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/timestamppb" "google.golang.org/protobuf/types/known/timestamppb"
apiv2pb "github.com/boojack/slash/proto/gen/api/v2" apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/server/metric" "github.com/yourselfhosted/slash/server/metric"
"github.com/boojack/slash/server/service/license" "github.com/yourselfhosted/slash/server/service/license"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
func (s *APIV2Service) ListCollections(ctx context.Context, _ *apiv2pb.ListCollectionsRequest) (*apiv2pb.ListCollectionsResponse, error) { func (s *APIV2Service) ListCollections(ctx context.Context, _ *apiv2pb.ListCollectionsRequest) (*apiv2pb.ListCollectionsResponse, error) {

View File

@ -1,8 +1,8 @@
package v2 package v2
import ( import (
apiv2pb "github.com/boojack/slash/proto/gen/api/v2" apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
func convertRowStatusFromStore(rowStatus store.RowStatus) apiv2pb.RowStatus { func convertRowStatusFromStore(rowStatus store.RowStatus) apiv2pb.RowStatus {

View File

@ -14,10 +14,10 @@ import (
"google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/types/known/timestamppb" "google.golang.org/protobuf/types/known/timestamppb"
apiv2pb "github.com/boojack/slash/proto/gen/api/v2" apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/server/metric" "github.com/yourselfhosted/slash/server/metric"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
func (s *APIV2Service) ListShortcuts(ctx context.Context, _ *apiv2pb.ListShortcutsRequest) (*apiv2pb.ListShortcutsResponse, error) { func (s *APIV2Service) ListShortcuts(ctx context.Context, _ *apiv2pb.ListShortcutsRequest) (*apiv2pb.ListShortcutsResponse, error) {

View File

@ -6,7 +6,7 @@ import (
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"
"google.golang.org/grpc/status" "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) { func (s *APIV2Service) GetSubscription(ctx context.Context, _ *apiv2pb.GetSubscriptionRequest) (*apiv2pb.GetSubscriptionResponse, error) {

View File

@ -12,11 +12,11 @@ import (
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/timestamppb" "google.golang.org/protobuf/types/known/timestamppb"
"github.com/boojack/slash/api/auth" "github.com/yourselfhosted/slash/api/auth"
apiv2pb "github.com/boojack/slash/proto/gen/api/v2" apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/server/service/license" "github.com/yourselfhosted/slash/server/service/license"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
func (s *APIV2Service) ListUsers(ctx context.Context, _ *apiv2pb.ListUsersRequest) (*apiv2pb.ListUsersResponse, error) { func (s *APIV2Service) ListUsers(ctx context.Context, _ *apiv2pb.ListUsersRequest) (*apiv2pb.ListUsersResponse, error) {

View File

@ -7,9 +7,9 @@ import (
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
apiv2pb "github.com/boojack/slash/proto/gen/api/v2" apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
func (s *APIV2Service) GetUserSetting(ctx context.Context, request *apiv2pb.GetUserSettingRequest) (*apiv2pb.GetUserSettingResponse, error) { func (s *APIV2Service) GetUserSetting(ctx context.Context, request *apiv2pb.GetUserSettingRequest) (*apiv2pb.GetUserSettingResponse, error) {

View File

@ -11,10 +11,10 @@ import (
"google.golang.org/grpc/credentials/insecure" "google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/reflection" "google.golang.org/grpc/reflection"
apiv2pb "github.com/boojack/slash/proto/gen/api/v2" apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
"github.com/boojack/slash/server/profile" "github.com/yourselfhosted/slash/server/profile"
"github.com/boojack/slash/server/service/license" "github.com/yourselfhosted/slash/server/service/license"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
type APIV2Service struct { type APIV2Service struct {

View File

@ -6,9 +6,9 @@ import (
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
apiv2pb "github.com/boojack/slash/proto/gen/api/v2" apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
func (s *APIV2Service) GetWorkspaceProfile(ctx context.Context, _ *apiv2pb.GetWorkspaceProfileRequest) (*apiv2pb.GetWorkspaceProfileResponse, error) { func (s *APIV2Service) GetWorkspaceProfile(ctx context.Context, _ *apiv2pb.GetWorkspaceProfileRequest) (*apiv2pb.GetWorkspaceProfileResponse, error) {

View File

@ -13,12 +13,12 @@ import (
"go.uber.org/zap" "go.uber.org/zap"
_ "modernc.org/sqlite" _ "modernc.org/sqlite"
"github.com/boojack/slash/internal/log" "github.com/yourselfhosted/slash/internal/log"
"github.com/boojack/slash/server" "github.com/yourselfhosted/slash/server"
"github.com/boojack/slash/server/metric" "github.com/yourselfhosted/slash/server/metric"
"github.com/boojack/slash/server/profile" "github.com/yourselfhosted/slash/server/profile"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
"github.com/boojack/slash/store/db" "github.com/yourselfhosted/slash/store/db"
) )
const ( const (
@ -134,7 +134,7 @@ func printGreetings() {
fmt.Printf("Version %s has been started on port %d\n", serverProfile.Version, serverProfile.Port) fmt.Printf("Version %s has been started on port %d\n", serverProfile.Version, serverProfile.Port)
println("---") println("---")
println("See more in:") 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("---") println("---")
} }

View File

@ -44,7 +44,7 @@ Assume that docker compose is deployed in the `/opt/slash` directory.
```bash ```bash
mkdir -p /opt/slash && cd /opt/slash 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 docker compose up -d
``` ```

View File

@ -150,7 +150,7 @@ const CreateShortcutsButton = () => {
<Input <Input
className="grow" className="grow"
type="text" type="text"
placeholder="e.g., https://github.com/boojack/slash" placeholder="e.g., https://github.com/yourselfhosted/slash"
value={state.link} value={state.link}
onChange={handleLinkInputChange} onChange={handleLinkInputChange}
/> />

View File

@ -70,7 +70,7 @@ const IndexOptions = () => {
<div className="w-full flex flex-row justify-center items-center"> <div className="w-full flex flex-row justify-center items-center">
<a <a
className="bg-yellow-100 dark:bg-yellow-500 dark:opacity-70 mt-12 py-2 px-3 rounded-full border dark:border-yellow-600 flex flex-row justify-start items-center cursor-pointer shadow hover:underline hover:text-blue-600" className="bg-yellow-100 dark:bg-yellow-500 dark:opacity-70 mt-12 py-2 px-3 rounded-full border dark:border-yellow-600 flex flex-row justify-start items-center cursor-pointer shadow hover:underline hover:text-blue-600"
href="https://github.com/boojack/slash#browser-extension" href="https://github.com/yourselfhosted/slash#browser-extension"
target="_blank" target="_blank"
> >
<Icon.HelpCircle className="w-4 h-auto" /> <Icon.HelpCircle className="w-4 h-auto" />

View File

@ -62,7 +62,14 @@ const IndexPopup = () => {
<IconButton size="sm" variant="plain" color="neutral" onClick={handleSettingButtonClick}> <IconButton size="sm" variant="plain" color="neutral" onClick={handleSettingButtonClick}>
<Icon.Settings className="w-5 h-auto text-gray-500 dark:text-gray-400" /> <Icon.Settings className="w-5 h-auto text-gray-500 dark:text-gray-400" />
</IconButton> </IconButton>
<IconButton size="sm" variant="plain" color="neutral" component="a" href="https://github.com/boojack/slash" target="_blank"> <IconButton
size="sm"
variant="plain"
color="neutral"
component="a"
href="https://github.com/yourselfhosted/slash"
target="_blank"
>
<Icon.Github className="w-5 h-auto text-gray-500 dark:text-gray-400" /> <Icon.Github className="w-5 h-auto text-gray-500 dark:text-gray-400" />
</IconButton> </IconButton>
</div> </div>

View File

@ -25,7 +25,7 @@ const AboutDialog: React.FC<Props> = (props: Props) => {
</p> </p>
<div className="mt-1"> <div className="mt-1">
<span className="mr-2">See more in</span> <span className="mr-2">See more in</span>
<Link variant="plain" href="https://github.com/boojack/slash" target="_blank"> <Link variant="plain" href="https://github.com/yourselfhosted/slash" target="_blank">
GitHub GitHub
</Link> </Link>
</div> </div>

View File

@ -13,7 +13,7 @@ const DemoBanner: React.FC = () => {
<span>🔗 Slash - An open source, self-hosted bookmarks and link sharing platform</span> <span>🔗 Slash - An open source, self-hosted bookmarks and link sharing platform</span>
<a <a
className="shadow flex flex-row justify-center items-center px-2 py-1 rounded-md text-sm sm:text-base text-white bg-blue-600 hover:bg-blue-700" className="shadow flex flex-row justify-center items-center px-2 py-1 rounded-md text-sm sm:text-base text-white bg-blue-600 hover:bg-blue-700"
href="https://github.com/boojack/slash#deploy-with-docker-in-seconds" href="https://github.com/yourselfhosted/slash#deploy-with-docker-in-seconds"
target="_blank" target="_blank"
> >
Install Install

View File

@ -73,7 +73,7 @@ const SubscriptionSetting: React.FC = () => {
<div className="max-w-4xl mx-auto mb-12"> <div className="max-w-4xl mx-auto mb-12">
<Alert className="!inline-block mb-12"> <Alert className="!inline-block mb-12">
Slash is open source bookmarks and link sharing platform. Our source code is available and accessible on{" "} Slash is open source bookmarks and link sharing platform. Our source code is available and accessible on{" "}
<Link href="https://github.com/boojack/slash">GitHub</Link> so anyone can get it, inspect it and review it. <Link href="https://github.com/yourselfhosted/slash">GitHub</Link> so anyone can get it, inspect it and review it.
</Alert> </Alert>
</div> </div>
<div className="w-full grid grid-cols-1 gap-6 lg:gap-12 mt-8 md:grid-cols-3 md:max-w-4xl mx-auto"> <div className="w-full grid grid-cols-1 gap-6 lg:gap-12 mt-8 md:grid-cols-3 md:max-w-4xl mx-auto">

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/boojack/slash module github.com/yourselfhosted/slash
go 1.21 go 1.21

View File

@ -5,7 +5,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/boojack/slash/internal/cron" "github.com/yourselfhosted/slash/internal/cron"
) )
func TestNewMoment(t *testing.T) { func TestNewMoment(t *testing.T) {

View File

@ -2,7 +2,7 @@ version: v1
managed: managed:
enabled: true enabled: true
go_package_prefix: go_package_prefix:
default: github.com/boojack/slash/proto/gen default: github.com/yourselfhosted/slash/proto/gen
except: except:
- buf.build/googleapis/googleapis - buf.build/googleapis/googleapis
plugins: plugins:

View File

@ -8,7 +8,7 @@ import (
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware" "github.com/labstack/echo/v4/middleware"
"github.com/boojack/slash/internal/util" "github.com/yourselfhosted/slash/internal/util"
) )
//go:embed dist //go:embed dist

View File

@ -3,7 +3,7 @@ package metric
import ( import (
"github.com/posthog/posthog-go" "github.com/posthog/posthog-go"
"github.com/boojack/slash/server/profile" "github.com/yourselfhosted/slash/server/profile"
) )
const ( const (

View File

@ -10,7 +10,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/boojack/slash/server/version" "github.com/yourselfhosted/slash/server/version"
) )
// Profile is the configuration to start main server. // Profile is the configuration to start main server.

View File

@ -15,15 +15,15 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"go.uber.org/zap" "go.uber.org/zap"
apiv1 "github.com/boojack/slash/api/v1" apiv1 "github.com/yourselfhosted/slash/api/v1"
apiv2 "github.com/boojack/slash/api/v2" apiv2 "github.com/yourselfhosted/slash/api/v2"
"github.com/boojack/slash/internal/log" "github.com/yourselfhosted/slash/internal/log"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/server/metric" "github.com/yourselfhosted/slash/server/metric"
"github.com/boojack/slash/server/profile" "github.com/yourselfhosted/slash/server/profile"
"github.com/boojack/slash/server/service/license" "github.com/yourselfhosted/slash/server/service/license"
"github.com/boojack/slash/server/service/resource" "github.com/yourselfhosted/slash/server/service/resource"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
type Server struct { type Server struct {

View File

@ -7,10 +7,10 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"google.golang.org/protobuf/types/known/timestamppb" "google.golang.org/protobuf/types/known/timestamppb"
apiv2pb "github.com/boojack/slash/proto/gen/api/v2" apiv2pb "github.com/yourselfhosted/slash/proto/gen/api/v2"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/server/profile" "github.com/yourselfhosted/slash/server/profile"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
type LicenseService struct { type LicenseService struct {

View File

@ -9,8 +9,8 @@ import (
"github.com/h2non/filetype" "github.com/h2non/filetype"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"github.com/boojack/slash/server/profile" "github.com/yourselfhosted/slash/server/profile"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
const ( const (

View File

@ -7,8 +7,8 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/boojack/slash/internal/util" "github.com/yourselfhosted/slash/internal/util"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
) )
type UpdateCollection struct { type UpdateCollection struct {

View File

@ -1,7 +1,7 @@
package store package store
import ( import (
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
) )
// RowStatus is the status for a row. // RowStatus is the status for a row.

View File

@ -14,8 +14,8 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/boojack/slash/server/profile" "github.com/yourselfhosted/slash/server/profile"
"github.com/boojack/slash/server/version" "github.com/yourselfhosted/slash/server/version"
) )
//go:embed migration //go:embed migration

View File

@ -9,7 +9,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"google.golang.org/protobuf/encoding/protojson" "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 { type UpdateShortcut struct {

View File

@ -4,7 +4,7 @@ import (
"database/sql" "database/sql"
"sync" "sync"
"github.com/boojack/slash/server/profile" "github.com/yourselfhosted/slash/server/profile"
) )
// Store provides database access to all raw objects. // Store provides database access to all raw objects.

View File

@ -8,7 +8,7 @@ import (
"google.golang.org/protobuf/encoding/protojson" "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 { type FindUserSetting struct {

View File

@ -8,7 +8,7 @@ import (
"google.golang.org/protobuf/encoding/protojson" "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 { type FindWorkspaceSetting struct {

View File

@ -9,7 +9,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
apiv1 "github.com/boojack/slash/api/v1" apiv1 "github.com/yourselfhosted/slash/api/v1"
) )
func TestAuthServer(t *testing.T) { func TestAuthServer(t *testing.T) {

View File

@ -14,12 +14,12 @@ import (
// sqlite driver. // sqlite driver.
_ "modernc.org/sqlite" _ "modernc.org/sqlite"
"github.com/boojack/slash/api/auth" "github.com/yourselfhosted/slash/api/auth"
"github.com/boojack/slash/server" "github.com/yourselfhosted/slash/server"
"github.com/boojack/slash/server/profile" "github.com/yourselfhosted/slash/server/profile"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
"github.com/boojack/slash/store/db" "github.com/yourselfhosted/slash/store/db"
"github.com/boojack/slash/test" "github.com/yourselfhosted/slash/test"
) )
type TestingServer struct { type TestingServer struct {

View File

@ -10,7 +10,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
apiv1 "github.com/boojack/slash/api/v1" apiv1 "github.com/yourselfhosted/slash/api/v1"
) )
func TestShortcutServer(t *testing.T) { func TestShortcutServer(t *testing.T) {

View File

@ -10,7 +10,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
apiv1 "github.com/boojack/slash/api/v1" apiv1 "github.com/yourselfhosted/slash/api/v1"
) )
func TestUserServer(t *testing.T) { func TestUserServer(t *testing.T) {

View File

@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
func TestActivityStore(t *testing.T) { func TestActivityStore(t *testing.T) {

View File

@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
func TestCollectionStore(t *testing.T) { func TestCollectionStore(t *testing.T) {

View File

@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
func TestShortcutStore(t *testing.T) { func TestShortcutStore(t *testing.T) {

View File

@ -8,9 +8,9 @@ import (
// sqlite driver. // sqlite driver.
_ "modernc.org/sqlite" _ "modernc.org/sqlite"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
"github.com/boojack/slash/store/db" "github.com/yourselfhosted/slash/store/db"
test "github.com/boojack/slash/test" test "github.com/yourselfhosted/slash/test"
) )
func NewTestingStore(ctx context.Context, t *testing.T) *store.Store { func NewTestingStore(ctx context.Context, t *testing.T) *store.Store {

View File

@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
func TestUserSettingStore(t *testing.T) { func TestUserSettingStore(t *testing.T) {

View File

@ -7,8 +7,8 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
func TestUserStore(t *testing.T) { func TestUserStore(t *testing.T) {

View File

@ -7,8 +7,8 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
storepb "github.com/boojack/slash/proto/gen/store" storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/boojack/slash/store" "github.com/yourselfhosted/slash/store"
) )
func TestWorkspaceSettingStore(t *testing.T) { func TestWorkspaceSettingStore(t *testing.T) {

View File

@ -5,8 +5,8 @@ import (
"net" "net"
"testing" "testing"
"github.com/boojack/slash/server/profile" "github.com/yourselfhosted/slash/server/profile"
"github.com/boojack/slash/server/version" "github.com/yourselfhosted/slash/server/version"
) )
func getUnusedPort() int { func getUnusedPort() int {