frontend for xcvr appview

beboop

+17 -17
+17 -17
src/routes/c/[handle]/[rkey]/+page.svelte
··· 38 38 </script> 39 39 40 40 <main id="transceiver"> 41 + {#if !ctx?.connected} 42 + <div> 43 + loading... probably something went wrong if you can read me, maybe 44 + refresh? 45 + </div> 46 + {/if} 41 47 {#if ctx} 42 48 <Receiever 43 49 messages={ctx.messages} ··· 50 56 defaultNick={data.myProfile.defaultNick} 51 57 defaultHandle={data.myProfile.handle} 52 58 /> 53 - <button 54 - id="settingsifier" 55 - onclick={() => { 56 - showSettings = !showSettings; 57 - if (showSettings) { 58 - tabContext.gotoC(); 59 - } 60 - }} 61 - > 62 - {showSettings ? "hide" : "show"} settings 63 - </button> 64 59 <Console log={ctx.log} /> 65 60 {/if} 66 61 </main> ··· 76 71 <div> 77 72 <a href="history"> view history </a> 78 73 </div> 79 - {#if !ctx?.connected} 80 - <div> 81 - loading... probably something went wrong if you can read me, maybe 82 - refresh? 83 - </div> 84 - {/if} 74 + <button 75 + id="settingsifier" 76 + onclick={() => { 77 + showSettings = !showSettings; 78 + if (showSettings) { 79 + tabContext.gotoC(); 80 + } 81 + }} 82 + > 83 + {showSettings ? "hide" : "show"} settings 84 + </button> 85 85 {#if ctx && showSettings} 86 86 <h2>message obfuscation</h2> 87 87 <p>in case you want to be forgotten...</p>