Skip to content

Commit fcb38dd

Browse files
committed
Merge branch 'release/2.0.0'
2 parents 0481f58 + bda73c4 commit fcb38dd

File tree

210 files changed

+4425
-7253
lines changed

Some content is hidden

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

210 files changed

+4425
-7253
lines changed

.docker/nginx.conf

Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,51 @@
11
server {
2-
listen 80;
3-
root /usr/share/nginx/html;
4-
index index.html;
5-
6-
location / {
7-
try_files $uri /index.html;
8-
}
9-
}
2+
listen 80;
3+
server_name localhost;
4+
root /usr/share/nginx/html;
5+
index index.html;
6+
7+
# Gzip compression
8+
gzip on;
9+
gzip_vary on;
10+
gzip_min_length 1024;
11+
gzip_proxied expired no-cache no-store private must-revalidate auth;
12+
gzip_types
13+
text/plain
14+
text/css
15+
text/xml
16+
text/javascript
17+
application/javascript
18+
application/xml+rss
19+
application/json;
20+
21+
# Security headers
22+
add_header X-Frame-Options "SAMEORIGIN" always;
23+
add_header X-XSS-Protection "1; mode=block" always;
24+
add_header X-Content-Type-Options "nosniff" always;
25+
add_header Referrer-Policy "no-referrer-when-downgrade" always;
26+
add_header Content-Security-Policy "default-src 'self' http: https: data: blob: 'unsafe-inline'" always;
27+
28+
# Handle client routing
29+
location / {
30+
try_files $uri $uri/ /index.html;
31+
}
32+
33+
# Cache static assets
34+
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
35+
expires 1y;
36+
add_header Cache-Control "public, immutable";
37+
}
38+
39+
# Cache HTML files for a shorter period
40+
location ~* \.html$ {
41+
expires 1h;
42+
add_header Cache-Control "public";
43+
}
44+
45+
# Health check endpoint
46+
location /health {
47+
access_log off;
48+
return 200 "healthy\n";
49+
add_header Content-Type text/plain;
50+
}
51+
}

.docker/start.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
#!/bin/sh
2-
/docker-entrypoint.sh nginx -g 'daemon off;'
2+
3+
echo "Starting Evolution Manager v2..."
4+
5+
# Start nginx
6+
nginx -g "daemon off;"

.editorconfig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# EditorConfig is awesome: https://EditorConfig.org
2-
3-
# top-most EditorConfig file
41
root = true
52

63
[*]
4+
charset = utf-8
5+
end_of_line = lf
76
indent_style = space
87
indent_size = 2
9-
end_of_line = lf
10-
charset = utf-8
8+
insert_final_newline = true
119
trim_trailing_whitespace = true
12-
insert_final_newline = false
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
dist/
2+
node_modules/
3+
build/
4+
*.config.js
5+
*.config.ts
6+
.eslintrc.cjs
7+
vite.config.ts
8+
tailwind.config.js
9+
postcss.config.js

.eslintrc.cjs

Lines changed: 35 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,45 @@ module.exports = {
66
parser: "@typescript-eslint/parser",
77
plugins: ["react-refresh"],
88
rules: {
9-
"prettier/prettier": [
10-
"error",
11-
{
12-
printWidth: 80,
13-
tabWidth: 2,
14-
singleQuote: false,
15-
trailingComma: "all",
16-
arrowParens: "always",
17-
semi: true,
18-
endOfLine: "auto",
19-
},
20-
],
9+
// Disable prettier conflicts
10+
"prettier/prettier": "off",
11+
12+
// React refresh warnings only
2113
"react-refresh/only-export-components": [
2214
"warn",
2315
{ allowConstantExport: true },
2416
],
25-
"import-helpers/order-imports": [
26-
"warn",
27-
{
28-
newlinesBetween: "always",
29-
groups: [
30-
"module",
31-
"/^@/components/",
32-
"/^@/contexts/",
33-
"/^@/layout/",
34-
"/^@/lib/",
35-
"/^@/pages/",
36-
"/^@/routes/",
37-
"/^@/services/",
38-
"/^@/types/",
39-
"/^@/utils/",
40-
["parent", "sibling", "index"],
41-
],
42-
alphabetize: { order: "asc", ignoreCase: true },
43-
},
17+
18+
// Allow any type (common in this codebase)
19+
"@typescript-eslint/no-explicit-any": "off",
20+
21+
// Allow unused variables starting with _
22+
"@typescript-eslint/no-unused-vars": [
23+
"error",
24+
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" }
4425
],
26+
27+
// Disable strict import rules that cause issues
28+
"import/no-duplicates": "off",
29+
"import/first": "off",
30+
"import-helpers/order-imports": "off",
31+
32+
// Allow missing dependencies in useEffect (common pattern)
33+
"react-hooks/exhaustive-deps": "warn",
34+
35+
// Allow case declarations
36+
"no-case-declarations": "off",
37+
38+
// Allow unescaped entities in JSX
39+
"react/no-unescaped-entities": "off",
40+
41+
// Allow undefined React (auto-imported)
42+
"no-undef": "off",
43+
44+
// Allow unreachable code (sometimes intentional)
45+
"no-unreachable": "warn",
46+
47+
// Allow constant conditions (sometimes intentional)
48+
"no-constant-condition": "warn",
4549
},
4650
};
Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
name: 🐛 Bug Report
2+
description: Report a bug or issue with Evolution Manager
3+
title: "[Bug]: "
4+
labels: ["bug", "needs-triage"]
5+
assignees: []
6+
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for taking the time to report a bug! Please fill out the form below with as much detail as possible.
12+
13+
- type: checkboxes
14+
id: terms
15+
attributes:
16+
label: Prerequisites
17+
description: Please confirm the following before submitting your bug report
18+
options:
19+
- label: I have searched existing issues to ensure this bug hasn't been reported before
20+
required: true
21+
- label: I have read the [documentation](https://doc.evolution-api.com)
22+
required: true
23+
- label: I am using a supported version of Evolution Manager
24+
required: true
25+
26+
- type: textarea
27+
id: description
28+
attributes:
29+
label: Bug Description
30+
description: A clear and concise description of what the bug is
31+
placeholder: Describe the bug...
32+
validations:
33+
required: true
34+
35+
- type: textarea
36+
id: steps
37+
attributes:
38+
label: Steps to Reproduce
39+
description: Steps to reproduce the behavior
40+
placeholder: |
41+
1. Go to '...'
42+
2. Click on '...'
43+
3. Scroll down to '...'
44+
4. See error
45+
validations:
46+
required: true
47+
48+
- type: textarea
49+
id: expected
50+
attributes:
51+
label: Expected Behavior
52+
description: A clear and concise description of what you expected to happen
53+
placeholder: What should have happened?
54+
validations:
55+
required: true
56+
57+
- type: textarea
58+
id: actual
59+
attributes:
60+
label: Actual Behavior
61+
description: A clear and concise description of what actually happened
62+
placeholder: What actually happened?
63+
validations:
64+
required: true
65+
66+
- type: textarea
67+
id: screenshots
68+
attributes:
69+
label: Screenshots
70+
description: If applicable, add screenshots to help explain your problem
71+
placeholder: Drag and drop screenshots here or paste image URLs
72+
73+
- type: dropdown
74+
id: browser
75+
attributes:
76+
label: Browser
77+
description: Which browser are you using?
78+
options:
79+
- Chrome
80+
- Firefox
81+
- Safari
82+
- Edge
83+
- Other (please specify in additional context)
84+
validations:
85+
required: true
86+
87+
- type: input
88+
id: browser-version
89+
attributes:
90+
label: Browser Version
91+
description: What version of the browser are you using?
92+
placeholder: e.g., Chrome 120.0.0.0
93+
validations:
94+
required: true
95+
96+
- type: input
97+
id: manager-version
98+
attributes:
99+
label: Evolution Manager Version
100+
description: What version of Evolution Manager are you using?
101+
placeholder: e.g., v2.0.0
102+
validations:
103+
required: true
104+
105+
- type: input
106+
id: api-version
107+
attributes:
108+
label: Evolution API Version
109+
description: What version of Evolution API are you connecting to?
110+
placeholder: e.g., v2.3.3
111+
validations:
112+
required: true
113+
114+
- type: dropdown
115+
id: os
116+
attributes:
117+
label: Operating System
118+
description: What operating system are you using?
119+
options:
120+
- Windows
121+
- macOS
122+
- Linux
123+
- iOS
124+
- Android
125+
- Other (please specify in additional context)
126+
validations:
127+
required: true
128+
129+
- type: textarea
130+
id: console-logs
131+
attributes:
132+
label: Console Logs
133+
description: Please provide any relevant console logs or error messages
134+
placeholder: Paste console logs here...
135+
render: shell
136+
137+
- type: textarea
138+
id: additional-context
139+
attributes:
140+
label: Additional Context
141+
description: Add any other context about the problem here
142+
placeholder: Any additional information that might be helpful...
143+
144+
- type: checkboxes
145+
id: contribution
146+
attributes:
147+
label: Contribution
148+
description: Would you like to contribute to fixing this issue?
149+
options:
150+
- label: I would like to work on fixing this bug
151+
required: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 💬 Discord Community
4+
url: https://evolution-api.com/discord
5+
about: Join our Discord community for general questions and discussions
6+
- name: 📖 Documentation
7+
url: https://doc.evolution-api.com
8+
about: Check our comprehensive documentation for guides and API reference
9+
- name: 🔒 Security Vulnerability
10+
url: https://github.com/EvolutionAPI/evolution-manager-v2/security/advisories/new
11+
about: Please report security vulnerabilities privately via GitHub Security Advisories
12+
- name: 💼 Commercial Support
13+
url: https://evolution-api.com/contact
14+
about: Get professional support and custom solutions

0 commit comments

Comments
 (0)