@armoyu/ui 1.0.0 → 1.0.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.
Files changed (182) hide show
  1. package/dist/app/api/proxy/[...path]/route.d.ts +22 -0
  2. package/dist/app/api/proxy/[...path]/route.d.ts.map +1 -0
  3. package/dist/app/api/proxy/[...path]/route.js +89 -0
  4. package/dist/app/api/proxy/[...path]/route.js.map +1 -0
  5. package/dist/app/layout.js +11 -11
  6. package/dist/components/Button.d.ts +7 -7
  7. package/dist/components/Button.js +15 -15
  8. package/dist/components/GenderStatsBar.d.ts +5 -5
  9. package/dist/components/GenderStatsBar.js +7 -7
  10. package/dist/components/RollingNumber.d.ts +6 -6
  11. package/dist/components/RollingNumber.js +23 -23
  12. package/dist/components/Slider.d.ts +10 -10
  13. package/dist/components/Slider.js +35 -35
  14. package/dist/components/StatsGrid.js +13 -13
  15. package/dist/components/ViewModeToggle.d.ts +7 -7
  16. package/dist/components/ViewModeToggle.js +9 -9
  17. package/dist/components/modules/auth/Dashboard.js +250 -250
  18. package/dist/components/modules/auth/MediaLightbox.d.ts +13 -13
  19. package/dist/components/modules/auth/MediaLightbox.js +46 -46
  20. package/dist/components/modules/auth/PostCard.js +112 -112
  21. package/dist/components/modules/auth/PostInteractionsModal.js +12 -12
  22. package/dist/components/modules/auth/RepostModal.js +75 -75
  23. package/dist/components/modules/auth/SidebarLeft.js +40 -40
  24. package/dist/components/modules/auth/Stories.js +15 -15
  25. package/dist/components/modules/auth/StoryViewer.js +47 -47
  26. package/dist/components/modules/chat/ChatContainer.js +196 -196
  27. package/dist/components/modules/chat/ChatInput.js +30 -30
  28. package/dist/components/modules/chat/ChatList.js +51 -51
  29. package/dist/components/modules/chat/ChatMessage.d.ts +11 -11
  30. package/dist/components/modules/chat/ChatMessage.js +6 -6
  31. package/dist/components/modules/chat/ChatNotes.js +11 -11
  32. package/dist/components/modules/community/GroupHeader.js +17 -17
  33. package/dist/components/modules/community/GroupMenu.js +16 -16
  34. package/dist/components/modules/community/SchoolCard.js +7 -7
  35. package/dist/components/modules/community/SurveyCard.js +35 -35
  36. package/dist/components/modules/forum/ForumBoard.d.ts +16 -16
  37. package/dist/components/modules/forum/ForumBoard.js +6 -6
  38. package/dist/components/modules/forum/ForumPost.d.ts +13 -13
  39. package/dist/components/modules/forum/ForumPost.js +5 -5
  40. package/dist/components/modules/forum/NewTopicModal.d.ts +7 -7
  41. package/dist/components/modules/forum/NewTopicModal.js +26 -26
  42. package/dist/components/modules/forum/TopicItem.d.ts +15 -15
  43. package/dist/components/modules/forum/TopicItem.js +6 -6
  44. package/dist/components/modules/galleries/GalleryCard.d.ts +9 -9
  45. package/dist/components/modules/galleries/GalleryCard.js +5 -5
  46. package/dist/components/modules/giveaways/GiveawayCard.d.ts +9 -9
  47. package/dist/components/modules/giveaways/GiveawayCard.js +6 -6
  48. package/dist/components/modules/groups/ApplicationModal.d.ts +7 -7
  49. package/dist/components/modules/groups/ApplicationModal.js +27 -27
  50. package/dist/components/modules/groups/GroupCard.d.ts +12 -12
  51. package/dist/components/modules/groups/GroupCard.js +6 -6
  52. package/dist/components/modules/guest/Introduction.js +13 -13
  53. package/dist/components/modules/magaza/BackToStore.js +10 -10
  54. package/dist/components/modules/magaza/StoreHeader.js +8 -8
  55. package/dist/components/modules/news/NewsCard.js +6 -6
  56. package/dist/components/modules/news/NewsComments.js +52 -52
  57. package/dist/components/modules/profile/CloudStorageModal.d.ts +8 -8
  58. package/dist/components/modules/profile/CloudStorageModal.js +31 -31
  59. package/dist/components/modules/profile/EditProfileModal.d.ts +8 -8
  60. package/dist/components/modules/profile/EditProfileModal.js +27 -27
  61. package/dist/components/modules/profile/ProfileContent.js +70 -70
  62. package/dist/components/modules/profile/ProfileHeader.js +19 -19
  63. package/dist/components/modules/profile/ProfileStats.d.ts +1 -1
  64. package/dist/components/modules/profile/ProfileStats.js +14 -14
  65. package/dist/components/modules/profile/TeamSelectorModal.js +16 -16
  66. package/dist/components/modules/stations/StationCard.js +25 -25
  67. package/dist/components/modules/stations/StationQRModal.js +12 -12
  68. package/dist/components/shared/FloatingChatButton.js +20 -20
  69. package/dist/components/shared/Footer.d.ts +1 -1
  70. package/dist/components/shared/Footer.js +9 -9
  71. package/dist/components/shared/Header.js +97 -97
  72. package/dist/components/shared/LoginModal.d.ts.map +1 -1
  73. package/dist/components/shared/LoginModal.js +12 -16
  74. package/dist/components/shared/LoginModal.js.map +1 -1
  75. package/dist/components/shared/MainLayoutWrapper.js +7 -7
  76. package/dist/components/shared/PageWidth.d.ts +5 -5
  77. package/dist/components/shared/PageWidth.js +13 -13
  78. package/dist/components/showcase/SocialTab.d.ts.map +1 -1
  79. package/dist/components/showcase/SocialTab.js +47 -2
  80. package/dist/components/showcase/SocialTab.js.map +1 -1
  81. package/dist/context/AuthContext.d.ts +1 -1
  82. package/dist/context/AuthContext.d.ts.map +1 -1
  83. package/dist/context/AuthContext.js +52 -33
  84. package/dist/context/AuthContext.js.map +1 -1
  85. package/dist/context/CartContext.js +63 -63
  86. package/dist/context/ChatContext.d.ts +12 -12
  87. package/dist/context/ChatContext.js +17 -17
  88. package/dist/context/LayoutContext.d.ts +10 -10
  89. package/dist/context/LayoutContext.js +16 -16
  90. package/dist/context/SocketContext.js +30 -30
  91. package/dist/context/ThemeContext.d.ts +10 -10
  92. package/dist/context/ThemeContext.js +39 -39
  93. package/dist/index.js +80 -80
  94. package/dist/lib/constants/educationData.js +117 -117
  95. package/dist/lib/constants/punishmentData.d.ts +29 -29
  96. package/dist/lib/constants/punishmentData.js +183 -183
  97. package/dist/lib/constants/seedData.js +694 -694
  98. package/dist/lib/constants/stationData.js +166 -166
  99. package/dist/lib/constants/surveyData.js +49 -49
  100. package/dist/lib/constants/teamData.js +65 -65
  101. package/dist/types/stats.d.ts +17 -17
  102. package/dist/types/stats.js +1 -1
  103. package/package.json +47 -46
  104. package/src/globals.css +187 -187
  105. package/next.config.ts +0 -13
  106. package/postcss.config.js +0 -6
  107. package/src/app/layout.tsx +0 -64
  108. package/src/app/page.tsx +0 -101
  109. package/src/components/Button.tsx +0 -41
  110. package/src/components/GenderStatsBar.tsx +0 -66
  111. package/src/components/RollingNumber.tsx +0 -50
  112. package/src/components/Slider.tsx +0 -114
  113. package/src/components/StatsGrid.tsx +0 -35
  114. package/src/components/ViewModeToggle.tsx +0 -39
  115. package/src/components/modules/auth/Dashboard.tsx +0 -649
  116. package/src/components/modules/auth/MediaLightbox.tsx +0 -112
  117. package/src/components/modules/auth/PostCard.tsx +0 -556
  118. package/src/components/modules/auth/PostInteractionsModal.tsx +0 -138
  119. package/src/components/modules/auth/RepostModal.tsx +0 -167
  120. package/src/components/modules/auth/SidebarLeft.tsx +0 -237
  121. package/src/components/modules/auth/Stories.tsx +0 -69
  122. package/src/components/modules/auth/StoryViewer.tsx +0 -146
  123. package/src/components/modules/chat/ChatContainer.tsx +0 -332
  124. package/src/components/modules/chat/ChatInput.tsx +0 -57
  125. package/src/components/modules/chat/ChatList.tsx +0 -179
  126. package/src/components/modules/chat/ChatMessage.tsx +0 -43
  127. package/src/components/modules/chat/ChatNotes.tsx +0 -58
  128. package/src/components/modules/community/GroupHeader.tsx +0 -111
  129. package/src/components/modules/community/GroupMenu.tsx +0 -82
  130. package/src/components/modules/community/SchoolCard.tsx +0 -104
  131. package/src/components/modules/community/SurveyCard.tsx +0 -149
  132. package/src/components/modules/forum/ForumBoard.tsx +0 -78
  133. package/src/components/modules/forum/ForumPost.tsx +0 -71
  134. package/src/components/modules/forum/NewTopicModal.tsx +0 -112
  135. package/src/components/modules/forum/TopicItem.tsx +0 -72
  136. package/src/components/modules/galleries/GalleryCard.tsx +0 -66
  137. package/src/components/modules/giveaways/GiveawayCard.tsx +0 -76
  138. package/src/components/modules/groups/ApplicationModal.tsx +0 -133
  139. package/src/components/modules/groups/GroupCard.tsx +0 -96
  140. package/src/components/modules/guest/Introduction.tsx +0 -60
  141. package/src/components/modules/magaza/BackToStore.tsx +0 -53
  142. package/src/components/modules/magaza/StoreHeader.tsx +0 -74
  143. package/src/components/modules/news/NewsCard.tsx +0 -66
  144. package/src/components/modules/news/NewsComments.tsx +0 -141
  145. package/src/components/modules/profile/CloudStorageModal.tsx +0 -200
  146. package/src/components/modules/profile/EditProfileModal.tsx +0 -191
  147. package/src/components/modules/profile/ProfileContent.tsx +0 -491
  148. package/src/components/modules/profile/ProfileHeader.tsx +0 -128
  149. package/src/components/modules/profile/ProfileStats.tsx +0 -72
  150. package/src/components/modules/profile/TeamSelectorModal.tsx +0 -129
  151. package/src/components/modules/stations/StationCard.tsx +0 -95
  152. package/src/components/modules/stations/StationQRModal.tsx +0 -102
  153. package/src/components/shared/FloatingChatButton.tsx +0 -57
  154. package/src/components/shared/Footer.tsx +0 -77
  155. package/src/components/shared/Header.tsx +0 -799
  156. package/src/components/shared/LoginModal.tsx +0 -208
  157. package/src/components/shared/MainLayoutWrapper.tsx +0 -15
  158. package/src/components/shared/PageWidth.tsx +0 -22
  159. package/src/components/showcase/CommunityTab.tsx +0 -22
  160. package/src/components/showcase/CorporateTab.tsx +0 -38
  161. package/src/components/showcase/GeneralTab.tsx +0 -41
  162. package/src/components/showcase/MessagesTab.tsx +0 -26
  163. package/src/components/showcase/ProfileTab.tsx +0 -20
  164. package/src/components/showcase/ShopTab.tsx +0 -24
  165. package/src/components/showcase/SocialTab.tsx +0 -28
  166. package/src/context/AuthContext.tsx +0 -104
  167. package/src/context/CartContext.tsx +0 -93
  168. package/src/context/ChatContext.tsx +0 -32
  169. package/src/context/LayoutContext.tsx +0 -29
  170. package/src/context/SocketContext.tsx +0 -50
  171. package/src/context/ThemeContext.tsx +0 -52
  172. package/src/index.ts +0 -96
  173. package/src/lib/constants/educationData.ts +0 -124
  174. package/src/lib/constants/punishmentData.ts +0 -201
  175. package/src/lib/constants/seedData.ts +0 -758
  176. package/src/lib/constants/stationData.ts +0 -170
  177. package/src/lib/constants/surveyData.ts +0 -53
  178. package/src/lib/constants/teamData.ts +0 -69
  179. package/src/lib/utils/numberFormat.ts +0 -16
  180. package/src/lib/utils/odpUtils.ts +0 -51
  181. package/src/types/index.ts +0 -1
  182. package/src/types/stats.ts +0 -17
