Spaces:
Running
Running
File size: 17,825 Bytes
4bae792 91939c2 4bae792 91939c2 4bae792 91939c2 4bae792 91939c2 4bae792 91939c2 4bae792 91939c2 4bae792 91939c2 4bae792 91939c2 4bae792 91939c2 4bae792 91939c2 4bae792 91939c2 4bae792 91939c2 4bae792 91939c2 4bae792 91939c2 4bae792 91939c2 4bae792 1125afb 4bae792 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 | // Mock data for the university learning app
export const spaces = [
{
id: "toan-cao-cap",
name: "Toán cao cấp",
icon: "function",
hasNotification: true,
},
{
id: "lap-trinh-ai",
name: "Lập trình AI",
icon: "robot",
hasNotification: false,
},
{
id: "nhom-project",
name: "Nhóm Project",
icon: "folder",
hasNotification: true,
},
{
id: "on-thi-cuoi-ky",
name: "Ôn thi cuối kỳ",
icon: "pencil",
hasNotification: false,
},
];
export const rooms = {
"toan-cao-cap": [
{
id: "bai-giang-1",
name: "Bài giảng 1",
hasNotification: true,
unreadCount: 3,
},
{ id: "bai-tap-tuan-2", name: "Bài tập tuần 2", hasNotification: false },
{
id: "thao-luan-midterm",
name: "Thảo luận midterm",
hasNotification: true,
unreadCount: 5,
},
{ id: "tai-lieu", name: "Tài liệu", hasNotification: false },
{
id: "tro-ly-ai",
name: "Trợ lý AI",
icon: "🤖",
hasNotification: false,
isBot: true,
},
],
"lap-trinh-ai": [
{ id: "python-co-ban", name: "Python cơ bản", hasNotification: false },
{
id: "machine-learning",
name: "Machine Learning",
hasNotification: true,
unreadCount: 2,
},
{ id: "deep-learning", name: "Deep Learning", hasNotification: false },
{
id: "tro-ly-ai",
name: "Trợ lý AI",
icon: "🤖",
hasNotification: false,
isBot: true,
},
],
"nhom-project": [
{ id: "ke-hoach", name: "Kế hoạch", hasNotification: false },
{
id: "phan-cong",
name: "Phân công",
hasNotification: true,
unreadCount: 1,
},
{
id: "tro-ly-ai",
name: "Trợ lý AI",
icon: "🤖",
hasNotification: false,
isBot: true,
},
],
"on-thi-cuoi-ky": [
{ id: "de-cuong", name: "Đề cương", hasNotification: false },
{
id: "bai-tap-on",
name: "Bài tập ôn",
hasNotification: true,
unreadCount: 8,
},
{
id: "tro-ly-ai",
name: "Trợ lý AI",
icon: "🤖",
hasNotification: false,
isBot: true,
},
],
};
export const messages = {
"bai-giang-1": [
{
id: 1,
sender: "Minh",
avatar: "M",
timestamp: "10:30",
content:
"Mọi người ơi, đạo hàm của hàm số f(x) = x³ + 2x là gì nhỉ? @Linh bạn giỏi toán giải giúp mình với",
isPinned: false,
isEdited: true,
reactions: [{ emoji: "🤔", count: 2, users: ["Linh", "Huy"] }],
},
{
id: 2,
sender: "Linh",
avatar: "L",
timestamp: "10:32",
content:
"Dùng quy tắc lũy thừa thôi: f'(x) = 3x² + 2. @Minh bạn thử áp dụng xem!",
isPinned: true,
reactions: [
{ emoji: "❤️", count: 3, users: ["Minh", "Huy", "Tuan"] },
{ emoji: "👍", count: 1, users: ["Tuan"] },
],
},
{
id: 3,
sender: "Huy",
avatar: "H",
timestamp: "10:33",
content: "Đúng rồi, mình cũng ra kết quả đó. Cảm ơn @Linh nhé!",
isPinned: false,
reactions: [{ emoji: "😄", count: 2, users: ["Minh", "Linh"] }],
},
{
id: 4,
sender: "Minh",
avatar: "M",
timestamp: "10:35",
content:
"Ah ra vậy, mình quên mất quy tắc chuỗi. @Tuan bạn hiểu quy tắc chuỗi không giải thích giúp mình với",
isPinned: false,
},
{
id: 5,
sender: "Linh",
avatar: "L",
timestamp: "10:36",
content:
"Mình gửi file PDF tổng hợp các quy tắc đạo hàm ở trên nhé. @Huy @Tuan các bạn tham khảo nè",
isPinned: false,
hasAttachment: true,
attachmentName: "dao_ham_tong_hop.pdf",
attachmentType: "pdf",
attachmentUrl: "/mock-files/dao_ham_tong_hop.pdf",
attachments: [
{
name: "dao_ham_tong_hop.pdf",
type: "pdf",
url: "/mock-files/dao_ham_tong_hop.pdf",
},
],
reactions: [
{ emoji: "🙏", count: 4, users: ["Minh", "Huy", "Tuan", "You"] },
],
},
{
id: 6,
sender: "Tuan",
avatar: "T",
timestamp: "10:40",
content: "File hay quá, cảm ơn @Linh nhiều! @Minh bạn xem đi rất hữu ích",
isPinned: false,
replyTo: {
id: 5,
sender: "Linh",
timestamp: "10:36",
content: "Mình gửi file PDF tổng hợp các quy tắc đạo hàm ở trên nhé",
},
},
{
id: 7,
sender: "Minh",
avatar: "M",
timestamp: "10:42",
content:
"Cho mình hỏi thêm: tích phân của sin(x) từ 0 đến π bằng bao nhiêu? @Linh @Huy giúp mình với",
isPinned: false,
replyTo: {
id: 2,
sender: "Linh",
timestamp: "10:32",
content: "Dùng quy tắc lũy thừa thôi: f'(x) = 3x² + 2",
},
},
{
id: 8,
sender: "Huy",
avatar: "H",
timestamp: "10:45",
content:
"∫sin(x)dx từ 0 đến π = [-cos(x)] từ 0 đến π = -cos(π) - (-cos(0)) = 1 + 1 = 2. @Minh bạn hiểu chưa?",
isPinned: true,
reactions: [
{ emoji: "🎉", count: 2, users: ["Minh", "Linh"] },
{ emoji: "💯", count: 1, users: ["Tuan"] },
],
},
{
id: 9,
sender: "Tuan",
avatar: "T",
timestamp: "10:50",
content: "@Minh Cuối tuần mình ôn bài không? @Linh @Huy đi chung không",
isPinned: false,
reactions: [{ emoji: "👍", count: 2, users: ["Minh", "Linh"] }],
},
{
id: 10,
sender: "Linh",
avatar: "L",
timestamp: "10:52",
content: "@Tuan Ok bạn! @Minh @Huy mọi người sắp xếp tham gia nhé 🎉",
isPinned: false,
reactions: [{ emoji: "🎉", count: 3, users: ["Minh", "Huy", "Tuan"] }],
},
{
id: 11,
sender: "Minh",
avatar: "M",
timestamp: "11:00",
content:
"Mình chụp ảnh bài giải bài tập đây, mọi người xem nhé @Linh @Huy",
isPinned: false,
hasAttachment: true,
attachmentName: "bai_giai_toan.jpg",
attachmentType: "image",
attachmentUrl:
"https://placehold.co/600x400/e2e8f0/475569?text=Bai+giai+toan",
attachments: [
{
name: "bai_giai_toan.jpg",
type: "image",
url: "https://placehold.co/600x400/e2e8f0/475569?text=Bai+giai+toan",
},
],
reactions: [{ emoji: "👍", count: 2, users: ["Linh", "Huy"] }],
},
{
id: 12,
sender: "Huy",
avatar: "H",
timestamp: "11:05",
content: "Ảnh đẹp quá, cảm ơn @Minh nhé! Mình cũng gửi ảnh bài của mình",
isPinned: false,
hasAttachment: true,
attachmentName: "bai_giai_huy.png",
attachmentType: "image",
attachmentUrl:
"https://placehold.co/600x400/dbeafe/1e40af?text=Bai+giai+Huy",
replyTo: {
id: 11,
sender: "Minh",
timestamp: "11:00",
content: "Mình chụp ảnh bài giải bài tập đây",
},
attachments: [
{
name: "bai_giai_huy.png",
type: "image",
url: "https://placehold.co/600x400/dbeafe/1e40af?text=Bai+giai+Huy",
},
],
reactions: [{ emoji: "❤️", count: 1, users: ["Minh"] }],
},
{
id: 13,
sender: "Tuan",
avatar: "T",
timestamp: "11:10",
content: "Mình gửi file tài liệu ôn tập nhé mọi người",
isPinned: false,
hasAttachment: true,
attachmentName: "on_tap_cuoi_ky.pdf",
attachmentType: "pdf",
attachmentUrl: "/mock-files/on_tap_cuoi_ky.pdf",
attachments: [
{
name: "on_tap_cuoi_ky.pdf",
type: "pdf",
url: "/mock-files/on_tap_cuoi_ky.pdf",
},
],
reactions: [{ emoji: "🙏", count: 3, users: ["Minh", "Linh", "Huy"] }],
},
],
"tro-ly-ai": [
{
id: 1,
sender: "You",
avatar: "Y",
timestamp: "14:20",
content: "Giải thích giúp mình đạo hàm là gì?",
isPinned: false,
},
{
id: 2,
sender: "StudyBot",
avatar: "🤖",
timestamp: "14:20",
content:
"Đạo hàm là tốc độ thay đổi của một hàm số theo biến số. Nói cách khác, đạo hàm tại một điểm cho biết hệ số góc của tiếp tuyến với đồ thị hàm số tại điểm đó.",
isPinned: true,
isBot: true,
},
{
id: 3,
sender: "You",
avatar: "Y",
timestamp: "14:21",
content: "Có ví dụ cụ thể không?",
isPinned: false,
},
{
id: 4,
sender: "StudyBot",
avatar: "🤖",
timestamp: "14:21",
content:
"Ví dụ: Vận tốc là đạo hàm của quãng đường theo thời gian. Nếu s(t) = t², thì v(t) = s'(t) = 2t. Tại t = 3s, vận tốc là 6 m/s.",
isPinned: false,
isBot: true,
},
{
id: 5,
sender: "You",
avatar: "Y",
timestamp: "14:23",
content: "Quy tắc chuỗi là gì?",
isPinned: false,
},
{
id: 6,
sender: "StudyBot",
avatar: "🤖",
timestamp: "14:23",
content:
"Quy tắc chuỗi dùng để tính đạo hàm của hàm hợp. Nếu y = f(g(x)), thì y' = f'(g(x)) · g'(x). Ví dụ: y = sin(x²) → y' = cos(x²) · 2x",
isPinned: false,
isBot: true,
},
],
};
export const directMessages = {
minh: [
{
id: 1,
sender: "Minh",
avatar: "M",
timestamp: "09:15",
content: "Cậu có tài liệu ôn thi không? @You gửi mình với",
isPinned: false,
},
{
id: 2,
sender: "You",
avatar: "Y",
timestamp: "09:20",
content: "Có nè, mình gửi cho cậu nhé @Minh",
isPinned: false,
},
{
id: 3,
sender: "Minh",
avatar: "M",
timestamp: "09:21",
content: "Cảm ơn cậu nhiều! @You",
isPinned: false,
},
{
id: 4,
sender: "You",
avatar: "Y",
timestamp: "09:25",
content: "Không có gì, cùng ôn thi nhé! @Minh @Linh đi chung không?",
isPinned: false,
},
{
id: 5,
sender: "Minh",
avatar: "M",
timestamp: "09:30",
content: "Đây là ảnh chụp đề cương ôn tập nè @You",
isPinned: false,
hasAttachment: true,
attachmentName: "de_cuong.jpg",
attachmentType: "image",
attachmentUrl:
"https://placehold.co/600x400/fef3c7/92400e?text=De+cuong+on+tap",
attachments: [
{
name: "de_cuong.jpg",
type: "image",
url: "https://placehold.co/600x400/fef3c7/92400e?text=De+cuong+on+tap",
},
],
reactions: [{ emoji: "🙏", count: 1, users: ["You"] }],
},
],
linh: [
{
id: 1,
sender: "Linh",
avatar: "L",
timestamp: "08:00",
content: "Bài tập trang 45 cậu làm xong chưa? @You",
isPinned: false,
},
{
id: 2,
sender: "You",
avatar: "Y",
timestamp: "08:30",
content: "Mình mới làm được nửa thôi @Linh",
isPinned: false,
},
{
id: 3,
sender: "Linh",
avatar: "L",
timestamp: "08:35",
content: "Câu 5 khó quá, cậu giải giúp mình được không? @You @Minh",
isPinned: false,
},
{
id: 4,
sender: "You",
avatar: "Y",
timestamp: "08:40",
content: "Đây là ảnh mình chụp lời giải câu 5 nè @Linh",
isPinned: false,
hasAttachment: true,
attachmentName: "loi_giai_cau5.png",
attachmentType: "image",
attachmentUrl:
"https://placehold.co/600x400/d1fae5/065f46?text=Loi+giai+cau+5",
attachments: [
{
name: "loi_giai_cau5.png",
type: "image",
url: "https://placehold.co/600x400/d1fae5/065f46?text=Loi+giai+cau+5",
},
],
reactions: [{ emoji: "❤️", count: 1, users: ["Linh"] }],
},
],
tuan: [
{
id: 1,
sender: "Tuan",
avatar: "T",
timestamp: "Yesterday",
content: "Project deadline là khi nào nhỉ? @You",
isPinned: false,
},
{
id: 2,
sender: "You",
avatar: "Y",
timestamp: "Yesterday",
content: "Cuối tháng này rồi @Tuan nhớ làm nhé!",
isPinned: false,
},
],
"studybot-dm": [
{
id: 1,
sender: "You",
avatar: "Y",
timestamp: "16:00",
content: "Help me with calculus",
isPinned: false,
},
{
id: 2,
sender: "StudyBot",
avatar: "🤖",
timestamp: "16:00",
content:
"Sure! What specific topic in calculus would you like help with?",
isPinned: false,
isBot: true,
},
],
hoa: [
{
id: 1,
sender: "Hoa",
avatar: "H",
timestamp: "15:30",
content:
"Chào bạn, mình cùng lớp toán cao cấp nhé! Cho mình hỏi về bài tập tuần 2 với?",
isPinned: false,
},
{
id: 2,
sender: "You",
avatar: "Y",
timestamp: "15:35",
content: "Chào bạn, bạn hỏi đi mình nghe nè",
isPinned: false,
},
{
id: 3,
sender: "Hoa",
avatar: "H",
timestamp: "15:40",
content:
"Câu 3 phần giới hạn mình không hiểu, bạn giải thích giúp mình được không?",
isPinned: false,
},
],
dung: [],
mai: [],
};
export const members = [
{ id: "minh", name: "Minh", avatar: "M", isOnline: true, isBot: false },
{ id: "linh", name: "Linh", avatar: "L", isOnline: true, isBot: false },
{ id: "huy", name: "Huy", avatar: "H", isOnline: false, isBot: false },
{ id: "tuan", name: "Tuấn", avatar: "T", isOnline: true, isBot: false },
{
id: "studybot",
name: "StudyBot",
avatar: "🤖",
isOnline: true,
isBot: true,
label: "Trợ lý",
},
];
export const recentFiles = [
{
id: 1,
name: "dao_ham_tong_hop.pdf",
sharedBy: "Linh",
date: "10:36",
type: "pdf",
},
{
id: 2,
name: "bai_giai_toan.jpg",
sharedBy: "Minh",
date: "11:00",
type: "image",
},
{
id: 3,
name: "bai_giai_huy.png",
sharedBy: "Huy",
date: "11:05",
type: "image",
},
{
id: 4,
name: "on_tap_cuoi_ky.pdf",
sharedBy: "Tuan",
date: "11:10",
type: "pdf",
},
{
id: 5,
name: "bai_giang_tuan1.pptx",
sharedBy: "Minh",
date: "Yesterday",
type: "other",
},
{
id: 6,
name: "de_cuong_on_tap.docx",
sharedBy: "Huy",
date: "2 days ago",
type: "other",
},
];
export const dmUsers = [
{
id: "minh",
name: "Minh",
avatar: "M",
isOnline: true,
lastMessage: "Cảm ơn cậu nhiều!",
hasNewMessage: true,
isFriend: true,
email: "minh@vinclassroom.edu.vn",
mutualFriends: 5,
sharedSpaces: ["Toán cao cấp", "Nhóm Project"],
},
{
id: "linh",
name: "Linh",
avatar: "L",
isOnline: true,
lastMessage: "Câu 5 khó quá...",
hasNewMessage: true,
isFriend: true,
email: "linh@vinclassroom.edu.vn",
mutualFriends: 8,
sharedSpaces: ["Toán cao cấp", "Lập trình AI"],
},
{
id: "tuan",
name: "Tuấn",
avatar: "T",
isOnline: false,
lastMessage: "Project deadline là khi nào?",
hasNewMessage: false,
isFriend: true,
email: "tuan@vinclassroom.edu.vn",
mutualFriends: 3,
sharedSpaces: ["Nhóm Project"],
},
{
id: "agent",
name: "agent",
avatar: "🤖",
isOnline: true,
lastMessage: "",
hasNewMessage: false,
isBot: true,
isAgent: true,
isFriend: true,
email: "agent@vinclassroom.edu.vn",
mutualFriends: 0,
sharedSpaces: [],
},
{
id: "studybot-dm",
name: "StudyBot",
avatar: "🤖",
isOnline: true,
lastMessage: "What specific topic...",
hasNewMessage: false,
isBot: true,
isFriend: true,
email: "studybot@vinclassroom.edu.vn",
mutualFriends: 0,
sharedSpaces: [],
},
{
id: "hoa",
name: "Hoa",
avatar: "H",
isOnline: true,
lastMessage: "Chào bạn, mình cùng lớp toán nhé!",
hasNewMessage: true,
isFriend: false,
email: "hoa@vinclassroom.edu.vn",
mutualFriends: 2,
sharedSpaces: ["Toán cao cấp"],
},
{
id: "dung",
name: "Dũng",
avatar: "D",
isOnline: false,
lastMessage: "Lời mời kết bạn",
hasNewMessage: false,
isFriend: false,
email: "dung@vinclassroom.edu.vn",
mutualFriends: 3,
sharedSpaces: [],
},
{
id: "mai",
name: "Mai",
avatar: "M",
isOnline: true,
lastMessage: "Lời mời kết bạn",
hasNewMessage: false,
isFriend: false,
email: "mai@vinclassroom.edu.vn",
mutualFriends: 5,
sharedSpaces: [],
},
];
// Pending friend requests
export const pendingFriendRequests = [
{
id: "dung",
name: "Dũng",
avatar: "D",
isOnline: false,
mutualFriends: 3,
},
{
id: "mai",
name: "Mai",
avatar: "M",
isOnline: true,
mutualFriends: 5,
},
];
// Suggested friends (search results)
export const suggestedFriends = [
{
id: "long",
name: "Long",
avatar: "L",
isOnline: true,
mutualFriends: 2,
},
{
id: "hong",
name: "Hồng",
avatar: "H",
isOnline: false,
mutualFriends: 1,
},
];
|