From db5ce43d795f3879d610afc121e7244c1df74e43 Mon Sep 17 00:00:00 2001 From: rodribp Date: Fri, 20 Feb 2026 12:29:58 -0600 Subject: [PATCH] remove: address-text component --- .../address-text/address-text.component.html | 34 ------------------- .../address-text/address-text.component.scss | 32 ----------------- .../address-text/address-text.component.ts | 25 -------------- frontend/src/app/shared/shared.module.ts | 3 -- 4 files changed, 94 deletions(-) delete mode 100644 frontend/src/app/shared/components/address-text/address-text.component.html delete mode 100644 frontend/src/app/shared/components/address-text/address-text.component.scss delete mode 100644 frontend/src/app/shared/components/address-text/address-text.component.ts diff --git a/frontend/src/app/shared/components/address-text/address-text.component.html b/frontend/src/app/shared/components/address-text/address-text.component.html deleted file mode 100644 index bd429a857..000000000 --- a/frontend/src/app/shared/components/address-text/address-text.component.html +++ /dev/null @@ -1,34 +0,0 @@ - -@if (similarity) { -
- - {{ similarity.match.prefix.slice(0, 16) }} - {{ address.slice(min(similarity.match.prefix.length, 16) || 0, -min(similarity.match.postfix.length, 16) || undefined) }} - {{ similarity.match.postfix.slice(-16) }} - - - - -
-} @else { -
- - - - - - -
-} \ No newline at end of file diff --git a/frontend/src/app/shared/components/address-text/address-text.component.scss b/frontend/src/app/shared/components/address-text/address-text.component.scss deleted file mode 100644 index 3b5bf50b7..000000000 --- a/frontend/src/app/shared/components/address-text/address-text.component.scss +++ /dev/null @@ -1,32 +0,0 @@ -.address-text { - text-overflow: unset; - display: flex; - flex-direction: row; - align-items: start; - position: relative; - - font-family: monospace; - - .infix { - flex-grow: 0; - flex-shrink: 1; - overflow: hidden; - text-overflow: ellipsis; - user-select: none; - - text-decoration: underline 2px; - } - - .prefix, .postfix { - flex-shrink: 0; - flex-grow: 0; - user-select: none; - - text-decoration: underline var(--red) 2px; - } -} - -.poison-alert { - margin-left: .5em; - color: var(--yellow); -} \ No newline at end of file diff --git a/frontend/src/app/shared/components/address-text/address-text.component.ts b/frontend/src/app/shared/components/address-text/address-text.component.ts deleted file mode 100644 index 6cc545e7d..000000000 --- a/frontend/src/app/shared/components/address-text/address-text.component.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Component, Input } from '@angular/core'; -import { AddressMatch, AddressTypeInfo } from '@app/shared/address-utils'; - -@Component({ - selector: 'app-address-text', - templateUrl: './address-text.component.html', - styleUrls: ['./address-text.component.scss'], - standalone: false, -}) -export class AddressTextComponent { - @Input() address: string; - @Input() info: AddressTypeInfo | null; - @Input() similarity: { score: number, match: AddressMatch, group: number } | null; - - min = Math.min; - - groupColors: string[] = [ - 'var(--primary)', - 'var(--success)', - 'var(--info)', - 'white', - ]; - - constructor() {} -} \ No newline at end of file diff --git a/frontend/src/app/shared/shared.module.ts b/frontend/src/app/shared/shared.module.ts index e02d7617e..a2ff5570c 100644 --- a/frontend/src/app/shared/shared.module.ts +++ b/frontend/src/app/shared/shared.module.ts @@ -97,7 +97,6 @@ import { SatsComponent } from '@app/shared/components/sats/sats.component'; import { BtcComponent } from '@app/shared/components/btc/btc.component'; import { FeeRateComponent } from '@app/shared/components/fee-rate/fee-rate.component'; import { AddressTypeComponent } from '@app/shared/components/address-type/address-type.component'; -import { AddressTextComponent } from '@app/shared/components/address-text/address-text.component'; import { TruncateComponent } from '@app/shared/components/truncate/truncate.component'; import { SearchResultsComponent } from '@components/search-form/search-results/search-results.component'; import { TimestampComponent } from '@app/shared/components/timestamp/timestamp.component'; @@ -224,7 +223,6 @@ import { ChunkedAddressComponent } from '@app/shared/components/chunked-address/ BtcComponent, FeeRateComponent, AddressTypeComponent, - AddressTextComponent, TruncateComponent, SearchResultsComponent, TimestampComponent, @@ -376,7 +374,6 @@ import { ChunkedAddressComponent } from '@app/shared/components/chunked-address/ BtcComponent, FeeRateComponent, AddressTypeComponent, - AddressTextComponent, TruncateComponent, SearchResultsComponent, TimestampComponent,