Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(shared/actions/service): remove authmedia #3240

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading