Skip to content

Commit d3c0c83

Browse files
authored
Merge pull request #220 from 11cafe/dev
Dev
2 parents c2bcbb0 + d6f4d1e commit d3c0c83

Some content is hidden

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

59 files changed

+7789
-33072
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Build and Package Desktop App
33

44
on:
55
push:
6-
branches: [main, dev, art]
6+
branches: [main]
77
pull_request:
8-
branches: [main, dev, art]
8+
branches: [main]
99

1010
jobs:
1111
build:

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ user_data/
1919

2020
.continue
2121

22-
jaaz_cloud
22+
jaaz-cloud
23+
24+
.env

.prettierrc.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"arrowParens": "always",
5+
"printWidth": 100,
6+
"tabWidth": 2,
7+
"trailingComma": "es5",
8+
"bracketSpacing": true,
9+
"bracketSameLine": false,
10+
"endOfLine": "lf",
11+
"quoteProps": "as-needed",
12+
"jsxSingleQuote": true,
13+
"proseWrap": "preserve",
14+
"htmlWhitespaceSensitivity": "css",
15+
"vueIndentScriptAndStyle": false,
16+
"embeddedLanguageFormatting": "auto",
17+
"singleAttributePerLine": false,
18+
"useTabs": false,
19+
"insertPragma": false,
20+
"requirePragma": false,
21+
"overrides": [
22+
{
23+
"files": "*.md",
24+
"options": {
25+
"proseWrap": "always",
26+
"printWidth": 100
27+
}
28+
},
29+
{
30+
"files": "*.json",
31+
"options": {
32+
"printWidth": 120
33+
}
34+
},
35+
{
36+
"files": "*.yml",
37+
"options": {
38+
"printWidth": 120
39+
}
40+
}
41+
]
42+
}

.vscode/settings.json

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,17 @@
11
{
22
"python.languageServer": "Pylance",
33
"python.analysis.typeCheckingMode": "strict",
4-
"python.analysis.extraPaths": [
5-
"server/"
6-
],
7-
// "[python]": {
8-
// "editor.defaultFormatter": "ms-python.black-formatter"
9-
// },
10-
// "editor.codeActionsOnSave": {
11-
// "source.fixAll": true,
12-
// "source.fixAll.ruff": true
13-
// },
4+
"python.analysis.extraPaths": ["server/"],
5+
"[python]": {
6+
"editor.defaultFormatter": "ms-python.black-formatter",
7+
"editor.formatOnSave": true
8+
},
9+
"black-formatter.args": ["--config", "pyproject.toml"],
1410
"editor.formatOnSave": true,
1511
"prettier.enable": true,
16-
"prettier.singleQuote": true,
17-
"prettier.arrowParens": "always",
18-
"prettier.printWidth": 80,
19-
"prettier.tabWidth": 2,
20-
"prettier.semi": false,
2112
"python.analysis.autoImportCompletions": true,
22-
"i18n-ally.localesPaths": [
23-
"react/src/i18n/locales"
24-
],
25-
"i18n-ally.enabledFrameworks": [
26-
"react-i18next"
27-
],
13+
"i18n-ally.localesPaths": ["react/src/i18n/locales"],
14+
"i18n-ally.enabledFrameworks": ["react-i18next"],
2815
"i18n-ally.keystyle": "nested",
2916
"i18n-ally.namespace": true,
3017
"i18n-ally.pathMatcher": "{locale}/{namespaces}.json",

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
<h1 align="center">
32
<a href="https://jaaz.app" target="_blank"> Jaaz.app</a>
43
<p align="center">The World's First Open source AI Design Agent</p>
@@ -11,11 +10,10 @@ The world's first open-source multimodal creative agent, a creative tool that pr
1110

1211
[Join our Discord](https://discord.gg/dS7kuT66wc) to get latest updates!
1312

14-
1513
<div align="center"> <a href="https://jaaz.app/api/downloads/mac-latest"> <img src="https://user-images.githubusercontent.com/37590873/219133640-8b7a0179-20a7-4e02-8887-fbbd2eaad64b.png" alt="Download for macOS" width="300"/> </a> &nbsp;&nbsp; <a href="https://jaaz.app/api/downloads/windows-latest"> <img width="300" src="https://cdn.intheloop.io/wp-content/uploads/2020/08/windows-button.png" alt="Download for Windows" /> </a> </div>
1614

17-
1815
## ✨ Getting started & staying tuned with us.
16+
1917
Star us, and you will receive all release notifications from GitHub without any delay!
2018
<img width="900" alt="Screenshot 2025-06-02 at 3 03 49 PM" src="https://github.com/user-attachments/assets/1c9a3661-80a4-4fba-a30f-f469898b0aec" />
2119

@@ -62,14 +60,12 @@ Intelligently invoke custom comfyui workflows
6260

6361
<img width="900" alt="Screenshot 2025-06-18 at 16 09 05" src="https://github.com/user-attachments/assets/eacee793-3bc4-4fa2-9e23-94efa1e1f087" />
6462

65-
6663
## Cases
6764

6865
- Prompt: Help me place this character in six different scenes, all in front of landmark buildings from around the world. The lighting is harmonious. He takes photos from all over the world, realistic, with warm light, high picture quality, and a picture ratio of 9:16
6966

7067
![814c563b08f6ef44de0c2c31f0fdd00b-min](https://github.com/user-attachments/assets/4e2634b3-9068-47cd-a18f-ddde8f218d25)
7168

72-
7369
<img width="1000" alt="Screenshot 2025-06-02 at 3 51 56 AM" src="https://github.com/user-attachments/assets/5d8efe74-99b0-41bc-aa3e-6f7b92b69c36" />
7470
<img width="900" alt="Screenshot 2025-06-02 at 3 51 56 AM" src="https://github.com/user-attachments/assets/56a15432-65ff-4e71-a2f2-4f159ffb304a" />
7571

@@ -86,7 +82,6 @@ To use deepseek as a provider, setup as below
8682

8783
<img width="900" alt="Screenshot 2025-06-10 at 12 05 35" src="https://github.com/user-attachments/assets/61cb1b87-065f-4376-b853-b0032d4d3be8" />
8884

89-
9085
## Manual Install (For Linux or local builds)
9186

9287
🟠 **Need Python version >=3.12**
@@ -111,6 +106,10 @@ First git clone this repo:
111106

112107
🟠 **Need Python version >=3.12**
113108

109+
VSCode/Cursor Install Extensions:
110+
111+
- Black Formatter by ms-python (ms-python.black-formatter)
112+
114113
`cd react`
115114

116115
`npm install --force && npm run dev`

electron/main.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,14 @@ const startPythonApi = async () => {
203203
console.log('BASE_API_URL:', env.BASE_API_URL)
204204

205205
// Apply proxy settings and get environment variables
206-
const proxyEnvVars = await settingsService.getProxyEnvironmentVariables()
206+
try {
207+
const proxyEnvVars = await settingsService.getProxyEnvironmentVariables()
207208

208-
// Merge proxy environment variables into env
209-
Object.assign(env, proxyEnvVars)
209+
// Merge proxy environment variables into env
210+
Object.assign(env, proxyEnvVars)
211+
} catch (error) {
212+
console.error('Failed to get proxy environment variables:', error)
213+
}
210214

211215
// Determine the Python executable path (considering packaged app)
212216
const isWindows = process.platform === 'win32'

0 commit comments

Comments
 (0)