diff --git a/pwa-assets.config.js b/pwa-assets.config.js index 0e7152c..64ac834 100644 --- a/pwa-assets.config.js +++ b/pwa-assets.config.js @@ -1,8 +1,8 @@ -import dotenv from 'dotenv' -import {defineConfig, minimalPreset as preset} from '@vite-pwa/assets-generator/config' +import dotenv from "dotenv" +import {defineConfig, minimalPreset as preset} from "@vite-pwa/assets-generator/config" -dotenv.config({path: '.env.local'}) -dotenv.config({path: '.env'}) +dotenv.config({path: ".env.local"}) +dotenv.config({path: ".env"}) export default defineConfig({ preset, diff --git a/src/app.d.ts b/src/app.d.ts index 6fea77a..96eadf0 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -1,5 +1,5 @@ import "@poppanator/sveltekit-svg/dist/svg" -import 'vite-plugin-pwa/pwa-assets' +import "vite-plugin-pwa/pwa-assets" // See https://kit.svelte.dev/docs/types#app // for information about these interfaces diff --git a/src/app.html b/src/app.html index 399c95e..89c1887 100644 --- a/src/app.html +++ b/src/app.html @@ -14,7 +14,6 @@ - diff --git a/src/app/components/ChannelCompose.svelte b/src/app/components/ChannelCompose.svelte index 8df7dc2..a7cc31f 100644 --- a/src/app/components/ChannelCompose.svelte +++ b/src/app/components/ChannelCompose.svelte @@ -33,7 +33,7 @@
+ {:else} + +

+ + and {others.length - 1} + {others.length > 2 ? "others" : "other"} + +

+ {/if} +
+
+ {#if remove($pubkey, $missingInboxes).length > 0} + {@const count = remove($pubkey, $missingInboxes).length} + {@const label = count > 1 ? "inboxes are" : "inbox is"} +
+ + {count} +
+ {/if} +
+ + {/if} +
+ {#if $missingInboxes.includes(assertNotNil($pubkey))} +
+
+

+ + Your inbox is not configured. +

+

+ In order to deliver messages, {PLATFORM_NAME} needs to know where to send them. Please visit + your relay settings page to set up your + inbox. +

+
+
+ {/if} + {#each elements as { type, id, value, showPubkey } (id)} + {#if type === "date"} + {value} + {:else} + {@const event = assertEvent(value)} + {@const thunk = $thunks[event.id]} + + {/if} + {/each} +

+ + {#if loading} + Looking for messages... + {:else} + End of message history + {/if} + +

+
+ + diff --git a/src/app/components/ChatMessage.svelte b/src/app/components/ChatMessage.svelte index ddcece1..553a6b0 100644 --- a/src/app/components/ChatMessage.svelte +++ b/src/app/components/ChatMessage.svelte @@ -51,6 +51,9 @@ let popoverIsVisible = false +{#if thunk} + +{/if}
- {#if thunk} - - {/if}
diff --git a/src/app/components/MenuSettings.svelte b/src/app/components/MenuSettings.svelte index 89a5152..43275fd 100644 --- a/src/app/components/MenuSettings.svelte +++ b/src/app/components/MenuSettings.svelte @@ -11,6 +11,13 @@