package/dist/index.js CHANGED
@@ -1,81 +1,81 @@
1
- export * from './components/Button';
2
- export * from './components/Slider';
3
- export * from './components/RollingNumber';
4
- export * from './components/ViewModeToggle';
5
- export * from './components/GenderStatsBar';
6
- export * from './components/StatsGrid';
7
- // Contexts
8
- export * from './context/AuthContext';
9
- export * from './context/CartContext';
10
- export * from './context/ChatContext';
11
- export * from './context/LayoutContext';
12
- export * from './context/SocketContext';
13
- export * from './context/ThemeContext';
14
- // Types & Constants
15
- export * from './types';
16
- export * from './lib/constants/seedData';
17
- export * from './lib/constants/educationData';
18
- export * from './lib/constants/punishmentData';
19
- export * from './lib/constants/stationData';
20
- export * from './lib/constants/surveyData';
21
- export * from './lib/constants/teamData';
22
- export * from './lib/utils/odpUtils';
23
- // Shared Components
24
- export { Header } from './components/shared/Header';
25
- export { Footer } from './components/shared/Footer';
26
- export { LoginModal } from './components/shared/LoginModal';
27
- export { FloatingChatButton } from './components/shared/FloatingChatButton';
28
- export { MainLayoutWrapper } from './components/shared/MainLayoutWrapper';
29
- export { PageWidth } from './components/shared/PageWidth';
30
- // Auth Module
31
- export { Dashboard as AuthDashboard } from './components/modules/auth/Dashboard';
32
- export { Dashboard } from './components/modules/auth/Dashboard';
33
- export { PostCard } from './components/modules/auth/PostCard';
34
- export { PostInteractionsModal } from './components/modules/auth/PostInteractionsModal';
35
- export { RepostModal } from './components/modules/auth/RepostModal';
36
- export { SidebarLeft as AuthSidebarLeft } from './components/modules/auth/SidebarLeft';
37
- export { Stories } from './components/modules/auth/Stories';
38
- export { StoryViewer } from './components/modules/auth/StoryViewer';
39
- export { MediaLightbox } from './components/modules/auth/MediaLightbox';
40
- // Chat Module
41
- export { ChatContainer } from './components/modules/chat/ChatContainer';
42
- export { ChatInput } from './components/modules/chat/ChatInput';
43
- export { ChatList } from './components/modules/chat/ChatList';
44
- export { ChatMessage } from './components/modules/chat/ChatMessage';
45
- export { ChatNotes } from './components/modules/chat/ChatNotes';
46
- // Community Module
47
- export { GroupHeader } from './components/modules/community/GroupHeader';
48
- export { GroupMenu } from './components/modules/community/GroupMenu';
49
- export { SchoolCard } from './components/modules/community/SchoolCard';
50
- export { SurveyCard } from './components/modules/community/SurveyCard';
51
- // Forum Module
52
- export { ForumBoard } from './components/modules/forum/ForumBoard';
53
- export { ForumPost } from './components/modules/forum/ForumPost';
54
- export { NewTopicModal } from './components/modules/forum/NewTopicModal';
55
- export { TopicItem } from './components/modules/forum/TopicItem';
56
- // Galleries Module
57
- export { GalleryCard } from './components/modules/galleries/GalleryCard';
58
- // Giveaways Module
59
- export { GiveawayCard } from './components/modules/giveaways/GiveawayCard';
60
- // Groups Module
61
- export { GroupCard } from './components/modules/groups/GroupCard';
62
- export { ApplicationModal as GroupApplicationModal } from './components/modules/groups/ApplicationModal';
63
- // Guest Module
64
- export { Introduction } from './components/modules/guest/Introduction';
65
- // Magaza Module
66
- export { BackToStore } from './components/modules/magaza/BackToStore';
67
- export { StoreHeader } from './components/modules/magaza/StoreHeader';
68
- // News Module
69
- export { NewsCard } from './components/modules/news/NewsCard';
70
- export { NewsComments } from './components/modules/news/NewsComments';
71
- // Profile Module
72
- export { ProfileHeader } from './components/modules/profile/ProfileHeader';
73
- export { ProfileStats } from './components/modules/profile/ProfileStats';
74
- export { ProfileContent } from './components/modules/profile/ProfileContent';
75
- export { EditProfileModal } from './components/modules/profile/EditProfileModal';
76
- export { TeamSelectorModal } from './components/modules/profile/TeamSelectorModal';
77
- export { CloudStorageModal } from './components/modules/profile/CloudStorageModal';
78
- // Stations Module
79
- export { StationCard } from './components/modules/stations/StationCard';
80
- export { StationQRModal } from './components/modules/stations/StationQRModal';
1
+ export * from './components/Button';
2
+ export * from './components/Slider';
3
+ export * from './components/RollingNumber';
4
+ export * from './components/ViewModeToggle';
5
+ export * from './components/GenderStatsBar';
6
+ export * from './components/StatsGrid';
7
+ // Contexts
8
+ export * from './context/AuthContext';
9
+ export * from './context/CartContext';
10
+ export * from './context/ChatContext';
11
+ export * from './context/LayoutContext';
12
+ export * from './context/SocketContext';
13
+ export * from './context/ThemeContext';
14
+ // Types & Constants
15
+ export * from './types';
16
+ export * from './lib/constants/seedData';
17
+ export * from './lib/constants/educationData';
18
+ export * from './lib/constants/punishmentData';
19
+ export * from './lib/constants/stationData';
20
+ export * from './lib/constants/surveyData';
21
+ export * from './lib/constants/teamData';
22
+ export * from './lib/utils/odpUtils';
23
+ // Shared Components
24
+ export { Header } from './components/shared/Header';
25
+ export { Footer } from './components/shared/Footer';
26
+ export { LoginModal } from './components/shared/LoginModal';
27
+ export { FloatingChatButton } from './components/shared/FloatingChatButton';
28
+ export { MainLayoutWrapper } from './components/shared/MainLayoutWrapper';
29
+ export { PageWidth } from './components/shared/PageWidth';
30
+ // Auth Module
31
+ export { Dashboard as AuthDashboard } from './components/modules/auth/Dashboard';
32
+ export { Dashboard } from './components/modules/auth/Dashboard';
33
+ export { PostCard } from './components/modules/auth/PostCard';
34
+ export { PostInteractionsModal } from './components/modules/auth/PostInteractionsModal';
35
+ export { RepostModal } from './components/modules/auth/RepostModal';
36
+ export { SidebarLeft as AuthSidebarLeft } from './components/modules/auth/SidebarLeft';
37
+ export { Stories } from './components/modules/auth/Stories';
38
+ export { StoryViewer } from './components/modules/auth/StoryViewer';
39
+ export { MediaLightbox } from './components/modules/auth/MediaLightbox';
40
+ // Chat Module
41
+ export { ChatContainer } from './components/modules/chat/ChatContainer';
42
+ export { ChatInput } from './components/modules/chat/ChatInput';
43
+ export { ChatList } from './components/modules/chat/ChatList';
44
+ export { ChatMessage } from './components/modules/chat/ChatMessage';
45
+ export { ChatNotes } from './components/modules/chat/ChatNotes';
46
+ // Community Module
47
+ export { GroupHeader } from './components/modules/community/GroupHeader';
48
+ export { GroupMenu } from './components/modules/community/GroupMenu';
49
+ export { SchoolCard } from './components/modules/community/SchoolCard';
50
+ export { SurveyCard } from './components/modules/community/SurveyCard';
51
+ // Forum Module
52
+ export { ForumBoard } from './components/modules/forum/ForumBoard';
53
+ export { ForumPost } from './components/modules/forum/ForumPost';
54
+ export { NewTopicModal } from './components/modules/forum/NewTopicModal';
55
+ export { TopicItem } from './components/modules/forum/TopicItem';
56
+ // Galleries Module
57
+ export { GalleryCard } from './components/modules/galleries/GalleryCard';
58
+ // Giveaways Module
59
+ export { GiveawayCard } from './components/modules/giveaways/GiveawayCard';
60
+ // Groups Module
61
+ export { GroupCard } from './components/modules/groups/GroupCard';
62
+ export { ApplicationModal as GroupApplicationModal } from './components/modules/groups/ApplicationModal';
63
+ // Guest Module
64
+ export { Introduction } from './components/modules/guest/Introduction';
65
+ // Magaza Module
66
+ export { BackToStore } from './components/modules/magaza/BackToStore';
67
+ export { StoreHeader } from './components/modules/magaza/StoreHeader';
68
+ // News Module
69
+ export { NewsCard } from './components/modules/news/NewsCard';
70
+ export { NewsComments } from './components/modules/news/NewsComments';
71
+ // Profile Module
72
+ export { ProfileHeader } from './components/modules/profile/ProfileHeader';
73
+ export { ProfileStats } from './components/modules/profile/ProfileStats';
74
+ export { ProfileContent } from './components/modules/profile/ProfileContent';
75
+ export { EditProfileModal } from './components/modules/profile/EditProfileModal';
76
+ export { TeamSelectorModal } from './components/modules/profile/TeamSelectorModal';
77
+ export { CloudStorageModal } from './components/modules/profile/CloudStorageModal';
78
+ // Stations Module
79
+ export { StationCard } from './components/modules/stations/StationCard';
80
+ export { StationQRModal } from './components/modules/stations/StationQRModal';
81
81
  //# sourceMappingURL=index.js.map
@@ -1,118 +1,118 @@
1
- import { School, Faculty, Classroom, SchoolTeam } from '@armoyu/core';
2
- export const MOCK_EDUCATION_DATA = (userList) => {
3
- // 1. School Teams (Traditional & Esports)
4
- const teams = [
5
- new SchoolTeam({
6
- id: 'st1',
7
- name: 'ARMOYU CS2 Team',
8
- gameOrSport: 'Counter-Strike 2',
9
- type: 'ESPORTS',
10
- schoolId: 'sch1',
11
- captain: userList[0]
12
- }),
13
- new SchoolTeam({
14
- id: 'st2',
15
- name: 'UAV Football Varsity',
16
- gameOrSport: 'Football',
17
- type: 'TRADITIONAL_SPORTS',
18
- schoolId: 'sch1',
19
- captain: userList[11]
20
- }),
21
- new SchoolTeam({
22
- id: 'st3',
23
- name: 'Code Masters LoL',
24
- gameOrSport: 'League of Legends',
25
- type: 'ESPORTS',
26
- schoolId: 'sch2',
27
- captain: userList[1]
28
- })
29
- ];
30
- // 2. Faculties
31
- const faculties = [
32
- new Faculty({ id: 'f1', name: 'Mühendislik Fakültesi', schoolId: 'sch1', representative: userList[14] }),
33
- new Faculty({ id: 'f2', name: 'İktisadi ve İdari Bilimler Fakültesi', schoolId: 'sch1', representative: userList[12] }),
34
- new Faculty({ id: 'f3', name: 'Fen Edebiyat Fakültesi', schoolId: 'sch2', representative: userList[3] })
35
- ];
36
- // 3. Classrooms
37
- const classrooms = [
38
- new Classroom({ id: 'c1', name: 'Web Geliştirme 101', schoolId: 'sch1', teacher: userList[0], password: 'armoyu_learn' }),
39
- new Classroom({ id: 'c2', name: 'Algoritma ve Veri Yapıları', schoolId: 'sch1', teacher: userList[14] }),
40
- new Classroom({ id: 'c3', name: 'Dijital Tasarım', schoolId: 'sch2', teacher: userList[1] })
41
- ];
42
- // 4. Schools
43
- const schools = [
44
- new School({
45
- id: 'sch1',
46
- name: 'İstanbul Teknik Üniversitesi',
47
- slug: 'itu',
48
- logo: 'https://upload.wikimedia.org/wikipedia/tr/a/ae/%C4%B0T%C3%9C_Logo.png',
49
- representative: userList[0],
50
- faculties: faculties.filter(f => f.schoolId === 'sch1'),
51
- teams: teams.filter(t => t.schoolId === 'sch1'),
52
- classrooms: classrooms.filter(cl => cl.schoolId === 'sch1'),
53
- memberCount: 1250
54
- }),
55
- new School({
56
- id: 'sch2',
57
- name: 'Boğaziçi Üniversitesi',
58
- slug: 'bogazici',
59
- logo: 'https://upload.wikimedia.org/wikipedia/tr/b/b3/Bo%C4%9Fazi%C3%A7i_%C3%9Cniversitesi_Logosu.png',
60
- representative: userList[1],
61
- faculties: faculties.filter(f => f.schoolId === 'sch2'),
62
- teams: teams.filter(t => t.schoolId === 'sch2'),
63
- classrooms: classrooms.filter(cl => cl.schoolId === 'sch2'),
64
- memberCount: 890
65
- }),
66
- new School({
67
- id: 'sch3',
68
- name: 'Sivas Cumhuriyet Üniversitesi',
69
- slug: 'cumhuriyet',
70
- logo: 'https://upload.wikimedia.org/wikipedia/tr/a/ac/Cumhuriyet_%C3%9Cniversitesi_Logosu.png',
71
- representative: userList[2],
72
- faculties: [
73
- new Faculty({ id: 'f4', name: 'Tıp Fakültesi', schoolId: 'sch3', representative: userList[4] }),
74
- new Faculty({ id: 'f5', name: 'Eğitim Fakültesi', schoolId: 'sch3', representative: userList[5] })
75
- ],
76
- teams: [
77
- new SchoolTeam({ id: 'st4', name: 'CU Eagles Volleyball', gameOrSport: 'Volleyball', type: 'TRADITIONAL_SPORTS', schoolId: 'sch3', captain: userList[2] }),
78
- new SchoolTeam({ id: 'st5', name: 'CU Valorant', gameOrSport: 'Valorant', type: 'ESPORTS', schoolId: 'sch3', captain: userList[4] })
79
- ],
80
- classrooms: [
81
- new Classroom({ id: 'c4', name: 'Temel Programlama', schoolId: 'sch3', teacher: userList[2] })
82
- ],
83
- memberCount: 2100
84
- }),
85
- new School({
86
- id: 'sch4',
87
- name: 'Tokat Gaziosmanpaşa Üniversitesi',
88
- slug: 'gop',
89
- logo: 'https://upload.wikimedia.org/wikipedia/tr/5/5e/Tokat_Gaziosmanpa%C5%9Fa_%C3%9Cniversitesi_Logosu.png',
90
- representative: userList[3],
91
- faculties: [
92
- new Faculty({ id: 'f6', name: 'Ziraat Fakültesi', schoolId: 'sch4', representative: userList[3] })
93
- ],
94
- teams: [
95
- new SchoolTeam({ id: 'st6', name: 'GOP Football', gameOrSport: 'Football', type: 'TRADITIONAL_SPORTS', schoolId: 'sch4', captain: userList[3] })
96
- ],
97
- classrooms: [],
98
- memberCount: 1450
99
- }),
100
- new School({
101
- id: 'sch5',
102
- name: 'Samsun Ondokuz Mayıs Üniversitesi',
103
- slug: 'omu',
104
- logo: 'https://upload.wikimedia.org/wikipedia/tr/6/6d/Ondokuz_May%C4%B1s_%C3%9Cniversitesi_Logosu.png',
105
- representative: userList[10],
106
- faculties: [
107
- new Faculty({ id: 'f7', name: 'Hukuk Fakültesi', schoolId: 'sch5', representative: userList[10] })
108
- ],
109
- teams: [
110
- new SchoolTeam({ id: 'st7', name: 'OMU Cyber Sports', gameOrSport: 'DotA 2', type: 'ESPORTS', schoolId: 'sch5', captain: userList[11] })
111
- ],
112
- classrooms: [],
113
- memberCount: 3200
114
- })
115
- ];
116
- return { schools, faculties, teams, classrooms };
117
- };
1
+ import { School, Faculty, Classroom, SchoolTeam } from '@armoyu/core';
2
+ export const MOCK_EDUCATION_DATA = (userList) => {
3
+ // 1. School Teams (Traditional & Esports)
4
+ const teams = [
5
+ new SchoolTeam({
6
+ id: 'st1',
7
+ name: 'ARMOYU CS2 Team',
8
+ gameOrSport: 'Counter-Strike 2',
9
+ type: 'ESPORTS',
10
+ schoolId: 'sch1',
11
+ captain: userList[0]
12
+ }),
13
+ new SchoolTeam({
14
+ id: 'st2',
15
+ name: 'UAV Football Varsity',
16
+ gameOrSport: 'Football',
17
+ type: 'TRADITIONAL_SPORTS',
18
+ schoolId: 'sch1',
19
+ captain: userList[11]
20
+ }),
21
+ new SchoolTeam({
22
+ id: 'st3',
23
+ name: 'Code Masters LoL',
24
+ gameOrSport: 'League of Legends',
25
+ type: 'ESPORTS',
26
+ schoolId: 'sch2',
27
+ captain: userList[1]
28
+ })
29
+ ];
30
+ // 2. Faculties
31
+ const faculties = [
32
+ new Faculty({ id: 'f1', name: 'Mühendislik Fakültesi', schoolId: 'sch1', representative: userList[14] }),
33
+ new Faculty({ id: 'f2', name: 'İktisadi ve İdari Bilimler Fakültesi', schoolId: 'sch1', representative: userList[12] }),
34
+ new Faculty({ id: 'f3', name: 'Fen Edebiyat Fakültesi', schoolId: 'sch2', representative: userList[3] })
35
+ ];
36
+ // 3. Classrooms
37
+ const classrooms = [
38
+ new Classroom({ id: 'c1', name: 'Web Geliştirme 101', schoolId: 'sch1', teacher: userList[0], password: 'armoyu_learn' }),
39
+ new Classroom({ id: 'c2', name: 'Algoritma ve Veri Yapıları', schoolId: 'sch1', teacher: userList[14] }),
40
+ new Classroom({ id: 'c3', name: 'Dijital Tasarım', schoolId: 'sch2', teacher: userList[1] })
41
+ ];
42
+ // 4. Schools
43
+ const schools = [
44
+ new School({
45
+ id: 'sch1',
46
+ name: 'İstanbul Teknik Üniversitesi',
47
+ slug: 'itu',
48
+ logo: 'https://upload.wikimedia.org/wikipedia/tr/a/ae/%C4%B0T%C3%9C_Logo.png',
49
+ representative: userList[0],
50
+ faculties: faculties.filter(f => f.schoolId === 'sch1'),
51
+ teams: teams.filter(t => t.schoolId === 'sch1'),
52
+ classrooms: classrooms.filter(cl => cl.schoolId === 'sch1'),
53
+ memberCount: 1250
54
+ }),
55
+ new School({
56
+ id: 'sch2',
57
+ name: 'Boğaziçi Üniversitesi',
58
+ slug: 'bogazici',
59
+ logo: 'https://upload.wikimedia.org/wikipedia/tr/b/b3/Bo%C4%9Fazi%C3%A7i_%C3%9Cniversitesi_Logosu.png',
60
+ representative: userList[1],
61
+ faculties: faculties.filter(f => f.schoolId === 'sch2'),
62
+ teams: teams.filter(t => t.schoolId === 'sch2'),
63
+ classrooms: classrooms.filter(cl => cl.schoolId === 'sch2'),
64
+ memberCount: 890
65
+ }),
66
+ new School({
67
+ id: 'sch3',
68
+ name: 'Sivas Cumhuriyet Üniversitesi',
69
+ slug: 'cumhuriyet',
70
+ logo: 'https://upload.wikimedia.org/wikipedia/tr/a/ac/Cumhuriyet_%C3%9Cniversitesi_Logosu.png',
71
+ representative: userList[2],
72
+ faculties: [
73
+ new Faculty({ id: 'f4', name: 'Tıp Fakültesi', schoolId: 'sch3', representative: userList[4] }),
74
+ new Faculty({ id: 'f5', name: 'Eğitim Fakültesi', schoolId: 'sch3', representative: userList[5] })
75
+ ],
76
+ teams: [
77
+ new SchoolTeam({ id: 'st4', name: 'CU Eagles Volleyball', gameOrSport: 'Volleyball', type: 'TRADITIONAL_SPORTS', schoolId: 'sch3', captain: userList[2] }),
78
+ new SchoolTeam({ id: 'st5', name: 'CU Valorant', gameOrSport: 'Valorant', type: 'ESPORTS', schoolId: 'sch3', captain: userList[4] })
79
+ ],
80
+ classrooms: [
81
+ new Classroom({ id: 'c4', name: 'Temel Programlama', schoolId: 'sch3', teacher: userList[2] })
82
+ ],
83
+ memberCount: 2100
84
+ }),
85
+ new School({
86
+ id: 'sch4',
87
+ name: 'Tokat Gaziosmanpaşa Üniversitesi',
88
+ slug: 'gop',
89
+ logo: 'https://upload.wikimedia.org/wikipedia/tr/5/5e/Tokat_Gaziosmanpa%C5%9Fa_%C3%9Cniversitesi_Logosu.png',
90
+ representative: userList[3],
91
+ faculties: [
92
+ new Faculty({ id: 'f6', name: 'Ziraat Fakültesi', schoolId: 'sch4', representative: userList[3] })
93
+ ],
94
+ teams: [
95
+ new SchoolTeam({ id: 'st6', name: 'GOP Football', gameOrSport: 'Football', type: 'TRADITIONAL_SPORTS', schoolId: 'sch4', captain: userList[3] })
96
+ ],
97
+ classrooms: [],
98
+ memberCount: 1450
99
+ }),
100
+ new School({
101
+ id: 'sch5',
102
+ name: 'Samsun Ondokuz Mayıs Üniversitesi',
103
+ slug: 'omu',
104
+ logo: 'https://upload.wikimedia.org/wikipedia/tr/6/6d/Ondokuz_May%C4%B1s_%C3%9Cniversitesi_Logosu.png',
105
+ representative: userList[10],
106
+ faculties: [
107
+ new Faculty({ id: 'f7', name: 'Hukuk Fakültesi', schoolId: 'sch5', representative: userList[10] })
108
+ ],
109
+ teams: [
110
+ new SchoolTeam({ id: 'st7', name: 'OMU Cyber Sports', gameOrSport: 'DotA 2', type: 'ESPORTS', schoolId: 'sch5', captain: userList[11] })
111
+ ],
112
+ classrooms: [],
113
+ memberCount: 3200
114
+ })
115
+ ];
116
+ return { schools, faculties, teams, classrooms };
117
+ };
118
118
  //# sourceMappingURL=educationData.js.map
