Commit 78e6576
committed
feat: add hooks for API health, update checking, viewer caching, and viewer count management
- Implemented `useApiHealth` hook to check the health of the remote API (CORS disabled temporarily).
- Created `useUpdateChecker` hook to check for updates from GitHub releases.
- Developed `useViewerCache` hook to manage and cache viewer count values.
- Added `useViewerCount` hook to fetch and manage viewer count for a given username.
- Introduced `useWebSocketBot` hook for managing WebSocket connections and bot interactions.
chore: configure Next.js and Tailwind CSS
- Updated `next.config.js` for standalone output and build error handling.
- Added `postcss.config.js` for Tailwind CSS integration.
- Configured `tailwind.config.js` with custom content paths and theme extensions.
feat: implement local service connector and WebSocket service
- Created `LocalServiceConnector` for connecting to a local Python backend service.
- Developed `WebSocketService` for handling WebSocket communication with the bot.
feat: add Zustand store for bot management
- Implemented Zustand store to manage bot status and actions (start, stop, check status).
style: add global styles and utility functions
- Added global CSS styles and utility functions for animations and class name management.1 parent 0aefe5a commit 78e6576
File tree
63 files changed
+4444
-4719
lines changed- frontend
- .vscode
- app
- functions
- login
- register
- types
- components
- config
- contexts
- hooks
- public
- services
- src
- app
- components
- styles
- store
- styles
- types
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
63 files changed
+4444
-4719
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 6 | + | |
12 | 7 | | |
13 | 8 | | |
14 | 9 | | |
| |||
28 | 23 | | |
29 | 24 | | |
30 | 25 | | |
31 | | - | |
32 | 26 | | |
33 | | - | |
34 | | - | |
| 27 | + | |
| 28 | + | |
35 | 29 | | |
36 | 30 | | |
37 | 31 | | |
38 | 32 | | |
39 | 33 | | |
40 | 34 | | |
41 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
6 | 22 | | |
7 | 23 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 24 | + | |
15 | 25 | | |
16 | 26 | | |
17 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
18 | 30 | | |
19 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
20 | 34 | | |
21 | | - | |
| 35 | + | |
22 | 36 | | |
23 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
24 | 40 | | |
25 | | - | |
| 41 | + | |
26 | 42 | | |
27 | | - | |
28 | | - | |
| 43 | + | |
29 | 44 | | |
30 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
31 | 48 | | |
32 | | - | |
| 49 | + | |
33 | 50 | | |
34 | | - | |
| 51 | + | |
35 | 52 | | |
36 | | - | |
| 53 | + | |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
0 commit comments