mirror of
https://github.com/block-core/blockcore-notes.git
synced 2024-09-29 06:20:42 +00:00
Fix merge issues
This commit is contained in:
parent
675b7671cf
commit
0b83565575
@ -76,7 +76,4 @@
|
|||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
|
|
||||||
<p class="dimmed">People are those you are following. You can use circles to organize your people.</p>
|
<p class="dimmed">People are those you are following. You can use circles to organize your people.</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,8 +5,7 @@ import { Utilities } from '../services/utilities';
|
|||||||
import { relayInit } from 'nostr-tools';
|
import { relayInit } from 'nostr-tools';
|
||||||
import * as moment from 'moment';
|
import * as moment from 'moment';
|
||||||
import { DataValidation } from '../services/data-validation';
|
import { DataValidation } from '../services/data-validation';
|
||||||
import { NostrEvent, NostrProfile, NostrProfileDocument, ProfileStatus } from '../services/interfaces';
|
import { Circle, NostrEvent, NostrProfile, NostrEventDocument, NostrProfileDocument, ProfileStatus } from '../services/interfaces';
|
||||||
import { Circle, NostrEvent, NostrProfile, NostrEventDocument, NostrProfileDocument } from '../services/interfaces';
|
|
||||||
import { ProfileService } from '../services/profile';
|
import { ProfileService } from '../services/profile';
|
||||||
import { map, Observable, Subscription } from 'rxjs';
|
import { map, Observable, Subscription } from 'rxjs';
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
@ -16,6 +15,7 @@ import { MatSnackBar } from '@angular/material/snack-bar';
|
|||||||
import { NavigationService } from '../services/navigation';
|
import { NavigationService } from '../services/navigation';
|
||||||
import { ImportFollowDialog, ImportFollowDialogData } from './import-follow-dialog/import-follow-dialog';
|
import { ImportFollowDialog, ImportFollowDialogData } from './import-follow-dialog/import-follow-dialog';
|
||||||
import { DataService } from '../services/data';
|
import { DataService } from '../services/data';
|
||||||
|
import { CircleService } from '../services/circle';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-people',
|
selector: 'app-people',
|
||||||
@ -31,8 +31,6 @@ export class PeopleComponent {
|
|||||||
showAbout = true;
|
showAbout = true;
|
||||||
showFollowingDate = true;
|
showFollowingDate = true;
|
||||||
following: NostrProfileDocument[] = [];
|
following: NostrProfileDocument[] = [];
|
||||||
items: Circle[] = [];
|
|
||||||
|
|
||||||
items: NostrProfileDocument[] = [];
|
items: NostrProfileDocument[] = [];
|
||||||
sortedItems: NostrProfileDocument[] = [];
|
sortedItems: NostrProfileDocument[] = [];
|
||||||
// items$ = this.profileService.items$;
|
// items$ = this.profileService.items$;
|
||||||
@ -63,6 +61,7 @@ export class PeopleComponent {
|
|||||||
|
|
||||||
searchTerm: any;
|
searchTerm: any;
|
||||||
constructor(
|
constructor(
|
||||||
|
private circleService: CircleService,
|
||||||
public navigation: NavigationService,
|
public navigation: NavigationService,
|
||||||
public appState: ApplicationState,
|
public appState: ApplicationState,
|
||||||
private cd: ChangeDetectorRef,
|
private cd: ChangeDetectorRef,
|
||||||
@ -198,14 +197,13 @@ export class PeopleComponent {
|
|||||||
return this.following.filter((f) => f.circle == id);
|
return this.following.filter((f) => f.circle == id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private getPublicPublicKeys() {
|
|
||||||
console.log(this.items);
|
|
||||||
console.log(this.following);
|
|
||||||
|
|
||||||
|
private getPublicPublicKeys() {
|
||||||
|
console.log(this.following);
|
||||||
const items: string[] = [];
|
const items: string[] = [];
|
||||||
|
|
||||||
for (let i = 0; i < this.items.length; i++) {
|
for (let i = 0; i < this.circleService.circles.length; i++) {
|
||||||
const circle = this.items[i];
|
const circle = this.circleService.circles[i];
|
||||||
|
|
||||||
if (circle.public) {
|
if (circle.public) {
|
||||||
const profiles = this.getFollowingInCircle(circle.id);
|
const profiles = this.getFollowingInCircle(circle.id);
|
||||||
@ -216,6 +214,7 @@ export class PeopleComponent {
|
|||||||
|
|
||||||
return items;
|
return items;
|
||||||
}
|
}
|
||||||
|
|
||||||
async addFollow(pubkey: string) {
|
async addFollow(pubkey: string) {
|
||||||
if (pubkey.startsWith('nsec')) {
|
if (pubkey.startsWith('nsec')) {
|
||||||
let sb = this.snackBar.open('This is a private key, not a public key.', 'Hide', {
|
let sb = this.snackBar.open('This is a private key, not a public key.', 'Hide', {
|
||||||
|
@ -15,8 +15,7 @@ interface ChatModel {
|
|||||||
export class ChatListComponent implements OnInit {
|
export class ChatListComponent implements OnInit {
|
||||||
@Output() openChatSidebar: EventEmitter<string> = new EventEmitter();
|
@Output() openChatSidebar: EventEmitter<string> = new EventEmitter();
|
||||||
|
|
||||||
constructor(public chatService: ChatService) {
|
constructor(public chatService: ChatService) {}
|
||||||
}
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.chatService.download();
|
this.chatService.download();
|
||||||
@ -27,10 +26,10 @@ export class ChatListComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
add() {
|
add() {
|
||||||
this.#chats.unshift({ id: '123', name: 'Yes!' });
|
// this.#chats.unshift({ id: '123', name: 'Yes!' });
|
||||||
}
|
}
|
||||||
|
|
||||||
reset() {
|
reset() {
|
||||||
this.#chats = [];
|
// this.#chats = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user