📦 Add Linux packaging (AppImage/Flatpak/DEB)
🧹 Minor Codebase cleanup ⚡ Implement automatic starting of the relay
This commit is contained in:
parent
89fcaa9aa6
commit
f402ff04ab
19 changed files with 519 additions and 119 deletions
|
@ -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";
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue