Skip to content

Commit de990f3

Browse files
committed
2 parents ec6aa34 + 91fd9e7 commit de990f3

File tree

27 files changed

+23
-91
lines changed

27 files changed

+23
-91
lines changed

src/app/core/router-manager/horizontal-menu.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { SidebarItem } from '../models/data-handle';
33
export function getNavHorizontalItems(roles: string[]): SidebarItem[] {
44
const auth_lv1 = ['ADMIN', 'TEACHER'];
55
const auth_lv2 = ['ADMIN'];
6-
console.log(roles);
76

87
return [
98
{

src/app/core/services/config-socket/socketConnection.service.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@ export class SocketConnectionService {
2929
query: token ? { token } : undefined, // thêm query
3030
});
3131

32-
socket.on('connect', () =>
33-
console.log(`✅ WS connected: ${base}${path}`)
34-
);
32+
socket.on('connect', () => console.log(`Đã kết nối WS: ${base}${path}`));
3533
socket.on('connect_error', (err) =>
36-
console.error(`WS connect error (${base}${path}):`, err.message)
34+
console.error(`Kết nối WS thất bại (${base}${path}):`, err.message)
3735
);
3836

3937
this.sockets.set(urlOrPath, socket);

src/app/features/admin/org-management/pages/org-list/org-list.ts

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import { v4 as uuidv4 } from 'uuid';
2222
PaginationComponent,
2323
InputComponent,
2424
ButtonComponent,
25-
DropdownButtonComponent
26-
],
25+
DropdownButtonComponent,
26+
],
2727
standalone: true,
2828
})
2929
export class OrgListComponent {
@@ -112,9 +112,7 @@ export class OrgListComponent {
112112
];
113113
}
114114

115-
handlePageChange(page: number) {
116-
console.log('chuyển trang');
117-
}
115+
handlePageChange(page: number) {}
118116
formatDate(time: Date) {
119117
return formatDate(time);
120118
}
@@ -129,22 +127,14 @@ export class OrgListComponent {
129127
this.isClosing = false;
130128
}, 200); // Thời gian đúng với animation
131129
}
132-
handletest(row: any) {
133-
console.log(row);
134-
}
130+
handletest(row: any) {}
135131
// ... existing code ...
136-
handleImport = () => {
137-
console.log('Import button clicked, listId:', this.listId);
138-
};
132+
handleImport = () => {};
139133

140-
handleAdd = () => {
141-
console.log('Add button clicked, listId:', this.listId);
142-
};
134+
handleAdd = () => {};
143135
// ... existing code ...
144136
handleInputChange(value: string | number): void {
145137
this.orgname = value.toString();
146-
147-
console.log('Input changed:', this.orgname);
148138
}
149139

150140
handleSelect(dropdownKey: string, selected: any): void {
@@ -155,8 +145,6 @@ export class OrgListComponent {
155145
this.selectedOptions[dropdownKey] = selected;
156146

157147
// this.router.navigate(['/', dropdownKey, selected.label]);
158-
159-
console.log(this.selectedOptions);
160148
}
161149

162150
toggleDropdown(id: string): void {
@@ -166,6 +154,5 @@ export class OrgListComponent {
166154

167155
handleSwitch = (row: any) => {
168156
// Xử lý chuyển trạng thái khoá/mở khoá ở đây
169-
console.log('Switch clicked for org id:', row.id, 'status:', row.status);
170157
};
171158
}

src/app/features/admin/post-management/component/popular-post/popular-post.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ export class PopularPostComponent {
2222
get topPosts(): PostCardInfo[] {
2323
return this.ListPost.slice(0, 2);
2424
}
25-
handleAdd = () => {
26-
console.log('Add button clicked');
27-
};
25+
handleAdd = () => {};
2826
formatCount(count: number): string {
2927
if (count >= 1_000_000_000)
3028
return (count / 1_000_000_000).toFixed(1).replace(/\.0$/, '') + 'b';

src/app/features/admin/user-management/modal/create-user-modal/create-user-modal.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ export class CreateUserModalComponent implements OnInit, OnDestroy {
193193
.pipe(takeUntil(this.destroy$))
194194
.subscribe({
195195
next: () => {
196-
console.log('User created successfully!');
197196
this.isSubmitting = false;
198197
this.userCreated.emit();
199198
this.closeModal();

src/app/features/admin/user-management/pages/user-list/user-list.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,7 @@ export class UserListComponent {
206206
this.fetchDataListUser();
207207
}
208208

209-
handleImport = () => {
210-
console.log('Import button clicked, listId:', this.listId);
211-
};
209+
handleImport = () => {};
212210

213211
handleAdd = () => {
214212
this.isOpenCreateUser = !this.isOpenCreateUser;

src/app/features/auth/components/modal/change-password/change-password.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export class ChangePasswordComponent {
3535
isLoading = false;
3636

3737
onClose(): void {
38-
console.log('Modal closed');
3938
this.onCloseModal.emit(false);
4039
this.isVisibleModal = !this.isVisibleModal;
4140
// In một ứng dụng thực, bạn sẽ sử dụng một sự kiện hoặc service để đóng modal.

src/app/features/conversation-chat/pages/chat/chat.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,11 +518,9 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked {
518518
}
519519

520520
closeModalCreateNewConversation() {
521-
console.log('hủy tạo chat mới');
522521
this.isOpenCreateNewChat = !this.isOpenCreateNewChat;
523522
}
524523
createdNewConversation() {
525-
console.log('đã tạo mới chat');
526524
this.isOpenCreateNewChat = true;
527525
this.fetchConversations();
528526
}

src/app/features/example-slide/using-input-button/using-input-button.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Component } from '@angular/core';
22
import { InputComponent } from '../../../shared/components/fxdonad-shared/input/input';
33
import { InteractiveButtonComponent } from '../../../shared/components/fxdonad-shared/button/button.component';
44

5-
65
@Component({
76
selector: 'app-using-input-button',
87
imports: [InputComponent, InteractiveButtonComponent],
@@ -31,7 +30,6 @@ export class UsingInputButtonComponent {
3130
}
3231

3332
onClick() {
34-
console.log('Clicked');
3533
this.follow = !this.follow;
3634
}
3735
}

src/app/features/excercise/exercise-pages/assign-exercise/assign-exercise.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ export class AssignExerciseComponent implements OnInit {
102102
next: (res) => {
103103
if (res) {
104104
this.assignedStudents = res.data;
105-
console.log(res.data);
106105
this.assignedTotalPages = res.totalPages;
107106
this.assignedTotalElements = res.totalElements;
108107
this.assignedPage = res.currentPage;

0 commit comments

Comments
 (0)