mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-05 04:29:21 +02:00
Rename package to bloat
This commit is contained in:
parent
cad01cb1f8
commit
e9bd72306e
|
@ -1,2 +1,2 @@
|
||||||
web
|
bloat
|
||||||
database
|
database
|
||||||
|
|
10
Makefile
10
Makefile
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
GO=go
|
GO=go
|
||||||
|
|
||||||
all: web
|
all: bloat
|
||||||
|
|
||||||
PHONY:
|
PHONY:
|
||||||
|
|
||||||
web: main.go PHONY
|
bloat: main.go PHONY
|
||||||
$(GO) build $(GOFLAGS) -o web main.go
|
$(GO) build $(GOFLAGS) -o bloat main.go
|
||||||
|
|
||||||
run: web
|
run: bloat
|
||||||
./web
|
./bloat
|
||||||
|
|
4
README
4
README
|
@ -1,4 +1,4 @@
|
||||||
Web - A web client for Mastodon Network[1]
|
bloat - A web client for Mastodon Network[1]
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ Edit the provided config file. See the default.conf file for more details.
|
||||||
$ ed default.conf
|
$ ed default.conf
|
||||||
|
|
||||||
Run the binary
|
Run the binary
|
||||||
$ ./web
|
$ ./bloat
|
||||||
|
|
||||||
You can now access the frontend at http://localhost:8080, which is the default
|
You can now access the frontend at http://localhost:8080, which is the default
|
||||||
listen address. You can also setup a reverse HTTP proxy to serve the frontend over
|
listen address. You can also setup a reverse HTTP proxy to serve the frontend over
|
||||||
|
|
|
@ -6,7 +6,8 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"web/model"
|
|
||||||
|
"bloat/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type config struct {
|
type config struct {
|
||||||
|
|
12
main.go
12
main.go
|
@ -9,12 +9,12 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"web/config"
|
"bloat/config"
|
||||||
"web/kv"
|
"bloat/kv"
|
||||||
"web/renderer"
|
"bloat/renderer"
|
||||||
"web/repository"
|
"bloat/repository"
|
||||||
"web/service"
|
"bloat/service"
|
||||||
"web/util"
|
"bloat/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
package model
|
|
|
@ -1 +0,0 @@
|
||||||
package model
|
|
|
@ -1,8 +1,8 @@
|
||||||
package renderer
|
package renderer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bloat/model"
|
||||||
"mastodon"
|
"mastodon"
|
||||||
"web/model"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type HeaderData struct {
|
type HeaderData struct {
|
||||||
|
@ -92,14 +92,14 @@ type RetweetedByData struct {
|
||||||
|
|
||||||
type FollowingData struct {
|
type FollowingData struct {
|
||||||
*CommonData
|
*CommonData
|
||||||
Users []*mastodon.Account
|
Users []*mastodon.Account
|
||||||
HasNext bool
|
HasNext bool
|
||||||
NextLink string
|
NextLink string
|
||||||
}
|
}
|
||||||
|
|
||||||
type FollowersData struct {
|
type FollowersData struct {
|
||||||
*CommonData
|
*CommonData
|
||||||
Users []*mastodon.Account
|
Users []*mastodon.Account
|
||||||
HasNext bool
|
HasNext bool
|
||||||
NextLink string
|
NextLink string
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,9 @@ package repository
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"web/kv"
|
|
||||||
"web/model"
|
"bloat/kv"
|
||||||
|
"bloat/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type appRepository struct {
|
type appRepository struct {
|
||||||
|
|
|
@ -2,8 +2,9 @@ package repository
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"web/kv"
|
|
||||||
"web/model"
|
"bloat/kv"
|
||||||
|
"bloat/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type sessionRepository struct {
|
type sessionRepository struct {
|
||||||
|
|
|
@ -4,9 +4,10 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"io"
|
"io"
|
||||||
"mastodon"
|
|
||||||
"mime/multipart"
|
"mime/multipart"
|
||||||
"web/model"
|
|
||||||
|
"bloat/model"
|
||||||
|
"mastodon"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -6,7 +6,8 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"mime/multipart"
|
"mime/multipart"
|
||||||
"time"
|
"time"
|
||||||
"web/model"
|
|
||||||
|
"bloat/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type loggingService struct {
|
type loggingService struct {
|
||||||
|
|
|
@ -12,10 +12,10 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"bloat/model"
|
||||||
|
"bloat/renderer"
|
||||||
|
"bloat/util"
|
||||||
"mastodon"
|
"mastodon"
|
||||||
"web/model"
|
|
||||||
"web/renderer"
|
|
||||||
"web/util"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -93,7 +93,7 @@ func (svc *service) GetAuthUrl(ctx context.Context, instance string) (
|
||||||
session := model.Session{
|
session := model.Session{
|
||||||
ID: sessionID,
|
ID: sessionID,
|
||||||
InstanceDomain: instance,
|
InstanceDomain: instance,
|
||||||
Settings: *model.NewSettings(),
|
Settings: *model.NewSettings(),
|
||||||
}
|
}
|
||||||
err = svc.sessionRepo.Add(session)
|
err = svc.sessionRepo.Add(session)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -7,7 +7,8 @@ import (
|
||||||
"path"
|
"path"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
"web/model"
|
|
||||||
|
"bloat/model"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
The source code is released under
|
The source code is released under
|
||||||
<a href="https://creativecommons.org/share-your-work/public-domain/cc0" target="_blank">CC0</a>
|
<a href="https://creativecommons.org/share-your-work/public-domain/cc0" target="_blank">CC0</a>
|
||||||
and is available on
|
and is available on
|
||||||
<a href="https://git.freesoftwareextremist.com/web" target="_blank">git.freesoftwareextremist.com/web</a>.
|
<a href="https://git.freesoftwareextremist.com/bloat" target="_blank">git.freesoftwareextremist.com/bloat</a>.
|
||||||
</P>
|
</P>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue