@armoyu/ui 1.0.1 → 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.
- package/dist/app/api/proxy/[...path]/route.d.ts +22 -0
- package/dist/app/api/proxy/[...path]/route.d.ts.map +1 -0
- package/dist/app/api/proxy/[...path]/route.js +89 -0
- package/dist/app/api/proxy/[...path]/route.js.map +1 -0
- package/dist/app/layout.d.ts.map +1 -1
- package/dist/app/layout.js +2 -5
- package/dist/app/layout.js.map +1 -1
- package/dist/components/RollingNumber.d.ts +6 -6
- package/dist/components/RollingNumber.js +23 -23
- package/dist/components/RollingNumber.js.map +1 -1
- package/dist/components/StatsGrid.d.ts +5 -5
- package/dist/components/modules/auth/Dashboard.d.ts +1 -1
- package/dist/components/modules/auth/PostCard.d.ts +24 -24
- package/dist/components/modules/auth/PostInteractionsModal.d.ts +11 -11
- package/dist/components/modules/auth/RepostModal.d.ts +21 -21
- package/dist/components/modules/auth/SidebarLeft.d.ts +1 -1
- package/dist/components/modules/auth/Stories.d.ts +1 -1
- package/dist/components/modules/auth/StoryViewer.d.ts +9 -9
- package/dist/components/modules/chat/ChatContainer.d.ts +1 -1
- package/dist/components/modules/chat/ChatInput.d.ts +4 -4
- package/dist/components/modules/chat/ChatList.d.ts +6 -6
- package/dist/components/modules/chat/ChatNotes.d.ts +1 -1
- package/dist/components/modules/community/GroupHeader.d.ts +10 -10
- package/dist/components/modules/community/GroupMenu.d.ts +9 -9
- package/dist/components/modules/community/SchoolCard.d.ts +6 -6
- package/dist/components/modules/community/SurveyCard.d.ts +6 -6
- package/dist/components/modules/guest/Introduction.d.ts +1 -1
- package/dist/components/modules/magaza/BackToStore.d.ts +1 -1
- package/dist/components/modules/magaza/StoreHeader.d.ts +5 -5
- package/dist/components/modules/news/NewsCard.d.ts +11 -11
- package/dist/components/modules/news/NewsComments.d.ts +1 -1
- package/dist/components/modules/profile/ProfileContent.d.ts +4 -4
- package/dist/components/modules/profile/ProfileHeader.d.ts +7 -7
- package/dist/components/modules/profile/ProfileStats.d.ts +1 -1
- package/dist/components/modules/profile/ProfileStats.js +14 -14
- package/dist/components/modules/profile/ProfileStats.js.map +1 -1
- package/dist/components/modules/profile/TeamSelectorModal.d.ts +10 -10
- package/dist/components/modules/stations/StationCard.d.ts +2 -2
- package/dist/components/modules/stations/StationQRModal.d.ts +9 -9
- package/dist/components/shared/FloatingChatButton.d.ts +4 -4
- package/dist/components/shared/Header.d.ts +1 -1
- package/dist/components/shared/LoginModal.d.ts +4 -4
- package/dist/components/shared/LoginModal.d.ts.map +1 -1
- package/dist/components/shared/LoginModal.js +65 -69
- package/dist/components/shared/LoginModal.js.map +1 -1
- package/dist/components/shared/MainLayoutWrapper.d.ts +3 -3
- package/dist/components/showcase/SocialTab.d.ts.map +1 -1
- package/dist/components/showcase/SocialTab.js +47 -2
- package/dist/components/showcase/SocialTab.js.map +1 -1
- package/dist/context/AuthContext.d.ts +18 -18
- package/dist/context/AuthContext.d.ts.map +1 -1
- package/dist/context/AuthContext.js +93 -74
- package/dist/context/AuthContext.js.map +1 -1
- package/dist/context/CartContext.d.ts +16 -16
- package/dist/context/SocketContext.d.ts +12 -12
- package/dist/index.d.ts +65 -65
- package/dist/lib/constants/educationData.d.ts +7 -7
- package/dist/lib/constants/seedData.d.ts +164 -164
- package/dist/lib/constants/stationData.d.ts +13 -13
- package/dist/lib/constants/surveyData.d.ts +2 -2
- package/dist/lib/constants/teamData.d.ts +12 -12
- package/package.json +13 -11
- package/next.config.ts +0 -13
- package/postcss.config.js +0 -6
- package/src/app/layout.tsx +0 -67
- package/src/app/page.tsx +0 -101
- package/src/components/Button.tsx +0 -41
- package/src/components/GenderStatsBar.tsx +0 -66
- package/src/components/RollingNumber.tsx +0 -50
- package/src/components/Slider.tsx +0 -114
- package/src/components/StatsGrid.tsx +0 -35
- package/src/components/ViewModeToggle.tsx +0 -39
- package/src/components/modules/auth/Dashboard.tsx +0 -649
- package/src/components/modules/auth/MediaLightbox.tsx +0 -112
- package/src/components/modules/auth/PostCard.tsx +0 -556
- package/src/components/modules/auth/PostInteractionsModal.tsx +0 -138
- package/src/components/modules/auth/RepostModal.tsx +0 -167
- package/src/components/modules/auth/SidebarLeft.tsx +0 -237
- package/src/components/modules/auth/Stories.tsx +0 -69
- package/src/components/modules/auth/StoryViewer.tsx +0 -146
- package/src/components/modules/chat/ChatContainer.tsx +0 -332
- package/src/components/modules/chat/ChatInput.tsx +0 -57
- package/src/components/modules/chat/ChatList.tsx +0 -179
- package/src/components/modules/chat/ChatMessage.tsx +0 -43
- package/src/components/modules/chat/ChatNotes.tsx +0 -58
- package/src/components/modules/community/GroupHeader.tsx +0 -111
- package/src/components/modules/community/GroupMenu.tsx +0 -82
- package/src/components/modules/community/SchoolCard.tsx +0 -104
- package/src/components/modules/community/SurveyCard.tsx +0 -149
- package/src/components/modules/forum/ForumBoard.tsx +0 -78
- package/src/components/modules/forum/ForumPost.tsx +0 -71
- package/src/components/modules/forum/NewTopicModal.tsx +0 -112
- package/src/components/modules/forum/TopicItem.tsx +0 -72
- package/src/components/modules/galleries/GalleryCard.tsx +0 -66
- package/src/components/modules/giveaways/GiveawayCard.tsx +0 -76
- package/src/components/modules/groups/ApplicationModal.tsx +0 -133
- package/src/components/modules/groups/GroupCard.tsx +0 -96
- package/src/components/modules/guest/Introduction.tsx +0 -60
- package/src/components/modules/magaza/BackToStore.tsx +0 -53
- package/src/components/modules/magaza/StoreHeader.tsx +0 -74
- package/src/components/modules/news/NewsCard.tsx +0 -66
- package/src/components/modules/news/NewsComments.tsx +0 -141
- package/src/components/modules/profile/CloudStorageModal.tsx +0 -200
- package/src/components/modules/profile/EditProfileModal.tsx +0 -191
- package/src/components/modules/profile/ProfileContent.tsx +0 -491
- package/src/components/modules/profile/ProfileHeader.tsx +0 -128
- package/src/components/modules/profile/ProfileStats.tsx +0 -72
- package/src/components/modules/profile/TeamSelectorModal.tsx +0 -129
- package/src/components/modules/stations/StationCard.tsx +0 -95
- package/src/components/modules/stations/StationQRModal.tsx +0 -102
- package/src/components/shared/FloatingChatButton.tsx +0 -57
- package/src/components/shared/Footer.tsx +0 -77
- package/src/components/shared/Header.tsx +0 -799
- package/src/components/shared/LoginModal.tsx +0 -208
- package/src/components/shared/MainLayoutWrapper.tsx +0 -15
- package/src/components/shared/PageWidth.tsx +0 -22
- package/src/components/showcase/CommunityTab.tsx +0 -22
- package/src/components/showcase/CorporateTab.tsx +0 -38
- package/src/components/showcase/GeneralTab.tsx +0 -41
- package/src/components/showcase/MessagesTab.tsx +0 -26
- package/src/components/showcase/ProfileTab.tsx +0 -20
- package/src/components/showcase/ShopTab.tsx +0 -24
- package/src/components/showcase/SocialTab.tsx +0 -28
- package/src/context/AuthContext.tsx +0 -104
- package/src/context/CartContext.tsx +0 -93
- package/src/context/ChatContext.tsx +0 -32
- package/src/context/LayoutContext.tsx +0 -29
- package/src/context/SocketContext.tsx +0 -50
- package/src/context/ThemeContext.tsx +0 -52
- package/src/index.ts +0 -96
- package/src/lib/constants/educationData.ts +0 -124
- package/src/lib/constants/punishmentData.ts +0 -201
- package/src/lib/constants/seedData.ts +0 -758
- package/src/lib/constants/stationData.ts +0 -170
- package/src/lib/constants/surveyData.ts +0 -53
- package/src/lib/constants/teamData.ts +0 -69
- package/src/lib/utils/numberFormat.ts +0 -16
- package/src/lib/utils/odpUtils.ts +0 -51
- package/src/types/index.ts +0 -1
- package/src/types/stats.ts +0 -17
|
@@ -1,165 +1,165 @@
|
|
|
1
|
-
import { User, Post, Role, Group, Product, Note, Story, News, Mod, Forum, Giveaway, Project, Survey, School, Faculty, Classroom, SchoolTeam, Session } from '@armoyu/core';
|
|
2
|
-
import { GlobalStats } from '../../types';
|
|
3
|
-
export * from './stationData';
|
|
4
|
-
export * from './surveyData';
|
|
5
|
-
export * from './educationData';
|
|
6
|
-
/**
|
|
7
|
-
* Common Roles
|
|
8
|
-
*/
|
|
9
|
-
export declare const roles: {
|
|
10
|
-
admin: Role;
|
|
11
|
-
memberMgmt: Role;
|
|
12
|
-
discipline: Role;
|
|
13
|
-
eventMgmt: Role;
|
|
14
|
-
assettoOfficial: Role;
|
|
15
|
-
mcOfficial: Role;
|
|
16
|
-
responsible: Role;
|
|
17
|
-
gameDev: Role;
|
|
18
|
-
softwareDev: Role;
|
|
19
|
-
frontendDev: Role;
|
|
20
|
-
backendDev: Role;
|
|
21
|
-
fullstackDev: Role;
|
|
22
|
-
streamerContent: Role;
|
|
23
|
-
streamerGaming: Role;
|
|
24
|
-
streamer: Role;
|
|
25
|
-
esports: Role;
|
|
26
|
-
user: Role;
|
|
27
|
-
qualified: Role;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Seed data for Groups (Guilds/Communities)
|
|
31
|
-
*/
|
|
32
|
-
export declare const groupList: Group[];
|
|
33
|
-
/**
|
|
34
|
-
* Seed data for users (Team Members)
|
|
35
|
-
*/
|
|
36
|
-
export declare const userList: User[];
|
|
37
|
-
export declare const MOCK_SURVEYS: Survey[];
|
|
38
|
-
export declare const surveyList: Survey[];
|
|
39
|
-
export declare const schoolList: School[];
|
|
40
|
-
export declare const facultyList: Faculty[];
|
|
41
|
-
export declare const schoolTeamList: SchoolTeam[];
|
|
42
|
-
export declare const classroomList: Classroom[];
|
|
43
|
-
/**
|
|
44
|
-
* Seed data for posts
|
|
45
|
-
*/
|
|
46
|
-
export declare const postList: Post[];
|
|
47
|
-
/**
|
|
48
|
-
* Mock Session for Auto-Login
|
|
49
|
-
* notifications and chatList live on Session, not User.
|
|
50
|
-
*/
|
|
51
|
-
export declare const MOCK_SESSION: Session;
|
|
52
|
-
/**
|
|
53
|
-
* Shop & News Mock Data (Migrated from mockData.ts)
|
|
54
|
-
*/
|
|
55
|
-
export declare const MOCK_PRODUCTS: Product[];
|
|
56
|
-
export declare const MOCK_NEWS: News[];
|
|
57
|
-
export declare const newsList: News[];
|
|
58
|
-
export declare const MOCK_NOTES: Note[];
|
|
59
|
-
/**
|
|
60
|
-
* Global Statistics (Migrated from mockData.ts)
|
|
61
|
-
*/
|
|
62
|
-
export declare const mockGlobalStats: GlobalStats;
|
|
63
|
-
/**
|
|
64
|
-
* Rankings (Derived from userList)
|
|
65
|
-
*/
|
|
66
|
-
export declare const MOCK_RANKING_LEVEL: User[];
|
|
67
|
-
export declare const MOCK_RANKING_POPULARITY: User[];
|
|
68
|
-
/**
|
|
69
|
-
* Stories Mock Data (Migrated and Reconstructed)
|
|
70
|
-
*/
|
|
71
|
-
export declare const MOCK_STORIES: Story[];
|
|
72
|
-
/**
|
|
73
|
-
* Game Mods Mock Data
|
|
74
|
-
*/
|
|
75
|
-
export declare const MOCK_MODS: Mod[];
|
|
76
|
-
/**
|
|
77
|
-
* Forum Categories Mock Data
|
|
78
|
-
*/
|
|
79
|
-
export declare const MOCK_FORUM_CATEGORIES: {
|
|
80
|
-
title: string;
|
|
81
|
-
boards: Forum[];
|
|
82
|
-
}[];
|
|
83
|
-
/**
|
|
84
|
-
* Giveaways Mock Data
|
|
85
|
-
*/
|
|
86
|
-
export declare const MOCK_GIVEAWAYS: Giveaway[];
|
|
87
|
-
export declare const giveawayList: Giveaway[];
|
|
88
|
-
/**
|
|
89
|
-
* Mock Projects Data
|
|
90
|
-
*/
|
|
91
|
-
export declare const MOCK_PROJECTS: Project[];
|
|
92
|
-
export declare const projectList: Project[];
|
|
93
|
-
export declare const sessionList: Session[];
|
|
94
|
-
export declare const armoyuProjects: Project[];
|
|
95
|
-
export declare const armoyuGiveaways: Giveaway[];
|
|
96
|
-
/**
|
|
97
|
-
* Forum Topics Mock Data
|
|
98
|
-
*/
|
|
99
|
-
export declare const MOCK_FORUM_TOPICS: ({
|
|
100
|
-
id: string;
|
|
101
|
-
boardId: string;
|
|
102
|
-
title: string;
|
|
103
|
-
author: string;
|
|
104
|
-
authorAvatar: string;
|
|
105
|
-
replies: number;
|
|
106
|
-
views: number;
|
|
107
|
-
lastActivity: string;
|
|
108
|
-
lastAuthor: string;
|
|
109
|
-
isPinned: boolean;
|
|
110
|
-
isHot: boolean;
|
|
111
|
-
isSolved?: undefined;
|
|
112
|
-
} | {
|
|
113
|
-
id: string;
|
|
114
|
-
boardId: string;
|
|
115
|
-
title: string;
|
|
116
|
-
author: string;
|
|
117
|
-
authorAvatar: string;
|
|
118
|
-
replies: number;
|
|
119
|
-
views: number;
|
|
120
|
-
lastActivity: string;
|
|
121
|
-
lastAuthor: string;
|
|
122
|
-
isSolved: boolean;
|
|
123
|
-
isPinned?: undefined;
|
|
124
|
-
isHot?: undefined;
|
|
125
|
-
} | {
|
|
126
|
-
id: string;
|
|
127
|
-
boardId: string;
|
|
128
|
-
title: string;
|
|
129
|
-
author: string;
|
|
130
|
-
authorAvatar: string;
|
|
131
|
-
replies: number;
|
|
132
|
-
views: number;
|
|
133
|
-
lastActivity: string;
|
|
134
|
-
lastAuthor: string;
|
|
135
|
-
isHot: boolean;
|
|
136
|
-
isPinned?: undefined;
|
|
137
|
-
isSolved?: undefined;
|
|
138
|
-
} | {
|
|
139
|
-
id: string;
|
|
140
|
-
boardId: string;
|
|
141
|
-
title: string;
|
|
142
|
-
author: string;
|
|
143
|
-
authorAvatar: string;
|
|
144
|
-
replies: number;
|
|
145
|
-
views: number;
|
|
146
|
-
lastActivity: string;
|
|
147
|
-
lastAuthor: string;
|
|
148
|
-
isPinned?: undefined;
|
|
149
|
-
isHot?: undefined;
|
|
150
|
-
isSolved?: undefined;
|
|
151
|
-
} | {
|
|
152
|
-
id: string;
|
|
153
|
-
boardId: string;
|
|
154
|
-
title: string;
|
|
155
|
-
author: string;
|
|
156
|
-
authorAvatar: string;
|
|
157
|
-
replies: number;
|
|
158
|
-
views: number;
|
|
159
|
-
lastActivity: string;
|
|
160
|
-
lastAuthor: string;
|
|
161
|
-
isPinned: boolean;
|
|
162
|
-
isHot?: undefined;
|
|
163
|
-
isSolved?: undefined;
|
|
164
|
-
})[];
|
|
1
|
+
import { User, Post, Role, Group, Product, Note, Story, News, Mod, Forum, Giveaway, Project, Survey, School, Faculty, Classroom, SchoolTeam, Session } from '@armoyu/core';
|
|
2
|
+
import { GlobalStats } from '../../types';
|
|
3
|
+
export * from './stationData';
|
|
4
|
+
export * from './surveyData';
|
|
5
|
+
export * from './educationData';
|
|
6
|
+
/**
|
|
7
|
+
* Common Roles
|
|
8
|
+
*/
|
|
9
|
+
export declare const roles: {
|
|
10
|
+
admin: Role;
|
|
11
|
+
memberMgmt: Role;
|
|
12
|
+
discipline: Role;
|
|
13
|
+
eventMgmt: Role;
|
|
14
|
+
assettoOfficial: Role;
|
|
15
|
+
mcOfficial: Role;
|
|
16
|
+
responsible: Role;
|
|
17
|
+
gameDev: Role;
|
|
18
|
+
softwareDev: Role;
|
|
19
|
+
frontendDev: Role;
|
|
20
|
+
backendDev: Role;
|
|
21
|
+
fullstackDev: Role;
|
|
22
|
+
streamerContent: Role;
|
|
23
|
+
streamerGaming: Role;
|
|
24
|
+
streamer: Role;
|
|
25
|
+
esports: Role;
|
|
26
|
+
user: Role;
|
|
27
|
+
qualified: Role;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Seed data for Groups (Guilds/Communities)
|
|
31
|
+
*/
|
|
32
|
+
export declare const groupList: Group[];
|
|
33
|
+
/**
|
|
34
|
+
* Seed data for users (Team Members)
|
|
35
|
+
*/
|
|
36
|
+
export declare const userList: User[];
|
|
37
|
+
export declare const MOCK_SURVEYS: Survey[];
|
|
38
|
+
export declare const surveyList: Survey[];
|
|
39
|
+
export declare const schoolList: School[];
|
|
40
|
+
export declare const facultyList: Faculty[];
|
|
41
|
+
export declare const schoolTeamList: SchoolTeam[];
|
|
42
|
+
export declare const classroomList: Classroom[];
|
|
43
|
+
/**
|
|
44
|
+
* Seed data for posts
|
|
45
|
+
*/
|
|
46
|
+
export declare const postList: Post[];
|
|
47
|
+
/**
|
|
48
|
+
* Mock Session for Auto-Login
|
|
49
|
+
* notifications and chatList live on Session, not User.
|
|
50
|
+
*/
|
|
51
|
+
export declare const MOCK_SESSION: Session;
|
|
52
|
+
/**
|
|
53
|
+
* Shop & News Mock Data (Migrated from mockData.ts)
|
|
54
|
+
*/
|
|
55
|
+
export declare const MOCK_PRODUCTS: Product[];
|
|
56
|
+
export declare const MOCK_NEWS: News[];
|
|
57
|
+
export declare const newsList: News[];
|
|
58
|
+
export declare const MOCK_NOTES: Note[];
|
|
59
|
+
/**
|
|
60
|
+
* Global Statistics (Migrated from mockData.ts)
|
|
61
|
+
*/
|
|
62
|
+
export declare const mockGlobalStats: GlobalStats;
|
|
63
|
+
/**
|
|
64
|
+
* Rankings (Derived from userList)
|
|
65
|
+
*/
|
|
66
|
+
export declare const MOCK_RANKING_LEVEL: User[];
|
|
67
|
+
export declare const MOCK_RANKING_POPULARITY: User[];
|
|
68
|
+
/**
|
|
69
|
+
* Stories Mock Data (Migrated and Reconstructed)
|
|
70
|
+
*/
|
|
71
|
+
export declare const MOCK_STORIES: Story[];
|
|
72
|
+
/**
|
|
73
|
+
* Game Mods Mock Data
|
|
74
|
+
*/
|
|
75
|
+
export declare const MOCK_MODS: Mod[];
|
|
76
|
+
/**
|
|
77
|
+
* Forum Categories Mock Data
|
|
78
|
+
*/
|
|
79
|
+
export declare const MOCK_FORUM_CATEGORIES: {
|
|
80
|
+
title: string;
|
|
81
|
+
boards: Forum[];
|
|
82
|
+
}[];
|
|
83
|
+
/**
|
|
84
|
+
* Giveaways Mock Data
|
|
85
|
+
*/
|
|
86
|
+
export declare const MOCK_GIVEAWAYS: Giveaway[];
|
|
87
|
+
export declare const giveawayList: Giveaway[];
|
|
88
|
+
/**
|
|
89
|
+
* Mock Projects Data
|
|
90
|
+
*/
|
|
91
|
+
export declare const MOCK_PROJECTS: Project[];
|
|
92
|
+
export declare const projectList: Project[];
|
|
93
|
+
export declare const sessionList: Session[];
|
|
94
|
+
export declare const armoyuProjects: Project[];
|
|
95
|
+
export declare const armoyuGiveaways: Giveaway[];
|
|
96
|
+
/**
|
|
97
|
+
* Forum Topics Mock Data
|
|
98
|
+
*/
|
|
99
|
+
export declare const MOCK_FORUM_TOPICS: ({
|
|
100
|
+
id: string;
|
|
101
|
+
boardId: string;
|
|
102
|
+
title: string;
|
|
103
|
+
author: string;
|
|
104
|
+
authorAvatar: string;
|
|
105
|
+
replies: number;
|
|
106
|
+
views: number;
|
|
107
|
+
lastActivity: string;
|
|
108
|
+
lastAuthor: string;
|
|
109
|
+
isPinned: boolean;
|
|
110
|
+
isHot: boolean;
|
|
111
|
+
isSolved?: undefined;
|
|
112
|
+
} | {
|
|
113
|
+
id: string;
|
|
114
|
+
boardId: string;
|
|
115
|
+
title: string;
|
|
116
|
+
author: string;
|
|
117
|
+
authorAvatar: string;
|
|
118
|
+
replies: number;
|
|
119
|
+
views: number;
|
|
120
|
+
lastActivity: string;
|
|
121
|
+
lastAuthor: string;
|
|
122
|
+
isSolved: boolean;
|
|
123
|
+
isPinned?: undefined;
|
|
124
|
+
isHot?: undefined;
|
|
125
|
+
} | {
|
|
126
|
+
id: string;
|
|
127
|
+
boardId: string;
|
|
128
|
+
title: string;
|
|
129
|
+
author: string;
|
|
130
|
+
authorAvatar: string;
|
|
131
|
+
replies: number;
|
|
132
|
+
views: number;
|
|
133
|
+
lastActivity: string;
|
|
134
|
+
lastAuthor: string;
|
|
135
|
+
isHot: boolean;
|
|
136
|
+
isPinned?: undefined;
|
|
137
|
+
isSolved?: undefined;
|
|
138
|
+
} | {
|
|
139
|
+
id: string;
|
|
140
|
+
boardId: string;
|
|
141
|
+
title: string;
|
|
142
|
+
author: string;
|
|
143
|
+
authorAvatar: string;
|
|
144
|
+
replies: number;
|
|
145
|
+
views: number;
|
|
146
|
+
lastActivity: string;
|
|
147
|
+
lastAuthor: string;
|
|
148
|
+
isPinned?: undefined;
|
|
149
|
+
isHot?: undefined;
|
|
150
|
+
isSolved?: undefined;
|
|
151
|
+
} | {
|
|
152
|
+
id: string;
|
|
153
|
+
boardId: string;
|
|
154
|
+
title: string;
|
|
155
|
+
author: string;
|
|
156
|
+
authorAvatar: string;
|
|
157
|
+
replies: number;
|
|
158
|
+
views: number;
|
|
159
|
+
lastActivity: string;
|
|
160
|
+
lastAuthor: string;
|
|
161
|
+
isPinned: boolean;
|
|
162
|
+
isHot?: undefined;
|
|
163
|
+
isSolved?: undefined;
|
|
164
|
+
})[];
|
|
165
165
|
//# sourceMappingURL=seedData.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ArmoyuEvent, Game, Station } from '@armoyu/core';
|
|
2
|
-
/**
|
|
3
|
-
* GAMES (gameList)
|
|
4
|
-
*/
|
|
5
|
-
export declare const gameList: Game[];
|
|
6
|
-
/**
|
|
7
|
-
* EVENTS (eventList)
|
|
8
|
-
*/
|
|
9
|
-
export declare const eventList: ArmoyuEvent[];
|
|
10
|
-
/**
|
|
11
|
-
* STATIONS (stationList)
|
|
12
|
-
*/
|
|
13
|
-
export declare const stationList: Station[];
|
|
1
|
+
import { ArmoyuEvent, Game, Station } from '@armoyu/core';
|
|
2
|
+
/**
|
|
3
|
+
* GAMES (gameList)
|
|
4
|
+
*/
|
|
5
|
+
export declare const gameList: Game[];
|
|
6
|
+
/**
|
|
7
|
+
* EVENTS (eventList)
|
|
8
|
+
*/
|
|
9
|
+
export declare const eventList: ArmoyuEvent[];
|
|
10
|
+
/**
|
|
11
|
+
* STATIONS (stationList)
|
|
12
|
+
*/
|
|
13
|
+
export declare const stationList: Station[];
|
|
14
14
|
//# sourceMappingURL=stationData.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Survey } from '@armoyu/core';
|
|
2
|
-
export declare const MOCK_SURVEYS_DATA: (userList: any[]) => Survey[];
|
|
1
|
+
import { Survey } from '@armoyu/core';
|
|
2
|
+
export declare const MOCK_SURVEYS_DATA: (userList: any[]) => Survey[];
|
|
3
3
|
//# sourceMappingURL=surveyData.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Team } from '@armoyu/core';
|
|
2
|
-
/**
|
|
3
|
-
* Super League Teams Data
|
|
4
|
-
*/
|
|
5
|
-
export declare const SUPER_LEAGUE_TEAMS: Team[];
|
|
6
|
-
/**
|
|
7
|
-
* Zodiac Signs Data
|
|
8
|
-
*/
|
|
9
|
-
export declare const ZODIAC_SIGNS: {
|
|
10
|
-
name: string;
|
|
11
|
-
icon: string;
|
|
12
|
-
}[];
|
|
1
|
+
import { Team } from '@armoyu/core';
|
|
2
|
+
/**
|
|
3
|
+
* Super League Teams Data
|
|
4
|
+
*/
|
|
5
|
+
export declare const SUPER_LEAGUE_TEAMS: Team[];
|
|
6
|
+
/**
|
|
7
|
+
* Zodiac Signs Data
|
|
8
|
+
*/
|
|
9
|
+
export declare const ZODIAC_SIGNS: {
|
|
10
|
+
name: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
}[];
|
|
13
13
|
//# sourceMappingURL=teamData.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@armoyu/ui",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "UI component library for ARMOYU platforms.",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Premium UI component library for ARMOYU platforms.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
|
-
"dist",
|
|
10
|
-
"src"
|
|
11
|
-
"tailwind.config.ts",
|
|
12
|
-
"postcss.config.js",
|
|
13
|
-
"next.config.ts"
|
|
9
|
+
"dist/",
|
|
10
|
+
"src/globals.css"
|
|
14
11
|
],
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
15
|
"private": false,
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "tsc -p tsconfig.lib.json",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"dev": "next dev"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@armoyu/core": "^1.0.
|
|
23
|
-
"lucide-react": "^1.7.0",
|
|
24
|
-
"socket.io-client": "^4.8.3"
|
|
22
|
+
"@armoyu/core": "^1.0.2"
|
|
25
23
|
},
|
|
26
24
|
"peerDependencies": {
|
|
25
|
+
"lucide-react": "^1.7.0",
|
|
27
26
|
"next": "^16.1.7",
|
|
28
27
|
"react": "^19.0.0",
|
|
29
|
-
"react-dom": "^19.0.0"
|
|
28
|
+
"react-dom": "^19.0.0",
|
|
29
|
+
"socket.io-client": "^4.8.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@tailwindcss/postcss": "^4.2.2",
|
|
@@ -34,10 +34,12 @@
|
|
|
34
34
|
"@types/react": "^19.2.14",
|
|
35
35
|
"@types/react-dom": "^19.2.3",
|
|
36
36
|
"autoprefixer": "^10.4.27",
|
|
37
|
+
"lucide-react": "^1.7.0",
|
|
37
38
|
"next": "^16.1.7",
|
|
38
39
|
"postcss": "^8.5.8",
|
|
39
40
|
"react": "^19.2.4",
|
|
40
41
|
"react-dom": "^19.2.4",
|
|
42
|
+
"socket.io-client": "^4.8.3",
|
|
41
43
|
"tailwindcss": "^4.2.2",
|
|
42
44
|
"tsc-alias": "^1.8.16",
|
|
43
45
|
"typescript": "^5.9.3"
|
package/next.config.ts
DELETED
package/postcss.config.js
DELETED
package/src/app/layout.tsx
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import type { Metadata } from 'next';
|
|
2
|
-
import { Inter } from 'next/font/google';
|
|
3
|
-
import "../globals.css";
|
|
4
|
-
import { ThemeProvider } from "../context/ThemeContext";
|
|
5
|
-
import { LayoutProvider } from "../context/LayoutContext";
|
|
6
|
-
import { AuthProvider } from "../context/AuthContext";
|
|
7
|
-
import { SocketProvider } from "../context/SocketContext";
|
|
8
|
-
import { CartProvider } from "../context/CartContext";
|
|
9
|
-
import { ChatProvider } from "../context/ChatContext";
|
|
10
|
-
|
|
11
|
-
const inter = Inter({
|
|
12
|
-
subsets: ['latin'],
|
|
13
|
-
variable: '--font-inter',
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export const metadata: Metadata = {
|
|
17
|
-
title: "ARMOYU UI Showcase",
|
|
18
|
-
description: "Visual component gallery for Armoyu UI Library",
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export default function RootLayout({
|
|
22
|
-
children,
|
|
23
|
-
}: Readonly<{
|
|
24
|
-
children: React.ReactNode;
|
|
25
|
-
}>) {
|
|
26
|
-
return (
|
|
27
|
-
<html lang="tr" className="scroll-smooth dark" suppressHydrationWarning>
|
|
28
|
-
<head>
|
|
29
|
-
<script
|
|
30
|
-
dangerouslySetInnerHTML={{
|
|
31
|
-
__html: `
|
|
32
|
-
(function() {
|
|
33
|
-
try {
|
|
34
|
-
var theme = localStorage.getItem('armoyu_theme');
|
|
35
|
-
if (theme === 'light') {
|
|
36
|
-
document.documentElement.classList.remove('dark');
|
|
37
|
-
} else {
|
|
38
|
-
document.documentElement.classList.add('dark');
|
|
39
|
-
}
|
|
40
|
-
} catch (e) {}
|
|
41
|
-
})();
|
|
42
|
-
`,
|
|
43
|
-
}}
|
|
44
|
-
/>
|
|
45
|
-
</head>
|
|
46
|
-
<body className={`${inter.variable} ${inter.className} bg-armoyu-bg text-armoyu-text min-h-screen flex flex-col antialiased relative transition-colors duration-500`}>
|
|
47
|
-
<ThemeProvider>
|
|
48
|
-
<AuthProvider>
|
|
49
|
-
<SocketProvider>
|
|
50
|
-
<LayoutProvider>
|
|
51
|
-
<CartProvider>
|
|
52
|
-
<ChatProvider>
|
|
53
|
-
<div className="fixed inset-0 pointer-events-none z-[-1]">
|
|
54
|
-
<div className="absolute top-[-10%] left-[-10%] w-[40%] h-[40%] bg-blue-600/20 blur-[120px] rounded-full" />
|
|
55
|
-
<div className="absolute bottom-[-10%] right-[-10%] w-[40%] h-[40%] bg-purple-600/20 blur-[120px] rounded-full" />
|
|
56
|
-
</div>
|
|
57
|
-
{children}
|
|
58
|
-
</ChatProvider>
|
|
59
|
-
</CartProvider>
|
|
60
|
-
</LayoutProvider>
|
|
61
|
-
</SocketProvider>
|
|
62
|
-
</AuthProvider>
|
|
63
|
-
</ThemeProvider>
|
|
64
|
-
</body>
|
|
65
|
-
</html>
|
|
66
|
-
);
|
|
67
|
-
}
|
package/src/app/page.tsx
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import React, { useState } from 'react';
|
|
4
|
-
import {
|
|
5
|
-
Box,
|
|
6
|
-
Layers,
|
|
7
|
-
Share2,
|
|
8
|
-
User,
|
|
9
|
-
MessageSquare,
|
|
10
|
-
ShoppingBag,
|
|
11
|
-
Users
|
|
12
|
-
} from 'lucide-react';
|
|
13
|
-
|
|
14
|
-
// Showcase Components
|
|
15
|
-
import { GeneralTab } from '../components/showcase/GeneralTab';
|
|
16
|
-
import { CorporateTab } from '../components/showcase/CorporateTab';
|
|
17
|
-
import { SocialTab } from '../components/showcase/SocialTab';
|
|
18
|
-
import { ProfileTab } from '../components/showcase/ProfileTab';
|
|
19
|
-
import { MessagesTab } from '../components/showcase/MessagesTab';
|
|
20
|
-
import { CommunityTab } from '../components/showcase/CommunityTab';
|
|
21
|
-
import { ShopTab } from '../components/showcase/ShopTab';
|
|
22
|
-
|
|
23
|
-
export default function ShowcasePage() {
|
|
24
|
-
const [activeTab, setActiveTab] = useState('Genel');
|
|
25
|
-
|
|
26
|
-
const tabs = [
|
|
27
|
-
{ name: 'Genel', icon: <Box size={18} /> },
|
|
28
|
-
{ name: 'Kurumsal', icon: <Layers size={18} /> },
|
|
29
|
-
{ name: 'Sosyal', icon: <Share2 size={18} /> },
|
|
30
|
-
{ name: 'Profil', icon: <User size={18} /> },
|
|
31
|
-
{ name: 'Mesajlar', icon: <MessageSquare size={18} /> },
|
|
32
|
-
{ name: 'Topluluk', icon: <Users size={18} /> },
|
|
33
|
-
{ name: 'Mağaza', icon: <ShoppingBag size={18} /> },
|
|
34
|
-
];
|
|
35
|
-
|
|
36
|
-
const renderTabContent = () => {
|
|
37
|
-
switch (activeTab) {
|
|
38
|
-
case 'Genel': return <GeneralTab />;
|
|
39
|
-
case 'Kurumsal': return <CorporateTab />;
|
|
40
|
-
case 'Sosyal': return <SocialTab />;
|
|
41
|
-
case 'Profil': return <ProfileTab />;
|
|
42
|
-
case 'Mesajlar': return <MessagesTab />;
|
|
43
|
-
case 'Topluluk': return <CommunityTab />;
|
|
44
|
-
case 'Mağaza': return <ShopTab />;
|
|
45
|
-
default: return <GeneralTab />;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
return (
|
|
50
|
-
<div className="min-h-screen bg-armoyu-bg flex flex-col font-sans selection:bg-blue-500/30">
|
|
51
|
-
|
|
52
|
-
{/* MINIMAL SHOWCASE HEADER */}
|
|
53
|
-
<nav className="sticky top-0 z-[110] w-full border-b border-white/5 bg-black/20 backdrop-blur-2xl">
|
|
54
|
-
<div className="max-w-7xl mx-auto px-6 h-16 flex items-center justify-between">
|
|
55
|
-
<div className="flex items-center gap-4">
|
|
56
|
-
<div className="w-8 h-8 rounded-xl bg-gradient-to-br from-blue-600 to-indigo-600 flex items-center justify-center shadow-lg shadow-blue-600/20">
|
|
57
|
-
<span className="text-white font-black text-xs italic">UI</span>
|
|
58
|
-
</div>
|
|
59
|
-
<div>
|
|
60
|
-
<h2 className="text-sm font-black text-armoyu-text uppercase tracking-tighter italic">ARMOYU <span className="text-blue-500">VITRINI</span></h2>
|
|
61
|
-
<p className="text-[9px] font-bold text-armoyu-text-muted uppercase tracking-[0.2em] opacity-50">V3 Design System</p>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
|
|
65
|
-
<div className="hidden md:flex items-center gap-1 bg-white/5 p-1 rounded-xl border border-white/5">
|
|
66
|
-
{tabs.map((tab) => (
|
|
67
|
-
<button
|
|
68
|
-
key={tab.name}
|
|
69
|
-
onClick={() => setActiveTab(tab.name)}
|
|
70
|
-
className={`px-4 py-2 rounded-lg text-[10px] font-black uppercase tracking-widest transition-all italic ${
|
|
71
|
-
activeTab === tab.name
|
|
72
|
-
? 'bg-white dark:bg-white/10 text-blue-500 shadow-sm'
|
|
73
|
-
: 'text-armoyu-text-muted hover:text-armoyu-text'
|
|
74
|
-
}`}
|
|
75
|
-
>
|
|
76
|
-
{tab.name}
|
|
77
|
-
</button>
|
|
78
|
-
))}
|
|
79
|
-
</div>
|
|
80
|
-
|
|
81
|
-
<div className="flex items-center gap-3">
|
|
82
|
-
<span className="text-[10px] font-black py-1.5 px-3 rounded-full bg-emerald-500/10 text-emerald-500 border border-emerald-500/20 uppercase tracking-widest">v1.0.0 Stable</span>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</nav>
|
|
86
|
-
|
|
87
|
-
<main className="flex-1 max-w-7xl mx-auto w-full px-4 py-12">
|
|
88
|
-
<div className="animate-in fade-in slide-in-from-bottom-4 duration-700">
|
|
89
|
-
{renderTabContent()}
|
|
90
|
-
</div>
|
|
91
|
-
</main>
|
|
92
|
-
|
|
93
|
-
{/* MINIMAL SHOWCASE FOOTER */}
|
|
94
|
-
<footer className="py-8 border-t border-white/5 text-center">
|
|
95
|
-
<p className="text-[10px] font-black text-armoyu-text-muted uppercase tracking-[0.4em] opacity-30 italic">
|
|
96
|
-
© 2024 ARMOYU DEVELOPER EXPERIENCE • VITRIN MODU
|
|
97
|
-
</p>
|
|
98
|
-
</footer>
|
|
99
|
-
</div>
|
|
100
|
-
);
|
|
101
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
|
|
3
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
variant?: 'primary' | 'secondary' | 'danger' | 'ghost';
|
|
5
|
-
isLoading?: boolean;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
9
|
-
({ className = '', variant = 'primary', isLoading, children, ...props }, ref) => {
|
|
10
|
-
|
|
11
|
-
// Core aesthetic premium styling (Glassmorphism & Modern UI)
|
|
12
|
-
const baseStyles = "inline-flex items-center justify-center rounded-lg text-sm font-medium transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 disabled:pointer-events-none disabled:opacity-50 h-10 px-4 py-2 cursor-pointer";
|
|
13
|
-
|
|
14
|
-
const variants = {
|
|
15
|
-
primary: "bg-blue-600 text-white hover:bg-blue-700 hover:shadow-[0_0_15px_rgba(37,99,235,0.5)] border border-transparent",
|
|
16
|
-
secondary: "bg-white/5 text-white hover:bg-white/10 backdrop-blur-md border border-white/10 hover:border-white/20 shadow-[0_4px_30px_rgba(0,0,0,0.1)]",
|
|
17
|
-
danger: "bg-red-500/80 text-white hover:bg-red-600 border border-red-500/50 hover:shadow-[0_0_15px_rgba(239,68,68,0.5)]",
|
|
18
|
-
ghost: "hover:bg-white/10 hover:text-white text-gray-300"
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<button
|
|
23
|
-
ref={ref}
|
|
24
|
-
className={`${baseStyles} ${variants[variant]} ${className}`}
|
|
25
|
-
disabled={isLoading || props.disabled}
|
|
26
|
-
{...props}
|
|
27
|
-
>
|
|
28
|
-
{isLoading ? (
|
|
29
|
-
<span className="mr-2 relative flex h-4 w-4">
|
|
30
|
-
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-white opacity-75"></span>
|
|
31
|
-
<span className="relative inline-flex rounded-full h-4 w-4 bg-white/50 border-2 border-white border-t-transparent animate-spin"></span>
|
|
32
|
-
</span>
|
|
33
|
-
) : null}
|
|
34
|
-
{children}
|
|
35
|
-
</button>
|
|
36
|
-
)
|
|
37
|
-
}
|
|
38
|
-
)
|
|
39
|
-
Button.displayName = "Button"
|
|
40
|
-
|
|
41
|
-
export { Button }
|