📦 Add Linux packaging (AppImage/Flatpak/DEB)

🧹 Minor Codebase cleanup
 Implement automatic starting of the relay
This commit is contained in:
Danny Morabito 2025-02-24 21:48:11 +01:00
parent 89fcaa9aa6
commit f402ff04ab
Signed by: dannym
GPG key ID: 7CC8056A5A04557E
19 changed files with 519 additions and 119 deletions

View file

@ -1,7 +1,6 @@
import { LitElement, html, css } from "lit";
import { customElement, property, state } from "lit/decorators.js";
import { when } from "lit/directives/when.js";
import { styleMap } from "lit/directives/style-map.js";
import type { NDKUserProfile } from "@nostr-dev-kit/ndk";
import { getUserProfile } from "../ndk";

View file

@ -78,7 +78,7 @@ export default class EveRouter extends LitElement {
private currentIndex = -1;
@property()
private ccnSetup = false;
public ccnSetup = false;
private beforeEachGuards: ((to: Route, from: Route | null) => boolean)[] = [];
private afterEachHooks: ((to: Route, from: Route | null) => void)[] = [];
@ -116,6 +116,8 @@ export default class EveRouter extends LitElement {
constructor() {
super();
this.initializeRouter();
if (this.ccnSetup)
window.relay.start(localStorage.getItem("encryption_key")!);
}
override connectedCallback(): void {
@ -276,7 +278,7 @@ export default class EveRouter extends LitElement {
?canGoBack=${this.currentIndex > 0}
?canGoForward=${this.currentIndex < this.history.length - 1}
url="eve://${this.currentPath}"
@navigate=${(e) => this.navigate(e.detail)}
@navigate=${(e: CustomEvent) => this.navigate(e.detail)}
@go-back=${this.goBack}
@go-forward=${this.goForward}
title="Eve"