📚 Enhance project setup & maintenance workflows

- 📝 Add comprehensive README.md, CONTRIBUTING.md, and 🔒 SECURITY.md documentation
- 🔧 Integrate code formatting tool and refactor existing codebase to meet style guidelines
- ⬆️ Update project dependencies to latest stable versions
- 🤖 Implement pre-commit hook for automated code formatting

#documentation #tooling #maintenance
This commit is contained in:
Danny Morabito 2025-03-10 17:14:09 +01:00
parent 25b3972f8b
commit 18e4ad7629
Signed by: dannym
GPG key ID: 7CC8056A5A04557E
47 changed files with 1027 additions and 568 deletions

View file

@ -1,8 +1,8 @@
import { html, css, LitElement } from "lit";
import { customElement, state } from "lit/decorators.js";
import { getLastBlockHeight } from "@utils/lastBlockHeight";
import { getLastBlockHeight } from '@utils/lastBlockHeight';
import { LitElement, css, html } from 'lit';
import { customElement, state } from 'lit/decorators.js';
@customElement("arx-bitcoin-block-widget")
@customElement('arx-bitcoin-block-widget')
export class BitcoinBlockWidget extends LitElement {
@state()
private lastBlock: number | null = null;
@ -21,10 +21,7 @@ export class BitcoinBlockWidget extends LitElement {
constructor() {
super();
this.loadBlockHeight();
this.timer = window.setInterval(
this.loadBlockHeight,
this.REFRESH_INTERVAL
);
this.timer = window.setInterval(this.loadBlockHeight, this.REFRESH_INTERVAL);
}
override disconnectedCallback() {
@ -38,7 +35,7 @@ export class BitcoinBlockWidget extends LitElement {
this.lastBlock = response.height;
this.error = null;
} catch (error) {
this.error = "Failed to load block height";
this.error = 'Failed to load block height';
console.error(error);
} finally {
this.isLoading = false;