Skip to content

Commit af70d37

Browse files
testing updates for electron
1 parent fdf7a52 commit af70d37

14 files changed

Lines changed: 247 additions & 1019 deletions

File tree

.env.example

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,6 @@ AWS_BEDROCK_CONFIG=
9898
# Include this environment variable if you want more logging for debugging locally
9999
VITE_LOG_LEVEL=debug
100100

101-
# Database Configuration
102-
# Required: Set this to your PostgreSQL connection string
103-
# IMPORTANT: URL-encode special characters in passwords ($ becomes %24, ! becomes %21, etc.)
104-
# For local development with PostgreSQL:
105-
# DATABASE_URL=postgresql://username:password@localhost:5432/database_name
106-
#
107-
# For production (Supabase example):
108-
# DATABASE_URL=postgresql://postgres:[password]@db.[project-ref].supabase.co:5432/postgres?sslmode=require
109-
#
110-
# For Docker PostgreSQL (not committed to repo):
111-
# DATABASE_URL=postgresql://username:password@db:5432/database_name
112-
DATABASE_URL=
113-
114101
# Get your GitHub Personal Access Token here -
115102
# https://github.com/settings/tokens
116103
# This token is used for:
@@ -127,14 +114,6 @@ VITE_GITHUB_ACCESS_TOKEN=
127114
# Classic tokens are recommended for broader access
128115
VITE_GITHUB_TOKEN_TYPE=classic
129116

130-
# Email verification with Resend
131-
# Get your API key at https://resend.com/api-keys
132-
RESEND_API_KEY=
133-
134-
# Application URL for email verification links
135-
# Should be your production domain (e.g., https://codinit.dev)
136-
APP_URL=
137-
138117
# Example Context Values for qwen2.5-coder:32b
139118
#
140119
# DEFAULT_NUM_CTX=32768 # Consumes 36GB of VRAM

.github/workflows/electron.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,3 @@ jobs:
101101
dist/*.zip
102102
env:
103103
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
104-

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ CLAUDE.md
5252
AGENTS.md*
5353
.mcp.json
5454
.claude
55-
/app/generated/prisma
55+
/app/generated/prisma

app/lib/api/userService.ts

Lines changed: 0 additions & 124 deletions
This file was deleted.

app/routes/api.update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { json, type ActionFunction } from '@remix-run/cloudflare';
22

33
// Current version - update this when releasing new versions
4-
const CURRENT_VERSION = '1.2.15';
4+
const CURRENT_VERSION = '1.2.16';
55
const GITHUB_REPO = 'gerome-elassaad/codinit-app';
66

77
interface GitHubRelease {

app/routes/verify-email.tsx

Lines changed: 0 additions & 55 deletions
This file was deleted.

app/utils/rateLimit.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ class RateLimiter {
7878

7979
// Rate limiters for different endpoints
8080
export const registrationRateLimiter = new RateLimiter(60 * 60 * 1000, 5); // 5 per hour per IP
81-
export const verificationRateLimiter = new RateLimiter(60 * 60 * 1000, 3); // 3 per hour per email
8281

8382
// Helper function to get client IP from request
8483
export function getClientIP(request: Request): string {

assets/entitlements.mac.plist

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
<key>com.apple.security.network.client</key>
1515
<true/>
1616

17-
<key>com.apple.security.files.user-selected.read-write</key>
18-
<true/>
17+
<!-- Uncomment to allow read and write access to files explicitly selected by the user through system dialogs -->
18+
<!-- <key>com.apple.security.files.user-selected.read-write</key>
19+
<true/> -->
1920

20-
<key>com.apple.security.files.downloads.read-write</key>
21-
<true/>
21+
<!-- Uncomment to allow read and write access to the user's Downloads directory -->
22+
<!-- <key>com.apple.security.files.downloads.read-write</key>
23+
<true/> -->
2224
</dict>
2325
</plist>

electron-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
owner: gerome-elassaad
1+
owner: Gerome-Elassaad
22
repo: codinit-app
33
provider: github
44
private: false

electron/main/index.ts

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -252,46 +252,6 @@ declare global {
252252
}
253253
});
254254

255-
ipcMain.handle('cookie-get', async (_, name: string) => {
256-
try {
257-
const cookies = await session.defaultSession.cookies.get({ name });
258-
return cookies.length > 0 ? cookies[0].value : null;
259-
} catch (error) {
260-
console.error('Failed to get cookie from Electron session:', error);
261-
return null;
262-
}
263-
});
264-
265-
ipcMain.handle('cookie-get-all', async (_) => {
266-
try {
267-
const cookies = await session.defaultSession.cookies.get({});
268-
return cookies.map((cookie) => ({
269-
name: cookie.name,
270-
value: cookie.value,
271-
path: cookie.path,
272-
domain: cookie.domain,
273-
secure: cookie.secure,
274-
httpOnly: cookie.httpOnly,
275-
expirationDate: cookie.expirationDate,
276-
}));
277-
} catch (error) {
278-
console.error('Failed to get all cookies from Electron session:', error);
279-
return [];
280-
}
281-
});
282-
283-
ipcMain.handle('cookie-remove', async (_, name: string) => {
284-
try {
285-
await session.defaultSession.cookies.remove('http://localhost', name);
286-
console.log('Cookie removed from Electron session:', name);
287-
288-
return true;
289-
} catch (error) {
290-
console.error('Failed to remove cookie from Electron session:', error);
291-
return false;
292-
}
293-
});
294-
295255
return win;
296256
})
297257
.then((win) => {

0 commit comments

Comments
 (0)