@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,109 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { useEffect, useState, useCallback } from 'react';
|
|
4
|
-
import { SocialSidebar, Stories, PostCard, postList } from '../../index';
|
|
5
|
-
import { useArmoyu } from '../../context/ArmoyuContext';
|
|
6
|
-
import { RefreshCcw, Wifi, WifiOff, Settings2 } from 'lucide-react';
|
|
7
|
-
export function SocialTab() {
|
|
8
|
-
const { api, apiKey, token } = useArmoyu();
|
|
9
|
-
const [useLive, setUseLive] = useState(false);
|
|
10
|
-
const [livePosts, setLivePosts] = useState([]);
|
|
11
|
-
const [loading, setLoading] = useState(false);
|
|
12
|
-
const [error, setError] = useState(null);
|
|
13
|
-
const [lastRawData, setLastRawData] = useState(null);
|
|
14
|
-
const [page, setPage] = useState(1);
|
|
15
|
-
const [hasMore, setHasMore] = useState(true);
|
|
16
|
-
const fetchLivePosts = useCallback(async (isLoadMore = false) => {
|
|
17
|
-
setLoading(true);
|
|
18
|
-
if (!isLoadMore) {
|
|
19
|
-
setError(null);
|
|
20
|
-
setLastRawData(null);
|
|
21
|
-
}
|
|
22
|
-
if (!apiKey || apiKey === 'armoyu_showcase_key') {
|
|
23
|
-
setError("Canlı akış verilerini çekebilmek için lütfen geçerli bir API Anahtarı giriniz.");
|
|
24
|
-
setLoading(false);
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
try {
|
|
28
|
-
const targetPage = isLoadMore ? page + 1 : 1;
|
|
29
|
-
console.log(`[SocialTab] Veri çekiliyor... Sayfa: ${targetPage}, API Key: ${apiKey ? "Mevcut" : "Eksik"}`);
|
|
30
|
-
const posts = await api.social.getPosts(targetPage);
|
|
31
|
-
const lastRaw = api.lastResponse;
|
|
32
|
-
setLastRawData(lastRaw);
|
|
33
|
-
console.log("---------------- [SocialTab DEBUG] ----------------");
|
|
34
|
-
console.log("Ham Yanıt (lastRaw):", lastRaw);
|
|
35
|
-
console.log("İşlenmiş Veri (posts):", posts);
|
|
36
|
-
console.log("Veri Tipi:", Array.isArray(posts) ? "Dizi (Array)" : typeof posts);
|
|
37
|
-
if (Array.isArray(posts)) {
|
|
38
|
-
console.log("Gönderi Sayısı (Length):", posts.length);
|
|
39
|
-
}
|
|
40
|
-
console.log("---------------------------------------------------");
|
|
41
|
-
if (!posts || (Array.isArray(posts) && posts.length === 0)) {
|
|
42
|
-
if (lastRaw && lastRaw.durum === 0) {
|
|
43
|
-
setError(lastRaw.aciklama || "API Hatası: Yetki veya veri erişim problemi.");
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
// Gelen veriyi PostCard'ın beklediği formata güvenli bir şekilde dönüştür (Mapping)
|
|
48
|
-
const rawArray = Array.isArray(posts) ? posts : (posts ? [posts] : []);
|
|
49
|
-
const mappedPosts = rawArray.map((p) => {
|
|
50
|
-
if (!p || typeof p !== 'object')
|
|
51
|
-
return null;
|
|
52
|
-
return {
|
|
53
|
-
...p,
|
|
54
|
-
id: p.id?.toString() || p.postID?.toString() || Math.random().toString(),
|
|
55
|
-
author: p.author || p.owner || null,
|
|
56
|
-
content: p.content || p.paylasimicerik || '',
|
|
57
|
-
media: Array.isArray(p.media) ? p.media : (Array.isArray(p.paylasimfoto) ? p.paylasimfoto.map((f) => ({ type: 'image', url: f.fotourl || f.fotoufakurl })) : []),
|
|
58
|
-
createdAt: p.createdAt || p.paylasimzaman || 'Şimdi',
|
|
59
|
-
stats: {
|
|
60
|
-
likes: p.stats?.likes ?? p.likesCount ?? p.begenisay ?? 0,
|
|
61
|
-
comments: p.stats?.comments ?? p.commentsCount ?? p.yorumsay ?? 0,
|
|
62
|
-
reposts: p.stats?.reposts ?? p.repostsay ?? 0,
|
|
63
|
-
shares: p.stats?.shares ?? p.sikayetsay ?? 0
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
}).filter(Boolean);
|
|
67
|
-
console.log(`[SocialTab] Mapleme Sonrası Gönderi Sayısı: ${mappedPosts.length}`);
|
|
68
|
-
if (isLoadMore) {
|
|
69
|
-
setLivePosts((prev) => [...prev, ...mappedPosts]);
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
setLivePosts(mappedPosts);
|
|
73
|
-
}
|
|
74
|
-
setPage(targetPage);
|
|
75
|
-
setHasMore(mappedPosts.length > 0);
|
|
76
|
-
setUseLive(true);
|
|
77
|
-
}
|
|
78
|
-
catch (err) {
|
|
79
|
-
const lastRaw = api.lastResponse;
|
|
80
|
-
setLastRawData(lastRaw);
|
|
81
|
-
console.log("================ [SocialTab ERROR] ================");
|
|
82
|
-
console.error("HATA:", err.message);
|
|
83
|
-
console.log("API YANITI:", lastRaw);
|
|
84
|
-
console.log("==================================================");
|
|
85
|
-
if (lastRaw && lastRaw.durum === 0) {
|
|
86
|
-
setError(lastRaw.aciklama || "API Hatası: Yetki veya veri erişim problemi.");
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
setError(err.message || "Veri çekilirken teknik bir hata oluştu.");
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
finally {
|
|
93
|
-
setLoading(false);
|
|
94
|
-
}
|
|
95
|
-
}, [api, apiKey, page]);
|
|
96
|
-
// Sayfa açıldığında verileri otomatik çek (Opsiyonel: Eğer apiKey varsa)
|
|
97
|
-
useEffect(() => {
|
|
98
|
-
if (apiKey && apiKey !== 'armoyu_showcase_key') {
|
|
99
|
-
fetchLivePosts(false);
|
|
100
|
-
}
|
|
101
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
102
|
-
}, [apiKey]); // API Key değiştiğinde veya ilk açılışta fetch et
|
|
103
|
-
const displayPosts = useLive ? livePosts : postList.slice(0, 3);
|
|
104
|
-
return (_jsxs("div", { className: "space-y-8 animate-in fade-in duration-700", children: [_jsxs("div", { className: "flex flex-col xl:flex-row xl:items-center justify-between gap-6 bg-white/5 backdrop-blur-md p-6 rounded-[2rem] border border-white/5", children: [_jsxs("div", { className: "flex items-center gap-4", children: [_jsx("div", { className: cn("w-12 h-12 rounded-2xl flex items-center justify-center shadow-2xl transition-all duration-500", useLive ? "bg-emerald-500 shadow-emerald-500/20" : "bg-blue-600 shadow-blue-600/20"), children: useLive ? _jsx(Wifi, { className: "text-white w-6 h-6" }) : _jsx(WifiOff, { className: "text-white w-6 h-6" }) }), _jsxs("div", { children: [_jsx("h3", { className: "text-base font-black text-armoyu-text uppercase tracking-tight", children: useLive ? "CANLI VERİ AKIŞI" : "MOCK (PROTOTİP) VERİ" }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("p", { className: "text-[10px] font-bold text-armoyu-text-muted uppercase tracking-widest opacity-60", children: useLive ? "@armoyu/core üzerinden çekiliyor" : "Lokal seedData.ts kullanılıyor" }), useLive && (_jsx("span", { className: "flex h-2 w-2 rounded-full bg-emerald-500 animate-pulse" }))] })] })] }), _jsxs("div", { className: "flex items-center gap-3", children: [_jsxs("div", { className: "hidden md:flex flex-col items-end mr-2", children: [_jsx("span", { className: "text-[10px] font-black text-zinc-500 uppercase tracking-widest", children: "AKT\u0130F ANAHTAR" }), _jsx("span", { className: "text-[11px] font-mono text-emerald-500 truncate max-w-[120px]", children: apiKey === 'armoyu_showcase_key' ? 'Varsayılan (Showcase)' : 'Özel Anahtar' })] }), _jsxs("button", { onClick: () => fetchLivePosts(false), disabled: loading, className: "bg-blue-600 hover:bg-blue-500 disabled:bg-zinc-800 text-white px-8 py-3.5 rounded-2xl text-[11px] font-black uppercase tracking-widest flex items-center gap-2 transition-all shadow-xl shadow-blue-600/20 hover:scale-105 active:scale-95", children: [loading ? _jsx(RefreshCcw, { className: "w-4 h-4 animate-spin" }) : _jsx(RefreshCcw, { className: "w-4 h-4" }), "VER\u0130LER\u0130 \u00C7EK"] }), useLive && (_jsx("button", { onClick: () => setUseLive(false), className: "bg-white/5 hover:bg-white/10 text-armoyu-text-muted p-3.5 rounded-2xl transition-all", title: "Mock veriye d\u00F6n", children: _jsx(Settings2, { className: "w-4 h-4" }) }))] })] }), error && (_jsxs("div", { className: "space-y-4 animate-in slide-in-from-top-2", children: [_jsxs("div", { className: "bg-red-500/10 border border-red-500/20 p-5 rounded-2xl flex items-start gap-4", children: [_jsx("div", { className: "w-10 h-10 rounded-xl bg-red-500/20 flex items-center justify-center text-red-500 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.5", children: [_jsx("circle", { cx: "12", cy: "12", r: "10" }), _jsx("line", { x1: "12", y1: "8", x2: "12", y2: "12" }), _jsx("line", { x1: "12", y1: "16", x2: "12.01", y2: "16" })] }) }), _jsxs("div", { children: [_jsx("h4", { className: "text-sm font-black text-red-500 uppercase tracking-tight", children: "VER\u0130 HATASI" }), _jsx("p", { className: "text-red-500/80 text-[11px] leading-relaxed font-bold", children: error }), _jsx("p", { className: "mt-2 text-[10px] text-red-500/50 font-medium italic", children: "Sa\u011F alttaki \"Dev Tools\" panelinden ge\u00E7erli bir API Key girerek tekrar deneyebilirsiniz." })] })] }), lastRawData && (_jsxs("div", { className: "bg-black/40 border border-white/5 p-4 rounded-2xl", children: [_jsxs("div", { className: "flex items-center gap-2 mb-2 text-[10px] font-black text-armoyu-text-muted uppercase tracking-widest opacity-50", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", children: [_jsx("polyline", { points: "4 17 10 11 4 5" }), _jsx("line", { x1: "12", y1: "19", x2: "20", y2: "19" })] }), "API YANITI (RAW)"] }), _jsx("pre", { className: "text-[10px] font-mono text-blue-400 overflow-x-auto p-2 bg-black/20 rounded-lg", children: JSON.stringify(lastRawData, null, 2) })] }))] })), _jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-12 gap-8", children: [_jsx("aside", { className: "lg:col-span-3 hidden lg:block", children: _jsx(SocialSidebar, {}) }), _jsxs("div", { className: "lg:col-span-9 space-y-8", children: [_jsx(Stories, {}), _jsx("div", { className: "flex flex-col gap-6 max-w-2xl mx-auto", children: displayPosts.map((post) => (_jsx(PostCard, { ...post, author: post.owner || post.author }, post.id))) }), displayPosts.length === 0 && !loading && (_jsx("div", { className: "text-center py-24 border-2 border-dashed border-white/5 rounded-[3rem] bg-white/[0.02]", children: _jsx("p", { className: "text-armoyu-text-muted font-bold opacity-30 uppercase tracking-[0.3em] text-[10px]", children: "Hen\u00FCz yay\u0131nlanm\u0131\u015F bir g\u00F6nderi yok." }) })), useLive && displayPosts.length > 0 && hasMore && (_jsx("div", { className: "flex justify-center mt-6", children: _jsx("button", { onClick: () => fetchLivePosts(true), disabled: loading, className: "px-6 py-3 bg-blue-600 hover:bg-blue-500 disabled:bg-blue-600/50 text-white rounded-2xl text-xs font-black uppercase tracking-widest transition-all shadow-lg shadow-blue-600/20 active:scale-95 flex items-center gap-2", children: loading ? (_jsxs(_Fragment, { children: [_jsx(RefreshCcw, { className: "w-4 h-4 animate-spin" }), " Y\u00DCKLEN\u0130YOR..."] })) : "DAHA FAZLA GÖSTER" }) }))] })] })] }));
|
|
105
|
-
}
|
|
106
|
-
function cn(...classes) {
|
|
107
|
-
return classes.filter(Boolean).join(' ');
|
|
108
|
-
}
|
|
109
|
-
//# sourceMappingURL=SocialTab.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SocialTab.js","sourceRoot":"","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,aACtC,KAAC,OAAO,KAAG,EACX,cAAK,SAAS,EAAC,uCAAuC,YACnD,YAAY,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,CAC/B,KAAC,QAAQ,OAEH,IAAI,EACR,MAAM,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,IAF5B,IAAI,CAAC,EAAE,CAGZ,CACH,CAAC,GACE,EACL,YAAY,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,CACxC,cAAK,SAAS,EAAC,wFAAwF,YACrG,YAAG,SAAS,EAAC,oFAAoF,4EAAuC,GACpI,CACP,EACA,OAAO,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,IAAI,OAAO,IAAI,CAChD,cAAK,SAAS,EAAC,0BAA0B,YACvC,iBACE,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,EACnC,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAC,yNAAyN,YAElO,OAAO,CAAC,CAAC,CAAC,CACT,8BAAE,KAAC,UAAU,IAAC,SAAS,EAAC,sBAAsB,GAAG,gCAAiB,CACnE,CAAC,CAAC,CAAC,mBAAmB,GAChB,GACL,CACP,IACG,IACF,IACF,CACP,CAAC;AACJ,CAAC;AAED,SAAS,EAAE,CAAC,GAAG,OAAc;IAC3B,OAAO,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ArmoyuUI } from '../lib/ArmoyuUI';
|
|
3
|
-
export interface ArmoyuNavigationConfig {
|
|
4
|
-
profilePrefix?: string;
|
|
5
|
-
groupPrefix?: string;
|
|
6
|
-
forumPrefix?: string;
|
|
7
|
-
educationPrefix?: string;
|
|
8
|
-
newsPrefix?: string;
|
|
9
|
-
galleryPrefix?: string;
|
|
10
|
-
giveawayPrefix?: string;
|
|
11
|
-
projectPrefix?: string;
|
|
12
|
-
storePrefix?: string;
|
|
13
|
-
managementPrefix?: string;
|
|
14
|
-
myArticlesPrefix?: string;
|
|
15
|
-
pollPrefix?: string;
|
|
16
|
-
supportPrefix?: string;
|
|
17
|
-
}
|
|
18
|
-
interface ArmoyuContextType {
|
|
19
|
-
ui: ArmoyuUI;
|
|
20
|
-
api: ArmoyuUI['api'];
|
|
21
|
-
apiKey: string;
|
|
22
|
-
token: string;
|
|
23
|
-
navigation: Required<ArmoyuNavigationConfig>;
|
|
24
|
-
setGlobalApiKey: (key: string) => void;
|
|
25
|
-
setGlobalToken: (token: string) => void;
|
|
26
|
-
}
|
|
27
|
-
export interface ArmoyuProviderProps {
|
|
28
|
-
children: ReactNode;
|
|
29
|
-
ui: ArmoyuUI;
|
|
30
|
-
navigation?: ArmoyuNavigationConfig;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* ArmoyuProvider provides the global ArmoyuUI instance to all UI components.
|
|
34
|
-
* This is required for any component that interacts with the ARMOYU backend.
|
|
35
|
-
*/
|
|
36
|
-
export declare function ArmoyuProvider({ children, ui, navigation }: ArmoyuProviderProps): import("react/jsx-runtime").JSX.Element | null;
|
|
37
|
-
/**
|
|
38
|
-
* Custom hook to access the ArmoyuApi instance.
|
|
39
|
-
*/
|
|
40
|
-
export declare function useArmoyu(): ArmoyuContextType;
|
|
41
|
-
export {};
|
|
42
|
-
//# sourceMappingURL=ArmoyuContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArmoyuContext.d.ts","sourceRoot":"","sources":["../../src/context/ArmoyuContext.tsx"],"names":[],"mappings":"AAEA,OAAc,EAA6B,SAAS,EAAoC,MAAM,OAAO,CAAC;AACtG,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,MAAM,WAAW,sBAAsB;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,iBAAiB;IACzB,EAAE,EAAE,QAAQ,CAAC;IACb,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC;IAC7C,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAID,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAC;IACpB,EAAE,EAAE,QAAQ,CAAC;IACb,UAAU,CAAC,EAAE,sBAAsB,CAAC;CACrC;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,mBAAmB,kDAmE/E;AAED;;GAEG;AACH,wBAAgB,SAAS,sBAMxB"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { createContext, useContext, useState, useCallback, useEffect } from 'react';
|
|
4
|
-
const ArmoyuContext = createContext(undefined);
|
|
5
|
-
/**
|
|
6
|
-
* ArmoyuProvider provides the global ArmoyuUI instance to all UI components.
|
|
7
|
-
* This is required for any component that interacts with the ARMOYU backend.
|
|
8
|
-
*/
|
|
9
|
-
export function ArmoyuProvider({ children, ui, navigation }) {
|
|
10
|
-
const [apiKey, setApiKey] = useState('armoyu_showcase_key');
|
|
11
|
-
const [token, setToken] = useState('');
|
|
12
|
-
const [isMounted, setIsMounted] = useState(false);
|
|
13
|
-
// Sadece istemci tarafında localStorage'dan yükle
|
|
14
|
-
useEffect(() => {
|
|
15
|
-
setIsMounted(true);
|
|
16
|
-
const savedApiKey = localStorage.getItem('armoyu_showcase_apiKey');
|
|
17
|
-
const savedToken = localStorage.getItem('armoyu_token');
|
|
18
|
-
if (savedApiKey) {
|
|
19
|
-
setApiKey(savedApiKey);
|
|
20
|
-
ui.api.setApiKey(savedApiKey);
|
|
21
|
-
}
|
|
22
|
-
if (savedToken) {
|
|
23
|
-
setToken(savedToken);
|
|
24
|
-
ui.api.setToken(savedToken);
|
|
25
|
-
}
|
|
26
|
-
}, [ui]);
|
|
27
|
-
const setGlobalApiKey = useCallback((key) => {
|
|
28
|
-
setApiKey(key);
|
|
29
|
-
ui.api.setApiKey(key);
|
|
30
|
-
localStorage.setItem('armoyu_showcase_apiKey', key);
|
|
31
|
-
}, [ui]);
|
|
32
|
-
const setGlobalToken = useCallback((t) => {
|
|
33
|
-
setToken(t);
|
|
34
|
-
ui.api.setToken(t);
|
|
35
|
-
localStorage.setItem('armoyu_token', t);
|
|
36
|
-
}, [ui]);
|
|
37
|
-
if (!isMounted || !ui) {
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
const defaultNavigation = {
|
|
41
|
-
profilePrefix: '/oyuncular',
|
|
42
|
-
groupPrefix: '/gruplar',
|
|
43
|
-
forumPrefix: '/forum',
|
|
44
|
-
educationPrefix: '/egitim',
|
|
45
|
-
newsPrefix: '/haberler',
|
|
46
|
-
galleryPrefix: '/galeriler',
|
|
47
|
-
giveawayPrefix: '/cekilisler',
|
|
48
|
-
projectPrefix: '/projeler',
|
|
49
|
-
storePrefix: '/magaza',
|
|
50
|
-
managementPrefix: '/yonetim',
|
|
51
|
-
myArticlesPrefix: '/yazilarim',
|
|
52
|
-
pollPrefix: '/anketler',
|
|
53
|
-
supportPrefix: '/destek',
|
|
54
|
-
...navigation
|
|
55
|
-
};
|
|
56
|
-
return (_jsx(ArmoyuContext.Provider, { value: {
|
|
57
|
-
ui,
|
|
58
|
-
api: ui.api,
|
|
59
|
-
apiKey,
|
|
60
|
-
token,
|
|
61
|
-
navigation: defaultNavigation,
|
|
62
|
-
setGlobalApiKey,
|
|
63
|
-
setGlobalToken
|
|
64
|
-
}, children: children }));
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Custom hook to access the ArmoyuApi instance.
|
|
68
|
-
*/
|
|
69
|
-
export function useArmoyu() {
|
|
70
|
-
const context = useContext(ArmoyuContext);
|
|
71
|
-
if (context === undefined) {
|
|
72
|
-
throw new Error('useArmoyu must be used within an ArmoyuProvider');
|
|
73
|
-
}
|
|
74
|
-
return context;
|
|
75
|
-
}
|
|
76
|
-
//# sourceMappingURL=ArmoyuContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArmoyuContext.js","sourceRoot":"","sources":["../../src/context/ArmoyuContext.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,aAAa,EAAE,UAAU,EAAa,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA6BtG,MAAM,aAAa,GAAG,aAAa,CAAgC,SAAS,CAAC,CAAC;AAQ9E;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAuB;IAC9E,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,qBAAqB,CAAC,CAAC;IAC5D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAA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EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,iBAAiB,GAAqC;QAC1D,aAAa,EAAE,YAAY;QAC3B,WAAW,EAAE,UAAU;QACvB,WAAW,EAAE,QAAQ;QACrB,eAAe,EAAE,SAAS;QAC1B,UAAU,EAAE,WAAW;QACvB,aAAa,EAAE,YAAY;QAC3B,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,WAAW;QAC1B,WAAW,EAAE,SAAS;QACtB,gBAAgB,EAAE,UAAU;QAC5B,gBAAgB,EAAE,YAAY;QAC9B,UAAU,EAAE,WAAW;QACvB,aAAa,EAAE,SAAS;QACxB,GAAG,UAAU;KACd,CAAC;IAEF,OAAO,CACL,KAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE;YAC7B,EAAE;YACF,GAAG,EAAE,EAAE,CAAC,GAAG;YACX,MAAM;YACN,KAAK;YACL,UAAU,EAAE,iBAAiB;YAC7B,eAAe;YACf,cAAc;SACf,YACE,QAAQ,GACc,CAC1B,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS;IACvB,MAAM,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAC1C,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { User, Session } from '@armoyu/core';
|
|
3
|
-
interface AuthContextType {
|
|
4
|
-
user: User | null;
|
|
5
|
-
session: Session | null;
|
|
6
|
-
login: (username: string, password: string) => Promise<void>;
|
|
7
|
-
logout: () => void;
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
isLoginModalOpen: boolean;
|
|
10
|
-
setIsLoginModalOpen: (open: boolean) => void;
|
|
11
|
-
updateUser: (updatedUser: User) => void;
|
|
12
|
-
updateSession: (updatedSession: Session) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare function AuthProvider({ children }: {
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export declare function useAuth(): AuthContextType;
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=AuthContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthContext.d.ts","sourceRoot":"","sources":["../../src/context/AuthContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG7C,UAAU,eAAe;IACvB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,mBAAmB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,UAAU,EAAE,CAAC,WAAW,EAAE,IAAI,KAAK,IAAI,CAAC;IACxC,aAAa,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;CAClD;AAID,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAoHvE;AAED,wBAAgB,OAAO,oBAMtB"}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { createContext, useContext, useState, useEffect } from 'react';
|
|
4
|
-
import { Session } from '@armoyu/core';
|
|
5
|
-
import { useArmoyu } from './ArmoyuContext';
|
|
6
|
-
const AuthContext = createContext(undefined);
|
|
7
|
-
export function AuthProvider({ children }) {
|
|
8
|
-
const { api, setGlobalToken } = useArmoyu();
|
|
9
|
-
const [user, setUser] = useState(null);
|
|
10
|
-
const [session, setSession] = useState(null);
|
|
11
|
-
const [isLoading, setIsLoading] = useState(true);
|
|
12
|
-
const [isLoginModalOpen, setIsLoginModalOpen] = useState(false);
|
|
13
|
-
useEffect(() => {
|
|
14
|
-
async function restoreSession() {
|
|
15
|
-
// Check local storage for persistent token
|
|
16
|
-
const token = localStorage.getItem('armoyu_token');
|
|
17
|
-
if (token) {
|
|
18
|
-
try {
|
|
19
|
-
// Set token in core API client
|
|
20
|
-
api.setToken(token);
|
|
21
|
-
// Request current user profile from real API
|
|
22
|
-
const me = await api.auth.me();
|
|
23
|
-
// VALIDATION: Ensure 'me' call returned a valid user with an ID
|
|
24
|
-
if (me && me.id) {
|
|
25
|
-
setUser(me);
|
|
26
|
-
setSession(new Session({ user: me, token }));
|
|
27
|
-
console.log('[AuthContext] Session restored for:', me.username);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
// Token might be expired, invalid, or returned a "blank" user
|
|
31
|
-
console.warn('[AuthContext] Invalid session detected during restoration, clearing...');
|
|
32
|
-
localStorage.removeItem('armoyu_token');
|
|
33
|
-
api.setToken(null);
|
|
34
|
-
setUser(null);
|
|
35
|
-
setSession(null);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
catch (e) {
|
|
39
|
-
console.error('[AuthContext] Failed to restore session:', e);
|
|
40
|
-
localStorage.removeItem('armoyu_token');
|
|
41
|
-
api.setToken(null);
|
|
42
|
-
setUser(null);
|
|
43
|
-
setSession(null);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
setIsLoading(false);
|
|
47
|
-
}
|
|
48
|
-
restoreSession();
|
|
49
|
-
}, []);
|
|
50
|
-
const login = async (username, password) => {
|
|
51
|
-
try {
|
|
52
|
-
// Real API login via core library
|
|
53
|
-
const { user: loggedInUser, session: newSession } = await api.auth.login(username, password);
|
|
54
|
-
// DOUBLE CHECK: Ensure the core library returned a user with an ID
|
|
55
|
-
if (!loggedInUser || !loggedInUser.id) {
|
|
56
|
-
throw new Error('Giriş başarısız: Geçersiz kullanıcı verisi.');
|
|
57
|
-
}
|
|
58
|
-
setUser(loggedInUser);
|
|
59
|
-
setSession(newSession);
|
|
60
|
-
// Store token in localStorage and sync with ArmoyuContext
|
|
61
|
-
if (newSession.token) {
|
|
62
|
-
setGlobalToken(newSession.token);
|
|
63
|
-
}
|
|
64
|
-
console.log('[AuthContext] Login successful for:', loggedInUser.username);
|
|
65
|
-
setIsLoginModalOpen(false);
|
|
66
|
-
}
|
|
67
|
-
catch (error) {
|
|
68
|
-
console.error('[AuthContext] Login failed:', error);
|
|
69
|
-
// Ensure state is cleared on failed login attempt
|
|
70
|
-
setUser(null);
|
|
71
|
-
setSession(null);
|
|
72
|
-
throw error; // Let the component handle the error UI
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
const logout = () => {
|
|
76
|
-
api.auth.logout(); // Clears internal state and localStorage
|
|
77
|
-
setGlobalToken('');
|
|
78
|
-
setUser(null);
|
|
79
|
-
setSession(null);
|
|
80
|
-
};
|
|
81
|
-
const updateUser = (updatedUser) => {
|
|
82
|
-
if (!updatedUser)
|
|
83
|
-
return;
|
|
84
|
-
setUser(updatedUser);
|
|
85
|
-
if (session) {
|
|
86
|
-
setSession(new Session({ ...session, user: updatedUser }));
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
const updateSession = (updatedSession) => {
|
|
90
|
-
if (!updatedSession)
|
|
91
|
-
return;
|
|
92
|
-
setSession(updatedSession);
|
|
93
|
-
if (updatedSession.token) {
|
|
94
|
-
setGlobalToken(updatedSession.token);
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
return (_jsx(AuthContext.Provider, { value: {
|
|
98
|
-
user,
|
|
99
|
-
session,
|
|
100
|
-
login,
|
|
101
|
-
logout,
|
|
102
|
-
isLoading,
|
|
103
|
-
isLoginModalOpen,
|
|
104
|
-
setIsLoginModalOpen,
|
|
105
|
-
updateUser,
|
|
106
|
-
updateSession
|
|
107
|
-
}, children: children }));
|
|
108
|
-
}
|
|
109
|
-
export function useAuth() {
|
|
110
|
-
const context = useContext(AuthContext);
|
|
111
|
-
if (context === undefined) {
|
|
112
|
-
throw new Error('useAuth must be used within an AuthProvider');
|
|
113
|
-
}
|
|
114
|
-
return context;
|
|
115
|
-
}
|
|
116
|
-
//# sourceMappingURL=AuthContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthContext.js","sourceRoot":"","sources":["../../src/context/AuthContext.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAQ,OAAO,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAc5C,MAAM,WAAW,GAAG,aAAa,CAA8B,SAAS,CAAC,CAAC;AAE1E,MAAM,UAAU,YAAY,CAAC,EAAE,QAAQ,EAAiC;IACtE,MAAM,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,SAAS,EAAE,CAAC;IAC5C,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAc,IAAI,CAAC,CAAC;IACpD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAiB,IAAI,CAAC,CAAC;IAC7D,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEhE,SAAS,CAAC,GAAG,EAA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,CAAC;IAEF,MAAM,UAAU,GAAG,CAAC,WAAiB,EAAE,EAAE;QACvC,IAAI,CAAC,WAAW;YAAE,OAAO;QACzB,OAAO,CAAC,WAAW,CAAC,CAAC;QACrB,IAAI,OAAO,EAAE,CAAC;YACZ,UAAU,CAAC,IAAI,OAAO,CAAC,EAAE,GAAG,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;QAC7D,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,CAAC,cAAuB,EAAE,EAAE;QAChD,IAAI,CAAC,cAAc;YAAE,OAAO;QAC5B,UAAU,CAAC,cAAc,CAAC,CAAC;QAC3B,IAAI,cAAc,CAAC,KAAK,EAAE,CAAC;YACzB,cAAc,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE;YAC3B,IAAI;YACJ,OAAO;YACP,KAAK;YACL,MAAM;YACN,SAAS;YACT,gBAAgB;YAChB,mBAAmB;YACnB,UAAU;YACV,aAAa;SACd,YACE,QAAQ,GACY,CACxB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,OAAO;IACrB,MAAM,OAAO,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;IACxC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;IACjE,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Product, CartItem } from '@armoyu/core';
|
|
3
|
-
interface CartContextType {
|
|
4
|
-
cart: CartItem[];
|
|
5
|
-
addToCart: (product: Product, quantity?: number) => void;
|
|
6
|
-
removeFromCart: (productId: string) => void;
|
|
7
|
-
updateQuantity: (productId: string, quantity: number) => void;
|
|
8
|
-
clearCart: () => void;
|
|
9
|
-
totalItems: number;
|
|
10
|
-
totalPrice: number;
|
|
11
|
-
}
|
|
12
|
-
export declare function CartProvider({ children }: {
|
|
13
|
-
children: React.ReactNode;
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export declare function useCart(): CartContextType;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=CartContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CartContext.d.ts","sourceRoot":"","sources":["../../src/context/CartContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGjD,UAAU,eAAe;IACvB,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAID,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAiEvE;AAED,wBAAgB,OAAO,oBAMtB"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { createContext, useContext, useState, useEffect } from 'react';
|
|
4
|
-
import { CartItem } from '@armoyu/core';
|
|
5
|
-
const CartContext = createContext(undefined);
|
|
6
|
-
export function CartProvider({ children }) {
|
|
7
|
-
const [cart, setCart] = useState([]);
|
|
8
|
-
// Load cart from localStorage on mount
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
const savedCart = localStorage.getItem('armoyu_cart');
|
|
11
|
-
if (savedCart) {
|
|
12
|
-
try {
|
|
13
|
-
const parsed = JSON.parse(savedCart);
|
|
14
|
-
setCart(parsed.map((i) => CartItem.fromJSON(i)));
|
|
15
|
-
}
|
|
16
|
-
catch (e) {
|
|
17
|
-
console.error('Failed to parse cart', e);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}, []);
|
|
21
|
-
// Save cart to localStorage on change
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
localStorage.setItem('armoyu_cart', JSON.stringify(cart));
|
|
24
|
-
}, [cart]);
|
|
25
|
-
const addToCart = (product, quantity = 1) => {
|
|
26
|
-
setCart(prev => {
|
|
27
|
-
const existing = prev.find(item => item.product.id === product.id);
|
|
28
|
-
if (existing) {
|
|
29
|
-
return prev.map(item => item.product.id === product.id
|
|
30
|
-
? new CartItem({ ...item, quantity: item.quantity + quantity })
|
|
31
|
-
: item);
|
|
32
|
-
}
|
|
33
|
-
return [...prev, new CartItem({ product, quantity })];
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
const removeFromCart = (productId) => {
|
|
37
|
-
setCart(prev => prev.filter(item => item.product.id !== productId));
|
|
38
|
-
};
|
|
39
|
-
const updateQuantity = (productId, quantity) => {
|
|
40
|
-
setCart(prev => prev.map(item => item.product.id === productId
|
|
41
|
-
? new CartItem({ ...item, quantity: Math.max(1, quantity) })
|
|
42
|
-
: item));
|
|
43
|
-
};
|
|
44
|
-
const clearCart = () => setCart([]);
|
|
45
|
-
const totalItems = cart.reduce((acc, item) => acc + item.quantity, 0);
|
|
46
|
-
const totalPrice = cart.reduce((acc, item) => acc + item.getTotalPrice(), 0);
|
|
47
|
-
return (_jsx(CartContext.Provider, { value: {
|
|
48
|
-
cart,
|
|
49
|
-
addToCart,
|
|
50
|
-
removeFromCart,
|
|
51
|
-
updateQuantity,
|
|
52
|
-
clearCart,
|
|
53
|
-
totalItems,
|
|
54
|
-
totalPrice
|
|
55
|
-
}, children: children }));
|
|
56
|
-
}
|
|
57
|
-
export function useCart() {
|
|
58
|
-
const context = useContext(CartContext);
|
|
59
|
-
if (context === undefined) {
|
|
60
|
-
throw new Error('useCart must be used within a CartProvider');
|
|
61
|
-
}
|
|
62
|
-
return context;
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=CartContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CartContext.js","sourceRoot":"","sources":["../../src/context/CartContext.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAW,QAAQ,EAAE,MAAM,cAAc,CAAC;AAajD,MAAM,WAAW,GAAG,aAAa,CAA8B,SAAS,CAAC,CAAC;AAE1E,MAAM,UAAU,YAAY,CAAC,EAAE,QAAQ,EAAiC;IACtE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAa,EAAE,CAAC,CAAC;IAEjD,uCAAuC;IACvC,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QACtD,IAAI,SAAS,EAAE,CAAC;YACd,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;gBACrC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACxD,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,OAAO,CAAC,KAAK,CAAC,sBAAsB,EAAE,CAAC,CAAC,CAAC;YAC3C,CAAC;QACH,CAAC;IACH,CAA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olean;
|
|
6
|
-
chatList: Chat[];
|
|
7
|
-
activeMessages: ChatMessage[];
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
toggleChat: () => void;
|
|
10
|
-
openChat: () => void;
|
|
11
|
-
closeChat: () => void;
|
|
12
|
-
setLiveMode: (isLive: boolean) => void;
|
|
13
|
-
fetchChatList: () => Promise<void>;
|
|
14
|
-
fetchMessages: (userId: number, page?: number) => Promise<void>;
|
|
15
|
-
sendMessage: (userId: number, content: string) => Promise<boolean>;
|
|
16
|
-
}
|
|
17
|
-
export declare function ChatProvider({ children }: {
|
|
18
|
-
children: React.ReactNode;
|
|
19
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export declare function useChat(): ChatContextType;
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=ChatContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../src/context/ChatContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGjD,UAAU,eAAe;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjB,cAAc,EAAE,WAAW,EAAE,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;IAEnB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACpE;AAID,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CA4FvE;AAED,wBAAgB,OAAO,oBAItB"}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { createContext, useContext, useState, useCallback } from 'react';
|
|
4
|
-
import { Chat, ChatMessage } from '@armoyu/core';
|
|
5
|
-
import { useArmoyu } from './ArmoyuContext';
|
|
6
|
-
const ChatContext = createContext(undefined);
|
|
7
|
-
export function ChatProvider({ children }) {
|
|
8
|
-
const { api, apiKey } = useArmoyu();
|
|
9
|
-
const [isChatOpen, setIsChatOpen] = useState(false);
|
|
10
|
-
const [isLiveMode, setIsLiveMode] = useState(false);
|
|
11
|
-
const [chatList, setChatList] = useState([]);
|
|
12
|
-
const [activeMessages, setActiveMessages] = useState([]);
|
|
13
|
-
const [isLoading, setIsLoading] = useState(false);
|
|
14
|
-
const toggleChat = () => setIsChatOpen(!isChatOpen);
|
|
15
|
-
const openChat = () => setIsChatOpen(true);
|
|
16
|
-
const closeChat = () => setIsChatOpen(false);
|
|
17
|
-
const fetchChatList = useCallback(async () => {
|
|
18
|
-
if (!isLiveMode || apiKey === 'armoyu_showcase_key')
|
|
19
|
-
return;
|
|
20
|
-
setIsLoading(true);
|
|
21
|
-
try {
|
|
22
|
-
const response = await api.chat.getFriendsChat(1);
|
|
23
|
-
console.log("[ChatContext] Raw Chat List Response:", response);
|
|
24
|
-
const data = Array.isArray(response) ? response : (response?.icerik || response?.liste || response?.arkadaslar || response?.veriler || []);
|
|
25
|
-
if (Array.isArray(data)) {
|
|
26
|
-
setChatList(data.map((c) => Chat.fromJSON(c)));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
catch (error) {
|
|
30
|
-
console.error("[ChatContext] Fetch chats failed:", error);
|
|
31
|
-
}
|
|
32
|
-
finally {
|
|
33
|
-
setIsLoading(false);
|
|
34
|
-
}
|
|
35
|
-
}, [api, isLiveMode, apiKey]);
|
|
36
|
-
const fetchMessages = useCallback(async (userId, page = 1) => {
|
|
37
|
-
if (!isLiveMode || apiKey === 'armoyu_showcase_key')
|
|
38
|
-
return;
|
|
39
|
-
setIsLoading(true);
|
|
40
|
-
try {
|
|
41
|
-
// Diagnostic log before API call
|
|
42
|
-
console.log(`[ChatContext] Calling fetchMessages for userId: ${userId} (Type: ${typeof userId})`);
|
|
43
|
-
const response = await api.chat.getChatHistory(page, { userId });
|
|
44
|
-
console.log(`[ChatContext] Raw Messages Response (User: ${userId}):`, response);
|
|
45
|
-
const data = Array.isArray(response) ? response : (response?.icerik || response?.liste || response?.sohbetler || response?.veriler || []);
|
|
46
|
-
if (Array.isArray(data)) {
|
|
47
|
-
const msgs = data.map((m) => ChatMessage.fromJSON(m));
|
|
48
|
-
setActiveMessages(page === 1 ? msgs : (prev) => [...msgs, ...prev]);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
catch (error) {
|
|
52
|
-
console.error("[ChatContext] Fetch messages failed:", error);
|
|
53
|
-
}
|
|
54
|
-
finally {
|
|
55
|
-
setIsLoading(false);
|
|
56
|
-
}
|
|
57
|
-
}, [api, isLiveMode, apiKey]);
|
|
58
|
-
const sendMessage = useCallback(async (userId, content) => {
|
|
59
|
-
if (!isLiveMode || apiKey === 'armoyu_showcase_key')
|
|
60
|
-
return false;
|
|
61
|
-
try {
|
|
62
|
-
const result = await api.chat.sendMessage({ userId, content });
|
|
63
|
-
return result && result.durum === 1;
|
|
64
|
-
}
|
|
65
|
-
catch (error) {
|
|
66
|
-
console.error("[ChatContext] Send message failed:", error);
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
}, [api, isLiveMode, apiKey]);
|
|
70
|
-
const setLiveMode = (isLive) => {
|
|
71
|
-
setIsLiveMode(isLive);
|
|
72
|
-
if (!isLive) {
|
|
73
|
-
setChatList([]);
|
|
74
|
-
setActiveMessages([]);
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
return (_jsx(ChatContext.Provider, { value: {
|
|
78
|
-
isChatOpen,
|
|
79
|
-
isLiveMode,
|
|
80
|
-
chatList,
|
|
81
|
-
activeMessages,
|
|
82
|
-
isLoading,
|
|
83
|
-
toggleChat,
|
|
84
|
-
openChat,
|
|
85
|
-
closeChat,
|
|
86
|
-
setLiveMode,
|
|
87
|
-
fetchChatList,
|
|
88
|
-
fetchMessages,
|
|
89
|
-
sendMessage
|
|
90
|
-
}, children: children }));
|
|
91
|
-
}
|
|
92
|
-
export function useChat() {
|
|
93
|
-
const context = useContext(ChatContext);
|
|
94
|
-
if (!context)
|
|
95
|
-
throw new Error('useChat must be used within ChatProvider');
|
|
96
|
-
return context;
|
|
97
|
-
}
|
|
98
|
-
//# sourceMappingURL=ChatContext.js.map
|