@armoyu/ui 1.0.0 → 1.0.1
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/layout.d.ts.map +1 -1
- package/dist/app/layout.js +16 -13
- package/dist/app/layout.js.map +1 -1
- package/dist/components/Button.d.ts +7 -7
- package/dist/components/Button.js +15 -15
- package/dist/components/GenderStatsBar.d.ts +5 -5
- package/dist/components/GenderStatsBar.js +7 -7
- package/dist/components/RollingNumber.js +3 -3
- package/dist/components/RollingNumber.js.map +1 -1
- package/dist/components/Slider.d.ts +10 -10
- package/dist/components/Slider.js +35 -35
- package/dist/components/StatsGrid.d.ts +5 -5
- package/dist/components/StatsGrid.js +13 -13
- package/dist/components/ViewModeToggle.d.ts +7 -7
- package/dist/components/ViewModeToggle.js +9 -9
- package/dist/components/modules/auth/Dashboard.d.ts +1 -1
- package/dist/components/modules/auth/Dashboard.js +250 -250
- package/dist/components/modules/auth/MediaLightbox.d.ts +13 -13
- package/dist/components/modules/auth/MediaLightbox.js +46 -46
- package/dist/components/modules/auth/PostCard.d.ts +24 -24
- package/dist/components/modules/auth/PostCard.js +112 -112
- package/dist/components/modules/auth/PostInteractionsModal.d.ts +11 -11
- package/dist/components/modules/auth/PostInteractionsModal.js +12 -12
- package/dist/components/modules/auth/RepostModal.d.ts +21 -21
- package/dist/components/modules/auth/RepostModal.js +75 -75
- package/dist/components/modules/auth/SidebarLeft.d.ts +1 -1
- package/dist/components/modules/auth/SidebarLeft.js +40 -40
- package/dist/components/modules/auth/Stories.d.ts +1 -1
- package/dist/components/modules/auth/Stories.js +15 -15
- package/dist/components/modules/auth/StoryViewer.d.ts +9 -9
- package/dist/components/modules/auth/StoryViewer.js +47 -47
- package/dist/components/modules/chat/ChatContainer.d.ts +1 -1
- package/dist/components/modules/chat/ChatContainer.js +196 -196
- package/dist/components/modules/chat/ChatInput.d.ts +4 -4
- package/dist/components/modules/chat/ChatInput.js +30 -30
- package/dist/components/modules/chat/ChatList.d.ts +6 -6
- package/dist/components/modules/chat/ChatList.js +51 -51
- package/dist/components/modules/chat/ChatMessage.d.ts +11 -11
- package/dist/components/modules/chat/ChatMessage.js +6 -6
- package/dist/components/modules/chat/ChatNotes.d.ts +1 -1
- package/dist/components/modules/chat/ChatNotes.js +11 -11
- package/dist/components/modules/community/GroupHeader.d.ts +10 -10
- package/dist/components/modules/community/GroupHeader.js +17 -17
- package/dist/components/modules/community/GroupMenu.d.ts +9 -9
- package/dist/components/modules/community/GroupMenu.js +16 -16
- package/dist/components/modules/community/SchoolCard.d.ts +6 -6
- package/dist/components/modules/community/SchoolCard.js +7 -7
- package/dist/components/modules/community/SurveyCard.d.ts +6 -6
- package/dist/components/modules/community/SurveyCard.js +35 -35
- package/dist/components/modules/forum/ForumBoard.d.ts +16 -16
- package/dist/components/modules/forum/ForumBoard.js +6 -6
- package/dist/components/modules/forum/ForumPost.d.ts +13 -13
- package/dist/components/modules/forum/ForumPost.js +5 -5
- package/dist/components/modules/forum/NewTopicModal.d.ts +7 -7
- package/dist/components/modules/forum/NewTopicModal.js +26 -26
- package/dist/components/modules/forum/TopicItem.d.ts +15 -15
- package/dist/components/modules/forum/TopicItem.js +6 -6
- package/dist/components/modules/galleries/GalleryCard.d.ts +9 -9
- package/dist/components/modules/galleries/GalleryCard.js +5 -5
- package/dist/components/modules/giveaways/GiveawayCard.d.ts +9 -9
- package/dist/components/modules/giveaways/GiveawayCard.js +6 -6
- package/dist/components/modules/groups/ApplicationModal.d.ts +7 -7
- package/dist/components/modules/groups/ApplicationModal.js +27 -27
- package/dist/components/modules/groups/GroupCard.d.ts +12 -12
- package/dist/components/modules/groups/GroupCard.js +6 -6
- package/dist/components/modules/guest/Introduction.d.ts +1 -1
- package/dist/components/modules/guest/Introduction.js +13 -13
- package/dist/components/modules/magaza/BackToStore.d.ts +1 -1
- package/dist/components/modules/magaza/BackToStore.js +10 -10
- package/dist/components/modules/magaza/StoreHeader.d.ts +5 -5
- package/dist/components/modules/magaza/StoreHeader.js +8 -8
- package/dist/components/modules/news/NewsCard.d.ts +11 -11
- package/dist/components/modules/news/NewsCard.js +6 -6
- package/dist/components/modules/news/NewsComments.d.ts +1 -1
- package/dist/components/modules/news/NewsComments.js +52 -52
- package/dist/components/modules/profile/CloudStorageModal.d.ts +8 -8
- package/dist/components/modules/profile/CloudStorageModal.js +31 -31
- package/dist/components/modules/profile/EditProfileModal.d.ts +8 -8
- package/dist/components/modules/profile/EditProfileModal.js +27 -27
- package/dist/components/modules/profile/ProfileContent.d.ts +4 -4
- package/dist/components/modules/profile/ProfileContent.js +70 -70
- package/dist/components/modules/profile/ProfileHeader.d.ts +7 -7
- package/dist/components/modules/profile/ProfileHeader.js +19 -19
- package/dist/components/modules/profile/ProfileStats.js +1 -1
- package/dist/components/modules/profile/ProfileStats.js.map +1 -1
- package/dist/components/modules/profile/TeamSelectorModal.d.ts +10 -10
- package/dist/components/modules/profile/TeamSelectorModal.js +16 -16
- package/dist/components/modules/stations/StationCard.d.ts +2 -2
- package/dist/components/modules/stations/StationCard.js +25 -25
- package/dist/components/modules/stations/StationQRModal.d.ts +9 -9
- package/dist/components/modules/stations/StationQRModal.js +12 -12
- package/dist/components/shared/FloatingChatButton.d.ts +4 -4
- package/dist/components/shared/FloatingChatButton.js +20 -20
- package/dist/components/shared/Footer.d.ts +1 -1
- package/dist/components/shared/Footer.js +9 -9
- package/dist/components/shared/Header.d.ts +1 -1
- package/dist/components/shared/Header.js +97 -97
- package/dist/components/shared/LoginModal.d.ts +4 -4
- package/dist/components/shared/LoginModal.js +69 -69
- package/dist/components/shared/MainLayoutWrapper.d.ts +3 -3
- package/dist/components/shared/MainLayoutWrapper.js +7 -7
- package/dist/components/shared/PageWidth.d.ts +5 -5
- package/dist/components/shared/PageWidth.js +13 -13
- package/dist/context/AuthContext.d.ts +18 -18
- package/dist/context/AuthContext.js +74 -74
- package/dist/context/CartContext.d.ts +16 -16
- package/dist/context/CartContext.js +63 -63
- package/dist/context/ChatContext.d.ts +12 -12
- package/dist/context/ChatContext.js +17 -17
- package/dist/context/LayoutContext.d.ts +10 -10
- package/dist/context/LayoutContext.js +16 -16
- package/dist/context/SocketContext.d.ts +12 -12
- package/dist/context/SocketContext.js +30 -30
- package/dist/context/ThemeContext.d.ts +10 -10
- package/dist/context/ThemeContext.js +39 -39
- package/dist/index.d.ts +65 -65
- package/dist/index.js +80 -80
- package/dist/lib/constants/educationData.d.ts +7 -7
- package/dist/lib/constants/educationData.js +117 -117
- package/dist/lib/constants/punishmentData.d.ts +29 -29
- package/dist/lib/constants/punishmentData.js +183 -183
- package/dist/lib/constants/seedData.d.ts +164 -164
- package/dist/lib/constants/seedData.js +694 -694
- package/dist/lib/constants/stationData.d.ts +13 -13
- package/dist/lib/constants/stationData.js +166 -166
- package/dist/lib/constants/surveyData.d.ts +2 -2
- package/dist/lib/constants/surveyData.js +49 -49
- package/dist/lib/constants/teamData.d.ts +12 -12
- package/dist/lib/constants/teamData.js +65 -65
- package/dist/types/stats.d.ts +17 -17
- package/dist/types/stats.js +1 -1
- package/next.config.ts +13 -13
- package/package.json +45 -46
- package/postcss.config.js +6 -6
- package/src/app/layout.tsx +67 -64
- package/src/app/page.tsx +101 -101
- package/src/components/RollingNumber.tsx +3 -3
- package/src/components/modules/profile/ProfileStats.tsx +4 -4
- package/src/components/showcase/CommunityTab.tsx +22 -22
- package/src/components/showcase/CorporateTab.tsx +38 -38
- package/src/components/showcase/GeneralTab.tsx +41 -41
- package/src/components/showcase/MessagesTab.tsx +26 -26
- package/src/components/showcase/ProfileTab.tsx +20 -20
- package/src/components/showcase/ShopTab.tsx +24 -24
- package/src/components/showcase/SocialTab.tsx +28 -28
- package/src/globals.css +187 -187
- package/src/lib/utils/numberFormat.ts +16 -16
- package/src/lib/utils/odpUtils.ts +51 -51
- package/src/types/index.ts +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { createContext, useContext, useState } from 'react';
|
|
4
|
-
const ChatContext = createContext(undefined);
|
|
5
|
-
export function ChatProvider({ children }) {
|
|
6
|
-
const [isChatOpen, setIsChatOpen] = useState(false);
|
|
7
|
-
const toggleChat = () => setIsChatOpen(!isChatOpen);
|
|
8
|
-
const openChat = () => setIsChatOpen(true);
|
|
9
|
-
const closeChat = () => setIsChatOpen(false);
|
|
10
|
-
return (_jsx(ChatContext.Provider, { value: { isChatOpen, toggleChat, openChat, closeChat }, children: children }));
|
|
11
|
-
}
|
|
12
|
-
export function useChat() {
|
|
13
|
-
const context = useContext(ChatContext);
|
|
14
|
-
if (!context)
|
|
15
|
-
throw new Error('useChat must be used within ChatProvider');
|
|
16
|
-
return context;
|
|
17
|
-
}
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, useContext, useState } from 'react';
|
|
4
|
+
const ChatContext = createContext(undefined);
|
|
5
|
+
export function ChatProvider({ children }) {
|
|
6
|
+
const [isChatOpen, setIsChatOpen] = useState(false);
|
|
7
|
+
const toggleChat = () => setIsChatOpen(!isChatOpen);
|
|
8
|
+
const openChat = () => setIsChatOpen(true);
|
|
9
|
+
const closeChat = () => setIsChatOpen(false);
|
|
10
|
+
return (_jsx(ChatContext.Provider, { value: { isChatOpen, toggleChat, openChat, closeChat }, children: children }));
|
|
11
|
+
}
|
|
12
|
+
export function useChat() {
|
|
13
|
+
const context = useContext(ChatContext);
|
|
14
|
+
if (!context)
|
|
15
|
+
throw new Error('useChat must be used within ChatProvider');
|
|
16
|
+
return context;
|
|
17
|
+
}
|
|
18
18
|
//# sourceMappingURL=ChatContext.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
type LayoutContextType = {
|
|
3
|
-
pageWidth: string;
|
|
4
|
-
setPageWidth: (width: string) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare function LayoutProvider({ children }: {
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare function useLayout(): LayoutContextType;
|
|
10
|
-
export {};
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type LayoutContextType = {
|
|
3
|
+
pageWidth: string;
|
|
4
|
+
setPageWidth: (width: string) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare function LayoutProvider({ children }: {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function useLayout(): LayoutContextType;
|
|
10
|
+
export {};
|
|
11
11
|
//# sourceMappingURL=LayoutContext.d.ts.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { createContext, useContext, useState } from 'react';
|
|
4
|
-
const LayoutContext = createContext(undefined);
|
|
5
|
-
export function LayoutProvider({ children }) {
|
|
6
|
-
// Varsayılan masaüstü değeri %80 olarak ayarlanmıştır.
|
|
7
|
-
const [pageWidth, setPageWidth] = useState('max-w-[80%]');
|
|
8
|
-
return (_jsx(LayoutContext.Provider, { value: { pageWidth, setPageWidth }, children: children }));
|
|
9
|
-
}
|
|
10
|
-
export function useLayout() {
|
|
11
|
-
const context = useContext(LayoutContext);
|
|
12
|
-
if (!context) {
|
|
13
|
-
throw new Error('useLayout must be used within a LayoutProvider');
|
|
14
|
-
}
|
|
15
|
-
return context;
|
|
16
|
-
}
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, useContext, useState } from 'react';
|
|
4
|
+
const LayoutContext = createContext(undefined);
|
|
5
|
+
export function LayoutProvider({ children }) {
|
|
6
|
+
// Varsayılan masaüstü değeri %80 olarak ayarlanmıştır.
|
|
7
|
+
const [pageWidth, setPageWidth] = useState('max-w-[80%]');
|
|
8
|
+
return (_jsx(LayoutContext.Provider, { value: { pageWidth, setPageWidth }, children: children }));
|
|
9
|
+
}
|
|
10
|
+
export function useLayout() {
|
|
11
|
+
const context = useContext(LayoutContext);
|
|
12
|
+
if (!context) {
|
|
13
|
+
throw new Error('useLayout must be used within a LayoutProvider');
|
|
14
|
+
}
|
|
15
|
+
return context;
|
|
16
|
+
}
|
|
17
17
|
//# sourceMappingURL=LayoutContext.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SocketEvent } from '@armoyu/core';
|
|
3
|
-
interface SocketContextType {
|
|
4
|
-
isConnected: boolean;
|
|
5
|
-
emit: (event: SocketEvent, data: any) => void;
|
|
6
|
-
on: (event: SocketEvent, callback: (data: any) => void) => () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function SocketProvider({ children }: {
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare function useSocket(): SocketContextType;
|
|
12
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SocketEvent } from '@armoyu/core';
|
|
3
|
+
interface SocketContextType {
|
|
4
|
+
isConnected: boolean;
|
|
5
|
+
emit: (event: SocketEvent, data: any) => void;
|
|
6
|
+
on: (event: SocketEvent, callback: (data: any) => void) => () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function SocketProvider({ children }: {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function useSocket(): SocketContextType;
|
|
12
|
+
export {};
|
|
13
13
|
//# sourceMappingURL=SocketContext.d.ts.map
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { createContext, useContext, useState, useEffect } from 'react';
|
|
4
|
-
import { socketService } from '@armoyu/core';
|
|
5
|
-
const SocketContext = createContext(undefined);
|
|
6
|
-
export function SocketProvider({ children }) {
|
|
7
|
-
const [isConnected, setIsConnected] = useState(socketService.isConnected);
|
|
8
|
-
useEffect(() => {
|
|
9
|
-
const handleConnect = () => setIsConnected(true);
|
|
10
|
-
const handleDisconnect = () => setIsConnected(false);
|
|
11
|
-
const offConnect = socketService.on('connect', handleConnect);
|
|
12
|
-
const offDisconnect = socketService.on('disconnect', handleDisconnect);
|
|
13
|
-
return () => {
|
|
14
|
-
offConnect();
|
|
15
|
-
offDisconnect();
|
|
16
|
-
};
|
|
17
|
-
}, []);
|
|
18
|
-
return (_jsx(SocketContext.Provider, { value: {
|
|
19
|
-
isConnected,
|
|
20
|
-
emit: socketService.emit.bind(socketService),
|
|
21
|
-
on: socketService.on.bind(socketService)
|
|
22
|
-
}, children: children }));
|
|
23
|
-
}
|
|
24
|
-
export function useSocket() {
|
|
25
|
-
const context = useContext(SocketContext);
|
|
26
|
-
if (context === undefined) {
|
|
27
|
-
throw new Error('useSocket must be used within a SocketProvider');
|
|
28
|
-
}
|
|
29
|
-
return context;
|
|
30
|
-
}
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, useContext, useState, useEffect } from 'react';
|
|
4
|
+
import { socketService } from '@armoyu/core';
|
|
5
|
+
const SocketContext = createContext(undefined);
|
|
6
|
+
export function SocketProvider({ children }) {
|
|
7
|
+
const [isConnected, setIsConnected] = useState(socketService.isConnected);
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
const handleConnect = () => setIsConnected(true);
|
|
10
|
+
const handleDisconnect = () => setIsConnected(false);
|
|
11
|
+
const offConnect = socketService.on('connect', handleConnect);
|
|
12
|
+
const offDisconnect = socketService.on('disconnect', handleDisconnect);
|
|
13
|
+
return () => {
|
|
14
|
+
offConnect();
|
|
15
|
+
offDisconnect();
|
|
16
|
+
};
|
|
17
|
+
}, []);
|
|
18
|
+
return (_jsx(SocketContext.Provider, { value: {
|
|
19
|
+
isConnected,
|
|
20
|
+
emit: socketService.emit.bind(socketService),
|
|
21
|
+
on: socketService.on.bind(socketService)
|
|
22
|
+
}, children: children }));
|
|
23
|
+
}
|
|
24
|
+
export function useSocket() {
|
|
25
|
+
const context = useContext(SocketContext);
|
|
26
|
+
if (context === undefined) {
|
|
27
|
+
throw new Error('useSocket must be used within a SocketProvider');
|
|
28
|
+
}
|
|
29
|
+
return context;
|
|
30
|
+
}
|
|
31
31
|
//# sourceMappingURL=SocketContext.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface ThemeContextType {
|
|
3
|
-
theme: 'dark' | 'light';
|
|
4
|
-
toggleTheme: () => void;
|
|
5
|
-
}
|
|
6
|
-
export declare function ThemeProvider({ children }: {
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare function useTheme(): ThemeContextType;
|
|
10
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ThemeContextType {
|
|
3
|
+
theme: 'dark' | 'light';
|
|
4
|
+
toggleTheme: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function ThemeProvider({ children }: {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function useTheme(): ThemeContextType;
|
|
10
|
+
export {};
|
|
11
11
|
//# sourceMappingURL=ThemeContext.d.ts.map
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { createContext, useContext, useState, useEffect } from 'react';
|
|
4
|
-
const ThemeContext = createContext(undefined);
|
|
5
|
-
export function ThemeProvider({ children }) {
|
|
6
|
-
const [theme, setTheme] = useState('dark');
|
|
7
|
-
// Tarayıcı hafızasını okuyarak temayı yükleme (Local Storage)
|
|
8
|
-
useEffect(() => {
|
|
9
|
-
const savedTheme = localStorage.getItem('armoyu_theme');
|
|
10
|
-
if (savedTheme === 'light') {
|
|
11
|
-
setTheme('light');
|
|
12
|
-
document.documentElement.classList.remove('dark');
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
setTheme('dark');
|
|
16
|
-
document.documentElement.classList.add('dark');
|
|
17
|
-
// İlk girişte varsayılan olarak depolanır
|
|
18
|
-
localStorage.setItem('armoyu_theme', 'dark');
|
|
19
|
-
}
|
|
20
|
-
}, []);
|
|
21
|
-
const toggleTheme = () => {
|
|
22
|
-
const newTheme = theme === 'dark' ? 'light' : 'dark';
|
|
23
|
-
setTheme(newTheme);
|
|
24
|
-
localStorage.setItem('armoyu_theme', newTheme);
|
|
25
|
-
if (newTheme === 'dark') {
|
|
26
|
-
document.documentElement.classList.add('dark');
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
document.documentElement.classList.remove('dark');
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
return (_jsx(ThemeContext.Provider, { value: { theme, toggleTheme }, children: children }));
|
|
33
|
-
}
|
|
34
|
-
export function useTheme() {
|
|
35
|
-
const context = useContext(ThemeContext);
|
|
36
|
-
if (!context)
|
|
37
|
-
throw new Error('useTheme hooks must be used inside ThemeProvider!');
|
|
38
|
-
return context;
|
|
39
|
-
}
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, useContext, useState, useEffect } from 'react';
|
|
4
|
+
const ThemeContext = createContext(undefined);
|
|
5
|
+
export function ThemeProvider({ children }) {
|
|
6
|
+
const [theme, setTheme] = useState('dark');
|
|
7
|
+
// Tarayıcı hafızasını okuyarak temayı yükleme (Local Storage)
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
const savedTheme = localStorage.getItem('armoyu_theme');
|
|
10
|
+
if (savedTheme === 'light') {
|
|
11
|
+
setTheme('light');
|
|
12
|
+
document.documentElement.classList.remove('dark');
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
setTheme('dark');
|
|
16
|
+
document.documentElement.classList.add('dark');
|
|
17
|
+
// İlk girişte varsayılan olarak depolanır
|
|
18
|
+
localStorage.setItem('armoyu_theme', 'dark');
|
|
19
|
+
}
|
|
20
|
+
}, []);
|
|
21
|
+
const toggleTheme = () => {
|
|
22
|
+
const newTheme = theme === 'dark' ? 'light' : 'dark';
|
|
23
|
+
setTheme(newTheme);
|
|
24
|
+
localStorage.setItem('armoyu_theme', newTheme);
|
|
25
|
+
if (newTheme === 'dark') {
|
|
26
|
+
document.documentElement.classList.add('dark');
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
document.documentElement.classList.remove('dark');
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
return (_jsx(ThemeContext.Provider, { value: { theme, toggleTheme }, children: children }));
|
|
33
|
+
}
|
|
34
|
+
export function useTheme() {
|
|
35
|
+
const context = useContext(ThemeContext);
|
|
36
|
+
if (!context)
|
|
37
|
+
throw new Error('useTheme hooks must be used inside ThemeProvider!');
|
|
38
|
+
return context;
|
|
39
|
+
}
|
|
40
40
|
//# sourceMappingURL=ThemeContext.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
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
|
-
export * from './context/AuthContext';
|
|
8
|
-
export * from './context/CartContext';
|
|
9
|
-
export * from './context/ChatContext';
|
|
10
|
-
export * from './context/LayoutContext';
|
|
11
|
-
export * from './context/SocketContext';
|
|
12
|
-
export * from './context/ThemeContext';
|
|
13
|
-
export * from './types';
|
|
14
|
-
export * from './lib/constants/seedData';
|
|
15
|
-
export * from './lib/constants/educationData';
|
|
16
|
-
export * from './lib/constants/punishmentData';
|
|
17
|
-
export * from './lib/constants/stationData';
|
|
18
|
-
export * from './lib/constants/surveyData';
|
|
19
|
-
export * from './lib/constants/teamData';
|
|
20
|
-
export * from './lib/utils/odpUtils';
|
|
21
|
-
export { Header } from './components/shared/Header';
|
|
22
|
-
export { Footer } from './components/shared/Footer';
|
|
23
|
-
export { LoginModal } from './components/shared/LoginModal';
|
|
24
|
-
export { FloatingChatButton } from './components/shared/FloatingChatButton';
|
|
25
|
-
export { MainLayoutWrapper } from './components/shared/MainLayoutWrapper';
|
|
26
|
-
export { PageWidth } from './components/shared/PageWidth';
|
|
27
|
-
export { Dashboard as AuthDashboard } from './components/modules/auth/Dashboard';
|
|
28
|
-
export { Dashboard } from './components/modules/auth/Dashboard';
|
|
29
|
-
export { PostCard } from './components/modules/auth/PostCard';
|
|
30
|
-
export { PostInteractionsModal } from './components/modules/auth/PostInteractionsModal';
|
|
31
|
-
export { RepostModal } from './components/modules/auth/RepostModal';
|
|
32
|
-
export { SidebarLeft as AuthSidebarLeft } from './components/modules/auth/SidebarLeft';
|
|
33
|
-
export { Stories } from './components/modules/auth/Stories';
|
|
34
|
-
export { StoryViewer } from './components/modules/auth/StoryViewer';
|
|
35
|
-
export { MediaLightbox, type PostMedia } from './components/modules/auth/MediaLightbox';
|
|
36
|
-
export { ChatContainer } from './components/modules/chat/ChatContainer';
|
|
37
|
-
export { ChatInput } from './components/modules/chat/ChatInput';
|
|
38
|
-
export { ChatList } from './components/modules/chat/ChatList';
|
|
39
|
-
export { ChatMessage } from './components/modules/chat/ChatMessage';
|
|
40
|
-
export { ChatNotes } from './components/modules/chat/ChatNotes';
|
|
41
|
-
export { GroupHeader } from './components/modules/community/GroupHeader';
|
|
42
|
-
export { GroupMenu } from './components/modules/community/GroupMenu';
|
|
43
|
-
export { SchoolCard } from './components/modules/community/SchoolCard';
|
|
44
|
-
export { SurveyCard } from './components/modules/community/SurveyCard';
|
|
45
|
-
export { ForumBoard } from './components/modules/forum/ForumBoard';
|
|
46
|
-
export { ForumPost } from './components/modules/forum/ForumPost';
|
|
47
|
-
export { NewTopicModal } from './components/modules/forum/NewTopicModal';
|
|
48
|
-
export { TopicItem } from './components/modules/forum/TopicItem';
|
|
49
|
-
export { GalleryCard } from './components/modules/galleries/GalleryCard';
|
|
50
|
-
export { GiveawayCard } from './components/modules/giveaways/GiveawayCard';
|
|
51
|
-
export { GroupCard } from './components/modules/groups/GroupCard';
|
|
52
|
-
export { ApplicationModal as GroupApplicationModal } from './components/modules/groups/ApplicationModal';
|
|
53
|
-
export { Introduction } from './components/modules/guest/Introduction';
|
|
54
|
-
export { BackToStore } from './components/modules/magaza/BackToStore';
|
|
55
|
-
export { StoreHeader } from './components/modules/magaza/StoreHeader';
|
|
56
|
-
export { NewsCard } from './components/modules/news/NewsCard';
|
|
57
|
-
export { NewsComments } from './components/modules/news/NewsComments';
|
|
58
|
-
export { ProfileHeader } from './components/modules/profile/ProfileHeader';
|
|
59
|
-
export { ProfileStats } from './components/modules/profile/ProfileStats';
|
|
60
|
-
export { ProfileContent } from './components/modules/profile/ProfileContent';
|
|
61
|
-
export { EditProfileModal } from './components/modules/profile/EditProfileModal';
|
|
62
|
-
export { TeamSelectorModal } from './components/modules/profile/TeamSelectorModal';
|
|
63
|
-
export { CloudStorageModal } from './components/modules/profile/CloudStorageModal';
|
|
64
|
-
export { StationCard } from './components/modules/stations/StationCard';
|
|
65
|
-
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
|
+
export * from './context/AuthContext';
|
|
8
|
+
export * from './context/CartContext';
|
|
9
|
+
export * from './context/ChatContext';
|
|
10
|
+
export * from './context/LayoutContext';
|
|
11
|
+
export * from './context/SocketContext';
|
|
12
|
+
export * from './context/ThemeContext';
|
|
13
|
+
export * from './types';
|
|
14
|
+
export * from './lib/constants/seedData';
|
|
15
|
+
export * from './lib/constants/educationData';
|
|
16
|
+
export * from './lib/constants/punishmentData';
|
|
17
|
+
export * from './lib/constants/stationData';
|
|
18
|
+
export * from './lib/constants/surveyData';
|
|
19
|
+
export * from './lib/constants/teamData';
|
|
20
|
+
export * from './lib/utils/odpUtils';
|
|
21
|
+
export { Header } from './components/shared/Header';
|
|
22
|
+
export { Footer } from './components/shared/Footer';
|
|
23
|
+
export { LoginModal } from './components/shared/LoginModal';
|
|
24
|
+
export { FloatingChatButton } from './components/shared/FloatingChatButton';
|
|
25
|
+
export { MainLayoutWrapper } from './components/shared/MainLayoutWrapper';
|
|
26
|
+
export { PageWidth } from './components/shared/PageWidth';
|
|
27
|
+
export { Dashboard as AuthDashboard } from './components/modules/auth/Dashboard';
|
|
28
|
+
export { Dashboard } from './components/modules/auth/Dashboard';
|
|
29
|
+
export { PostCard } from './components/modules/auth/PostCard';
|
|
30
|
+
export { PostInteractionsModal } from './components/modules/auth/PostInteractionsModal';
|
|
31
|
+
export { RepostModal } from './components/modules/auth/RepostModal';
|
|
32
|
+
export { SidebarLeft as AuthSidebarLeft } from './components/modules/auth/SidebarLeft';
|
|
33
|
+
export { Stories } from './components/modules/auth/Stories';
|
|
34
|
+
export { StoryViewer } from './components/modules/auth/StoryViewer';
|
|
35
|
+
export { MediaLightbox, type PostMedia } from './components/modules/auth/MediaLightbox';
|
|
36
|
+
export { ChatContainer } from './components/modules/chat/ChatContainer';
|
|
37
|
+
export { ChatInput } from './components/modules/chat/ChatInput';
|
|
38
|
+
export { ChatList } from './components/modules/chat/ChatList';
|
|
39
|
+
export { ChatMessage } from './components/modules/chat/ChatMessage';
|
|
40
|
+
export { ChatNotes } from './components/modules/chat/ChatNotes';
|
|
41
|
+
export { GroupHeader } from './components/modules/community/GroupHeader';
|
|
42
|
+
export { GroupMenu } from './components/modules/community/GroupMenu';
|
|
43
|
+
export { SchoolCard } from './components/modules/community/SchoolCard';
|
|
44
|
+
export { SurveyCard } from './components/modules/community/SurveyCard';
|
|
45
|
+
export { ForumBoard } from './components/modules/forum/ForumBoard';
|
|
46
|
+
export { ForumPost } from './components/modules/forum/ForumPost';
|
|
47
|
+
export { NewTopicModal } from './components/modules/forum/NewTopicModal';
|
|
48
|
+
export { TopicItem } from './components/modules/forum/TopicItem';
|
|
49
|
+
export { GalleryCard } from './components/modules/galleries/GalleryCard';
|
|
50
|
+
export { GiveawayCard } from './components/modules/giveaways/GiveawayCard';
|
|
51
|
+
export { GroupCard } from './components/modules/groups/GroupCard';
|
|
52
|
+
export { ApplicationModal as GroupApplicationModal } from './components/modules/groups/ApplicationModal';
|
|
53
|
+
export { Introduction } from './components/modules/guest/Introduction';
|
|
54
|
+
export { BackToStore } from './components/modules/magaza/BackToStore';
|
|
55
|
+
export { StoreHeader } from './components/modules/magaza/StoreHeader';
|
|
56
|
+
export { NewsCard } from './components/modules/news/NewsCard';
|
|
57
|
+
export { NewsComments } from './components/modules/news/NewsComments';
|
|
58
|
+
export { ProfileHeader } from './components/modules/profile/ProfileHeader';
|
|
59
|
+
export { ProfileStats } from './components/modules/profile/ProfileStats';
|
|
60
|
+
export { ProfileContent } from './components/modules/profile/ProfileContent';
|
|
61
|
+
export { EditProfileModal } from './components/modules/profile/EditProfileModal';
|
|
62
|
+
export { TeamSelectorModal } from './components/modules/profile/TeamSelectorModal';
|
|
63
|
+
export { CloudStorageModal } from './components/modules/profile/CloudStorageModal';
|
|
64
|
+
export { StationCard } from './components/modules/stations/StationCard';
|
|
65
|
+
export { StationQRModal } from './components/modules/stations/StationQRModal';
|
|
66
66
|
//# sourceMappingURL=index.d.ts.map
|
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,8 +1,8 @@
|
|
|
1
|
-
import { School, Faculty, Classroom, SchoolTeam } from '@armoyu/core';
|
|
2
|
-
export declare const MOCK_EDUCATION_DATA: (userList: any[]) => {
|
|
3
|
-
schools: School[];
|
|
4
|
-
faculties: Faculty[];
|
|
5
|
-
teams: SchoolTeam[];
|
|
6
|
-
classrooms: Classroom[];
|
|
7
|
-
};
|
|
1
|
+
import { School, Faculty, Classroom, SchoolTeam } from '@armoyu/core';
|
|
2
|
+
export declare const MOCK_EDUCATION_DATA: (userList: any[]) => {
|
|
3
|
+
schools: School[];
|
|
4
|
+
faculties: Faculty[];
|
|
5
|
+
teams: SchoolTeam[];
|
|
6
|
+
classrooms: Classroom[];
|
|
7
|
+
};
|
|
8
8
|
//# sourceMappingURL=educationData.d.ts.map
|