Repository navigation
Addfeatures
Pre-releaseOverview
We are excited to announce a new feature added to the project! This update introduces a comprehensive set of functionalities to enhance user interaction, especially focusing on the playground and community sections. Below are the details of the new feature additions:
New Features
1. Playground Module
-
Code Editor Component (
CodeEditor.tsx): Added a new code editor component undersrc/components/playground/CodeEditor.tsx. This component allows users to write, edit, and execute code within the application. -
Playground Context (
PlaygroundContext.tsx): Introduced a new context for managing the state of the playground module undersrc/contexts/PlaygroundContext.tsx. -
Playground Hooks: Added custom hooks for handling playground-related functionalities:
usePlayground.tsundersrc/hooks/usePlayground.ts
-
API Endpoints: Created new API endpoints for executing code:
execute.tsundersrc/pages/api/playground/execute.ts
-
Playground Page (
index.tsx): Added a new page for the playground feature undersrc/pages/playground/index.tsx.
2. Community Module
-
Forum and Comment Components: Added new components for the community module:
Forum.tsxandComment.tsxundersrc/components/community/
-
API Endpoints: Created new API endpoints for handling community interactions:
postComment.tsandgetComments.tsundersrc/pages/api/community/
-
Community Page (
index.tsx): Added a new page for community discussions undersrc/pages/community/index.tsx.
3. Miscellaneous Updates
-
Authentication Context (
AuthContext.tsx): Updated authentication context to support new features. -
Theme Context (
ThemeContext.tsx): Enhanced theme context for better customization options. -
New Services: Added new service modules to handle API interactions:
playgroundService.tsandcommunityService.tsundersrc/services/
-
Utility Functions: Introduced new utility functions for playground and community modules:
playgroundUtils.tsandcommunityUtils.tsundersrc/utils/
File Structure Overview
codefolder/
├── public/
├── src/
│ ├── components/
│ │ ├── common/
│ │ ├── playground/
│ │ └── community/
│ ├── contexts/
│ ├── hooks/
│ ├── layouts/
│ ├── pages/
│ │ ├── api/
│ │ │ ├── auth/
│ │ │ ├── playground/
│ │ │ ├── community/
│ │ │ └── user/
│ ├── services/
│ ├── styles/
│ ├── types/
│ └── utils/
├── .env
├── .eslintrc.js
├── .gitignore
├── next.config.js
├── package.json
├── tsconfig.json
└── README.md