mirror of https://github.com/stashapp/stash.git
Moved everything out of internal
This commit is contained in:
parent
5b5a72364f
commit
59782a377f
|
@ -2,8 +2,8 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/internal/scraper"
|
||||
"github.com/stashapp/stash/models"
|
||||
"github.com/stashapp/stash/scraper"
|
||||
"sort"
|
||||
"strconv"
|
||||
)
|
|
@ -2,7 +2,7 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/models"
|
||||
"strconv"
|
||||
)
|
||||
|
|
@ -2,8 +2,8 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stashapp/stash/internal/api/urlbuilders"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/api/urlbuilders"
|
||||
"github.com/stashapp/stash/models"
|
||||
"strconv"
|
||||
)
|
||||
|
|
@ -2,10 +2,10 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stashapp/stash/internal/api/urlbuilders"
|
||||
"github.com/stashapp/stash/internal/manager"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/internal/utils"
|
||||
"github.com/stashapp/stash/api/urlbuilders"
|
||||
"github.com/stashapp/stash/manager"
|
||||
"github.com/stashapp/stash/models"
|
||||
"github.com/stashapp/stash/utils"
|
||||
"strconv"
|
||||
)
|
||||
|
|
@ -2,8 +2,8 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stashapp/stash/internal/api/urlbuilders"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/api/urlbuilders"
|
||||
"github.com/stashapp/stash/models"
|
||||
"strconv"
|
||||
)
|
||||
|
|
@ -2,8 +2,8 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stashapp/stash/internal/api/urlbuilders"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/api/urlbuilders"
|
||||
"github.com/stashapp/stash/models"
|
||||
"strconv"
|
||||
)
|
||||
|
|
@ -2,7 +2,7 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/models"
|
||||
"strconv"
|
||||
)
|
||||
|
|
@ -3,9 +3,9 @@ package api
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"github.com/stashapp/stash/internal/database"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/internal/utils"
|
||||
"github.com/stashapp/stash/database"
|
||||
"github.com/stashapp/stash/models"
|
||||
"github.com/stashapp/stash/utils"
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
|
@ -3,8 +3,8 @@ package api
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"github.com/stashapp/stash/internal/database"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/database"
|
||||
"github.com/stashapp/stash/models"
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
|
@ -3,9 +3,9 @@ package api
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"github.com/stashapp/stash/internal/database"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/internal/utils"
|
||||
"github.com/stashapp/stash/database"
|
||||
"github.com/stashapp/stash/models"
|
||||
"github.com/stashapp/stash/utils"
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
|
@ -2,8 +2,8 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stashapp/stash/internal/database"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/database"
|
||||
"github.com/stashapp/stash/models"
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
|
@ -2,7 +2,7 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/models"
|
||||
"strconv"
|
||||
)
|
||||
|
|
@ -2,7 +2,7 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/models"
|
||||
"strconv"
|
||||
)
|
||||
|
|
@ -2,7 +2,7 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/models"
|
||||
"strconv"
|
||||
)
|
||||
|
|
@ -2,7 +2,7 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/models"
|
||||
)
|
||||
|
||||
func (r *queryResolver) FindSceneMarkers(ctx context.Context, scene_marker_filter *models.SceneMarkerFilterType, filter *models.FindFilterType) (models.FindSceneMarkersResultType, error) {
|
|
@ -2,7 +2,7 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/models"
|
||||
"strconv"
|
||||
)
|
||||
|
|
@ -2,7 +2,7 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/models"
|
||||
"strconv"
|
||||
)
|
||||
|
|
@ -2,7 +2,7 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stashapp/stash/internal/manager"
|
||||
"github.com/stashapp/stash/manager"
|
||||
)
|
||||
|
||||
func (r *queryResolver) MetadataScan(ctx context.Context) (string, error) {
|
|
@ -3,7 +3,7 @@ package api
|
|||
import (
|
||||
"context"
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/models"
|
||||
"net/http"
|
||||
"strconv"
|
||||
)
|
|
@ -3,7 +3,7 @@ package api
|
|||
import (
|
||||
"context"
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/models"
|
||||
"net/http"
|
||||
"strconv"
|
||||
)
|
|
@ -3,10 +3,10 @@ package api
|
|||
import (
|
||||
"context"
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/stashapp/stash/internal/logger"
|
||||
"github.com/stashapp/stash/internal/manager"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/internal/utils"
|
||||
"github.com/stashapp/stash/logger"
|
||||
"github.com/stashapp/stash/manager"
|
||||
"github.com/stashapp/stash/models"
|
||||
"github.com/stashapp/stash/utils"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
|
@ -3,7 +3,7 @@ package api
|
|||
import (
|
||||
"context"
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/models"
|
||||
"net/http"
|
||||
"strconv"
|
||||
)
|
|
@ -10,8 +10,8 @@ import (
|
|||
"github.com/go-chi/chi/middleware"
|
||||
"github.com/gobuffalo/packr/v2"
|
||||
"github.com/rs/cors"
|
||||
"github.com/stashapp/stash/internal/logger"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/logger"
|
||||
"github.com/stashapp/stash/models"
|
||||
"net/http"
|
||||
"path"
|
||||
"runtime/debug"
|
|
@ -7,7 +7,7 @@ import (
|
|||
"github.com/golang-migrate/migrate/v4/source"
|
||||
"github.com/jmoiron/sqlx"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
"github.com/stashapp/stash/internal/logger"
|
||||
"github.com/stashapp/stash/logger"
|
||||
"runtime"
|
||||
"strings"
|
||||
)
|
|
@ -2,7 +2,7 @@ package ffmpeg
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/stashapp/stash/internal/logger"
|
||||
"github.com/stashapp/stash/logger"
|
||||
"io/ioutil"
|
||||
"os/exec"
|
||||
"regexp"
|
6
main.go
6
main.go
|
@ -1,9 +1,9 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/stashapp/stash/internal/api"
|
||||
"github.com/stashapp/stash/internal/database"
|
||||
"github.com/stashapp/stash/internal/manager"
|
||||
"github.com/stashapp/stash/api"
|
||||
"github.com/stashapp/stash/database"
|
||||
"github.com/stashapp/stash/manager"
|
||||
|
||||
_ "github.com/golang-migrate/migrate/v4/database/sqlite3"
|
||||
_ "github.com/golang-migrate/migrate/v4/source/file"
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
package manager
|
||||
|
||||
import "github.com/stashapp/stash/internal/manager/jsonschema"
|
||||
import (
|
||||
"github.com/stashapp/stash/manager/jsonschema"
|
||||
)
|
||||
|
||||
type jsonUtils struct {}
|
||||
|
|
@ -2,7 +2,7 @@ package jsonschema
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/stashapp/stash/internal/logger"
|
||||
"github.com/stashapp/stash/logger"
|
||||
"os"
|
||||
)
|
||||
|
|
@ -2,8 +2,8 @@ package manager
|
|||
|
||||
import (
|
||||
"github.com/bmatcuk/doublestar"
|
||||
"github.com/stashapp/stash/internal/logger"
|
||||
"github.com/stashapp/stash/internal/manager/paths"
|
||||
"github.com/stashapp/stash/logger"
|
||||
"github.com/stashapp/stash/manager/paths"
|
||||
"path/filepath"
|
||||
"sync"
|
||||
)
|
|
@ -1,8 +1,8 @@
|
|||
package paths
|
||||
|
||||
import (
|
||||
"github.com/stashapp/stash/internal/manager/jsonschema"
|
||||
"github.com/stashapp/stash/internal/utils"
|
||||
"github.com/stashapp/stash/manager/jsonschema"
|
||||
"github.com/stashapp/stash/utils"
|
||||
"os"
|
||||
"os/user"
|
||||
"path/filepath"
|
|
@ -2,7 +2,7 @@ package paths
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/stashapp/stash/internal/utils"
|
||||
"github.com/stashapp/stash/utils"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
|
@ -1,7 +1,7 @@
|
|||
package paths
|
||||
|
||||
import (
|
||||
"github.com/stashapp/stash/internal/manager/jsonschema"
|
||||
"github.com/stashapp/stash/manager/jsonschema"
|
||||
"path/filepath"
|
||||
)
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
package paths
|
||||
|
||||
import (
|
||||
"github.com/stashapp/stash/internal/utils"
|
||||
"github.com/stashapp/stash/utils"
|
||||
"path/filepath"
|
||||
)
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
package paths
|
||||
|
||||
import (
|
||||
"github.com/stashapp/stash/internal/utils"
|
||||
"github.com/stashapp/stash/utils"
|
||||
"path/filepath"
|
||||
)
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
package paths
|
||||
|
||||
import (
|
||||
"github.com/stashapp/stash/internal/utils"
|
||||
"github.com/stashapp/stash/utils"
|
||||
"path/filepath"
|
||||
)
|
||||
|
|
@ -3,11 +3,11 @@ package manager
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/stashapp/stash/internal/database"
|
||||
"github.com/stashapp/stash/internal/logger"
|
||||
"github.com/stashapp/stash/internal/manager/jsonschema"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/internal/utils"
|
||||
"github.com/stashapp/stash/database"
|
||||
"github.com/stashapp/stash/logger"
|
||||
"github.com/stashapp/stash/manager/jsonschema"
|
||||
"github.com/stashapp/stash/models"
|
||||
"github.com/stashapp/stash/utils"
|
||||
"math"
|
||||
"strconv"
|
||||
"sync"
|
|
@ -4,11 +4,11 @@ import (
|
|||
"context"
|
||||
"database/sql"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"github.com/stashapp/stash/internal/database"
|
||||
"github.com/stashapp/stash/internal/logger"
|
||||
"github.com/stashapp/stash/internal/manager/jsonschema"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/internal/utils"
|
||||
"github.com/stashapp/stash/database"
|
||||
"github.com/stashapp/stash/logger"
|
||||
"github.com/stashapp/stash/manager/jsonschema"
|
||||
"github.com/stashapp/stash/models"
|
||||
"github.com/stashapp/stash/utils"
|
||||
"strconv"
|
||||
"sync"
|
||||
"time"
|
|
@ -3,11 +3,11 @@ package manager
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"github.com/stashapp/stash/internal/database"
|
||||
"github.com/stashapp/stash/internal/ffmpeg"
|
||||
"github.com/stashapp/stash/internal/logger"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/internal/utils"
|
||||
"github.com/stashapp/stash/database"
|
||||
"github.com/stashapp/stash/ffmpeg"
|
||||
"github.com/stashapp/stash/logger"
|
||||
"github.com/stashapp/stash/models"
|
||||
"github.com/stashapp/stash/utils"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"sync"
|
|
@ -1,6 +1,6 @@
|
|||
package manager
|
||||
|
||||
import "github.com/stashapp/stash/internal/utils"
|
||||
import "github.com/stashapp/stash/utils"
|
||||
|
||||
func IsStreamable(videoPath string, checksum string) (bool, error) {
|
||||
fileType, err := utils.FileType(videoPath)
|
|
@ -5,9 +5,9 @@ import (
|
|||
"bytes"
|
||||
"database/sql"
|
||||
"github.com/disintegration/imaging"
|
||||
"github.com/stashapp/stash/internal/api/urlbuilders"
|
||||
"github.com/stashapp/stash/internal/logger"
|
||||
"github.com/stashapp/stash/internal/utils"
|
||||
"github.com/stashapp/stash/api/urlbuilders"
|
||||
"github.com/stashapp/stash/logger"
|
||||
"github.com/stashapp/stash/utils"
|
||||
"image"
|
||||
"image/jpeg"
|
||||
"io/ioutil"
|
|
@ -3,7 +3,7 @@ package models
|
|||
import (
|
||||
"database/sql"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"github.com/stashapp/stash/internal/database"
|
||||
"github.com/stashapp/stash/database"
|
||||
"path/filepath"
|
||||
)
|
||||
|
|
@ -3,7 +3,7 @@ package models
|
|||
import (
|
||||
"database/sql"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"github.com/stashapp/stash/internal/database"
|
||||
"github.com/stashapp/stash/database"
|
||||
)
|
||||
|
||||
type performerQueryBuilder struct {}
|
|
@ -3,7 +3,7 @@ package models
|
|||
import (
|
||||
"database/sql"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"github.com/stashapp/stash/internal/database"
|
||||
"github.com/stashapp/stash/database"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
|
@ -3,7 +3,7 @@ package models
|
|||
import (
|
||||
"database/sql"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"github.com/stashapp/stash/internal/database"
|
||||
"github.com/stashapp/stash/database"
|
||||
"strconv"
|
||||
)
|
||||
|
|
@ -3,7 +3,7 @@ package models
|
|||
import (
|
||||
"database/sql"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"github.com/stashapp/stash/internal/database"
|
||||
"github.com/stashapp/stash/database"
|
||||
)
|
||||
|
||||
type scrapedItemQueryBuilder struct{}
|
|
@ -4,7 +4,7 @@ import (
|
|||
"database/sql"
|
||||
"fmt"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"github.com/stashapp/stash/internal/database"
|
||||
"github.com/stashapp/stash/database"
|
||||
"reflect"
|
||||
"strconv"
|
||||
"strings"
|
|
@ -3,7 +3,7 @@ package models
|
|||
import (
|
||||
"database/sql"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"github.com/stashapp/stash/internal/database"
|
||||
"github.com/stashapp/stash/database"
|
||||
)
|
||||
|
||||
type studioQueryBuilder struct {}
|
|
@ -3,7 +3,7 @@ package models
|
|||
import (
|
||||
"database/sql"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"github.com/stashapp/stash/internal/database"
|
||||
"github.com/stashapp/stash/database"
|
||||
)
|
||||
|
||||
type tagQueryBuilder struct {}
|
|
@ -3,8 +3,8 @@ package scraper
|
|||
import (
|
||||
"fmt"
|
||||
"github.com/PuerkitoBio/goquery"
|
||||
"github.com/stashapp/stash/internal/logger"
|
||||
"github.com/stashapp/stash/internal/models"
|
||||
"github.com/stashapp/stash/logger"
|
||||
"github.com/stashapp/stash/models"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"regexp"
|
Loading…
Reference in New Issue