- Comprehensive logging system with chrome.storage.session persistence - NIP-07 action logging in background scripts with standalone functions - Vault operation logging (unlock, lock, create, reset, import, export) - Profile and bookmark operation logging - Logs page with refresh functionality and category icons - Lock button (🔒) in navigation bar to quickly lock vault - Reduced nav bar size (40px height, 16px font) with emoji icons - Reordered navigation: You, Permissions, Bookmarks, Logs, About, Lock - Bookmarks functionality for saving frequently used Nostr apps - Fixed lock/unlock flow by properly clearing in-memory session data 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
521 B
TypeScript
18 lines
521 B
TypeScript
import { Component, Input } from '@angular/core';
|
|
|
|
@Component({
|
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
selector: 'lib-icon-button',
|
|
imports: [],
|
|
templateUrl: './icon-button.component.html',
|
|
styleUrl: './icon-button.component.scss',
|
|
})
|
|
export class IconButtonComponent {
|
|
@Input({ required: true }) icon!: string;
|
|
|
|
get isEmoji(): boolean {
|
|
// Check if the icon is an emoji (starts with a non-ASCII character)
|
|
return this.icon.length > 0 && this.icon.charCodeAt(0) > 255;
|
|
}
|
|
}
|