Skip to content

Commit

Permalink
Update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
miladsoft committed Nov 19, 2024
1 parent ab05cb0 commit 1d4ddee
Show file tree
Hide file tree
Showing 11 changed files with 192 additions and 914 deletions.
318 changes: 159 additions & 159 deletions package-lock.json

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
},
"dependencies": {
"@angular-builders/custom-webpack": "^18.0.0",
"@angular/animations": "18.2.11",
"@angular/cdk": "18.2.12",
"@angular/common": "18.2.11",
"@angular/compiler": "18.2.11",
"@angular/core": "18.2.11",
"@angular/forms": "18.2.11",
"@angular/material": "18.2.12",
"@angular/material-luxon-adapter": "18.2.12",
"@angular/platform-browser": "18.2.11",
"@angular/platform-browser-dynamic": "18.2.11",
"@angular/pwa": "^18.2.11",
"@angular/router": "18.2.11",
"@angular/service-worker": "^18.2.11",
"@angular/animations": "18.2.12",
"@angular/cdk": "18.2.13",
"@angular/common": "18.2.12",
"@angular/compiler": "18.2.12",
"@angular/core": "18.2.12",
"@angular/forms": "18.2.12",
"@angular/material": "18.2.13",
"@angular/material-luxon-adapter": "18.2.13",
"@angular/platform-browser": "18.2.12",
"@angular/platform-browser-dynamic": "18.2.12",
"@angular/pwa": "^18.2.12",
"@angular/router": "18.2.12",
"@angular/service-worker": "^18.2.12",
"@blockcore/nostr-login": "^1.0.7",
"@blockcore/nostr-login-components": "^1.0.7",
"@ctrl/ngx-emoji-mart": "^9.2.0",
Expand All @@ -54,7 +54,7 @@
"crypto-browserify": "^3.12.1",
"crypto-js": "4.2.0",
"dayjs": "^1.11.13",
"dompurify": "^3.1.7",
"dompurify": "^3.2.0",
"highlight.js": "11.10.0",
"install": "^0.13.0",
"jsdom": "^25.0.1",
Expand All @@ -67,8 +67,8 @@
"ng-apexcharts": "1.12.0",
"ngx-indexed-db": "^19.1.0",
"ngx-infinite-scroll": "^18.0.0",
"ngx-quill": "26.0.9",
"nostr-tools": "^2.10.1",
"ngx-quill": "26.0.10",
"nostr-tools": "^2.10.3",
"npm": "^10.9.0",
"perfect-scrollbar": "1.5.6",
"process": "^0.11.10",
Expand All @@ -83,9 +83,9 @@
"zone.js": "0.15.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^18.2.11",
"@angular/cli": "18.2.11",
"@angular/compiler-cli": "18.2.11",
"@angular-devkit/build-angular": "^18.2.12",
"@angular/cli": "18.2.12",
"@angular/compiler-cli": "18.2.12",
"@tailwindcss/typography": "0.5.15",
"@types/chroma-js": "2.4.4",
"@types/crypto-js": "4.2.2",
Expand All @@ -104,11 +104,11 @@
"karma-jasmine": "5.1.0",
"karma-jasmine-html-reporter": "2.1.0",
"lodash": "4.17.21",
"postcss": "8.4.48",
"postcss": "8.4.49",
"prettier": "^3.3.3",
"prettier-plugin-organize-imports": "4.1.0",
"prettier-plugin-tailwindcss": "0.6.8",
"tailwindcss": "3.4.14",
"tailwindcss": "3.4.15",
"typescript": "5.5.2"
}
}
9 changes: 4 additions & 5 deletions src/app/components/post-event/post-event.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import { Filter, NostrEvent } from 'nostr-tools';
import { ReplayProfileComponent } from './replay-profile/replay-profile.component';
import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
import { PostComponent } from 'app/layout/common/post/post.component';
import { NewEvent } from 'app/types/NewEvent';
import { EventService } from 'app/services/event.service';
import { AngorConfirmationService } from '@angor/services/confirmation';
import { ZapService } from 'app/services/zap.service';
Expand Down Expand Up @@ -212,7 +211,7 @@ export class PostEventComponent implements OnInit, OnDestroy {
return isSingleWord || isSingleEmoji;
}

