Skip to content

Commit

Permalink
Merge pull request #3240 from numbersprotocol/feature-remove-authmedia
Browse files Browse the repository at this point in the history
feat(shared/actions/service): remove authmedia
  • Loading branch information
olgahaha committed Apr 15, 2024
2 parents a0ca501 + d99fa1c commit 200e7c4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 26 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Expand Up @@ -10,11 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [0.91.0] - 2024-04-03

### Added

1. Create a CI/CD workflow for Firebase distribution. [#3238](https://github.com/numbersprotocol/capture-lite/pull/3238)

### Changed

1. Upgrade macOS from version 12 to version 14 to resolve the SDK version issue. [#3239](https://github.com/numbersprotocol/capture-lite/pull/3239)
1, Sort network actions by `index` field to allow control of display order [#3237](https://github.com/numbersprotocol/capture-lite/pull/3237)
1. Sort network actions by `index` field to allow control of display order [#3237](https://github.com/numbersprotocol/capture-lite/pull/3237)

## [0.90.0] - 2024-03-08

Expand Down
7 changes: 0 additions & 7 deletions src/app/features/home/details/details.page.ts
Expand Up @@ -23,7 +23,6 @@ import {
tap,
} from 'rxjs/operators';
import SwiperCore, { Swiper, Virtual } from 'swiper';
import { ActionsService } from '../../../shared/actions/service/actions.service';
import { BlockingActionService } from '../../../shared/blocking-action/blocking-action.service';
import { CaptureAppWebCryptoApiSignatureProvider } from '../../../shared/collector/signature/capture-app-web-crypto-api-signature-provider/capture-app-web-crypto-api-signature-provider.service';
import { ConfirmAlert } from '../../../shared/confirm-alert/confirm-alert.service';
Expand Down Expand Up @@ -241,7 +240,6 @@ export class DetailsPage {
private readonly alertController: AlertController,
private readonly changeDetectorRef: ChangeDetectorRef,
private readonly userGuideService: UserGuideService,
private readonly actionsService: ActionsService,
private readonly networkService: NetworkService,
private readonly diaBackendStoreService: DiaBackendStoreService,
private readonly iframeService: IframeService,
Expand Down Expand Up @@ -714,11 +712,6 @@ export class DetailsPage {
activeDetailedCapture => activeDetailedCapture.diaBackendAsset$
),
isNonNullable(),
tap(diaBackendAsset =>
this.actionsService
.generateSeoImageAndDescription$(diaBackendAsset)
.toPromise()
),
concatMap(diaBackendAsset => this.shareService.share(diaBackendAsset)),
catchError((err: unknown) => this.errorService.toastError$(err)),
untilDestroyed(this)
Expand Down
11 changes: 0 additions & 11 deletions src/app/shared/actions/service/actions.service.ts
Expand Up @@ -2,7 +2,6 @@ import { HttpClient, HttpParams } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { defer, forkJoin, of } from 'rxjs';
import { map } from 'rxjs/operators';
import { DiaBackendAsset } from '../../dia-backend/asset/dia-backend-asset-repository.service';
import { BUBBLE_DB_URL } from '../../dia-backend/secret';

@Injectable({
Expand Down Expand Up @@ -39,16 +38,6 @@ export class ActionsService {
send$(url: string, body: any) {
return this.httpClient.post(url, body);
}

generateSeoImageAndDescription$(diaBackendAsset: DiaBackendAsset) {
return this.httpClient.post<any>(
`https://authmedia.net/api/1.1/obj/nftprofile`,
{
asset_url: diaBackendAsset.asset_file,
Description: diaBackendAsset.cid,
}
);
}
}

export interface Action {
Expand Down
7 changes: 0 additions & 7 deletions src/app/utils/url.ts
Expand Up @@ -6,13 +6,6 @@ export function toDataUrl(base64: string, mimeType: MimeType | string) {
return `data:${mimeType};base64,${base64}`;
}

export function getAssetProfileUrl(id: string, token?: string) {
if (token) {
return `https://authmedia.net/asset-profile?cid=${id}&token=${token}`;
}
return `https://authmedia.net/asset-profile?cid=${id}`;
}

export function getAssetProfileForNSE(id: string, token?: string) {
if (token) {
return `https://verify.numbersprotocol.io/asset-profile?nid=${id}&tmp_token=${token}`;
Expand Down

0 comments on commit 200e7c4

Please sign in to comment.