@@ -1,30 +1,30 @@
1
- export type RestrictionType = 'CHAT_BAN' | 'POST_BAN' | 'PROFILE_EDIT_BAN' | 'LOGIN_BAN' | 'PERMANENT_BAN';
2
- export type RuleCategory = 'SOHBET' | 'GÜVENLİK' | 'İÇERİK' | 'HESAP' | 'ETKİNLİK';
3
- export interface PunishmentRule {
4
- id: string;
5
- article: string;
6
- name: string;
7
- category: RuleCategory;
8
- description: string;
9
- duration: number;
10
- restrictions: RestrictionType[];
11
- severity: 'low' | 'medium' | 'high' | 'critical';
12
- isMajor?: boolean;
13
- }
14
- export declare const PUNISHMENT_RULES: PunishmentRule[];
15
- export declare const getRestrictionLabel: (type: RestrictionType) => string;
16
- /**
17
- * Calculates the escalated duration based on the number of previous punishments.
18
- * Formula: base * multiplier
19
- */
20
- export declare const calculateEscalatedDuration: (baseDuration: number, punishmentCount: number) => number;
21
- /**
22
- * Returns the community compliance level details based on involvement count.
23
- */
24
- export declare const getCommunityComplianceLevel: (count: number) => {
25
- label: string;
26
- color: string;
27
- multiplier: number;
28
- severity: string;
29
- };
1
+ export type RestrictionType = 'CHAT_BAN' | 'POST_BAN' | 'PROFILE_EDIT_BAN' | 'LOGIN_BAN' | 'PERMANENT_BAN';
2
+ export type RuleCategory = 'SOHBET' | 'GÜVENLİK' | 'İÇERİK' | 'HESAP' | 'ETKİNLİK';
3
+ export interface PunishmentRule {
4
+ id: string;
5
+ article: string;
6
+ name: string;
7
+ category: RuleCategory;
8
+ description: string;
9
+ duration: number;
10
+ restrictions: RestrictionType[];
11
+ severity: 'low' | 'medium' | 'high' | 'critical';
12
+ isMajor?: boolean;
13
+ }
14
+ export declare const PUNISHMENT_RULES: PunishmentRule[];
15
+ export declare const getRestrictionLabel: (type: RestrictionType) => string;
16
+ /**
17
+ * Calculates the escalated duration based on the number of previous punishments.
18
+ * Formula: base * multiplier
19
+ */
20
+ export declare const calculateEscalatedDuration: (baseDuration: number, punishmentCount: number) => number;
21
+ /**
22
+ * Returns the community compliance level details based on involvement count.
23
+ */
24
+ export declare const getCommunityComplianceLevel: (count: number) => {
25
+ label: string;
26
+ color: string;
27
+ multiplier: number;
28
+ severity: string;
29
+ };
30
30
  //# sourceMappingURL=punishmentData.d.ts.map