sendLike(event: NewEvent): void {
sendLike(event: NostrEvent): void {
if (!this.isLiked) {
this._eventService.sendLikeEvent(event).then(() => {
this.isLiked = true;
Expand All @@ -221,11 +220,11 @@ export class PostEventComponent implements OnInit, OnDestroy {
}
}

toggleLike(event: NewEvent): void {
toggleLike(event: NostrEvent): void {
this.sendLike(event);
}

onShare(event: NewEvent): void {
onShare(event: NostrEvent): void {
const dialogRef = this._angorConfirmationService.open({
title: 'Share',
message:
Expand Down Expand Up @@ -266,7 +265,7 @@ export class PostEventComponent implements OnInit, OnDestroy {
}


sendComment(event: NewEvent): void {
sendComment(event: NostrEvent): void {
if (this.comment.trim() !== '') {
this._eventService.sendReplyEvent(event, this.comment).then(() => {
this.comment = '';
Expand Down
3 changes: 0 additions & 3 deletions src/app/components/profile/profile.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import { EventService } from 'app/services/event.service';
import { SignerService } from 'app/services/signer.service';
import { SocialService } from 'app/services/social.service';
import { ContactEvent, StorageService } from 'app/services/storage.service';
import { LightningInvoice, LightningResponse } from 'app/types/post';
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
import { Filter, NostrEvent } from 'nostr-tools';
import { Observable, Subject, takeUntil } from 'rxjs';
Expand Down Expand Up @@ -109,8 +108,6 @@ export class ProfileComponent implements OnInit, OnDestroy {

showEmojiPicker = false;
showCommentEmojiPicker = false;
lightningResponse: LightningResponse | null = null;
lightningInvoice: LightningInvoice | null = null;
sats: string;
paymentInvoice: string = '';
invoiceAmount: string = '?';
Expand Down
8 changes: 4 additions & 4 deletions src/app/layout/common/post/post.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
} from 'app/services/parse-content.service';
import { StorageService } from 'app/services/storage.service';
import { ZapService } from 'app/services/zap.service';
import { NewEvent } from 'app/types/NewEvent';
import { NostrEvent } from 'nostr-tools';
import { Subscription, take, takeUntil } from 'rxjs';

@Component({
Expand Down Expand Up @@ -132,7 +132,7 @@ export class PostComponent implements OnDestroy {



sendLike(event: NewEvent): void {
sendLike(event: NostrEvent): void {
if (!this.isLiked) {
this.eventService.sendLikeEvent(event).then(() => {
this.isLiked = true;
Expand All @@ -141,11 +141,11 @@ export class PostComponent implements OnDestroy {
}
}

toggleLike(event: NewEvent): void {
toggleLike(event: NostrEvent): void {
this.sendLike(event);
}

onShare(event: NewEvent): void {
onShare(event: NostrEvent): void {
const dialogRef = this.angorConfirmationService.open({
title: 'Share',
message:
Expand Down
9 changes: 4 additions & 5 deletions src/app/services/event.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Injectable } from '@angular/core';
import { hexToBytes } from '@noble/hashes/utils';
import { NewEvent } from 'app/types/NewEvent';
import { Filter, finalizeEvent, NostrEvent } from 'nostr-tools';
import { RelayService } from './relay.service';
import { SignerService } from './signer.service';
Expand Down Expand Up @@ -57,7 +56,7 @@ export class EventService {
}
}

async sendLikeEvent(event: NewEvent): Promise<void> {
async sendLikeEvent(event: NostrEvent): Promise<void> {
if (!event) return;

try {
Expand Down Expand Up @@ -97,7 +96,7 @@ export class EventService {
}
}

async sendZapEvent(event: NewEvent, zapAmount: number): Promise<void> {
async sendZapEvent(event: NostrEvent, zapAmount: number): Promise<void> {
if (!event || zapAmount <= 0) return;

try {
Expand Down Expand Up @@ -134,7 +133,7 @@ export class EventService {
}

async sendReplyEvent(
parentEvent: NewEvent,
parentEvent: NostrEvent,
replyContent: string
): Promise<void> {
if (!parentEvent) return;
Expand Down Expand Up @@ -171,7 +170,7 @@ export class EventService {
}


async shareEvent(event: NewEvent): Promise<void> {
async shareEvent(event: NostrEvent): Promise<void> {
if (!event) return;

try {
Expand Down
105 changes: 0 additions & 105 deletions src/app/services/lightning.service.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/app/shared/zap-dialog/zap-dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { FormBuilder, FormGroup, Validators, AbstractControl, ValidationErrors,
import { MatDialogRef, MAT_DIALOG_DATA, MatDialogActions, MatDialogClose, MatDialogContent } from '@angular/material/dialog';
import { MatSnackBar } from '@angular/material/snack-bar';
import { Clipboard } from '@angular/cdk/clipboard';
import { LightningService } from 'app/services/lightning.service';
import { LNURLPayRequest, LNURLInvoice } from 'app/services/interfaces';
import { finalizeEvent, NostrEvent, UnsignedEvent } from 'nostr-tools';
import { SignerService } from 'app/services/signer.service';
Expand Down Expand Up @@ -49,7 +48,6 @@ import { hexToBytes } from '@noble/hashes/utils';
})
export class ZapDialogComponent implements OnInit {
private readonly formBuilder = inject(FormBuilder);
private readonly lightningService = inject(LightningService);
private readonly signerService = inject(SignerService);
private readonly relayService = inject(RelayService);
private readonly dialogRef = inject(MatDialogRef<ZapDialogComponent>);
Expand Down
Loading

0 comments on commit 1d4ddee

Please sign in to comment.