@armoyu/ui 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/app/Providers.d.ts +0 -6
- package/dist/app/Providers.d.ts.map +0 -1
- package/dist/app/Providers.js +0 -37
- package/dist/app/Providers.js.map +0 -1
- package/dist/app/api/proxy/[...path]/route.d.ts +0 -23
- package/dist/app/api/proxy/[...path]/route.d.ts.map +0 -1
- package/dist/app/api/proxy/[...path]/route.js +0 -133
- package/dist/app/api/proxy/[...path]/route.js.map +0 -1
- package/dist/app/gruplar/[groupId]/page.d.ts +0 -2
- package/dist/app/gruplar/[groupId]/page.d.ts.map +0 -1
- package/dist/app/gruplar/[groupId]/page.js +0 -10
- package/dist/app/gruplar/[groupId]/page.js.map +0 -1
- package/dist/app/layout.d.ts +0 -8
- package/dist/app/layout.d.ts.map +0 -1
- package/dist/app/layout.js +0 -29
- package/dist/app/layout.js.map +0 -1
- package/dist/app/not-found.d.ts +0 -2
- package/dist/app/not-found.d.ts.map +0 -1
- package/dist/app/not-found.js +0 -7
- package/dist/app/not-found.js.map +0 -1
- package/dist/app/page.d.ts +0 -2
- package/dist/app/page.d.ts.map +0 -1
- package/dist/app/page.js +0 -39
- package/dist/app/page.js.map +0 -1
- package/dist/components/Button.d.ts +0 -8
- package/dist/components/Button.d.ts.map +0 -1
- package/dist/components/Button.js +0 -16
- package/dist/components/Button.js.map +0 -1
- package/dist/components/GenderStatsBar.d.ts +0 -6
- package/dist/components/GenderStatsBar.d.ts.map +0 -1
- package/dist/components/GenderStatsBar.js +0 -8
- package/dist/components/GenderStatsBar.js.map +0 -1
- package/dist/components/RollingNumber.d.ts +0 -7
- package/dist/components/RollingNumber.d.ts.map +0 -1
- package/dist/components/RollingNumber.js +0 -24
- package/dist/components/RollingNumber.js.map +0 -1
- package/dist/components/Slider.d.ts +0 -11
- package/dist/components/Slider.d.ts.map +0 -1
- package/dist/components/Slider.js +0 -36
- package/dist/components/Slider.js.map +0 -1
- package/dist/components/StatsGrid.d.ts +0 -6
- package/dist/components/StatsGrid.d.ts.map +0 -1
- package/dist/components/StatsGrid.js +0 -14
- package/dist/components/StatsGrid.js.map +0 -1
- package/dist/components/ViewModeToggle.d.ts +0 -8
- package/dist/components/ViewModeToggle.d.ts.map +0 -1
- package/dist/components/ViewModeToggle.js +0 -10
- package/dist/components/ViewModeToggle.js.map +0 -1
- package/dist/components/modules/auth/Dashboard.d.ts +0 -2
- package/dist/components/modules/auth/Dashboard.d.ts.map +0 -1
- package/dist/components/modules/auth/Dashboard.js +0 -251
- package/dist/components/modules/auth/Dashboard.js.map +0 -1
- package/dist/components/modules/auth/MediaLightbox.d.ts +0 -14
- package/dist/components/modules/auth/MediaLightbox.d.ts.map +0 -1
- package/dist/components/modules/auth/MediaLightbox.js +0 -47
- package/dist/components/modules/auth/MediaLightbox.js.map +0 -1
- package/dist/components/modules/auth/PostCard.d.ts +0 -26
- package/dist/components/modules/auth/PostCard.d.ts.map +0 -1
- package/dist/components/modules/auth/PostCard.js +0 -116
- package/dist/components/modules/auth/PostCard.js.map +0 -1
- package/dist/components/modules/auth/PostInteractionsModal.d.ts +0 -12
- package/dist/components/modules/auth/PostInteractionsModal.d.ts.map +0 -1
- package/dist/components/modules/auth/PostInteractionsModal.js +0 -13
- package/dist/components/modules/auth/PostInteractionsModal.js.map +0 -1
- package/dist/components/modules/auth/RepostModal.d.ts +0 -22
- package/dist/components/modules/auth/RepostModal.d.ts.map +0 -1
- package/dist/components/modules/auth/RepostModal.js +0 -76
- package/dist/components/modules/auth/RepostModal.js.map +0 -1
- package/dist/components/modules/auth/SidebarLeft.d.ts +0 -2
- package/dist/components/modules/auth/SidebarLeft.d.ts.map +0 -1
- package/dist/components/modules/auth/SidebarLeft.js +0 -9
- package/dist/components/modules/auth/SidebarLeft.js.map +0 -1
- package/dist/components/modules/auth/Stories.d.ts +0 -2
- package/dist/components/modules/auth/Stories.d.ts.map +0 -1
- package/dist/components/modules/auth/Stories.js +0 -16
- package/dist/components/modules/auth/Stories.js.map +0 -1
- package/dist/components/modules/auth/StoryViewer.d.ts +0 -10
- package/dist/components/modules/auth/StoryViewer.d.ts.map +0 -1
- package/dist/components/modules/auth/StoryViewer.js +0 -48
- package/dist/components/modules/auth/StoryViewer.js.map +0 -1
- package/dist/components/modules/auth/widgets/EconomyWidget.d.ts +0 -2
- package/dist/components/modules/auth/widgets/EconomyWidget.d.ts.map +0 -1
- package/dist/components/modules/auth/widgets/EconomyWidget.js +0 -38
- package/dist/components/modules/auth/widgets/EconomyWidget.js.map +0 -1
- package/dist/components/modules/auth/widgets/LeagueWidget.d.ts +0 -2
- package/dist/components/modules/auth/widgets/LeagueWidget.d.ts.map +0 -1
- package/dist/components/modules/auth/widgets/LeagueWidget.js +0 -36
- package/dist/components/modules/auth/widgets/LeagueWidget.js.map +0 -1
- package/dist/components/modules/auth/widgets/MinecraftWidget.d.ts +0 -2
- package/dist/components/modules/auth/widgets/MinecraftWidget.d.ts.map +0 -1
- package/dist/components/modules/auth/widgets/MinecraftWidget.js +0 -36
- package/dist/components/modules/auth/widgets/MinecraftWidget.js.map +0 -1
- package/dist/components/modules/auth/widgets/RankingWidget.d.ts +0 -5
- package/dist/components/modules/auth/widgets/RankingWidget.d.ts.map +0 -1
- package/dist/components/modules/auth/widgets/RankingWidget.js +0 -79
- package/dist/components/modules/auth/widgets/RankingWidget.js.map +0 -1
- package/dist/components/modules/chat/ChatContainer.d.ts +0 -2
- package/dist/components/modules/chat/ChatContainer.d.ts.map +0 -1
- package/dist/components/modules/chat/ChatContainer.js +0 -199
- package/dist/components/modules/chat/ChatContainer.js.map +0 -1
- package/dist/components/modules/chat/ChatInput.d.ts +0 -5
- package/dist/components/modules/chat/ChatInput.d.ts.map +0 -1
- package/dist/components/modules/chat/ChatInput.js +0 -31
- package/dist/components/modules/chat/ChatInput.js.map +0 -1
- package/dist/components/modules/chat/ChatLayout.d.ts +0 -2
- package/dist/components/modules/chat/ChatLayout.d.ts.map +0 -1
- package/dist/components/modules/chat/ChatLayout.js +0 -198
- package/dist/components/modules/chat/ChatLayout.js.map +0 -1
- package/dist/components/modules/chat/ChatList.d.ts +0 -7
- package/dist/components/modules/chat/ChatList.d.ts.map +0 -1
- package/dist/components/modules/chat/ChatList.js +0 -53
- package/dist/components/modules/chat/ChatList.js.map +0 -1
- package/dist/components/modules/chat/ChatMessage.d.ts +0 -12
- package/dist/components/modules/chat/ChatMessage.d.ts.map +0 -1
- package/dist/components/modules/chat/ChatMessage.js +0 -7
- package/dist/components/modules/chat/ChatMessage.js.map +0 -1
- package/dist/components/modules/chat/ChatNotes.d.ts +0 -2
- package/dist/components/modules/chat/ChatNotes.d.ts.map +0 -1
- package/dist/components/modules/chat/ChatNotes.js +0 -12
- package/dist/components/modules/chat/ChatNotes.js.map +0 -1
- package/dist/components/modules/chat/widgets/ChatInput.d.ts +0 -5
- package/dist/components/modules/chat/widgets/ChatInput.d.ts.map +0 -1
- package/dist/components/modules/chat/widgets/ChatInput.js +0 -31
- package/dist/components/modules/chat/widgets/ChatInput.js.map +0 -1
- package/dist/components/modules/chat/widgets/ChatList.d.ts +0 -7
- package/dist/components/modules/chat/widgets/ChatList.d.ts.map +0 -1
- package/dist/components/modules/chat/widgets/ChatList.js +0 -53
- package/dist/components/modules/chat/widgets/ChatList.js.map +0 -1
- package/dist/components/modules/chat/widgets/ChatMessage.d.ts +0 -12
- package/dist/components/modules/chat/widgets/ChatMessage.d.ts.map +0 -1
- package/dist/components/modules/chat/widgets/ChatMessage.js +0 -7
- package/dist/components/modules/chat/widgets/ChatMessage.js.map +0 -1
- package/dist/components/modules/chat/widgets/ChatNotes.d.ts +0 -2
- package/dist/components/modules/chat/widgets/ChatNotes.d.ts.map +0 -1
- package/dist/components/modules/chat/widgets/ChatNotes.js +0 -12
- package/dist/components/modules/chat/widgets/ChatNotes.js.map +0 -1
- package/dist/components/modules/community/CommunityLayout.d.ts +0 -7
- package/dist/components/modules/community/CommunityLayout.d.ts.map +0 -1
- package/dist/components/modules/community/CommunityLayout.js +0 -137
- package/dist/components/modules/community/CommunityLayout.js.map +0 -1
- package/dist/components/modules/community/GroupHeader.d.ts +0 -11
- package/dist/components/modules/community/GroupHeader.d.ts.map +0 -1
- package/dist/components/modules/community/GroupHeader.js +0 -18
- package/dist/components/modules/community/GroupHeader.js.map +0 -1
- package/dist/components/modules/community/GroupMenu.d.ts +0 -10
- package/dist/components/modules/community/GroupMenu.d.ts.map +0 -1
- package/dist/components/modules/community/GroupMenu.js +0 -17
- package/dist/components/modules/community/GroupMenu.js.map +0 -1
- package/dist/components/modules/community/GroupProfileContent.d.ts +0 -7
- package/dist/components/modules/community/GroupProfileContent.d.ts.map +0 -1
- package/dist/components/modules/community/GroupProfileContent.js +0 -127
- package/dist/components/modules/community/GroupProfileContent.js.map +0 -1
- package/dist/components/modules/community/SchoolCard.d.ts +0 -7
- package/dist/components/modules/community/SchoolCard.d.ts.map +0 -1
- package/dist/components/modules/community/SchoolCard.js +0 -8
- package/dist/components/modules/community/SchoolCard.js.map +0 -1
- package/dist/components/modules/community/SurveyCard.d.ts +0 -7
- package/dist/components/modules/community/SurveyCard.d.ts.map +0 -1
- package/dist/components/modules/community/SurveyCard.js +0 -38
- package/dist/components/modules/community/SurveyCard.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupAboutCard.d.ts +0 -6
- package/dist/components/modules/community/widgets/GroupAboutCard.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupAboutCard.js +0 -7
- package/dist/components/modules/community/widgets/GroupAboutCard.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupEventsList.d.ts +0 -8
- package/dist/components/modules/community/widgets/GroupEventsList.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupEventsList.js +0 -33
- package/dist/components/modules/community/widgets/GroupEventsList.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupFeedSection.d.ts +0 -9
- package/dist/components/modules/community/widgets/GroupFeedSection.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupFeedSection.js +0 -8
- package/dist/components/modules/community/widgets/GroupFeedSection.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupHeader.d.ts +0 -11
- package/dist/components/modules/community/widgets/GroupHeader.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupHeader.js +0 -18
- package/dist/components/modules/community/widgets/GroupHeader.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupMenu.d.ts +0 -10
- package/dist/components/modules/community/widgets/GroupMenu.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupMenu.js +0 -17
- package/dist/components/modules/community/widgets/GroupMenu.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupPermissions.d.ts +0 -6
- package/dist/components/modules/community/widgets/GroupPermissions.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupPermissions.js +0 -7
- package/dist/components/modules/community/widgets/GroupPermissions.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupStatsGrid.d.ts +0 -11
- package/dist/components/modules/community/widgets/GroupStatsGrid.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupStatsGrid.js +0 -13
- package/dist/components/modules/community/widgets/GroupStatsGrid.js.map +0 -1
- package/dist/components/modules/community/widgets/GroupTopMembers.d.ts +0 -7
- package/dist/components/modules/community/widgets/GroupTopMembers.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/GroupTopMembers.js +0 -8
- package/dist/components/modules/community/widgets/GroupTopMembers.js.map +0 -1
- package/dist/components/modules/community/widgets/SchoolCard.d.ts +0 -7
- package/dist/components/modules/community/widgets/SchoolCard.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/SchoolCard.js +0 -8
- package/dist/components/modules/community/widgets/SchoolCard.js.map +0 -1
- package/dist/components/modules/community/widgets/SurveyCard.d.ts +0 -8
- package/dist/components/modules/community/widgets/SurveyCard.d.ts.map +0 -1
- package/dist/components/modules/community/widgets/SurveyCard.js +0 -25
- package/dist/components/modules/community/widgets/SurveyCard.js.map +0 -1
- package/dist/components/modules/forum/ForumBoard.d.ts +0 -17
- package/dist/components/modules/forum/ForumBoard.d.ts.map +0 -1
- package/dist/components/modules/forum/ForumBoard.js +0 -7
- package/dist/components/modules/forum/ForumBoard.js.map +0 -1
- package/dist/components/modules/forum/ForumPost.d.ts +0 -14
- package/dist/components/modules/forum/ForumPost.d.ts.map +0 -1
- package/dist/components/modules/forum/ForumPost.js +0 -6
- package/dist/components/modules/forum/ForumPost.js.map +0 -1
- package/dist/components/modules/forum/NewTopicModal.d.ts +0 -8
- package/dist/components/modules/forum/NewTopicModal.d.ts.map +0 -1
- package/dist/components/modules/forum/NewTopicModal.js +0 -27
- package/dist/components/modules/forum/NewTopicModal.js.map +0 -1
- package/dist/components/modules/forum/TopicItem.d.ts +0 -16
- package/dist/components/modules/forum/TopicItem.d.ts.map +0 -1
- package/dist/components/modules/forum/TopicItem.js +0 -7
- package/dist/components/modules/forum/TopicItem.js.map +0 -1
- package/dist/components/modules/forum/widgets/ForumBoard.d.ts +0 -17
- package/dist/components/modules/forum/widgets/ForumBoard.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/ForumBoard.js +0 -7
- package/dist/components/modules/forum/widgets/ForumBoard.js.map +0 -1
- package/dist/components/modules/forum/widgets/ForumCategoryList.d.ts +0 -6
- package/dist/components/modules/forum/widgets/ForumCategoryList.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/ForumCategoryList.js +0 -7
- package/dist/components/modules/forum/widgets/ForumCategoryList.js.map +0 -1
- package/dist/components/modules/forum/widgets/ForumHeaderWidget.d.ts +0 -6
- package/dist/components/modules/forum/widgets/ForumHeaderWidget.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/ForumHeaderWidget.js +0 -6
- package/dist/components/modules/forum/widgets/ForumHeaderWidget.js.map +0 -1
- package/dist/components/modules/forum/widgets/ForumPost.d.ts +0 -14
- package/dist/components/modules/forum/widgets/ForumPost.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/ForumPost.js +0 -6
- package/dist/components/modules/forum/widgets/ForumPost.js.map +0 -1
- package/dist/components/modules/forum/widgets/ForumSidebar.d.ts +0 -2
- package/dist/components/modules/forum/widgets/ForumSidebar.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/ForumSidebar.js +0 -6
- package/dist/components/modules/forum/widgets/ForumSidebar.js.map +0 -1
- package/dist/components/modules/forum/widgets/NewTopicModal.d.ts +0 -8
- package/dist/components/modules/forum/widgets/NewTopicModal.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/NewTopicModal.js +0 -27
- package/dist/components/modules/forum/widgets/NewTopicModal.js.map +0 -1
- package/dist/components/modules/forum/widgets/TopicItem.d.ts +0 -16
- package/dist/components/modules/forum/widgets/TopicItem.d.ts.map +0 -1
- package/dist/components/modules/forum/widgets/TopicItem.js +0 -7
- package/dist/components/modules/forum/widgets/TopicItem.js.map +0 -1
- package/dist/components/modules/galleries/GalleryCard.d.ts +0 -10
- package/dist/components/modules/galleries/GalleryCard.d.ts.map +0 -1
- package/dist/components/modules/galleries/GalleryCard.js +0 -6
- package/dist/components/modules/galleries/GalleryCard.js.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryCard.d.ts +0 -10
- package/dist/components/modules/galleries/widgets/GalleryCard.d.ts.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryCard.js +0 -6
- package/dist/components/modules/galleries/widgets/GalleryCard.js.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryFilterBar.d.ts +0 -8
- package/dist/components/modules/galleries/widgets/GalleryFilterBar.d.ts.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryFilterBar.js +0 -6
- package/dist/components/modules/galleries/widgets/GalleryFilterBar.js.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryHeaderWidget.d.ts +0 -2
- package/dist/components/modules/galleries/widgets/GalleryHeaderWidget.d.ts.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryHeaderWidget.js +0 -6
- package/dist/components/modules/galleries/widgets/GalleryHeaderWidget.js.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryMasonryGrid.d.ts +0 -7
- package/dist/components/modules/galleries/widgets/GalleryMasonryGrid.d.ts.map +0 -1
- package/dist/components/modules/galleries/widgets/GalleryMasonryGrid.js +0 -6
- package/dist/components/modules/galleries/widgets/GalleryMasonryGrid.js.map +0 -1
- package/dist/components/modules/giveaways/GiveawayCard.d.ts +0 -10
- package/dist/components/modules/giveaways/GiveawayCard.d.ts.map +0 -1
- package/dist/components/modules/giveaways/GiveawayCard.js +0 -7
- package/dist/components/modules/giveaways/GiveawayCard.js.map +0 -1
- package/dist/components/modules/giveaways/widgets/GiveawayCard.d.ts +0 -10
- package/dist/components/modules/giveaways/widgets/GiveawayCard.d.ts.map +0 -1
- package/dist/components/modules/giveaways/widgets/GiveawayCard.js +0 -7
- package/dist/components/modules/giveaways/widgets/GiveawayCard.js.map +0 -1
- package/dist/components/modules/groups/ApplicationModal.d.ts +0 -8
- package/dist/components/modules/groups/ApplicationModal.d.ts.map +0 -1
- package/dist/components/modules/groups/ApplicationModal.js +0 -28
- package/dist/components/modules/groups/ApplicationModal.js.map +0 -1
- package/dist/components/modules/groups/GroupCard.d.ts +0 -14
- package/dist/components/modules/groups/GroupCard.d.ts.map +0 -1
- package/dist/components/modules/groups/GroupCard.js +0 -8
- package/dist/components/modules/groups/GroupCard.js.map +0 -1
- package/dist/components/modules/groups/widgets/ApplicationModal.d.ts +0 -8
- package/dist/components/modules/groups/widgets/ApplicationModal.d.ts.map +0 -1
- package/dist/components/modules/groups/widgets/ApplicationModal.js +0 -28
- package/dist/components/modules/groups/widgets/ApplicationModal.js.map +0 -1
- package/dist/components/modules/groups/widgets/GroupCard.d.ts +0 -14
- package/dist/components/modules/groups/widgets/GroupCard.d.ts.map +0 -1
- package/dist/components/modules/groups/widgets/GroupCard.js +0 -8
- package/dist/components/modules/groups/widgets/GroupCard.js.map +0 -1
- package/dist/components/modules/guest/Introduction.d.ts +0 -2
- package/dist/components/modules/guest/Introduction.d.ts.map +0 -1
- package/dist/components/modules/guest/Introduction.js +0 -14
- package/dist/components/modules/guest/Introduction.js.map +0 -1
- package/dist/components/modules/guest/widgets/Introduction.d.ts +0 -2
- package/dist/components/modules/guest/widgets/Introduction.d.ts.map +0 -1
- package/dist/components/modules/guest/widgets/Introduction.js +0 -15
- package/dist/components/modules/guest/widgets/Introduction.js.map +0 -1
- package/dist/components/modules/magaza/BackToStore.d.ts +0 -2
- package/dist/components/modules/magaza/BackToStore.d.ts.map +0 -1
- package/dist/components/modules/magaza/BackToStore.js +0 -11
- package/dist/components/modules/magaza/BackToStore.js.map +0 -1
- package/dist/components/modules/magaza/StoreHeader.d.ts +0 -6
- package/dist/components/modules/magaza/StoreHeader.d.ts.map +0 -1
- package/dist/components/modules/magaza/StoreHeader.js +0 -9
- package/dist/components/modules/magaza/StoreHeader.js.map +0 -1
- package/dist/components/modules/magaza/widgets/StoreProductGrid.d.ts +0 -7
- package/dist/components/modules/magaza/widgets/StoreProductGrid.d.ts.map +0 -1
- package/dist/components/modules/magaza/widgets/StoreProductGrid.js +0 -13
- package/dist/components/modules/magaza/widgets/StoreProductGrid.js.map +0 -1
- package/dist/components/modules/magaza/widgets/StoreSidebar.d.ts +0 -8
- package/dist/components/modules/magaza/widgets/StoreSidebar.d.ts.map +0 -1
- package/dist/components/modules/magaza/widgets/StoreSidebar.js +0 -8
- package/dist/components/modules/magaza/widgets/StoreSidebar.js.map +0 -1
- package/dist/components/modules/magaza/widgets/StoreTrustBadges.d.ts +0 -2
- package/dist/components/modules/magaza/widgets/StoreTrustBadges.d.ts.map +0 -1
- package/dist/components/modules/magaza/widgets/StoreTrustBadges.js +0 -6
- package/dist/components/modules/magaza/widgets/StoreTrustBadges.js.map +0 -1
- package/dist/components/modules/news/NewsCard.d.ts +0 -12
- package/dist/components/modules/news/NewsCard.d.ts.map +0 -1
- package/dist/components/modules/news/NewsCard.js +0 -7
- package/dist/components/modules/news/NewsCard.js.map +0 -1
- package/dist/components/modules/news/NewsComments.d.ts +0 -2
- package/dist/components/modules/news/NewsComments.d.ts.map +0 -1
- package/dist/components/modules/news/NewsComments.js +0 -53
- package/dist/components/modules/news/NewsComments.js.map +0 -1
- package/dist/components/modules/news/widgets/NewsCard.d.ts +0 -12
- package/dist/components/modules/news/widgets/NewsCard.d.ts.map +0 -1
- package/dist/components/modules/news/widgets/NewsCard.js +0 -7
- package/dist/components/modules/news/widgets/NewsCard.js.map +0 -1
- package/dist/components/modules/news/widgets/NewsComments.d.ts +0 -4
- package/dist/components/modules/news/widgets/NewsComments.d.ts.map +0 -1
- package/dist/components/modules/news/widgets/NewsComments.js +0 -6
- package/dist/components/modules/news/widgets/NewsComments.js.map +0 -1
- package/dist/components/modules/posts/MediaLightbox.d.ts +0 -14
- package/dist/components/modules/posts/MediaLightbox.d.ts.map +0 -1
- package/dist/components/modules/posts/MediaLightbox.js +0 -47
- package/dist/components/modules/posts/MediaLightbox.js.map +0 -1
- package/dist/components/modules/posts/PostCard.d.ts +0 -26
- package/dist/components/modules/posts/PostCard.d.ts.map +0 -1
- package/dist/components/modules/posts/PostCard.js +0 -116
- package/dist/components/modules/posts/PostCard.js.map +0 -1
- package/dist/components/modules/posts/PostInteractionsModal.d.ts +0 -12
- package/dist/components/modules/posts/PostInteractionsModal.d.ts.map +0 -1
- package/dist/components/modules/posts/PostInteractionsModal.js +0 -13
- package/dist/components/modules/posts/PostInteractionsModal.js.map +0 -1
- package/dist/components/modules/posts/RepostModal.d.ts +0 -22
- package/dist/components/modules/posts/RepostModal.d.ts.map +0 -1
- package/dist/components/modules/posts/RepostModal.js +0 -76
- package/dist/components/modules/posts/RepostModal.js.map +0 -1
- package/dist/components/modules/posts/Stories.d.ts +0 -2
- package/dist/components/modules/posts/Stories.d.ts.map +0 -1
- package/dist/components/modules/posts/Stories.js +0 -16
- package/dist/components/modules/posts/Stories.js.map +0 -1
- package/dist/components/modules/posts/StoryViewer.d.ts +0 -10
- package/dist/components/modules/posts/StoryViewer.d.ts.map +0 -1
- package/dist/components/modules/posts/StoryViewer.js +0 -48
- package/dist/components/modules/posts/StoryViewer.js.map +0 -1
- package/dist/components/modules/posts/reels/ReelCard.d.ts +0 -16
- package/dist/components/modules/posts/reels/ReelCard.d.ts.map +0 -1
- package/dist/components/modules/posts/reels/ReelCard.js +0 -70
- package/dist/components/modules/posts/reels/ReelCard.js.map +0 -1
- package/dist/components/modules/posts/reels/ReelsContainer.d.ts +0 -8
- package/dist/components/modules/posts/reels/ReelsContainer.d.ts.map +0 -1
- package/dist/components/modules/posts/reels/ReelsContainer.js +0 -37
- package/dist/components/modules/posts/reels/ReelsContainer.js.map +0 -1
- package/dist/components/modules/posts/widgets/MediaLightbox.d.ts +0 -14
- package/dist/components/modules/posts/widgets/MediaLightbox.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/MediaLightbox.js +0 -47
- package/dist/components/modules/posts/widgets/MediaLightbox.js.map +0 -1
- package/dist/components/modules/posts/widgets/PostCard.d.ts +0 -26
- package/dist/components/modules/posts/widgets/PostCard.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/PostCard.js +0 -116
- package/dist/components/modules/posts/widgets/PostCard.js.map +0 -1
- package/dist/components/modules/posts/widgets/PostInteractionsModal.d.ts +0 -12
- package/dist/components/modules/posts/widgets/PostInteractionsModal.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/PostInteractionsModal.js +0 -13
- package/dist/components/modules/posts/widgets/PostInteractionsModal.js.map +0 -1
- package/dist/components/modules/posts/widgets/RepostModal.d.ts +0 -22
- package/dist/components/modules/posts/widgets/RepostModal.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/RepostModal.js +0 -76
- package/dist/components/modules/posts/widgets/RepostModal.js.map +0 -1
- package/dist/components/modules/posts/widgets/Stories.d.ts +0 -2
- package/dist/components/modules/posts/widgets/Stories.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/Stories.js +0 -16
- package/dist/components/modules/posts/widgets/Stories.js.map +0 -1
- package/dist/components/modules/posts/widgets/StoryViewer.d.ts +0 -10
- package/dist/components/modules/posts/widgets/StoryViewer.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/StoryViewer.js +0 -48
- package/dist/components/modules/posts/widgets/StoryViewer.js.map +0 -1
- package/dist/components/modules/posts/widgets/reels/ReelCard.d.ts +0 -16
- package/dist/components/modules/posts/widgets/reels/ReelCard.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/reels/ReelCard.js +0 -55
- package/dist/components/modules/posts/widgets/reels/ReelCard.js.map +0 -1
- package/dist/components/modules/posts/widgets/reels/ReelsContainer.d.ts +0 -8
- package/dist/components/modules/posts/widgets/reels/ReelsContainer.d.ts.map +0 -1
- package/dist/components/modules/posts/widgets/reels/ReelsContainer.js +0 -29
- package/dist/components/modules/posts/widgets/reels/ReelsContainer.js.map +0 -1
- package/dist/components/modules/profile/CloudStorageModal.d.ts +0 -9
- package/dist/components/modules/profile/CloudStorageModal.d.ts.map +0 -1
- package/dist/components/modules/profile/CloudStorageModal.js +0 -32
- package/dist/components/modules/profile/CloudStorageModal.js.map +0 -1
- package/dist/components/modules/profile/EditProfileModal.d.ts +0 -9
- package/dist/components/modules/profile/EditProfileModal.d.ts.map +0 -1
- package/dist/components/modules/profile/EditProfileModal.js +0 -28
- package/dist/components/modules/profile/EditProfileModal.js.map +0 -1
- package/dist/components/modules/profile/ProfileContent.d.ts +0 -5
- package/dist/components/modules/profile/ProfileContent.d.ts.map +0 -1
- package/dist/components/modules/profile/ProfileContent.js +0 -117
- package/dist/components/modules/profile/ProfileContent.js.map +0 -1
- package/dist/components/modules/profile/ProfileHeader.d.ts +0 -8
- package/dist/components/modules/profile/ProfileHeader.d.ts.map +0 -1
- package/dist/components/modules/profile/ProfileHeader.js +0 -20
- package/dist/components/modules/profile/ProfileHeader.js.map +0 -1
- package/dist/components/modules/profile/ProfileLayout.d.ts +0 -5
- package/dist/components/modules/profile/ProfileLayout.d.ts.map +0 -1
- package/dist/components/modules/profile/ProfileLayout.js +0 -71
- package/dist/components/modules/profile/ProfileLayout.js.map +0 -1
- package/dist/components/modules/profile/ProfileSidebar.d.ts +0 -11
- package/dist/components/modules/profile/ProfileSidebar.d.ts.map +0 -1
- package/dist/components/modules/profile/ProfileSidebar.js +0 -9
- package/dist/components/modules/profile/ProfileSidebar.js.map +0 -1
- package/dist/components/modules/profile/ProfileStats.d.ts +0 -7
- package/dist/components/modules/profile/ProfileStats.d.ts.map +0 -1
- package/dist/components/modules/profile/ProfileStats.js +0 -20
- package/dist/components/modules/profile/ProfileStats.js.map +0 -1
- package/dist/components/modules/profile/ProfileTabsArea.d.ts +0 -14
- package/dist/components/modules/profile/ProfileTabsArea.d.ts.map +0 -1
- package/dist/components/modules/profile/ProfileTabsArea.js +0 -59
- package/dist/components/modules/profile/ProfileTabsArea.js.map +0 -1
- package/dist/components/modules/profile/TeamSelectorModal.d.ts +0 -11
- package/dist/components/modules/profile/TeamSelectorModal.d.ts.map +0 -1
- package/dist/components/modules/profile/TeamSelectorModal.js +0 -17
- package/dist/components/modules/profile/TeamSelectorModal.js.map +0 -1
- package/dist/components/modules/profile/tabs/AboutTab.d.ts +0 -10
- package/dist/components/modules/profile/tabs/AboutTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/AboutTab.js +0 -9
- package/dist/components/modules/profile/tabs/AboutTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/CareerTab.d.ts +0 -7
- package/dist/components/modules/profile/tabs/CareerTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/CareerTab.js +0 -46
- package/dist/components/modules/profile/tabs/CareerTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/FriendsTab.d.ts +0 -10
- package/dist/components/modules/profile/tabs/FriendsTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/FriendsTab.js +0 -8
- package/dist/components/modules/profile/tabs/FriendsTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/GamesTab.d.ts +0 -7
- package/dist/components/modules/profile/tabs/GamesTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/GamesTab.js +0 -37
- package/dist/components/modules/profile/tabs/GamesTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/GroupsTab.d.ts +0 -6
- package/dist/components/modules/profile/tabs/GroupsTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/GroupsTab.js +0 -9
- package/dist/components/modules/profile/tabs/GroupsTab.js.map +0 -1
- package/dist/components/modules/profile/tabs/PostsTab.d.ts +0 -7
- package/dist/components/modules/profile/tabs/PostsTab.d.ts.map +0 -1
- package/dist/components/modules/profile/tabs/PostsTab.js +0 -92
- package/dist/components/modules/profile/tabs/PostsTab.js.map +0 -1
- package/dist/components/modules/profile/widgets/CloudStorageModal.d.ts +0 -9
- package/dist/components/modules/profile/widgets/CloudStorageModal.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/CloudStorageModal.js +0 -32
- package/dist/components/modules/profile/widgets/CloudStorageModal.js.map +0 -1
- package/dist/components/modules/profile/widgets/EditProfileModal.d.ts +0 -9
- package/dist/components/modules/profile/widgets/EditProfileModal.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/EditProfileModal.js +0 -28
- package/dist/components/modules/profile/widgets/EditProfileModal.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileBadgesWidget.d.ts +0 -2
- package/dist/components/modules/profile/widgets/ProfileBadgesWidget.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileBadgesWidget.js +0 -6
- package/dist/components/modules/profile/widgets/ProfileBadgesWidget.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileCloudWidget.d.ts +0 -6
- package/dist/components/modules/profile/widgets/ProfileCloudWidget.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileCloudWidget.js +0 -6
- package/dist/components/modules/profile/widgets/ProfileCloudWidget.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileFriendsWidget.d.ts +0 -8
- package/dist/components/modules/profile/widgets/ProfileFriendsWidget.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileFriendsWidget.js +0 -12
- package/dist/components/modules/profile/widgets/ProfileFriendsWidget.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileHeader.d.ts +0 -8
- package/dist/components/modules/profile/widgets/ProfileHeader.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileHeader.js +0 -20
- package/dist/components/modules/profile/widgets/ProfileHeader.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileSidebar.d.ts +0 -11
- package/dist/components/modules/profile/widgets/ProfileSidebar.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileSidebar.js +0 -9
- package/dist/components/modules/profile/widgets/ProfileSidebar.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileStats.d.ts +0 -7
- package/dist/components/modules/profile/widgets/ProfileStats.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileStats.js +0 -21
- package/dist/components/modules/profile/widgets/ProfileStats.js.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileTabsArea.d.ts +0 -14
- package/dist/components/modules/profile/widgets/ProfileTabsArea.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/ProfileTabsArea.js +0 -59
- package/dist/components/modules/profile/widgets/ProfileTabsArea.js.map +0 -1
- package/dist/components/modules/profile/widgets/TeamSelectorModal.d.ts +0 -11
- package/dist/components/modules/profile/widgets/TeamSelectorModal.d.ts.map +0 -1
- package/dist/components/modules/profile/widgets/TeamSelectorModal.js +0 -17
- package/dist/components/modules/profile/widgets/TeamSelectorModal.js.map +0 -1
- package/dist/components/modules/shop/BackToStore.d.ts +0 -2
- package/dist/components/modules/shop/BackToStore.d.ts.map +0 -1
- package/dist/components/modules/shop/BackToStore.js +0 -11
- package/dist/components/modules/shop/BackToStore.js.map +0 -1
- package/dist/components/modules/shop/DetailLayout.d.ts +0 -8
- package/dist/components/modules/shop/DetailLayout.d.ts.map +0 -1
- package/dist/components/modules/shop/DetailLayout.js +0 -22
- package/dist/components/modules/shop/DetailLayout.js.map +0 -1
- package/dist/components/modules/shop/ProductCard.d.ts +0 -8
- package/dist/components/modules/shop/ProductCard.d.ts.map +0 -1
- package/dist/components/modules/shop/ProductCard.js +0 -11
- package/dist/components/modules/shop/ProductCard.js.map +0 -1
- package/dist/components/modules/shop/ProductDetailPage.d.ts +0 -8
- package/dist/components/modules/shop/ProductDetailPage.d.ts.map +0 -1
- package/dist/components/modules/shop/ProductDetailPage.js +0 -22
- package/dist/components/modules/shop/ProductDetailPage.js.map +0 -1
- package/dist/components/modules/shop/StoreHeader.d.ts +0 -6
- package/dist/components/modules/shop/StoreHeader.d.ts.map +0 -1
- package/dist/components/modules/shop/StoreHeader.js +0 -9
- package/dist/components/modules/shop/StoreHeader.js.map +0 -1
- package/dist/components/modules/shop/StoreLayout.d.ts +0 -8
- package/dist/components/modules/shop/StoreLayout.d.ts.map +0 -1
- package/dist/components/modules/shop/StoreLayout.js +0 -6
- package/dist/components/modules/shop/StoreLayout.js.map +0 -1
- package/dist/components/modules/shop/widgets/BackToStore.d.ts +0 -2
- package/dist/components/modules/shop/widgets/BackToStore.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/BackToStore.js +0 -11
- package/dist/components/modules/shop/widgets/BackToStore.js.map +0 -1
- package/dist/components/modules/shop/widgets/CategoryWidget.d.ts +0 -8
- package/dist/components/modules/shop/widgets/CategoryWidget.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/CategoryWidget.js +0 -23
- package/dist/components/modules/shop/widgets/CategoryWidget.js.map +0 -1
- package/dist/components/modules/shop/widgets/ProductCard.d.ts +0 -8
- package/dist/components/modules/shop/widgets/ProductCard.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/ProductCard.js +0 -10
- package/dist/components/modules/shop/widgets/ProductCard.js.map +0 -1
- package/dist/components/modules/shop/widgets/StoreHeader.d.ts +0 -6
- package/dist/components/modules/shop/widgets/StoreHeader.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/StoreHeader.js +0 -9
- package/dist/components/modules/shop/widgets/StoreHeader.js.map +0 -1
- package/dist/components/modules/shop/widgets/StoreProductGrid.d.ts +0 -7
- package/dist/components/modules/shop/widgets/StoreProductGrid.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/StoreProductGrid.js +0 -13
- package/dist/components/modules/shop/widgets/StoreProductGrid.js.map +0 -1
- package/dist/components/modules/shop/widgets/StoreSidebar.d.ts +0 -8
- package/dist/components/modules/shop/widgets/StoreSidebar.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/StoreSidebar.js +0 -8
- package/dist/components/modules/shop/widgets/StoreSidebar.js.map +0 -1
- package/dist/components/modules/shop/widgets/StoreTrustBadges.d.ts +0 -2
- package/dist/components/modules/shop/widgets/StoreTrustBadges.d.ts.map +0 -1
- package/dist/components/modules/shop/widgets/StoreTrustBadges.js +0 -29
- package/dist/components/modules/shop/widgets/StoreTrustBadges.js.map +0 -1
- package/dist/components/modules/social/Dashboard.d.ts +0 -2
- package/dist/components/modules/social/Dashboard.d.ts.map +0 -1
- package/dist/components/modules/social/Dashboard.js +0 -251
- package/dist/components/modules/social/Dashboard.js.map +0 -1
- package/dist/components/modules/social/SidebarLeft.d.ts +0 -2
- package/dist/components/modules/social/SidebarLeft.d.ts.map +0 -1
- package/dist/components/modules/social/SidebarLeft.js +0 -9
- package/dist/components/modules/social/SidebarLeft.js.map +0 -1
- package/dist/components/modules/social/SocialLayout.d.ts +0 -2
- package/dist/components/modules/social/SocialLayout.d.ts.map +0 -1
- package/dist/components/modules/social/SocialLayout.js +0 -249
- package/dist/components/modules/social/SocialLayout.js.map +0 -1
- package/dist/components/modules/social/widgets/EconomyWidget.d.ts +0 -2
- package/dist/components/modules/social/widgets/EconomyWidget.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/EconomyWidget.js +0 -38
- package/dist/components/modules/social/widgets/EconomyWidget.js.map +0 -1
- package/dist/components/modules/social/widgets/LeagueWidget.d.ts +0 -2
- package/dist/components/modules/social/widgets/LeagueWidget.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/LeagueWidget.js +0 -36
- package/dist/components/modules/social/widgets/LeagueWidget.js.map +0 -1
- package/dist/components/modules/social/widgets/MinecraftWidget.d.ts +0 -2
- package/dist/components/modules/social/widgets/MinecraftWidget.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/MinecraftWidget.js +0 -36
- package/dist/components/modules/social/widgets/MinecraftWidget.js.map +0 -1
- package/dist/components/modules/social/widgets/RankingWidget.d.ts +0 -5
- package/dist/components/modules/social/widgets/RankingWidget.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/RankingWidget.js +0 -79
- package/dist/components/modules/social/widgets/RankingWidget.js.map +0 -1
- package/dist/components/modules/social/widgets/SocialSidebar.d.ts +0 -2
- package/dist/components/modules/social/widgets/SocialSidebar.d.ts.map +0 -1
- package/dist/components/modules/social/widgets/SocialSidebar.js +0 -9
- package/dist/components/modules/social/widgets/SocialSidebar.js.map +0 -1
- package/dist/components/modules/stations/StationCard.d.ts +0 -3
- package/dist/components/modules/stations/StationCard.d.ts.map +0 -1
- package/dist/components/modules/stations/StationCard.js +0 -26
- package/dist/components/modules/stations/StationCard.js.map +0 -1
- package/dist/components/modules/stations/StationQRModal.d.ts +0 -10
- package/dist/components/modules/stations/StationQRModal.d.ts.map +0 -1
- package/dist/components/modules/stations/StationQRModal.js +0 -13
- package/dist/components/modules/stations/StationQRModal.js.map +0 -1
- package/dist/components/modules/stations/widgets/StationCard.d.ts +0 -3
- package/dist/components/modules/stations/widgets/StationCard.d.ts.map +0 -1
- package/dist/components/modules/stations/widgets/StationCard.js +0 -26
- package/dist/components/modules/stations/widgets/StationCard.js.map +0 -1
- package/dist/components/modules/stations/widgets/StationQRModal.d.ts +0 -10
- package/dist/components/modules/stations/widgets/StationQRModal.d.ts.map +0 -1
- package/dist/components/modules/stations/widgets/StationQRModal.js +0 -13
- package/dist/components/modules/stations/widgets/StationQRModal.js.map +0 -1
- package/dist/components/shared/DevTools.d.ts +0 -2
- package/dist/components/shared/DevTools.d.ts.map +0 -1
- package/dist/components/shared/DevTools.js +0 -39
- package/dist/components/shared/DevTools.js.map +0 -1
- package/dist/components/shared/FilterTabs.d.ts +0 -16
- package/dist/components/shared/FilterTabs.d.ts.map +0 -1
- package/dist/components/shared/FilterTabs.js +0 -18
- package/dist/components/shared/FilterTabs.js.map +0 -1
- package/dist/components/shared/FloatingChatButton.d.ts +0 -5
- package/dist/components/shared/FloatingChatButton.d.ts.map +0 -1
- package/dist/components/shared/FloatingChatButton.js +0 -21
- package/dist/components/shared/FloatingChatButton.js.map +0 -1
- package/dist/components/shared/Footer.d.ts +0 -2
- package/dist/components/shared/Footer.d.ts.map +0 -1
- package/dist/components/shared/Footer.js +0 -10
- package/dist/components/shared/Footer.js.map +0 -1
- package/dist/components/shared/Header.d.ts +0 -2
- package/dist/components/shared/Header.d.ts.map +0 -1
- package/dist/components/shared/Header.js +0 -109
- package/dist/components/shared/Header.js.map +0 -1
- package/dist/components/shared/ListToolbar.d.ts +0 -32
- package/dist/components/shared/ListToolbar.d.ts.map +0 -1
- package/dist/components/shared/ListToolbar.js +0 -13
- package/dist/components/shared/ListToolbar.js.map +0 -1
- package/dist/components/shared/LoginModal.d.ts +0 -5
- package/dist/components/shared/LoginModal.d.ts.map +0 -1
- package/dist/components/shared/LoginModal.js +0 -66
- package/dist/components/shared/LoginModal.js.map +0 -1
- package/dist/components/shared/MainLayoutWrapper.d.ts +0 -5
- package/dist/components/shared/MainLayoutWrapper.d.ts.map +0 -1
- package/dist/components/shared/MainLayoutWrapper.js +0 -8
- package/dist/components/shared/MainLayoutWrapper.js.map +0 -1
- package/dist/components/shared/NotFound.d.ts +0 -21
- package/dist/components/shared/NotFound.d.ts.map +0 -1
- package/dist/components/shared/NotFound.js +0 -7
- package/dist/components/shared/NotFound.js.map +0 -1
- package/dist/components/shared/PageWidth.d.ts +0 -6
- package/dist/components/shared/PageWidth.d.ts.map +0 -1
- package/dist/components/shared/PageWidth.js +0 -14
- package/dist/components/shared/PageWidth.js.map +0 -1
- package/dist/components/shared/SearchBar.d.ts +0 -14
- package/dist/components/shared/SearchBar.d.ts.map +0 -1
- package/dist/components/shared/SearchBar.js +0 -21
- package/dist/components/shared/SearchBar.js.map +0 -1
- package/dist/components/showcase/CommunityTab.d.ts +0 -2
- package/dist/components/showcase/CommunityTab.d.ts.map +0 -1
- package/dist/components/showcase/CommunityTab.js +0 -6
- package/dist/components/showcase/CommunityTab.js.map +0 -1
- package/dist/components/showcase/CorporateTab.d.ts +0 -2
- package/dist/components/showcase/CorporateTab.d.ts.map +0 -1
- package/dist/components/showcase/CorporateTab.js +0 -6
- package/dist/components/showcase/CorporateTab.js.map +0 -1
- package/dist/components/showcase/EventsTab.d.ts +0 -2
- package/dist/components/showcase/EventsTab.d.ts.map +0 -1
- package/dist/components/showcase/EventsTab.js +0 -80
- package/dist/components/showcase/EventsTab.js.map +0 -1
- package/dist/components/showcase/GeneralTab.d.ts +0 -2
- package/dist/components/showcase/GeneralTab.d.ts.map +0 -1
- package/dist/components/showcase/GeneralTab.js +0 -6
- package/dist/components/showcase/GeneralTab.js.map +0 -1
- package/dist/components/showcase/GroupTab.d.ts +0 -2
- package/dist/components/showcase/GroupTab.d.ts.map +0 -1
- package/dist/components/showcase/GroupTab.js +0 -74
- package/dist/components/showcase/GroupTab.js.map +0 -1
- package/dist/components/showcase/MessagesTab.d.ts +0 -2
- package/dist/components/showcase/MessagesTab.d.ts.map +0 -1
- package/dist/components/showcase/MessagesTab.js +0 -20
- package/dist/components/showcase/MessagesTab.js.map +0 -1
- package/dist/components/showcase/ProfileTab.d.ts +0 -2
- package/dist/components/showcase/ProfileTab.d.ts.map +0 -1
- package/dist/components/showcase/ProfileTab.js +0 -52
- package/dist/components/showcase/ProfileTab.js.map +0 -1
- package/dist/components/showcase/ReelsTab.d.ts +0 -2
- package/dist/components/showcase/ReelsTab.d.ts.map +0 -1
- package/dist/components/showcase/ReelsTab.js +0 -34
- package/dist/components/showcase/ReelsTab.js.map +0 -1
- package/dist/components/showcase/ShopTab.d.ts +0 -2
- package/dist/components/showcase/ShopTab.d.ts.map +0 -1
- package/dist/components/showcase/ShopTab.js +0 -32
- package/dist/components/showcase/ShopTab.js.map +0 -1
- package/dist/components/showcase/ShowcaseNavigation.d.ts +0 -2
- package/dist/components/showcase/ShowcaseNavigation.d.ts.map +0 -1
- package/dist/components/showcase/ShowcaseNavigation.js +0 -29
- package/dist/components/showcase/ShowcaseNavigation.js.map +0 -1
- package/dist/components/showcase/SocialTab.d.ts +0 -2
- package/dist/components/showcase/SocialTab.d.ts.map +0 -1
- package/dist/components/showcase/SocialTab.js +0 -109
- package/dist/components/showcase/SocialTab.js.map +0 -1
- package/dist/context/ArmoyuContext.d.ts +0 -42
- package/dist/context/ArmoyuContext.d.ts.map +0 -1
- package/dist/context/ArmoyuContext.js +0 -76
- package/dist/context/ArmoyuContext.js.map +0 -1
- package/dist/context/AuthContext.d.ts +0 -19
- package/dist/context/AuthContext.d.ts.map +0 -1
- package/dist/context/AuthContext.js +0 -116
- package/dist/context/AuthContext.js.map +0 -1
- package/dist/context/CartContext.d.ts +0 -17
- package/dist/context/CartContext.d.ts.map +0 -1
- package/dist/context/CartContext.js +0 -64
- package/dist/context/CartContext.js.map +0 -1
- package/dist/context/ChatContext.d.ts +0 -22
- package/dist/context/ChatContext.d.ts.map +0 -1
- package/dist/context/ChatContext.js +0 -98
- package/dist/context/ChatContext.js.map +0 -1
- package/dist/context/LayoutContext.d.ts +0 -11
- package/dist/context/LayoutContext.d.ts.map +0 -1
- package/dist/context/LayoutContext.js +0 -17
- package/dist/context/LayoutContext.js.map +0 -1
- package/dist/context/SocketContext.d.ts +0 -13
- package/dist/context/SocketContext.d.ts.map +0 -1
- package/dist/context/SocketContext.js +0 -32
- package/dist/context/SocketContext.js.map +0 -1
- package/dist/context/ThemeContext.d.ts +0 -11
- package/dist/context/ThemeContext.d.ts.map +0 -1
- package/dist/context/ThemeContext.js +0 -40
- package/dist/context/ThemeContext.js.map +0 -1
- package/dist/index.d.ts +0 -98
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -110
- package/dist/index.js.map +0 -1
- package/dist/lib/ArmoyuUI.d.ts +0 -18
- package/dist/lib/ArmoyuUI.d.ts.map +0 -1
- package/dist/lib/ArmoyuUI.js +0 -25
- package/dist/lib/ArmoyuUI.js.map +0 -1
- package/dist/lib/constants/config.d.ts +0 -9
- package/dist/lib/constants/config.d.ts.map +0 -1
- package/dist/lib/constants/config.js +0 -15
- package/dist/lib/constants/config.js.map +0 -1
- package/dist/lib/constants/educationData.d.ts +0 -8
- package/dist/lib/constants/educationData.d.ts.map +0 -1
- package/dist/lib/constants/educationData.js +0 -118
- package/dist/lib/constants/educationData.js.map +0 -1
- package/dist/lib/constants/punishmentData.d.ts +0 -30
- package/dist/lib/constants/punishmentData.d.ts.map +0 -1
- package/dist/lib/constants/punishmentData.js +0 -184
- package/dist/lib/constants/punishmentData.js.map +0 -1
- package/dist/lib/constants/seedData.d.ts +0 -165
- package/dist/lib/constants/seedData.d.ts.map +0 -1
- package/dist/lib/constants/seedData.js +0 -709
- package/dist/lib/constants/seedData.js.map +0 -1
- package/dist/lib/constants/stationData.d.ts +0 -14
- package/dist/lib/constants/stationData.d.ts.map +0 -1
- package/dist/lib/constants/stationData.js +0 -167
- package/dist/lib/constants/stationData.js.map +0 -1
- package/dist/lib/constants/surveyData.d.ts +0 -3
- package/dist/lib/constants/surveyData.d.ts.map +0 -1
- package/dist/lib/constants/surveyData.js +0 -50
- package/dist/lib/constants/surveyData.js.map +0 -1
- package/dist/lib/constants/teamData.d.ts +0 -13
- package/dist/lib/constants/teamData.d.ts.map +0 -1
- package/dist/lib/constants/teamData.js +0 -66
- package/dist/lib/constants/teamData.js.map +0 -1
- package/dist/lib/utils/numberFormat.d.ts +0 -10
- package/dist/lib/utils/numberFormat.d.ts.map +0 -1
- package/dist/lib/utils/numberFormat.js +0 -17
- package/dist/lib/utils/numberFormat.js.map +0 -1
- package/dist/lib/utils/odpUtils.d.ts +0 -16
- package/dist/lib/utils/odpUtils.d.ts.map +0 -1
- package/dist/lib/utils/odpUtils.js +0 -44
- package/dist/lib/utils/odpUtils.js.map +0 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +0 -1
- package/dist/types/stats.d.ts +0 -18
- package/dist/types/stats.d.ts.map +0 -1
- package/dist/types/stats.js +0 -2
- package/dist/types/stats.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LeagueWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/modules/auth/widgets/LeagueWidget.tsx"],"names":[],"mappings":"AAKA,wBAAgB,YAAY,4CAqE3B"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useState, useEffect } from 'react';
|
|
4
|
-
import { useArmoyu } from '../../../../context/ArmoyuContext';
|
|
5
|
-
export function LeagueWidget() {
|
|
6
|
-
const { api } = useArmoyu();
|
|
7
|
-
const [data, setData] = useState([]);
|
|
8
|
-
const [loading, setLoading] = useState(true);
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
async function fetchLeague() {
|
|
11
|
-
setLoading(true);
|
|
12
|
-
try {
|
|
13
|
-
const stats = await api.siteInfo.getStatistics('lig');
|
|
14
|
-
if (Array.isArray(stats)) {
|
|
15
|
-
setData(stats);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
catch (error) {
|
|
19
|
-
console.error('Failed to fetch league stats:', error);
|
|
20
|
-
}
|
|
21
|
-
finally {
|
|
22
|
-
setLoading(false);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
fetchLeague();
|
|
26
|
-
}, [api]);
|
|
27
|
-
const standings = data.length > 0 ? data : [
|
|
28
|
-
{ team: 'Galatasaray', p: '84', color: 'bg-red-600' },
|
|
29
|
-
{ team: 'Fenerbahçe', p: '82', color: 'bg-yellow-500' },
|
|
30
|
-
{ team: 'Beşiktaş', p: '65', color: 'bg-black dark:bg-white' },
|
|
31
|
-
{ team: 'Trabzonspor', p: '60', color: 'bg-blue-600' },
|
|
32
|
-
{ team: 'Başakşehir', p: '55', color: 'bg-orange-600' },
|
|
33
|
-
];
|
|
34
|
-
return (_jsxs("div", { className: "glass-panel p-5 rounded-3xl border border-armoyu-card-border bg-armoyu-card-bg", children: [_jsxs("div", { className: "flex items-center gap-2 mb-4", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", className: "text-blue-500", children: [_jsx("path", { d: "M12 2L2 7l10 5 10-5-10-5z" }), _jsx("path", { d: "M2 17l10 5 10-5" }), _jsx("path", { d: "M2 12l10 5 10-5" })] }), _jsx("h3", { className: "font-extrabold text-armoyu-text text-base", children: "S\u00FCper Lig" })] }), _jsx("div", { className: "space-y-3", children: loading ? (_jsx("div", { className: "space-y-3", children: [...Array(5)].map((_, i) => (_jsxs("div", { className: "flex items-center justify-between p-2 animate-pulse", children: [_jsxs("div", { className: "flex items-center gap-2.5", children: [_jsx("div", { className: "w-1.5 h-1.5 rounded-full bg-gray-400" }), _jsx("div", { className: "w-20 h-4 bg-black/5 dark:bg-white/10 rounded" })] }), _jsx("div", { className: "w-6 h-4 bg-black/5 dark:bg-white/10 rounded" })] }, i))) })) : (standings.map((item, idx) => (_jsxs("div", { className: "flex items-center justify-between p-2 rounded-xl hover:bg-black/5 transition-colors group", children: [_jsxs("div", { className: "flex items-center gap-2.5", children: [_jsx("span", { className: "text-[10px] font-black text-armoyu-text-muted w-3", children: idx + 1 }), _jsx("div", { className: `w-1.5 h-1.5 rounded-full ${item.color || 'bg-blue-500'}` }), _jsx("span", { className: "text-xs font-bold text-armoyu-text group-hover:text-blue-500 transition-colors", children: item.team })] }), _jsx("span", { className: "text-xs font-black text-armoyu-text", children: item.p })] }, idx)))) }), _jsx("button", { className: "w-full pt-3 text-[10px] font-bold text-blue-500 hover:underline border-t border-armoyu-card-border mt-3", children: "T\u00FCm Puan Durumu" })] }));
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=LeagueWidget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LeagueWidget.js","sourceRoot":"","sources":["../../../../../src/components/modules/auth/widgets/LeagueWidget.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE9D,MAAM,UAAU,YAAY;IAC1B,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,EAAE,CAAC;IAC5B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAQ,EAAE,CAAC,CAAC;IAC5C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7C,SAAS,CAAC,GAAG,EAAE;QACb,KAAK,UAAU,WAAW;YACxB,UAAU,CAAC,IAAI,CAAC,CAAC;YACjB,IAAI,CAAC;gBACH,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;gBACtD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;oBACzB,OAAO,CAAC,KAAK,CAAC,CAAC;gBACjB,CAAC;YACH,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,KAAK,CAAC,CAAC;YACxD,CAAC;oBAAS,CAAC;gBACT,UAAU,CAAC,KAAK,CAAC,CAAC;YACpB,CAAC;QACH,CAAC;QACD,WAAW,EAAE,CAAC;IAChB,CAAC,EAAE,CAA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qDAAqD,aAC1E,eAAK,SAAS,EAAC,2BAA2B,aACxC,cAAK,SAAS,EAAC,sCAAsC,GAAG,EACxD,cAAK,SAAS,EAAC,8CAA8C,GAAG,IAC5D,EACN,cAAK,SAAS,EAAC,6CAA6C,GAAG,KALvD,CAAC,CAML,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,CACF,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,CAC3B,eAAe,SAAS,EAAC,2FAA2F,aAClH,eAAK,SAAS,EAAC,2BAA2B,aACvC,eAAM,SAAS,EAAC,mDAAmD,YAAE,GAAG,GAAG,CAAC,GAAQ,EACpF,cAAK,SAAS,EAAE,4BAA4B,IAAI,CAAC,KAAK,IAAI,aAAa,EAAE,GAAI,EAC7E,eAAM,SAAS,EAAC,gFAAgF,YAAE,IAAI,CAAC,IAAI,GAAQ,IAChH,EACN,eAAM,SAAS,EAAC,qCAAqC,YAAE,IAAI,CAAC,CAAC,GAAQ,KAN7D,GAAG,CAOP,CACP,CAAC,CACH,GACG,EAEN,iBAAQ,SAAS,EAAC,yGAAyG,qCAElH,IACL,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MinecraftWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/modules/auth/widgets/MinecraftWidget.tsx"],"names":[],"mappings":"AAKA,wBAAgB,eAAe,4CAmF9B"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useState, useEffect } from 'react';
|
|
4
|
-
import { useArmoyu } from '../../../../context/ArmoyuContext';
|
|
5
|
-
export function MinecraftWidget() {
|
|
6
|
-
const { api } = useArmoyu();
|
|
7
|
-
const [stats, setStats] = useState(null);
|
|
8
|
-
const [loading, setLoading] = useState(true);
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
async function fetchStats() {
|
|
11
|
-
setLoading(true);
|
|
12
|
-
try {
|
|
13
|
-
const data = await api.siteInfo.getStatistics('minecraft');
|
|
14
|
-
if (data) {
|
|
15
|
-
setStats(data);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
catch (error) {
|
|
19
|
-
console.error('Failed to fetch Minecraft stats:', error);
|
|
20
|
-
}
|
|
21
|
-
finally {
|
|
22
|
-
setLoading(false);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
fetchStats();
|
|
26
|
-
}, [api]);
|
|
27
|
-
const ip = stats?.ip || 'mc.armoyu.com';
|
|
28
|
-
const onlineCount = stats?.activePlayers || 0;
|
|
29
|
-
const maxPlayers = stats?.maxPlayers || 500;
|
|
30
|
-
const recentPlayers = stats?.recentPlayers || [];
|
|
31
|
-
return (_jsxs("div", { className: "glass-panel p-5 rounded-3xl border border-armoyu-card-border bg-armoyu-card-bg overflow-hidden relative group", children: [_jsx("div", { className: "absolute -right-4 -top-4 w-24 h-24 bg-emerald-500/10 blur-2xl rounded-full group-hover:bg-emerald-500/20 transition-colors" }), _jsxs("div", { className: "flex items-center gap-2 mb-4 relative z-10", children: [_jsx("div", { className: `w-2 h-2 rounded-full ${loading ? 'bg-gray-400' : 'bg-emerald-500 animate-pulse'}` }), _jsx("h3", { className: "font-extrabold text-armoyu-text text-base", children: "Minecraft Sunucu" })] }), _jsxs("div", { className: "space-y-4 relative z-10", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex flex-col", children: [_jsx("span", { className: "text-[10px] font-black uppercase tracking-widest text-armoyu-text-muted opacity-60", children: "Sunucu Adresi" }), _jsx("span", { className: "text-sm font-bold text-armoyu-text group-hover:text-blue-500 transition-colors", children: ip })] }), _jsx("button", { title: "IP Kopyala", className: "p-2 rounded-lg bg-black/5 dark:bg-white/5 border border-black/5 dark:border-white/5 hover:bg-black/10 transition-colors", onClick: () => {
|
|
32
|
-
navigator.clipboard.writeText(ip);
|
|
33
|
-
alert('IP Kopyalandı!');
|
|
34
|
-
}, children: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: [_jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }), _jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })] }) })] }), _jsxs("div", { className: "flex items-center justify-between p-3 rounded-2xl bg-emerald-500/5 border border-emerald-500/10", children: [_jsxs("div", { className: "flex flex-col", children: [_jsx("span", { className: "text-[10px] font-black text-emerald-600 dark:text-emerald-400", children: "Aktif Oyuncu" }), _jsxs("span", { className: "text-lg font-black text-emerald-600 dark:text-emerald-400", children: [loading ? '--' : onlineCount, " / ", loading ? '--' : maxPlayers] })] }), _jsxs("div", { className: "flex -space-x-2", children: [recentPlayers.length > 0 ? (recentPlayers.slice(0, 3).map((player, i) => (_jsx("img", { src: player.avatar || `https://api.dicebear.com/7.x/avataaars/svg?seed=${player.username}`, className: "w-7 h-7 rounded-full border-2 border-white dark:border-[#0a0a0e] bg-white/10 shadow-sm object-cover", alt: "Player" }, i)))) : ([1, 2, 3].map(i => (_jsx("div", { className: "w-7 h-7 rounded-full border-2 border-white dark:border-[#0a0a0e] bg-black/5 dark:bg-white/5" }, i)))), !loading && onlineCount > 3 && (_jsxs("div", { className: "w-7 h-7 rounded-full border-2 border-white dark:border-[#0a0a0e] bg-emerald-500 flex items-center justify-center text-[8px] font-black text-white", children: ["+", onlineCount - 3] }))] })] }), _jsx("button", { className: "w-full py-3 bg-gradient-to-r from-emerald-600 to-emerald-500 hover:from-emerald-500 hover:to-emerald-400 text-white text-xs font-black uppercase tracking-widest rounded-xl shadow-lg shadow-emerald-500/20 transition-all active:scale-[0.98]", children: loading ? 'Yükleniyor...' : 'Sunucuya Giriş Yap' })] })] }));
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=MinecraftWidget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MinecraftWidget.js","sourceRoot":"","sources":["../../../../../src/components/modules/auth/widgets/MinecraftWidget.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE9D,MAAM,UAAU,eAAe;IAC7B,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,EAAE,CAAC;IAC5B,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAM,IAAI,CAAC,CAAC;IAC9C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7C,SAAS,CAAC,GAAG,EAAE;QACb,KAAK,UAAU,UAAU;YACvB,UAAU,CAAC,IAAI,CAAC,CAAC;YACjB,IAAI,CAAC;gBACH,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;gBAC3D,IAAI,IAAI,EAAE,CAAC;oBACT,QAAQ,CAAC,IAAI,CAAC,CAAC;gBACjB,CAAC;YACH,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CAAC,kCAAkC,EAAE,KAAK,CAAC,CAAC;YAC3D,CAAC;oBAAS,CAAC;gBACT,UAAU,CAAC,KAAK,CAAC,CAAC;YACpB,CAAC;QACH,CAAC;QACD,UAAU,EAAE,CAAC;IACf,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEV,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,IAAI,eAAe,CAAC;IACxC,MAAM,WAAW,GAAG,KAAK,EAAE,aAAa,IAAI,CAAC,CAAC;IAC9C,MAAM,UAAU,GAAG,KAAK,EAAE,UAAU,IAAI,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AAE,kBAAkB,2CAkJlE"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useState, useEffect } from 'react';
|
|
4
|
-
import { useRouter } from 'next/navigation';
|
|
5
|
-
import { useAuth } from '../../../../context/AuthContext';
|
|
6
|
-
import { useArmoyu } from '../../../../context/ArmoyuContext';
|
|
7
|
-
export function RankingWidget({ profilePrefix }) {
|
|
8
|
-
const [rankingType, setRankingType] = useState('level');
|
|
9
|
-
const [rankings, setRankings] = useState([]);
|
|
10
|
-
const [loading, setLoading] = useState(true);
|
|
11
|
-
const [visibleCount, setVisibleCount] = useState(5);
|
|
12
|
-
const router = useRouter();
|
|
13
|
-
const { user: currentUser } = useAuth();
|
|
14
|
-
const { api, navigation } = useArmoyu();
|
|
15
|
-
const finalProfilePrefix = profilePrefix || navigation.profilePrefix;
|
|
16
|
-
useEffect(() => {
|
|
17
|
-
async function fetchRankings() {
|
|
18
|
-
setLoading(true);
|
|
19
|
-
try {
|
|
20
|
-
let data;
|
|
21
|
-
if (rankingType === 'level') {
|
|
22
|
-
data = await api.users.getXpRankings(1);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
data = await api.users.getPopRankings(1);
|
|
26
|
-
}
|
|
27
|
-
if (Array.isArray(data)) {
|
|
28
|
-
console.log(`[RankingWidget] ${rankingType} ham verisi:`, data[0]); // İlk öğeyi incele
|
|
29
|
-
const mappedData = data.map((item) => ({
|
|
30
|
-
username: item.username || item.oyuncunick || 'unknown',
|
|
31
|
-
displayName: item.displayName || item.oyuncuadsoyad || item.oyuncunick || 'Bilinmeyen',
|
|
32
|
-
avatar: item.avatar || item.oyuncuavatar || 'https://api.dicebear.com/7.x/avataaars/svg?seed=rank',
|
|
33
|
-
level: item.level || item.oyuncuseviye || 0,
|
|
34
|
-
popScore: item.popScore || item.oyuncupuan || item.puan || item.toplampuan || 0
|
|
35
|
-
}));
|
|
36
|
-
setRankings(mappedData);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
setRankings([]);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
catch (error) {
|
|
43
|
-
console.error('Failed to fetch rankings:', error);
|
|
44
|
-
setRankings([]);
|
|
45
|
-
}
|
|
46
|
-
finally {
|
|
47
|
-
setLoading(false);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
fetchRankings();
|
|
51
|
-
}, [rankingType, api]);
|
|
52
|
-
const MOCK_RANKINGS = rankingType === 'level' ? [
|
|
53
|
-
{ username: 'berkay', displayName: 'Berkay Altın', avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=Berkay', level: 99, popScore: 5000 },
|
|
54
|
-
{ username: 'atilla', displayName: 'Atilla Güneş', avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=Atilla', level: 85, popScore: 4200 },
|
|
55
|
-
{ username: 'mert', displayName: 'Mert Yılmaz', avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=Mert', level: 72, popScore: 3800 },
|
|
56
|
-
{ username: 'selin', displayName: 'Selin Yıldız', avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=Selin', level: 68, popScore: 3100 },
|
|
57
|
-
{ username: 'can', displayName: 'Can Demir', avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=Can', level: 64, popScore: 2900 }
|
|
58
|
-
] : [
|
|
59
|
-
{ username: 'selin', displayName: 'Selin Yıldız', avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=Selin', level: 68, popScore: 8900 },
|
|
60
|
-
{ username: 'berkay', displayName: 'Berkay Altın', avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=Berkay', level: 99, popScore: 7500 },
|
|
61
|
-
{ username: 'mert', displayName: 'Mert Yılmaz', avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=Mert', level: 72, popScore: 6200 },
|
|
62
|
-
{ username: 'atilla', displayName: 'Atilla Güneş', avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=Atilla', level: 85, popScore: 5100 },
|
|
63
|
-
{ username: 'deniz', displayName: 'Deniz Ak', avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=Deniz', level: 45, popScore: 4800 }
|
|
64
|
-
];
|
|
65
|
-
const displayRankings = (rankings.length > 0 ? rankings : MOCK_RANKINGS).slice(0, visibleCount);
|
|
66
|
-
const goToProfile = (user) => {
|
|
67
|
-
router.push(`${finalProfilePrefix}/${user.username}`);
|
|
68
|
-
};
|
|
69
|
-
return (_jsxs("div", { className: "glass-panel p-5 rounded-3xl border border-armoyu-card-border bg-armoyu-card-bg flex flex-col gap-4", children: [_jsx("div", { className: "flex items-center justify-center mb-2", children: _jsxs("div", { className: "flex bg-black/5 dark:bg-white/5 p-1 rounded-xl border border-black/5 dark:border-white/5 relative h-9 w-[140px]", children: [_jsx("div", { className: `absolute inset-y-1 transition-all duration-300 ease-out bg-white dark:bg-blue-600 rounded-lg shadow-sm ${rankingType === 'level' ? 'left-1 w-[64px]' : 'left-[73px] w-[62px]'}` }), _jsx("button", { onClick: () => { setRankingType('level'); setVisibleCount(5); }, className: `flex-1 text-[10px] font-black uppercase tracking-wider rounded-lg transition-all relative z-10 ${rankingType === 'level' ? 'text-blue-600 dark:text-white' : 'text-armoyu-text-muted hover:text-armoyu-text'}`, children: "Seviye" }), _jsx("button", { onClick: () => { setRankingType('popularity'); setVisibleCount(5); }, className: `flex-1 text-[10px] font-black uppercase tracking-wider rounded-lg transition-all relative z-10 ${rankingType === 'popularity' ? 'text-blue-600 dark:text-white' : 'text-armoyu-text-muted hover:text-armoyu-text'}`, children: "Pop\u00FCler" })] }) }), _jsx("div", { className: "space-y-3 min-h-[200px]", children: loading ? (_jsx("div", { className: "flex flex-col gap-3", children: [...Array(5)].map((_, i) => (_jsxs("div", { className: "flex items-center justify-between p-1.5 animate-pulse", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx("div", { className: "w-9 h-9 bg-black/5 dark:bg-white/5 rounded-full" }), _jsx("div", { className: "w-20 h-4 bg-black/5 dark:bg-white/5 rounded-md" })] }), _jsx("div", { className: "w-8 h-6 bg-black/5 dark:bg-white/5 rounded-md" })] }, i))) })) : (displayRankings.map((user, idx) => {
|
|
70
|
-
const isMe = currentUser?.username === user.username;
|
|
71
|
-
return (_jsxs("div", { onClick: () => goToProfile(user), className: `flex items-center justify-between group cursor-pointer p-1.5 rounded-xl transition-all ${isMe
|
|
72
|
-
? 'bg-blue-600/10 border border-blue-500/30'
|
|
73
|
-
: 'hover:bg-black/5 dark:hover:bg-white/5'}`, children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsxs("div", { className: "relative", children: [_jsx("img", { src: user.avatar, alt: user.displayName, className: "w-9 h-9 rounded-full border border-black/10 dark:border-white/10 group-hover:border-blue-500 transition-colors" }), _jsx("div", { className: `absolute -top-1 -left-1 w-4 h-4 rounded-full flex items-center justify-center text-[8px] font-black text-white shadow-sm transition-transform group-hover:scale-110 ${idx === 0 ? 'bg-yellow-500' :
|
|
74
|
-
idx === 1 ? 'bg-gray-400' :
|
|
75
|
-
idx === 2 ? 'bg-orange-600' :
|
|
76
|
-
'bg-armoyu-card-border text-armoyu-text-muted dark:bg-white/10 dark:text-white/60'}`, children: idx + 1 })] }), _jsx("span", { className: "text-sm font-bold text-armoyu-text-muted group-hover:text-armoyu-text transition-colors truncate max-w-[100px]", children: user.displayName })] }), _jsx("span", { className: "text-[10px] font-black text-blue-500 bg-blue-500/10 px-2 py-1 rounded-md", children: rankingType === 'level' ? user.level : user.popScore })] }, idx));
|
|
77
|
-
})) }), visibleCount < (rankings.length || MOCK_RANKINGS.length) && !loading && (_jsxs("button", { onClick: () => setVisibleCount(prev => prev + 10), className: "w-full pt-2 text-[11px] font-bold text-armoyu-text-muted hover:text-blue-500 transition-colors border-t border-armoyu-card-border mt-1", children: ["S\u0131ralamadan ", Math.min(10, Math.max(rankings.length, MOCK_RANKINGS.length) - visibleCount), " Ki\u015Fi Daha G\u00F6r"] }))] }));
|
|
78
|
-
}
|
|
79
|
-
//# sourceMappingURL=RankingWidget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RankingWidget.js","sourceRoot":"","sources":["../../../../../src/components/modules/auth/widgets/RankingWidget.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAM9D,MAAM,UAAU,aAAa,CAAC,EAAE,aAAa,EAAsB;IACjE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAyB,OAAO,CAAC,CAAC;IAChF,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAQ,EAAE,CAAC,CAAC;IACpD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7C,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACpD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,OAAO,EAAE,CAAC;IACxC,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,SAAS,EAAE,CAAC;IAExC,MAAM,kBAAkB,GAAG,aAAa,IAAI,UAAU,CAAC,aAAa,CAAC;IAErE,SAAS,CAAC,GAAG,EAAE;QACb,KAAK,UAAU,aAAa;YAC1B,UAAU,CAAC,IAAI,CAAC,CAAC;YACjB,IAAI,CAAC;gBACH,IAAI,IAAI,CAAC;gBACT,IAAI,WAAW,KAAK,OAAO,EAAE,CAAC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AAC,CAAC;wDACzB,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;4DAC3B,kFACJ,EAAE,YACD,GAAG,GAAG,CAAC,GACJ,IACF,EACN,eAAM,SAAS,EAAC,gHAAgH,YAAE,IAAI,CAAC,WAAW,GAAQ,IACtJ,EACN,eAAM,SAAS,EAAC,0EAA0E,YAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAQ,KApBnJ,GAAG,CAqBJ,CACP,CAAC;gBACJ,CAAC,CAAC,CACH,GACG,EAEL,YAAY,GAAG,CAAC,QAAQ,CAAC,MAAM,IAAI,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CACvE,kBACE,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,EACjD,SAAS,EAAC,wIAAwI,kCAErI,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,gCAClF,CACV,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/modules/chat/ChatContainer.tsx"],"names":[],"mappings":"AAgBA,wBAAgB,aAAa,4CAiT5B"}
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import React, { useState, useEffect } from 'react';
|
|
4
|
-
import { useAuth } from '../../../context/AuthContext';
|
|
5
|
-
import { ChatList } from './ChatList';
|
|
6
|
-
import { Chat, User, ChatMessage as ChatMessageModel } from '@armoyu/core';
|
|
7
|
-
import { ChatMessage } from './ChatMessage';
|
|
8
|
-
import { ChatInput } from './ChatInput';
|
|
9
|
-
import { useChat } from '../../../context/ChatContext';
|
|
10
|
-
import { useSocket } from '../../../context/SocketContext';
|
|
11
|
-
// Mock Data
|
|
12
|
-
import { userList } from '../../../lib/constants/seedData';
|
|
13
|
-
export function ChatContainer() {
|
|
14
|
-
const { user, session, updateSession } = useAuth();
|
|
15
|
-
const { closeChat, isLiveMode, chatList, activeMessages, fetchMessages, sendMessage: sendApiMessage, isLoading } = useChat();
|
|
16
|
-
const { emit, on, isConnected } = useSocket();
|
|
17
|
-
// Eğer null ise liste görünümü açık, ID var ise mesajlaşma açık.
|
|
18
|
-
const [activeContactId, setActiveContactId] = useState(null);
|
|
19
|
-
// Local state for Mock mode (Fallback)
|
|
20
|
-
const [localMessages, setLocalMessages] = useState([]);
|
|
21
|
-
const [localContacts, setLocalContacts] = useState([]);
|
|
22
|
-
const [isTyping, setIsTyping] = useState(false);
|
|
23
|
-
const messagesEndRef = React.useRef(null);
|
|
24
|
-
const scrollToBottom = () => {
|
|
25
|
-
messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' });
|
|
26
|
-
};
|
|
27
|
-
// Scroll to bottom when messages or typing status changes
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
scrollToBottom();
|
|
30
|
-
}, [localMessages, activeMessages, isTyping]);
|
|
31
|
-
// Sync with session's chatList for MOCK mode
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
if (!isLiveMode && session?.chatList) {
|
|
34
|
-
setLocalContacts(session.chatList);
|
|
35
|
-
}
|
|
36
|
-
}, [session?.chatList, isLiveMode]);
|
|
37
|
-
// Handle Contact Selection in LIVE mode
|
|
38
|
-
useEffect(() => {
|
|
39
|
-
if (isLiveMode && activeContactId) {
|
|
40
|
-
// API expects numeric ID usually, but our models use string.
|
|
41
|
-
// Try to convert if it's a numeric string.
|
|
42
|
-
const idNum = parseInt(activeContactId);
|
|
43
|
-
if (!isNaN(idNum)) {
|
|
44
|
-
fetchMessages(idNum);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}, [activeContactId, isLiveMode, fetchMessages]);
|
|
48
|
-
useEffect(() => {
|
|
49
|
-
const offMsg = on('message', (incomingMsg) => {
|
|
50
|
-
console.log('[ChatContainer] Incoming socket message:', incomingMsg);
|
|
51
|
-
const msgModel = new ChatMessageModel({
|
|
52
|
-
id: incomingMsg.id,
|
|
53
|
-
sender: incomingMsg.sender ? new User(incomingMsg.sender) : undefined,
|
|
54
|
-
content: incomingMsg.content,
|
|
55
|
-
timestamp: incomingMsg.timestamp,
|
|
56
|
-
isSystem: incomingMsg.isSystem || false
|
|
57
|
-
});
|
|
58
|
-
// UPDATE LOCAL STATE FOR MOCK MODE
|
|
59
|
-
if (!isLiveMode) {
|
|
60
|
-
setLocalContacts(prev => {
|
|
61
|
-
const contactId = incomingMsg.chatId || incomingMsg.sender?.username;
|
|
62
|
-
const contactExists = prev.some(c => c.id === contactId);
|
|
63
|
-
if (!contactExists && incomingMsg.sender?.username !== user?.username) {
|
|
64
|
-
const newChat = new Chat({
|
|
65
|
-
id: contactId,
|
|
66
|
-
name: incomingMsg.sender?.displayName || incomingMsg.sender?.username || 'Bilinmeyen',
|
|
67
|
-
avatar: incomingMsg.sender?.avatar || '',
|
|
68
|
-
lastMessage: msgModel,
|
|
69
|
-
time: msgModel.timestamp,
|
|
70
|
-
updatedAt: Date.now(),
|
|
71
|
-
messages: [msgModel],
|
|
72
|
-
unreadCount: (activeContactId !== contactId) ? 1 : 0,
|
|
73
|
-
isOnline: true
|
|
74
|
-
});
|
|
75
|
-
return [newChat, ...prev];
|
|
76
|
-
}
|
|
77
|
-
return prev.map(c => {
|
|
78
|
-
if (c.id === contactId) {
|
|
79
|
-
const messageExists = c.messages.some(m => m.id === msgModel.id);
|
|
80
|
-
return new Chat({
|
|
81
|
-
...c,
|
|
82
|
-
lastMessage: msgModel,
|
|
83
|
-
time: msgModel.timestamp,
|
|
84
|
-
updatedAt: Date.now(),
|
|
85
|
-
messages: messageExists ? c.messages : [...(c.messages || []), msgModel],
|
|
86
|
-
unreadCount: (activeContactId !== c.id && incomingMsg.sender?.username !== user?.username) ? c.unreadCount + 1 : c.unreadCount
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
return c;
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
if (activeContactId === incomingMsg.chatId || activeContactId === incomingMsg.sender?.username) {
|
|
93
|
-
setLocalMessages(prev => {
|
|
94
|
-
if (prev.some(m => m.id === incomingMsg.id))
|
|
95
|
-
return prev;
|
|
96
|
-
return [...prev, msgModel];
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
// IN LIVE MODE: Just refresh if active or handle notification
|
|
102
|
-
// Note: Real implementation would push to context's activeMessages if activeContactId matches
|
|
103
|
-
}
|
|
104
|
-
setIsTyping(false);
|
|
105
|
-
});
|
|
106
|
-
const offTyping = on('typing', (data) => {
|
|
107
|
-
const isChattingWithSender = data.username === activeContactId && data.chatId === user?.username;
|
|
108
|
-
const isBotTyping = data.username === 'system' && data.chatId === user?.username;
|
|
109
|
-
if (isChattingWithSender || isBotTyping) {
|
|
110
|
-
setIsTyping(data.isTyping);
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
return () => {
|
|
114
|
-
offMsg();
|
|
115
|
-
offTyping();
|
|
116
|
-
};
|
|
117
|
-
}, [on, activeContactId, user?.username, isLiveMode]);
|
|
118
|
-
const handleSelectContact = (id) => {
|
|
119
|
-
if (!isLiveMode) {
|
|
120
|
-
let contact = localContacts.find((c) => c.id === id);
|
|
121
|
-
if (!contact) {
|
|
122
|
-
const newUser = userList.find((u) => u.username === id);
|
|
123
|
-
if (newUser) {
|
|
124
|
-
contact = new Chat({
|
|
125
|
-
id: newUser.username,
|
|
126
|
-
name: newUser.displayName,
|
|
127
|
-
avatar: newUser.avatar,
|
|
128
|
-
updatedAt: Date.now(),
|
|
129
|
-
messages: [],
|
|
130
|
-
isOnline: true,
|
|
131
|
-
unreadCount: 0
|
|
132
|
-
});
|
|
133
|
-
setLocalContacts([contact, ...localContacts]);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
setLocalMessages(contact?.messages || []);
|
|
137
|
-
}
|
|
138
|
-
setActiveContactId(id);
|
|
139
|
-
setIsTyping(false);
|
|
140
|
-
};
|
|
141
|
-
const handleSendMessage = async (text) => {
|
|
142
|
-
if (!text.trim() || !activeContactId)
|
|
143
|
-
return;
|
|
144
|
-
if (isLiveMode) {
|
|
145
|
-
const idNum = parseInt(activeContactId);
|
|
146
|
-
if (!isNaN(idNum)) {
|
|
147
|
-
const success = await sendApiMessage(idNum, text);
|
|
148
|
-
if (success) {
|
|
149
|
-
// Socket will usually bounce this back, or we can manually push to activeMessages
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
// MOCK MODE LOGIC
|
|
155
|
-
const newMessage = new ChatMessageModel({
|
|
156
|
-
id: Date.now().toString(),
|
|
157
|
-
sender: user || undefined,
|
|
158
|
-
content: text,
|
|
159
|
-
timestamp: new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }),
|
|
160
|
-
isSystem: false
|
|
161
|
-
});
|
|
162
|
-
setLocalMessages(prev => [...prev, newMessage]);
|
|
163
|
-
setLocalContacts(prev => prev.map(c => {
|
|
164
|
-
if (c.id === activeContactId) {
|
|
165
|
-
return new Chat({
|
|
166
|
-
...c,
|
|
167
|
-
lastMessage: newMessage,
|
|
168
|
-
time: newMessage.timestamp,
|
|
169
|
-
updatedAt: Date.now(),
|
|
170
|
-
messages: [...(c.messages || []), newMessage]
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
return c;
|
|
174
|
-
}));
|
|
175
|
-
}
|
|
176
|
-
// Emit via socket for instant cross-tab / real-time feel
|
|
177
|
-
emit('message', {
|
|
178
|
-
id: Date.now().toString(),
|
|
179
|
-
chatId: activeContactId,
|
|
180
|
-
sender: {
|
|
181
|
-
username: user?.username,
|
|
182
|
-
displayName: user?.displayName,
|
|
183
|
-
avatar: user?.avatar
|
|
184
|
-
},
|
|
185
|
-
content: text,
|
|
186
|
-
timestamp: new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }),
|
|
187
|
-
});
|
|
188
|
-
};
|
|
189
|
-
if (!user) {
|
|
190
|
-
return (_jsx("div", { className: "flex items-center justify-center h-full text-armoyu-text-muted bg-armoyu-card-bg rounded-3xl border border-gray-200 dark:border-white/10", children: "Sohbetleri g\u00F6rmek i\u00E7in giri\u015F yapmal\u0131s\u0131n\u0131z." }));
|
|
191
|
-
}
|
|
192
|
-
const activeContact = activeContactId ? localContacts.find((c) => c.id === activeContactId) : null;
|
|
193
|
-
return (_jsxs("div", { className: "flex h-full w-full bg-armoyu-header-bg overflow-hidden relative z-10", children: [!activeContactId && (_jsx("div", { className: "w-full h-full flex flex-col animate-in fade-in slide-in-from-left-4 duration-300", children: _jsx(ChatList, { contacts: localContacts, activeId: '', onSelect: handleSelectContact }) })), activeContactId && activeContact && (_jsxs("div", { className: "w-full h-full flex flex-col bg-armoyu-bg relative animate-in fade-in slide-in-from-right-4 duration-300", children: [_jsxs("div", { className: "h-[76px] border-b border-gray-200 dark:border-white/5 bg-armoyu-card-bg flex items-center px-4 gap-3 z-10 shrink-0", children: [_jsx("button", { onClick: () => setActiveContactId(null), className: "p-2 -ml-2 text-armoyu-text-muted hover:text-armoyu-text hover:bg-black/5 dark:hover:bg-white/5 transition-colors rounded-full focus:outline-none", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: _jsx("polyline", { points: "15 18 9 12 15 6" }) }) }), _jsx("img", { src: activeContact.avatar, className: "w-10 h-10 rounded-full border border-black/5 dark:border-white/10 shadow-sm", alt: "" }), _jsxs("div", { className: "flex-1 min-w-0", children: [_jsx("h3", { className: "font-bold text-armoyu-text truncate text-base", children: activeContact.name }), _jsx("div", { className: "flex items-center gap-1.5 mt-0.5", children: activeContact.isOnline ? (_jsxs(_Fragment, { children: [_jsx("span", { className: "w-2 h-2 rounded-full bg-emerald-500 shadow-[0_0_5px_rgba(16,185,129,0.6)] animate-pulse" }), _jsx("span", { className: "text-xs font-bold text-emerald-500 shadow-sm", children: "\u00C7evrimi\u00E7i" })] })) : (_jsxs(_Fragment, { children: [_jsx("span", { className: "w-2 h-2 rounded-full bg-gray-400 dark:bg-gray-600" }), _jsxs("span", { className: "text-xs font-bold text-armoyu-text-muted", children: ["Son g\u00F6r\u00FClme ", activeContact.lastSeen] })] })) })] }), _jsxs("div", { className: "flex gap-1", children: [_jsx("button", { className: "p-2 text-armoyu-text-muted hover:text-blue-500 rounded-full hover:bg-blue-500/10 transition-colors", title: "Ara", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: _jsx("path", { d: "M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z" }) }) }), _jsx("button", { onClick: closeChat, className: "p-2 text-armoyu-text-muted hover:text-red-500 rounded-full hover:bg-red-500/10 transition-colors", title: "Sohbeti Kapat", children: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), _jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })] }) })] })] }), _jsxs("div", { className: "flex-1 overflow-y-auto p-4 md:p-6 space-y-2 relative hide-scrollbar", children: [_jsx("div", { className: "text-center mb-8", children: _jsx("span", { className: "inline-block bg-black/5 dark:bg-white/5 text-armoyu-text-muted text-xs font-bold px-3 py-1 rounded-full border border-black/5 dark:border-white/5", children: "Bug\u00FCn" }) }), localMessages.map(msg => (_jsx(ChatMessage, { id: msg.id, sender: {
|
|
194
|
-
name: msg.sender?.displayName || 'Bilinmiyor',
|
|
195
|
-
avatar: msg.sender?.avatar || '',
|
|
196
|
-
isSelf: msg.sender?.username === user?.username
|
|
197
|
-
}, content: msg.content, timestamp: msg.timestamp }, msg.id))), isTyping && (_jsx("div", { className: "flex gap-2 items-center px-4 animate-in fade-in slide-in-from-bottom-2 duration-300", children: _jsxs("div", { className: "flex gap-1 items-center bg-black/5 dark:bg-white/5 px-3 py-1.5 rounded-2xl border border-black/5 dark:border-white/5", children: [_jsxs("div", { className: "flex gap-0.5 mt-0.5", children: [_jsx("span", { className: "w-1 h-1 rounded-full bg-blue-500 animate-bounce [animation-delay:-0.3s]" }), _jsx("span", { className: "w-1 h-1 rounded-full bg-blue-500 animate-bounce [animation-delay:-0.15s]" }), _jsx("span", { className: "w-1 h-1 rounded-full bg-blue-500 animate-bounce" })] }), _jsx("span", { className: "text-[10px] font-bold text-armoyu-text-muted italic ml-1", children: "Yaz\u0131yor..." })] }) })), _jsx("div", { ref: messagesEndRef, className: "h-2" })] }), _jsx(ChatInput, { onSend: handleSendMessage, chatId: activeContactId })] }))] }));
|
|
198
|
-
}
|
|
199
|
-
//# sourceMappingURL=ChatContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContainer.js","sourceRoot":"","sources":["../../../../src/components/modules/chat/ChatContainer.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,EAAE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AAG,CAAC,MAAM,EAAE,MAAM,IAAI,EAAE;oCAChC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,EAAE,QAAQ;iCAChD,EACD,OAAO,EAAE,GAAG,CAAC,OAAO,EACpB,SAAS,EAAE,GAAG,CAAC,SAAS,IARnB,GAAG,CAAC,EAAE,CASX,CACH,CAAC,EAED,QAAQ,IAAI,CACX,cAAK,SAAS,EAAC,qFAAqF,YAClG,eAAK,SAAS,EAAC,sHAAsH,aACnI,eAAK,SAAS,EAAC,qBAAqB,aAClC,eAAM,SAAS,EAAC,yEAAyE,GAAQ,EACjG,eAAM,SAAS,EAAC,0EAA0E,GAAQ,EAClG,eAAM,SAAS,EAAC,iDAAiD,GAAQ,IACrE,EACN,eAAM,SAAS,EAAC,0DAA0D,gCAAkB,IACxF,GACF,CACP,EAED,cAAK,GAAG,EAAE,cAAc,EAAE,SAAS,EAAC,KAAK,GAAG,IACxC,EAGN,KAAC,SAAS,IAAC,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,eAAe,GAAI,IAE7D,CACP,IAEG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../src/components/modules/chat/ChatInput.tsx"],"names":[],"mappings":"AAIA,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,2CAoDhG"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { Button } from '../../Button';
|
|
4
|
-
import { useSocket } from '../../../context/SocketContext';
|
|
5
|
-
export function ChatInput({ onSend, chatId }) {
|
|
6
|
-
const [text, setText] = useState('');
|
|
7
|
-
const { emit } = useSocket();
|
|
8
|
-
const handleSend = (e) => {
|
|
9
|
-
e.preventDefault();
|
|
10
|
-
if (text.trim()) {
|
|
11
|
-
onSend(text);
|
|
12
|
-
setText('');
|
|
13
|
-
if (chatId)
|
|
14
|
-
emit('typing', { chatId, isTyping: false });
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
const handleChange = (val) => {
|
|
18
|
-
setText(val);
|
|
19
|
-
if (chatId) {
|
|
20
|
-
const isTyping = val.length > 0;
|
|
21
|
-
// Include username to help receiver filter out self
|
|
22
|
-
emit('typing', {
|
|
23
|
-
chatId,
|
|
24
|
-
isTyping,
|
|
25
|
-
username: typeof window !== 'undefined' ? localStorage.getItem('armoyu_username') : undefined
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
return (_jsxs("form", { onSubmit: handleSend, className: "p-3 border-t border-gray-200 dark:border-white/5 flex items-center gap-3 bg-armoyu-card-bg", children: [_jsx("button", { type: "button", className: "text-gray-400 hover:text-blue-500 p-2 transition-colors shrink-0", children: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [_jsx("circle", { cx: "12", cy: "12", r: "10" }), _jsx("path", { d: "M8 14s1.5 2 4 2 4-2 4-2" }), _jsx("line", { x1: "9", y1: "9", x2: "9.01", y2: "9" }), _jsx("line", { x1: "15", y1: "9", x2: "15.01", y2: "9" })] }) }), _jsx("button", { type: "button", className: "text-gray-400 hover:text-blue-500 p-2 transition-colors hidden sm:block shrink-0", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: _jsx("path", { d: "M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48" }) }) }), _jsx("input", { type: "text", value: text, onChange: (e) => handleChange(e.target.value), placeholder: "Bir mesaj yaz\u0131n...", className: "flex-1 min-w-0 bg-black/5 dark:bg-black/40 border border-black/10 dark:border-white/10 rounded-full px-4 py-2.5 text-sm text-armoyu-text placeholder-armoyu-text-muted focus:outline-none focus:border-blue-500 focus:ring-1 focus:ring-blue-500 transition-all shadow-inner" }), _jsx(Button, { variant: "primary", className: "rounded-full w-10 h-10 p-0 flex items-center justify-center shadow-[0_0_15px_rgba(37,99,235,0.3)] shrink-0 group", children: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", className: "translate-x-0.5 group-hover:translate-x-1 group-hover:-translate-y-0.5 transition-transform", children: [_jsx("line", { x1: "22", y1: "2", x2: "11", y2: "13" }), _jsx("polygon", { points: "22 2 15 22 11 13 2 9 22 2" })] }) })] }));
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=ChatInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.js","sourceRoot":"","sources":["../../../../src/components/modules/chat/ChatInput.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE3D,MAAM,UAAU,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,EAAuD;IAC/F,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACrC,MAAM,EAAE,IAAI,EAAE,GAAG,SAAS,EAAE,CAAC;IAE7B,MAAM,UAAU,GAAG,CAAC,CAAkB,EAAE,EAAE;QACxC,CAAC,CAAC,cAAc,EAAE,CAAC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