From d25545fa036cbd87edd4d17233bb150f86ab6214 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 3 Jun 2023 16:18:47 +0200 Subject: [PATCH] change import url --- Makefile | 2 +- backend/db/db.go | 2 +- backend/db/flags.go | 2 +- backend/db/metrics.go | 2 +- backend/db/user.go | 4 ++-- backend/exporter/exporter.go | 4 ++-- backend/exporter/types.go | 2 +- backend/main.go | 4 ++-- backend/openapi.html | 4 ++-- backend/prns/main.go | 4 ++-- backend/routes.go | 14 +++++++------- backend/routes/auth/captcha.go | 2 +- backend/routes/auth/discord.go | 6 +++--- backend/routes/auth/fedi_mastodon.go | 6 +++--- backend/routes/auth/fedi_misskey.go | 6 +++--- backend/routes/auth/fedi_nodeinfo.go | 2 +- backend/routes/auth/fediverse.go | 4 ++-- backend/routes/auth/google.go | 6 +++--- backend/routes/auth/invite.go | 4 ++-- backend/routes/auth/routes.go | 6 +++--- backend/routes/auth/tokens.go | 4 ++-- backend/routes/auth/tumblr.go | 6 +++--- backend/routes/auth/undelete.go | 4 ++-- backend/routes/bot/bot.go | 6 +++--- backend/routes/member/create_member.go | 8 ++++---- backend/routes/member/delete_member.go | 6 +++--- backend/routes/member/get_member.go | 4 ++-- backend/routes/member/get_members.go | 4 ++-- backend/routes/member/patch_member.go | 8 ++++---- backend/routes/member/routes.go | 2 +- backend/routes/meta/meta.go | 4 ++-- backend/routes/mod/create_report.go | 6 +++--- backend/routes/mod/get_reports.go | 4 ++-- backend/routes/mod/resolve_report.go | 6 +++--- backend/routes/mod/routes.go | 2 +- backend/routes/mod/warnings.go | 6 +++--- backend/routes/user/delete_user.go | 2 +- backend/routes/user/export.go | 6 +++--- backend/routes/user/flags.go | 8 ++++---- backend/routes/user/get_user.go | 6 +++--- backend/routes/user/patch_user.go | 8 ++++---- backend/routes/user/routes.go | 2 +- backend/server/auth.go | 4 ++-- backend/server/auth/auth.go | 4 ++-- backend/server/errors.go | 2 +- backend/server/server.go | 8 ++++---- docs/production.md | 2 +- frontend/src/routes/+error.svelte | 2 +- frontend/src/routes/+layout.svelte | 6 ++++-- frontend/src/routes/+page.svelte | 4 ++-- frontend/src/routes/@[username]/+error.svelte | 2 +- frontend/src/routes/page/about/about.md | 2 +- go.mod | 2 +- main.go | 18 +++++++++--------- openapi.yaml | 2 +- scripts/cleandb/main.go | 2 +- scripts/seeddb/main.go | 2 +- 57 files changed, 131 insertions(+), 129 deletions(-) diff --git a/Makefile b/Makefile index 8bbfdd4..1b15eff 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ all: generate backend frontend .PHONY: backend backend: - go build -v -o pronouns -ldflags="-buildid= -X codeberg.org/u1f320/pronouns.cc/backend/server.Revision=`git rev-parse --short HEAD` -X codeberg.org/u1f320/pronouns.cc/backend/server.Tag=`git describe --tags --long`" . + go build -v -o pronouns -ldflags="-buildid= -X codeberg.org/pronounscc/pronouns.cc/backend/server.Revision=`git rev-parse --short HEAD` -X codeberg.org/pronounscc/pronouns.cc/backend/server.Tag=`git describe --tags --long`" . .PHONY: generate generate: diff --git a/backend/db/db.go b/backend/db/db.go index 75ededf..5f7af5a 100644 --- a/backend/db/db.go +++ b/backend/db/db.go @@ -7,7 +7,7 @@ import ( "net/url" "os" - "codeberg.org/u1f320/pronouns.cc/backend/log" + "codeberg.org/pronounscc/pronouns.cc/backend/log" "emperror.dev/errors" "github.com/Masterminds/squirrel" "github.com/jackc/pgx/v5/pgconn" diff --git a/backend/db/flags.go b/backend/db/flags.go index 437493f..151cb92 100644 --- a/backend/db/flags.go +++ b/backend/db/flags.go @@ -9,7 +9,7 @@ import ( "io" "strings" - "codeberg.org/u1f320/pronouns.cc/backend/log" + "codeberg.org/pronounscc/pronouns.cc/backend/log" "emperror.dev/errors" "github.com/davidbyttow/govips/v2/vips" "github.com/georgysavva/scany/v2/pgxscan" diff --git a/backend/db/metrics.go b/backend/db/metrics.go index d658310..c2a4cf9 100644 --- a/backend/db/metrics.go +++ b/backend/db/metrics.go @@ -4,7 +4,7 @@ import ( "context" "time" - "codeberg.org/u1f320/pronouns.cc/backend/log" + "codeberg.org/pronounscc/pronouns.cc/backend/log" "emperror.dev/errors" "github.com/jackc/pgx/v5/pgconn" "github.com/prometheus/client_golang/prometheus" diff --git a/backend/db/user.go b/backend/db/user.go index 47c7c61..cdde3c4 100644 --- a/backend/db/user.go +++ b/backend/db/user.go @@ -8,8 +8,8 @@ import ( "regexp" "time" - "codeberg.org/u1f320/pronouns.cc/backend/common" - "codeberg.org/u1f320/pronouns.cc/backend/icons" + "codeberg.org/pronounscc/pronouns.cc/backend/common" + "codeberg.org/pronounscc/pronouns.cc/backend/icons" "emperror.dev/errors" "github.com/Masterminds/squirrel" "github.com/bwmarrin/discordgo" diff --git a/backend/exporter/exporter.go b/backend/exporter/exporter.go index 9f7e564..1c5dbc6 100644 --- a/backend/exporter/exporter.go +++ b/backend/exporter/exporter.go @@ -13,8 +13,8 @@ import ( "os/signal" "sync" - "codeberg.org/u1f320/pronouns.cc/backend/db" - "codeberg.org/u1f320/pronouns.cc/backend/log" + "codeberg.org/pronounscc/pronouns.cc/backend/db" + "codeberg.org/pronounscc/pronouns.cc/backend/log" "github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5/middleware" "github.com/rs/xid" diff --git a/backend/exporter/types.go b/backend/exporter/types.go index f554e5a..3d4f14e 100644 --- a/backend/exporter/types.go +++ b/backend/exporter/types.go @@ -1,7 +1,7 @@ package exporter import ( - "codeberg.org/u1f320/pronouns.cc/backend/db" + "codeberg.org/pronounscc/pronouns.cc/backend/db" "github.com/rs/xid" ) diff --git a/backend/main.go b/backend/main.go index d1dca4f..7c9226a 100644 --- a/backend/main.go +++ b/backend/main.go @@ -7,8 +7,8 @@ import ( "os" "os/signal" - "codeberg.org/u1f320/pronouns.cc/backend/log" - "codeberg.org/u1f320/pronouns.cc/backend/server" + "codeberg.org/pronounscc/pronouns.cc/backend/log" + "codeberg.org/pronounscc/pronouns.cc/backend/server" "github.com/davidbyttow/govips/v2/vips" "github.com/go-chi/render" diff --git a/backend/openapi.html b/backend/openapi.html index 90ce8d0..bb77d6f 100644 --- a/backend/openapi.html +++ b/backend/openapi.html @@ -467,9 +467,9 @@ IDs are always prioritized, if a user's username is the same as another user

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "display_name": "string",
  • "bio": "string",
  • "avatar": "string",
  • "links": [
    ],
  • "names": [
    ],
  • "pronouns": [
    ],
  • "fields": [
    ],
  • "user": {
    }
}

Get meta info

Responses

Response samples

Content type
application/json
{
  • "git_commit": "130a199",
  • "users": {
    },
  • "members": 11462,
  • "require_invite": false
}
+

Response samples

Content type
application/json
{}