Skip to content

Addfeatures

Pre-release
Pre-release

Choose a tag to compare

@Codefolder-dev Codefolder-dev released this 06 Aug 02:02
· 22 commits to main since this release

Overview

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 under src/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 under src/contexts/PlaygroundContext.tsx.

  • Playground Hooks: Added custom hooks for handling playground-related functionalities:

    • usePlayground.ts under src/hooks/usePlayground.ts
  • API Endpoints: Created new API endpoints for executing code:

    • execute.ts under src/pages/api/playground/execute.ts
  • Playground Page (index.tsx): Added a new page for the playground feature under src/pages/playground/index.tsx.

2. Community Module

  • Forum and Comment Components: Added new components for the community module:

    • Forum.tsx and Comment.tsx under src/components/community/
  • API Endpoints: Created new API endpoints for handling community interactions:

    • postComment.ts and getComments.ts under src/pages/api/community/
  • Community Page (index.tsx): Added a new page for community discussions under src/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.ts and communityService.ts under src/services/
  • Utility Functions: Introduced new utility functions for playground and community modules:

    • playgroundUtils.ts and communityUtils.ts under src/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