Skip to content

Commit 66a6347

Browse files
authored
Merge pull request #1 from wiseaidev/apis-fix
Apis fix
2 parents 2d4be50 + 1bd7101 commit 66a6347

File tree

46 files changed

+1454
-541
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1454
-541
lines changed

CODE_OF_CONDUCT.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the
26+
overall community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at
63+
`support` room in the platform.
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series
86+
of actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or
93+
permanent ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within
113+
the community.
114+
115+
## Attribution
116+
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.0, available at
119+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120+
121+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122+
enforcement ladder](https://github.com/mozilla/diversity).
123+
124+
[homepage]: https://www.contributor-covenant.org
125+
126+
For answers to common questions about this code of conduct, see the FAQ at
127+
https://www.contributor-covenant.org/faq. Translations are available at
128+
https://www.contributor-covenant.org/translations.

CONTRIBUTING.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# 🌍 Contributing.
2+
3+
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
4+
5+
## 👶 Getting Started!
6+
7+
Ready to contribute? Here's how to set up `code-inbox` for local development.
8+
9+
1. Fork the `code-inbox` repo on GitHub.
10+
2. Clone your fork locally:
11+
12+
```sh
13+
git clone [email protected]:your_name_here/code-inbox.git
14+
```
15+
16+
3. Navigate to the recently created directory:
17+
18+
```sh
19+
cd code-inbox
20+
```
21+
22+
4. Install the main dependencies:
23+
24+
```sh
25+
pnpm install
26+
```
27+
28+
5. Create a branch for local development:
29+
30+
```sh
31+
git checkout -b name-of-your-bugfix-or-feature
32+
```
33+
34+
6. Set the following env variables:
35+
36+
```sh
37+
export VITE_SERVER_URL=http://localhost:8000/api/v1
38+
```
39+
40+
Now you can make your changes locally.
41+
42+
7. Commit your changes and push your branch to GitHub:
43+
44+
```sh
45+
git add .
46+
git commit -m "Your detailed description of your changes."
47+
git push origin name-of-your-bugfix-or-feature
48+
```
49+
50+
8. Submit a pull request through the GitHub website.
51+
52+
53+
## 📙 Pull Request Guidelines.
54+
55+
Before you submit a pull request, check that it meets these guidelines:
56+
57+
1. The pull request should include tests, if applicable.
58+
59+
Thank you for helping us improve!

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 Mahmoud
3+
Copyright (c) 2023 Mahmoud Harmouch
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 125 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,128 @@
1-
# React + Vite
1+
# Code Inbox
22

3-
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
3+
[![Demo on Cloudflare](https://badgen.net/badge/icon/cloudflare/green?icon=telegram&label=code-inbox)](https://code-inbox.com/)
4+
[![Tag](https://badgen.net/github/tag/wiseaidev/code-inbox)](https://github.com/wiseaidev/code-inbox/releases/tag/v0.1.0)
45

5-
Currently, two official plugins are available:
6+
![Code Inbox](./static/banner.png "Code Inbox")
67

7-
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
8+
Code Inbox is a sophisticated email client meticulously designed to streamline the process of mastering algorithms, offering AI-generated algorithmic posts delivered directly to your inbox. This robust platform is not only user-friendly but also offers an elegant and intuitive interface, ensuring effortless email management.
9+
10+
With a wide array of features, Code Inbox empowers users to efficiently organize their email correspondence, making it a versatile tool for both beginners and experts alike. Its user-centric design simplifies navigation, allowing you to effortlessly manage your inbox, prioritize important messages, and optimize your algorithmic learning journey.
11+
12+
Moreover, Code Inbox's adaptability shines through its fully responsive design, ensuring a seamless experience across various devices. Whether you're working on a desktop computer or accessing your emails on the go via a mobile device, you can count on Code Inbox to provide a consistently exceptional experience.
13+
14+
## Supported Features
15+
16+
Code Inbox currently offers a range of essential features to enhance your email management experience, including:
17+
18+
1. **Intuitive User Interface:** A user-friendly interface designed for ease of use, ensuring effortless navigation and efficient email management.
19+
20+
1. **Algorithmic Recommendations:** Receive algorithmic learning posts generated by AI, delivered directly to your inbox, simplifying your learning journey.
21+
22+
## 2023 Roadmap
23+
24+
We are committed to continually improving Code Inbox to meet your evolving needs. Here are some exciting features we have planned for 2023:
25+
26+
1. **Unified Email Threads:** Enhance your email viewing experience by displaying entire email threads in a single page. This feature simplifies the way you follow conversations and ensures you have the context you need.
27+
28+
1. **Attachment Support:** We will introduce the ability to send attachments with your emails, making it easier to share documents, files, and important resources with your contacts.
29+
30+
1. **Label Coloring:** Customize your email labels with color coding, allowing you to visually organize and prioritize your messages more effectively.
31+
32+
1. **Contact Management:** Streamline your email contacts by adding and deleting contacts directly from within Code Inbox. This feature simplifies your address book management and keeps it up to date.
33+
34+
> **Note**<br>
35+
We are dedicated to delivering these enhancements to make Code Inbox even more powerful and tailored to your requirements in 2023. Stay tuned for these updates and more as we continue to evolve and improve our email client.
36+
37+
## Reusable Components
38+
39+
Code Inbox is committed to providing developers with a developer-friendly code base, featuring standards-compliant and performance-optimized code. Our codebase includes a curated collection of reusable components, designed to streamline the development process and promote code efficiency.
40+
41+
### Getting Started Locally with PNPM
42+
43+
> **Please Note:**<br>
44+
Ensure that you have [`pnpm`](https://pnpm.io/installation) installed on your local machine before proceeding.
45+
46+
1. **Fork/Clone the Repository:**
47+
48+
```sh
49+
git clone [email protected]:your_user_name/code-inbox.git
50+
```
51+
52+
1. **Navigate to the Project Directory:**
53+
54+
```sh
55+
cd code-inbox
56+
```
57+
58+
1. **Install Dependencies:**
59+
60+
```sh
61+
pnpm install
62+
```
63+
64+
1. **Run the Client:**
65+
66+
```sh
67+
pnpm run dev
68+
```
69+
70+
1. **Explore the Landing Page:**
71+
72+
Open your web browser and go to [http://localhost:3000](http://localhost:3000) to explore the Code Inbox landing page and start interacting with the provided pages.
73+
74+
## Deployment
75+
76+
> **Note**<br>
77+
To deploy the client, you will need to set the following environment variable that help the client connect to the server.
78+
```sh
79+
* VITE_SERVER_URL - Your deployed server APIs url.
80+
```
81+
82+
### **Deploy to a Static Hosting Provider**
83+
84+
### **CloudFlare**
85+
86+
1. Install [Wrangler CLI](https://developers.cloudflare.com/workers/wrangler/get-started/):
87+
88+
To get started with Cloudflare Workers, you'll need to install the Wrangler CLI, which is a powerful tool for managing your deployments. Open up your command-line interface and enter the following command to globally install Wrangler:
89+
90+
```sh
91+
npm install -g wrangler
92+
```
93+
94+
1. Login to Cloudflare Account from the CLI:
95+
96+
To seamlessly interact with your Cloudflare account, you'll need to log in using Wrangler. Run the following command in your terminal:
97+
98+
```sh
99+
wrangler login
100+
```
101+
102+
1. Configure Environment Variables for Client-Server Connection:
103+
104+
For your React app to communicate effectively with the server, you need to set a couple of environment variables. Replace the placeholders with actual URLs:
105+
106+
```sh
107+
export VITE_SERVER_URL=Your_deployed_server_APIs_url
108+
```
109+
110+
1. Run Your Build Command:
111+
112+
Before deployment, ensure your project is finely tuned. Execute your build command to prepare your app for the world:
113+
114+
```sh
115+
pnpm run build
116+
```
117+
118+
1. Create a New Deployment:
119+
120+
The moment has come to launch your creation into the online realm! Execute the following command to deploy your app with Wrangler Pages:
121+
122+
```sh
123+
wrangler pages deploy dist
124+
```
125+
126+
### **Netlify**
127+
128+
[![Deploy on Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/wiseaidev/code-inbox)

SECURITY.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
The versions of the project that are currently supported with security updates.
6+
7+
| Version | Supported |
8+
| ------- | ------------------ |
9+
| 0.1.x | :white_check_mark: |
10+
| < 1.0 | :white_check_mark: |
11+
12+
## Reporting a Vulnerability
13+
14+
You can report a vulnerability through our support `email`.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"version": "0.0.1",
55
"type": "module",
66
"scripts": {
7-
"dev": "vite --host 127.0.0.1 --port 3000",
7+
"dev": "vite --port 3000 --host localhost",
88
"build": "vite build",
99
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
10-
"preview": "vite preview"
10+
"preview": "vite preview --port 3000 --host localhost"
1111
},
1212
"dependencies": {
1313
"@emotion/react": "^11.11.1",

public/banner.png

100644100755
-85.4 KB
Loading

public/features.png

1.89 MB
Loading

public/main-logo.png

1.23 MB
Loading

0 commit comments

Comments
 (0)