73 Commits

Author SHA1 Message Date
Hamzat Victor
b88feee86e feat: liked project can now be deleted 2025-01-06 03:16:05 +01:00
Hamzat Victor
ceeb1fbce3 feat: complete new UI for Profiles, fix notfound error on username change 2025-01-06 02:52:32 +01:00
Akhileshrangani4
ba7a1dcc2c chore: formatting the code of recent changes 2024-11-29 13:05:35 -05:00
omar rashed
61b012b9fd fix: use correct port for the PHP template 2024-11-26 14:39:12 -05:00
Akhileshrangani4
199318e706 chore: update generations count in profile page 2024-11-25 20:06:42 -05:00
Akhilesh Rangani
39993af4a3
Merge pull request #13 from Code-Victor/feat/profile-page
Feat/profile page
2024-11-25 19:25:29 -05:00
Hamzat Victor Oluwabori
c653d34bc1
Merge branch 'main' into feat/profile-page 2024-11-25 23:10:21 +01:00
Akhileshrangani4
749739f221 chore: resolve merge conflicts with PHP template 2024-11-25 16:37:33 -05:00
Hamzat Victor
06a5d46e1f feat: complete profile page with profile edit, project likes and UI updates 2024-11-25 21:53:46 +01:00
Akhileshrangani4
426af545bd feat: integrate template awareness into AI assistant
- Add template configurations with file structures and conventions
- Update AI route handler to include template context in system messages
- Pass template type through AIChat component
- Add template-specific run commands
- Enhance AI responses with project structure knowledge
- Move hardcoded run commands from navbar/run.tsx to templates/index.ts

This improves the AI's understanding of different project templates (React, Next.js, Streamlit, Vanilla JS) and enables more contextual assistance based on the project type.
2024-11-25 15:51:28 -05:00
Akhileshrangani4
34994a8c69 refactor(api): remove AI worker, add ai api route, add usage tiers
- Remove separate AI worker service
- Added generation limits:
  FREE: 1000/month (For the beta version)
  PRO: 500/month
  ENTERPRISE: 1000/month
- Integrate AI functionality into main API routes
- Added monthly generations reset and usage tier upgrade API routes
- Upgrade tier page to be added along with profile page section
2024-11-25 15:47:57 -05:00
omar rashed
4db378b5f1 feat: add PHP template 2024-11-24 22:30:22 -05:00
James Murdza
07d3802baa fix: reload the entire file list after adding or deleting files 2024-11-17 13:25:16 -05:00
Akhilesh Rangani
062e8d9226 chore: format frontend code 2024-11-17 12:43:13 -05:00
Hamzat Victor
105eab9bad feat: complete profile page 2024-11-11 22:02:34 +01:00
Akhileshrangani4
f2f394d245 fix: type errors, shared page avatars and project icons 2024-11-11 13:05:51 -05:00
Akhileshrangani4
90bfdec58a feat: schema updates
- added additional items to users and sandbox tables
- added a random username generator
2024-11-10 22:25:15 -05:00
Akhileshrangani4
f6077ed516 fix: jsx.tolowercase error 2024-10-27 17:27:08 -04:00
James Murdza
1de980cdd6 refactor: pass event handler arguments as a single object 2024-10-26 18:35:29 -06:00
Hamzat Victor
9546d4ad7b Merge branch 'main' of https://github.com/Code-Victor/sandbox into feat/light-theme 2024-10-23 11:00:24 +01:00
Hamzat Victor
68964c2c8f feat: add css syntax highlight 2024-10-23 10:51:16 +01:00
Akhilesh Rangani
3f8e27d969 chore: format frontend code 2024-10-21 13:57:17 -06:00
Hamzat Victor
6e14f676cf feat: sort files in explorer 2024-10-14 12:09:17 +01:00
Hamzat Victor
a0183451ad feat: update project image and description 2024-10-13 23:48:36 +01:00
Hamzat Victor
0f619ccb7d feat: update project icon for each template type 2024-09-24 14:10:56 +01:00
Hamzat Victor
c2a23fcbcb fix: remove editor red squiggly lines
by dynamically loading project's tsconfig file and adding nice defaults
2024-09-24 13:00:49 +01:00
Hamzat Victor
47324f15bf feat: add support for syntax highlighting for 290+ languages 2024-09-05 13:30:24 +01:00
Akhilesh Rangani
f1a65106b0 feat: different run commands based on file types 2024-08-19 17:45:47 -07:00
James Murdza
6a31161c0a Start development server when run button is clicked. 2024-07-31 17:49:59 -07:00
James Murdza
9f0b6a8fdc
Implement secure cloud sandboxes with E2B (#35)
* chore: rename utils.ts to fileoperations.ts

* feat: replace node-pty with E2B sandboxes

* added debounced function in the editor

* fix: move socket connection to useRef

* fix: wait until terminals are killed to close the container

* fix: ensure container remains open until all owner connections are closed

* fix: sync files to container instead of local file system

* fix: set project file permissions so that they belong to the terminal user

* fix: use the container URL for the preview panel

* fix: count only the current user's sandboxes towards the limit

* fix: remove hardcoded reference to localhost

* fix: add error handling to the backend

* docs: add information about E2B

---------

Co-authored-by: Akhilesh Rangani <akhileshrangani4@gmail.com>
2024-06-27 23:39:03 -07:00
Ishaan Dey
6376493ae7 dynamic worker routes based on env 2024-05-26 18:37:36 -07:00
Ishaan Dey
fbb98ac3b0 revert to local hosting 2024-05-26 17:28:52 -07:00
Ishaan Dey
010a4fec59 improve starting server logic 2024-05-26 12:18:09 -07:00
Ishaan Dey
30e1c39d6c type fixes 2024-05-23 23:52:30 -07:00
Ishaan Dey
1528ea5257 add project deletion in storage & connect to ip port 3000 2024-05-23 23:05:01 -07:00
Ishaan Dey
218afd4fe0 services logic 2024-05-23 01:35:08 -07:00
Ishaan Dey
561a284fc9 more container orchestration logic 2024-05-21 00:57:52 -07:00
Ishaan Dey
a3dd0d6598 small changes 2024-05-20 09:49:47 -07:00
Ishaan Dey
bf35c2bf82 dashboard ui 2024-05-17 23:54:34 -07:00
Ishaan Dey
14ea89d690 ecs logic 2024-05-17 23:18:15 -07:00
Ishaan Dey
5b72f84951 formatting 2024-05-13 22:04:00 -07:00
Ishaan Dey
eb629835d2 orchestrator changes 2024-05-13 14:32:15 -07:00
Ishaan Dey
5df770bdd6 change gke cluster 2024-05-13 03:00:15 -07:00
Ishaan Dey
59fb0521af improve orchestrator, docker settings, and ui layouts 2024-05-12 22:06:11 -07:00
Ishaan Dey
18aca540cc re-organize files + setup more orchestration logic 2024-05-12 02:10:31 -07:00
Ishaan Dey
b496ab193d add folder logic 2024-05-11 18:03:42 -07:00
Ishaan Dey
1500e84724 add disabled states on creation 2024-05-09 21:05:21 -07:00
Ishaan Dey
db8c26cd38 organize & comment code 2024-05-08 23:52:08 -07:00
Ishaan Dey
84c49f0d9d add worker service binding + inactivity detection 2024-05-06 21:29:25 -07:00
Ishaan Dey
c5762d430c update dockerfile env logic & deploy database cf worker 2024-05-05 22:33:24 -07:00