Skip to content

Conversation

@aslan-es
Copy link
Collaborator

@aslan-es aslan-es commented Aug 6, 2025

This PR introduces two new static pages to the application:

  • Adds the AboutComponent and ContactComponent.
  • Sets up the corresponding routes for /about and /contact in the main routing configuration.

@@ -0,0 +1,40 @@
@if (book(); as bookData) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

این if خوب نیست
اگه میخوای چیزی رو چک کنی برو کامپوننت پدرش چک کن

@@ -0,0 +1,125 @@
:host {
display: flex;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

این استایل هارو از هم جدا کنین یکم مرتب تر بشه
طبق چیزی که تو داک هست

standalone: true
})
export class BookDetailComponent{

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

چرا اینطوری از injector استفاده میکنید ؟

@@ -0,0 +1,114 @@
<div class="form-container">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

کامپوننت خیلی خیلی خیلی بزرگه
شکسته بشه

});
}

ngOnInit(): void {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

هیچکدوم از متد ها accesss modifier ندازه

export class HeaderComponent {
searchControl = new FormControl<string | null>('');

searchTerm = toSignal(this.searchControl.valueChanges.pipe(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

access modifer

@@ -0,0 +1,99 @@
.static-page-container {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

اینارو مرتب کنید
طبق داک



constructor(private http: HttpClient) {
this.loadInitialData();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public

public filteredBooks = computed(()=> {
const term = this.searchTerm();
const books = this.books();
if (!term){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

item != null
کلا سعی کنید هیچ موقع نرید
truthy چک کنید
همیشه null check
کنید
اگرم سواله براتون چرا سرچ کنید زیاد ممقاله میاد

}


searchBooks(term: string) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

access modifier

@@ -0,0 +1,113 @@
import {HttpClient} from '@angular/common/http';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

اسم فایل چرا اینه

public imagePreview = signal<string | null>(null);
public selectedFile = signal<File | null>(null);

addBookForm = new FormGroup({
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

access modifier

private route = inject(ActivatedRoute);
private router = inject(Router);

constructor() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

Comment on lines +26 to +27
private searchEffect = effect(() => {
const currentTerm = this.searchTerm();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

effect رو همیشه بهتره تو
constructor
بزنیم تمیز تر میشه

@@ -0,0 +1,63 @@
.static-page-container {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

بر اساس داک مرتب کنیپد

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants