Switch to codeberg.org/rimgo/rimgo

This commit is contained in:
video-prize-ranch 2023-06-10 12:27:20 -04:00
parent fe639ab7ef
commit b65ee39162
No known key found for this signature in database
15 changed files with 25 additions and 25 deletions

View File

@ -1,4 +1,4 @@
<img alt="" src="https://codeberg.org/video-prize-ranch/rimgo/raw/branch/main/static/img/rimgo.svg" width="96" height="96" /> <img alt="" src="https://codeberg.org/rimgo/rimgo/raw/branch/main/static/img/rimgo.svg" width="96" height="96" />
# rimgo # rimgo
An alternative frontend for Imgur. Originally based on [rimgu](https://codeberg.org/3np/rimgu). An alternative frontend for Imgur. Originally based on [rimgu](https://codeberg.org/3np/rimgu).
@ -161,7 +161,7 @@ rimgo can run on any platform Go compiles on.
### Docker (recommended) ### Docker (recommended)
Install [Docker](https://docs.docker.com/engine/install/) and [docker-compose](https://docs.docker.com/compose/install/), then clone this repository. Install [Docker](https://docs.docker.com/engine/install/) and [docker-compose](https://docs.docker.com/compose/install/), then clone this repository.
```bash ```bash
git clone https://codeberg.org/video-prize-ranch/rimgo git clone https://codeberg.org/rimgo/rimgo
cd rimgo cd rimgo
``` ```
@ -196,7 +196,7 @@ services:
Clone the repository and `cd` into it. Clone the repository and `cd` into it.
```bash ```bash
git clone https://codeberg.org/video-prize-ranch/rimgo git clone https://codeberg.org/rimgo/rimgo
cd rimgo cd rimgo
``` ```
@ -213,7 +213,7 @@ You can now run rimgo.
To include version information use: To include version information use:
```bash ```bash
go build -ldflags "-X codeberg.org/video-prize-ranch/rimgo/pages.VersionInfo=$(date '+%Y-%m-%d')-$(git rev-list --abbrev-commit -1 HEAD)" go build -ldflags "-X codeberg.org/rimgo/rimgo/pages.VersionInfo=$(date '+%Y-%m-%d')-$(git rev-list --abbrev-commit -1 HEAD)"
``` ```
(optional) You can use a .env file to set environment variables for configuration. (optional) You can use a .env file to set environment variables for configuration.
@ -254,7 +254,7 @@ rimgo can be configured using environment variables. The path to the .env file c
| PRIVACY_DIAGNOSTICS | | | | PRIVACY_DIAGNOSTICS | | |
## Contributing ## Contributing
Pull requests are welcome! If you have any questions or bug reports, open an [issue](https://codeberg.org/video-prize-ranch/rimgo/issues/new). Pull requests are welcome! If you have any questions or bug reports, open an [issue](https://codeberg.org/rimgo/rimgo/issues/new).
## License ## License
This software is released under the AGPL-3.0 license. If you make any modifications to the code and distribute it (including use on a network server), you must publicly distribute your changes and release them under the AGPL-3.0. This software is released under the AGPL-3.0 license. If you make any modifications to the code and distribute it (including use on a network server), you must publicly distribute your changes and release them under the AGPL-3.0.

View File

@ -4,7 +4,7 @@ import (
"strings" "strings"
"time" "time"
"codeberg.org/video-prize-ranch/rimgo/utils" "codeberg.org/rimgo/rimgo/utils"
"github.com/microcosm-cc/bluemonday" "github.com/microcosm-cc/bluemonday"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
) )

View File

@ -6,7 +6,7 @@ import (
"sync" "sync"
"time" "time"
"codeberg.org/video-prize-ranch/rimgo/utils" "codeberg.org/rimgo/rimgo/utils"
"github.com/dustin/go-humanize" "github.com/dustin/go-humanize"
"github.com/microcosm-cc/bluemonday" "github.com/microcosm-cc/bluemonday"
"github.com/patrickmn/go-cache" "github.com/patrickmn/go-cache"

View File

@ -8,7 +8,7 @@ import (
"sync" "sync"
"time" "time"
"codeberg.org/video-prize-ranch/rimgo/utils" "codeberg.org/rimgo/rimgo/utils"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
) )

2
go.mod
View File

@ -1,4 +1,4 @@
module codeberg.org/video-prize-ranch/rimgo module codeberg.org/rimgo/rimgo
go 1.17 go 1.17

View File

@ -7,10 +7,10 @@ import (
"os" "os"
"time" "time"
"codeberg.org/video-prize-ranch/rimgo/pages" "codeberg.org/rimgo/rimgo/pages"
"codeberg.org/video-prize-ranch/rimgo/static" "codeberg.org/rimgo/rimgo/static"
"codeberg.org/video-prize-ranch/rimgo/utils" "codeberg.org/rimgo/rimgo/utils"
"codeberg.org/video-prize-ranch/rimgo/views" "codeberg.org/rimgo/rimgo/views"
"github.com/aymerick/raymond" "github.com/aymerick/raymond"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/cache" "github.com/gofiber/fiber/v2/middleware/cache"

View File

@ -3,7 +3,7 @@ package pages
import ( import (
"os" "os"
"codeberg.org/video-prize-ranch/rimgo/utils" "codeberg.org/rimgo/rimgo/utils"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View File

@ -1,8 +1,8 @@
package pages package pages
import ( import (
"codeberg.org/video-prize-ranch/rimgo/api" "codeberg.org/rimgo/rimgo/api"
"codeberg.org/video-prize-ranch/rimgo/utils" "codeberg.org/rimgo/rimgo/utils"
) )
var ApiClient *api.Client var ApiClient *api.Client

View File

@ -3,8 +3,8 @@ package pages
import ( import (
"strings" "strings"
"codeberg.org/video-prize-ranch/rimgo/api" "codeberg.org/rimgo/rimgo/api"
"codeberg.org/video-prize-ranch/rimgo/utils" "codeberg.org/rimgo/rimgo/utils"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View File

@ -1,7 +1,7 @@
package pages package pages
import ( import (
"codeberg.org/video-prize-ranch/rimgo/utils" "codeberg.org/rimgo/rimgo/utils"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View File

@ -5,7 +5,7 @@ import (
"os" "os"
"strings" "strings"
"codeberg.org/video-prize-ranch/rimgo/utils" "codeberg.org/rimgo/rimgo/utils"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View File

@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"strings" "strings"
"codeberg.org/video-prize-ranch/rimgo/api" "codeberg.org/rimgo/rimgo/api"
"codeberg.org/video-prize-ranch/rimgo/utils" "codeberg.org/rimgo/rimgo/utils"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View File

@ -3,7 +3,7 @@ package pages
import ( import (
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"codeberg.org/video-prize-ranch/rimgo/utils" "codeberg.org/rimgo/rimgo/utils"
) )
func HandlePrivacy(c *fiber.Ctx) error { func HandlePrivacy(c *fiber.Ctx) error {

View File

@ -3,7 +3,7 @@ package pages
import ( import (
"strconv" "strconv"
"codeberg.org/video-prize-ranch/rimgo/utils" "codeberg.org/rimgo/rimgo/utils"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )

View File

@ -3,7 +3,7 @@ package pages
import ( import (
"strconv" "strconv"
"codeberg.org/video-prize-ranch/rimgo/utils" "codeberg.org/rimgo/rimgo/utils"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
) )