From e5c752ce9e8b8af05d969dc3960f951ffc5b20ad Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Tue, 30 Jun 2026 10:02:02 -0700 Subject: [PATCH] remove old env vars, add remove user to profile detail modal --- .env | 2 -- README.md | 3 +-- src/app/components/ProfileDetail.svelte | 21 ++++++++++++++++++++- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 64e9bc30..5c855f6f 100644 --- a/.env +++ b/.env @@ -9,7 +9,6 @@ VITE_PLATFORM_NAME=Flotilla VITE_PLATFORM_LOGO=static/logo.png VITE_PLATFORM_RELAYS= VITE_PLATFORM_ACCENT="#7161FF" -VITE_PLATFORM_SECONDARY="#EB5E28" VITE_THEME="clay" VITE_PLATFORM_DESCRIPTION="Flotilla is nostr — for communities." VITE_PUSH_SERVER=https://nps.flotilla.social/ @@ -20,7 +19,6 @@ VITE_DEFAULT_RELAYS=relay.damus.io,relay.primal.net,nostr.mom VITE_DEFAULT_SEARCH_RELAYS=relay.ditto.pub,antiprimal.net,relay.vertexlab.io VITE_DEFAULT_MESSAGING_RELAYS=auth.nostr1.com,relay.keychat.io,relay.ditto.pub VITE_SIGNER_RELAYS=relay.nsec.app,ephemeral.snowflare.cc,bucket.coracle.social -VITE_VAPID_PUBLIC_KEY=BIt2D4BdgdbCowD_0d3Np6GbrIGHxd7aIEUeZNe3hQuRlHz02OhzvDaai0XSFoJYVzSzdMjdyW-QhvW9_yq8j4Y VITE_THUMBNAIL_URL=https://vthumbs.coracle.social VITE_GLITCHTIP_API_KEY= GLITCHTIP_AUTH_TOKEN= diff --git a/README.md b/README.md index 72053fe3..fc5ab611 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ You can also optionally create an `.env.local` file and populate it with the fol - `VITE_PLATFORM_URL` - The url where the app will be hosted - `VITE_PLATFORM_NAME` - The name of the app - `VITE_PLATFORM_LOGO` - A logo url for the app. Can be a local path or https link. Must be a PNG file. -- `VITE_PLATFORM_ACCENT` - A hex color for the app's accent color +- `VITE_PLATFORM_ACCENT` - A hex color for the app's accent color (used only for generated manifest, for more control create a custom theme file) - `VITE_PLATFORM_DESCRIPTION` - A description of the app - `VITE_PLATFORM_TERMS` - URL to your terms of service page - `VITE_PLATFORM_PRIVACY` - URL to your privacy policy page @@ -33,7 +33,6 @@ You can also optionally create an `.env.local` file and populate it with the fol - `VITE_BLOCKED_RELAYS` - A comma-separated list of relay urls that will be blocked - `VITE_PUSH_SERVER` - URL of the push notification server - `VITE_PUSH_BRIDGE` - WebSocket URL of the push notification relay bridge -- `VITE_VAPID_PUBLIC_KEY` - VAPID public key for web push notifications - `VITE_POMADE_SIGNERS` - A comma-separated list of Pomade signer server URLs (3+ required to enable email signup) - `VITE_THUMBNAIL_URL` - URL of the image thumbnail service diff --git a/src/app/components/ProfileDetail.svelte b/src/app/components/ProfileDetail.svelte index c6d99f32..70643acd 100644 --- a/src/app/components/ProfileDetail.svelte +++ b/src/app/components/ProfileDetail.svelte @@ -6,6 +6,7 @@ import UserCircle from "@assets/icons/user-circle.svg?dataurl" import MenuDots from "@assets/icons/menu-dots.svg?dataurl" import MinusCircle from "@assets/icons/minus-circle.svg?dataurl" + import UserMinus from "@assets/icons/user-minus.svg?dataurl" import Restart from "@assets/icons/restart.svg?dataurl" import {fly} from "@lib/transition" import Icon from "@lib/components/Icon.svelte" @@ -21,6 +22,7 @@ import { deriveUserIsSpaceAdmin, deriveSpaceBannedPubkeyItems, + removeSpaceMembers, addSpaceMembers, banSpaceMembers, } from "@app/members" @@ -69,6 +71,17 @@ }, }) + const removeMember = async () => { + const error = await removeSpaceMembers(url!, [pubkey]) + + if (error) { + pushToast({theme: "error", message: error}) + } else { + pushToast({message: "User has successfully been removed!"}) + back() + } + } + const restoreMember = async () => { const error = await addSpaceMembers(url!, [pubkey]) @@ -106,10 +119,16 @@
  • {:else} +
  • + +