Self-hosted, federated location sharing app and server that prioritizes user privacy and security
end-to-end-encryption location-sharing privacy self-hosted federated

test commit that breaks some funtionality? rather adds a half working darkmode toggle.

Changed files
+23
app
src
+5
app/src/home-page/home.css
··· 6 justify-content: center; 7 } 8 9 .app { 10 width: 100%; 11 background: #f9fafb;
··· 6 justify-content: center; 7 } 8 9 + .dark-theme { 10 + background: #000; 11 + color: #fff; 12 + } 13 + 14 .app { 15 width: 100%; 16 background: #f9fafb;
+2
app/src/home-page/home.html
··· 91 > 92 <p>New signup key: <a x-text="newSignupKey"></a></p> 93 </div> 94 </div> 95 </div> 96 </div>
··· 91 > 92 <p>New signup key: <a x-text="newSignupKey"></a></p> 93 </div> 94 + <br /> 95 + <button @click="toggleDarkMode()">Toggle Dark Mode</button> 96 </div> 97 </div> 98 </div>
+16
app/src/home-page/home.ts
··· 1 import Alpine from "alpinejs"; 2 import { Store } from "../utils/store.ts"; 3 import { post } from "../utils/api.ts"; 4 5 Alpine.data("homePageState", () => ({ 6 friends: [ ··· 43 goto(newLocation: string) { 44 window.location.href = 45 "/src/" + newLocation + "-page/" + newLocation + ".html"; 46 }, 47 })); 48
··· 1 import Alpine from "alpinejs"; 2 import { Store } from "../utils/store.ts"; 3 import { post } from "../utils/api.ts"; 4 + import { toggleStyle } from "../utils/tools.ts"; 5 6 Alpine.data("homePageState", () => ({ 7 friends: [ ··· 44 goto(newLocation: string) { 45 window.location.href = 46 "/src/" + newLocation + "-page/" + newLocation + ".html"; 47 + }, 48 + 49 + toggleDarkMode() { 50 + /* 51 + This toggles darkmode for 'body' in the css file | use for only document types 52 + document.body.classList.toggle("dark-theme"); 53 + 54 + this toggles darkmode for '.app' in the css file | use if it isn't a document type 55 + toggleStyle("app", "dark-theme"); 56 + 57 + */ 58 + 59 + document.body.classList.toggle("dark-theme"); 60 + toggleStyle("header", "dark-theme"); 61 + toggleStyle([".app", ".friend-card", ".content"], "dark-theme"); 62 }, 63 })); 64