Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

An open-source project to create a map of safe spaces for people in need.

# WE ARE MIGRATING TO CODEBERG https://codeberg.org/SafeHaven/safehaven

## Deploy

We provide docker images that are ready to deploy SafeHaven. You can find the releases in the
Expand Down
2 changes: 1 addition & 1 deletion backend/src/api/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ pub struct SafeHavenVersionResponse {
async fn get_github_last_version() -> Option<String> {
let client = reqwest::Client::new();
let response = client
.get("https://api.github.com/repos/SafeHavenMaps/safehaven/releases/latest")
.get("https://codeberg.org/api/v1/repos/SafeHaven/safehaven/releases/latest")
.header("User-Agent", "SafeHaven")
.send()
.await
Expand Down
105 changes: 13 additions & 92 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
alejandra = {
url = "github:kamadorueda/alejandra/3.0.0";
inputs.nixpkgs.follows = "nixpkgs";
};
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
Expand All @@ -18,7 +14,6 @@
self,
nixpkgs,
fenix,
alejandra,
flake-utils,
...
}:
Expand Down Expand Up @@ -66,7 +61,6 @@

echo "::group::Backend lint"
cargo fmt -- --check
cargo clippy -- -D warnings
echo "::endgroup::"

echo "::group::OpenAPI sync checks"
Expand Down Expand Up @@ -273,8 +267,6 @@
sqlx-cli
# Front
fixedNode
# Nix formatting
alejandra.defaultPackage.${system}
# Process composing
process-compose
# PostgreSQL and PostGIS
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/AppIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const iconDict: Record<string, string> = {
warning: mdi.mdiAlert,
clear: mdi.mdiEraser,
filterOff: mdi.mdiFilterOff,
github: mdi.mdiGithub,
github: mdi.mdiGit,
chevronDown: mdi.mdiChevronDown,
activePage: mdi.mdiMenuRight,
listEdit: mdi.mdiTextBoxEditOutline,
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/admin/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
class="m-1"
>
Une mise à jour est disponible.<br>
<a href="https://github.com/SafeHavenMaps/safehaven/releases">Rendez-vous sur GitHub</a> pour voir et mettre à jour vers la dernière version.
<a href="https://codeberg.org/SafeHaven/safehaven/releases">Rendez-vous sur Codeberg</a> pour voir et mettre à jour vers la dernière version.
</Message>
<div class="m-1">
Version actuelle: <pre>{{ state.versionInformation?.version ?? 'Inconnu' }}</pre>
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/viewer/Information.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
rel="noopener noreferrer"
>
<Button
label="Découvrir sur GitHub"
label="Découvrir sur Codeberg"
>
<template #icon>
<AppIcon icon-name="github" />
Expand All @@ -57,7 +57,7 @@
import state from '~/lib/viewer-state'

const siteInfo = await state.getSanitizedInformation()
const safeHavenRepoUrl = 'https://github.com/SafeHavenMaps/safehaven'
const safeHavenRepoUrl = 'https://codeberg.org/SafeHaven/safehaven'
</script>

<style scoped>
Expand Down