This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Entity, | |
PrimaryGeneratedColumn, | |
Column, | |
BaseEntity, | |
OneToMany, | |
CreateDateColumn, | |
UpdateDateColumn, | |
ManyToMany, | |
JoinTable, | |
OneToOne } from 'typeorm'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Resolver, Mutation, Arg } from 'type-graphql'; | |
import { User } from './user.entity'; | |
import { UserAuthorLike } from '../user-author-like/user-author-like.entity'; | |
@Resolver(User) | |
export class UserResolver { | |
// yazar beğen | |
@Mutation(() => Boolean) | |
async yazarBegen( | |
@Arg('userId') userId: string, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
toolTips = ['Kötü', 'Orta', 'İyi', 'Çok İyi', 'Mükemmel']; | |
getTooltip(index: number): string { | |
return this.toolTips[index]; | |
} | |
<button mat-icon-button | |
*ngFor="let ratingId of ratingArr; index as i" [id]="'star_'+i" | |
(click)="onClick(i+1)" | |
[matTooltip]="getTooltip(ratingId)" | |
matTooltipPosition="above"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit, OnDestroy } from '@angular/core'; | |
import { ActivatedRoute, Router } from '@angular/router'; | |
import { UserUserQuery, UserUserGQL, LoginMeQuery, LoginMeGQL } from '@generated-types'; | |
import { SEOService } from '@services/seo.service'; | |
import { FaIconLibrary } from '@fortawesome/angular-fontawesome'; | |
import { fas, faCoffee } from '@fortawesome/free-solid-svg-icons'; | |
import { far } from '@fortawesome/free-regular-svg-icons'; | |
import { fab } from '@fortawesome/free-brands-svg-icons'; | |
import { Observable, Subscription } from 'rxjs'; | |
import { map } from 'rxjs/operators'; |