diff --git a/src/app/components/LogIn.svelte b/src/app/components/LogIn.svelte index ca4b5a9a..7bdd2ccd 100644 --- a/src/app/components/LogIn.svelte +++ b/src/app/components/LogIn.svelte @@ -3,7 +3,7 @@ import {Capacitor} from "@capacitor/core" import {getNip07, getNip55, Nip55Signer} from "@welshman/signer" import {addSession, type Session, makeNip07Session, makeNip55Session} from "@welshman/app" - import Widget from "@assets/icons/widget-2.svg?dataurl" + import Widget from "@assets/icons/widget-4.svg?dataurl" import Letter from "@assets/icons/letter.svg?dataurl" import Cpu from "@assets/icons/cpu-bolt.svg?dataurl" import Compass from "@assets/icons/compass-big.svg?dataurl" diff --git a/src/app/components/MenuSpacesItem.svelte b/src/app/components/MenuSpacesItem.svelte deleted file mode 100644 index d342ccfc..00000000 --- a/src/app/components/MenuSpacesItem.svelte +++ /dev/null @@ -1,32 +0,0 @@ - - - - - {#snippet icon()} - - {/snippet} - {#snippet title()} -
- - {#if $notifications.has(path)} -
- {/if} -
- {/snippet} - {#snippet info()} -
- {/snippet} -
- diff --git a/src/app/components/PrimaryNav.svelte b/src/app/components/PrimaryNav.svelte index 6968352b..2d2c749f 100644 --- a/src/app/components/PrimaryNav.svelte +++ b/src/app/components/PrimaryNav.svelte @@ -3,7 +3,7 @@ import {userProfile} from "@welshman/app" import Letter from "@assets/icons/letter.svg?dataurl" import Magnifier from "@assets/icons/magnifier.svg?dataurl" - import Planet from "@assets/icons/planet-3.svg?dataurl" + import Widget from "@assets/icons/widget-4.svg?dataurl" import UserRounded from "@assets/icons/user-rounded.svg?dataurl" import Settings from "@assets/icons/settings.svg?dataurl" import ImageIcon from "@lib/components/ImageIcon.svelte" @@ -84,7 +84,7 @@ {#if PLATFORM_RELAYS.length !== 1} - + {/if} diff --git a/src/app/components/PrimaryNavSpaces.svelte b/src/app/components/PrimaryNavSpaces.svelte index 55f743af..7570e9e7 100644 --- a/src/app/components/PrimaryNavSpaces.svelte +++ b/src/app/components/PrimaryNavSpaces.svelte @@ -1,6 +1,6 @@ @@ -43,7 +44,7 @@ - {#if $favorited.size > 0} + {#if !hideFavorites && $favorited.size > 0}
Favorited By: diff --git a/src/app/components/SpaceAdd.svelte b/src/app/components/SpaceAdd.svelte index a7e41efd..0445a93b 100644 --- a/src/app/components/SpaceAdd.svelte +++ b/src/app/components/SpaceAdd.svelte @@ -1,7 +1,6 @@ @@ -30,23 +23,8 @@ Spaces are places where communities come together to work, play, and hang out. - {#if !hideDiscover} - - - {#snippet icon()} -
- {/snippet} - {#snippet title()} -
Explore Spaces
- {/snippet} - {#snippet info()} -
Join create, or browse spaces
- {/snippet} -
- - {/if} - - - {#snippet icon()} -
- {/snippet} - {#snippet title()} -
Create a new space
- {/snippet} - {#snippet info()} -
Launch a place for your people.
- {/snippet} -
- -
- Or -
- -
- - {/snippet} - {#snippet content()} -
- {#if inviteData} - {#key inviteData.url} - - {/key} - {/if} - {#each options.slice(0, limit) as relay (relay.url)} - - {/each} -
- {#await sleep(5000)} - Looking for spaces... - {:then} - {#if options.length === 0} - No spaces found. - {/if} - {/await} -
-
- {/snippet} - - diff --git a/src/routes/home/+page.svelte b/src/routes/home/+page.svelte index 3457fcb4..fad1b55f 100644 --- a/src/routes/home/+page.svelte +++ b/src/routes/home/+page.svelte @@ -25,7 +25,7 @@

Welcome to

{PLATFORM_NAME}

- + {#snippet icon()} diff --git a/src/routes/spaces/+page.svelte b/src/routes/spaces/+page.svelte index ac2852cc..896a5f42 100644 --- a/src/routes/spaces/+page.svelte +++ b/src/routes/spaces/+page.svelte @@ -1,20 +1,69 @@ -
-
- - Your Spaces -
- {#if $userSpaceUrls.length > 0 && PLATFORM_RELAYS.length === 0} - - {/if} -
+ + {:else} +
+
+ + Spaces +
+
+ + {#if PLATFORM_RELAYS.length === 0} + + {/if} +
+
+ {/if}
- {#each PLATFORM_RELAYS as url (url)} - - {:else} - {#await loadUserGroupList()} -
- - Loading your spaces... -
- {:then} - {#each orderedSpaceUrls as url (url)} -
onDragStart(e, url)} - ondragover={e => onDragOver(e, url)} - ondrop={e => onDrop(e, url)} - ondragend={onDragEnd}> - +
+ {#each PLATFORM_RELAYS as url (url)} + + {:else} + {#await loadUserGroupList()} +
+ + Loading your spaces...
- {:else} -
-

You haven't added any spaces yet!

- + {/key} + {/if} + {#if filteredUserUrls.length > 0} + Your spaces + {#each filteredUserUrls as url (url)} +
onDragStart(e, url)} + ondragover={e => onDragOver(e, url)} + ondrop={e => onDrop(e, url)} + ondragend={onDragEnd}> + +
+ {/each} + {:else if !term} +
+

You haven't joined any spaces yet.

+ +
+ {/if} + {filteredUserUrls.length > 0 ? "More Spaces" : "Browse Spaces"} + {#each otherSpaces.slice(0, limit) as relay (relay.url)} + + {/each} +
+ {#await sleep(5000)} + Looking for spaces... + {:then} + {#if otherSpaces.length === 0} + No other spaces found. + {/if} + {/await}
- {/each} - {/await} - {/each} + {/await} + {/each} +
diff --git a/src/routes/spaces/create/+page.svelte b/src/routes/spaces/create/+page.svelte index e283b666..6bab77dc 100644 --- a/src/routes/spaces/create/+page.svelte +++ b/src/routes/spaces/create/+page.svelte @@ -1,7 +1,6 @@