Update module name
This commit is contained in:
parent
89fcea28e1
commit
911afae88d
13 changed files with 21 additions and 17 deletions
|
@ -8,6 +8,8 @@ A privacy-respecting alternative front-end for Pixiv that doesn't suck
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
![CI badge](https://ci.codeberg.org/api/badges/12556/status.svg)
|
||||||
|
|
||||||
Questions? Feedbacks? You can [PM me](https://matrix.to/#/@vnpower:exozy.me) on
|
Questions? Feedbacks? You can [PM me](https://matrix.to/#/@vnpower:exozy.me) on
|
||||||
Matrix!
|
Matrix!
|
||||||
|
|
||||||
|
@ -23,7 +25,7 @@ You can keep track of this project's development
|
||||||
|
|
||||||
## Hosting
|
## Hosting
|
||||||
|
|
||||||
Check out [this page.](https://codeberg.org/VnPower/pixivfe/wiki/Hosting). We
|
Check out [this page](https://codeberg.org/VnPower/pixivfe/wiki/Hosting). We
|
||||||
currently have guides for Docker and Caddy.
|
currently have guides for Docker and Caddy.
|
||||||
|
|
||||||
Many thanks to [dragongoose](https://codeberg.org/dragongoose) for writing the
|
Many thanks to [dragongoose](https://codeberg.org/dragongoose) for writing the
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module pixivfe
|
module codeberg.org/vnpower/pixivfe
|
||||||
|
|
||||||
go 1.21
|
go 1.21
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"codeberg.org/vnpower/pixivfe/models"
|
||||||
"github.com/goccy/go-json"
|
"github.com/goccy/go-json"
|
||||||
"pixivfe/models"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func (p *PixivClient) GetArtworkImages(id string) ([]models.Image, error) {
|
func (p *PixivClient) GetArtworkImages(id string) ([]models.Image, error) {
|
||||||
|
|
|
@ -6,7 +6,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"pixivfe/models"
|
|
||||||
|
"codeberg.org/vnpower/pixivfe/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PixivClient struct {
|
type PixivClient struct {
|
||||||
|
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"html/template"
|
"html/template"
|
||||||
"net/http"
|
"net/http"
|
||||||
"pixivfe/models"
|
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"codeberg.org/vnpower/pixivfe/models"
|
||||||
"github.com/goccy/go-json"
|
"github.com/goccy/go-json"
|
||||||
"golang.org/x/net/html"
|
"golang.org/x/net/html"
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,8 +2,8 @@ package handler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"pixivfe/models"
|
|
||||||
|
|
||||||
|
"codeberg.org/vnpower/pixivfe/models"
|
||||||
"github.com/goccy/go-json"
|
"github.com/goccy/go-json"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,9 @@ package handler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
"codeberg.org/vnpower/pixivfe/models"
|
||||||
"github.com/goccy/go-json"
|
"github.com/goccy/go-json"
|
||||||
"pixivfe/models"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func (p *PixivClient) GetTagData(name string) (models.TagDetail, error) {
|
func (p *PixivClient) GetTagData(name string) (models.TagDetail, error) {
|
||||||
|
|
|
@ -2,8 +2,8 @@ package handler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"pixivfe/models"
|
|
||||||
|
|
||||||
|
"codeberg.org/vnpower/pixivfe/models"
|
||||||
"github.com/goccy/go-json"
|
"github.com/goccy/go-json"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
"math"
|
||||||
"pixivfe/models"
|
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"codeberg.org/vnpower/pixivfe/models"
|
||||||
"github.com/goccy/go-json"
|
"github.com/goccy/go-json"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
6
main.go
6
main.go
|
@ -2,12 +2,12 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
||||||
"pixivfe/configs"
|
|
||||||
"pixivfe/handler"
|
|
||||||
"pixivfe/views"
|
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"codeberg.org/vnpower/pixivfe/configs"
|
||||||
|
"codeberg.org/vnpower/pixivfe/handler"
|
||||||
|
"codeberg.org/vnpower/pixivfe/views"
|
||||||
"github.com/goccy/go-json"
|
"github.com/goccy/go-json"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"github.com/gofiber/fiber/v2/middleware/cache"
|
"github.com/gofiber/fiber/v2/middleware/cache"
|
||||||
|
|
|
@ -5,12 +5,12 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
"math"
|
||||||
"net/http"
|
"net/http"
|
||||||
"pixivfe/configs"
|
|
||||||
"pixivfe/models"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"codeberg.org/vnpower/pixivfe/configs"
|
||||||
|
"codeberg.org/vnpower/pixivfe/models"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,10 @@ package views
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"pixivfe/configs"
|
|
||||||
"pixivfe/handler"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"codeberg.org/vnpower/pixivfe/configs"
|
||||||
|
"codeberg.org/vnpower/pixivfe/handler"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@ package views
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"pixivfe/configs"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"codeberg.org/vnpower/pixivfe/configs"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"github.com/gofiber/fiber/v2/middleware/session"
|
"github.com/gofiber/fiber/v2/middleware/session"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue