Commit Graph

4154 Commits

Author SHA1 Message Date
KernelDeimos
15eb44d62d feat: add optional dotenv support
This adds an optional import for 'dotenv'. If dotenv is installed
via npm then the .env file will be loaded.
2025-09-22 19:13:05 -04:00
KernelDeimos
49341321f1 dev: add option to make the database slow
Adds a configuration parameter called "slow" to database config which
adds a hardcoded delay 70ms to database operations. This is useful
when testing for performance issues.
2025-09-22 19:10:48 -04:00
jelveh
b93890b008 Update package.json 2025-09-21 22:36:40 -07:00
jelveh
502ef3c32b Update README.md for Puter.js: Enhance formatting, add installation instructions, and include community links 2025-09-21 22:33:13 -07:00
dependabot[bot]
4dfdd2839f build(deps): bump webpack from 5.89.0 to 5.101.3 in /src/puter-js (#1601)
Bumps [webpack](https://github.com/webpack/webpack) from 5.89.0 to 5.101.3.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.89.0...v5.101.3)

---
updated-dependencies:
- dependency-name: webpack
  dependency-version: 5.101.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-21 14:50:30 -07:00
Nariman Jelveh
32962211b4 Revert "Enhance login GUI: improve layout and add show/hide password (#1599)" (#1600)
This reverts commit 9e07fa74b7.
2025-09-21 09:53:12 -07:00
SaifAttar003
9e07fa74b7 Enhance login GUI: improve layout and add show/hide password (#1599) 2025-09-21 09:52:55 -07:00
dependabot[bot]
8e3cc68701 build(deps): bump requests from 2.32.3 to 2.32.4 in /tools/api-tester/ci (#1598)
Bumps [requests](https://github.com/psf/requests) from 2.32.3 to 2.32.4.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.32.3...v2.32.4)

---
updated-dependencies:
- dependency-name: requests
  dependency-version: 2.32.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-21 00:49:21 -07:00
Hariz
3de3c21f66 Add context menu to apps in the start menu (#1487)
* Add context menu to apps in the start menu

* Start menu context menus: Close other menus

* More bugfixes for start menu context menus

* Start menu context menus: Add/remove from taskbar

* Bugfixes for adding to taskbar through start menu

* Highlight start menu icons when ctxmenu is opened

* Close context menus on start menu kbd navigation

* Reset start menu icon state when ctx menu closed

* Fix multiple start item context menus opening simultaneously

* Remove parent argument from start icon context menus
2025-09-20 18:52:14 -07:00
Daniel Salazar
6910b41a22 Merge pull request #1595 from HeyPuter/DS/main
npm: fix publish
2025-09-19 17:22:24 -07:00
Daniel Salazar
44284eb788 fix: typedefs 2025-09-19 17:12:01 -07:00
Daniel Salazar
d6fbe94364 npm: fixed publish 2025-09-19 16:52:18 -07:00
dependabot[bot]
a3cbee1b58 build(deps): bump serialize-javascript in /src/puter-js (#1594)
Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/yahoo/serialize-javascript/releases)
- [Commits](https://github.com/yahoo/serialize-javascript/compare/v6.0.1...v6.0.2)

---
updated-dependencies:
- dependency-name: serialize-javascript
  dependency-version: 6.0.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-19 14:28:36 -07:00
Daniel Salazar
0ef2b1c05e Merge pull request #1593 from HeyPuter/DS/main
fix: package name
2025-09-19 14:02:36 -07:00
Daniel Salazar
9d5a09f0bc fix: package name 2025-09-19 14:01:03 -07:00
Daniel Salazar
3cb9040a94 Merge pull request #1592 from HeyPuter/DS/main
npm: release to npm
2025-09-19 13:58:50 -07:00
Daniel Salazar
a936333006 npm: release to npm 2025-09-19 13:58:25 -07:00
jelveh
a023c24c35 Update package.json 2025-09-19 13:55:19 -07:00
jelveh
41191c65d7 Update puter.js README.md 2025-09-19 13:52:54 -07:00
Xiaochen Cui
c8500ba1ab test: add puterjs test to apiteste (#1590) 2025-09-19 13:27:47 -07:00
Xiaochen Cui
9d0199f858 add apitest to github actions (#1591) 2025-09-19 13:27:32 -07:00
coluccifrancesco
0c60ebd1d0 Update it.js (#1588)
I translated the last part of the document for the italian language.
All the updates are typo-checked for errors , and there's none.
The translation has been made keeping in mind the italian use of various terms, some of the english words haven't been translated due to the extended use of the orignal term in everyday vocabulary.
2025-09-19 11:07:02 -07:00
Daniel Salazar
770e5e071e Merge pull request #1587 from HeyPuter/DS/main
ci: drop support and testing for node 18
2025-09-19 10:29:39 -07:00
Daniel Salazar
493334b030 chore: update README for puter.js to publish on npm 2025-09-19 02:34:33 -07:00
jelveh
654dfa9124 Update style.css 2025-09-18 23:03:16 -07:00
jelveh
c0b03e147b add redundant readdir to cache the home dir 2025-09-18 21:03:28 -07:00
Nariman Jelveh
7000831138 make whoami return last_activity_ts 2025-09-18 19:07:53 -07:00
Nariman Jelveh
31fffb087d Refactor file system operations in GUI and puter.js to use eventual consistency (#1579)
* Refactor file system operations in GUI and puter.js to use eventual consistency for stat and readdir calls

This update modifies multiple instances of file system operations to include a consistency option set to 'eventual'. This change aims to improve performance and responsiveness by allowing for eventual consistency in file system interactions across various components, including helpers, UI elements, and IPC handling.

* Update cache expiration time for file system operations in readdir and stat to 1 hour

* feat: add network connectivity monitoring and cache purging

This update introduces a new feature that monitors network connectivity and purges the cache when the connection is lost. The implementation includes event listeners for online/offline changes and visibility changes to ensure cache consistency during network disruptions.

* clean up logs
2025-09-18 17:13:39 -07:00
Daniel Salazar
466cc113c6 ci: drop support and testing for node 18 2025-09-18 16:10:44 -07:00
software developer, self taught
89d5030ae3 Add missing polish translation (#1584)
* add missing polish translation

* Clean up comments in pl.js translations

Removed comments about missing translations from the Polish translations file.

---------

Co-authored-by: Nariman Jelveh <nj@puter.com>
2025-09-18 13:58:35 -07:00
dependabot[bot]
5fe28ee8e2 build(deps): bump serialize-javascript and mocha in /src/terminal (#1585)
Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript) to 6.0.2 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together.


Updates `serialize-javascript` from 6.0.0 to 6.0.2
- [Release notes](https://github.com/yahoo/serialize-javascript/releases)
- [Commits](https://github.com/yahoo/serialize-javascript/compare/v6.0.0...v6.0.2)

Updates `mocha` from 10.2.0 to 10.8.2
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.2.0...v10.8.2)

---
updated-dependencies:
- dependency-name: serialize-javascript
  dependency-version: 6.0.2
  dependency-type: indirect
- dependency-name: mocha
  dependency-version: 10.8.2
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-18 12:04:44 -07:00
dependabot[bot]
c9c92e806a build(deps-dev): bump rollup from 3.21.4 to 3.29.5 in /src/phoenix (#1583)
Bumps [rollup](https://github.com/rollup/rollup) from 3.21.4 to 3.29.5.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG-3.md)
- [Commits](https://github.com/rollup/rollup/compare/v3.21.4...v3.29.5)

---
updated-dependencies:
- dependency-name: rollup
  dependency-version: 3.29.5
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-18 10:38:52 -07:00
dependabot[bot]
1475183b06 build(deps): bump multer from 1.4.5-lts.2 to 2.0.2 (#1582)
Bumps [multer](https://github.com/expressjs/multer) from 1.4.5-lts.2 to 2.0.2.
- [Release notes](https://github.com/expressjs/multer/releases)
- [Changelog](https://github.com/expressjs/multer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/expressjs/multer/compare/v1.4.5-lts.2...v2.0.2)

---
updated-dependencies:
- dependency-name: multer
  dependency-version: 2.0.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-18 10:36:39 -07:00
dependabot[bot]
a9699a9f77 build(deps): bump braces from 3.0.2 to 3.0.3 in /src/terminal (#1581)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-version: 3.0.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-18 10:28:44 -07:00
dependabot[bot]
ce237b5c4a build(deps): bump form-data from 4.0.2 to 4.0.4 in /test/integration (#1580)
Bumps [form-data](https://github.com/form-data/form-data) from 4.0.2 to 4.0.4.
- [Release notes](https://github.com/form-data/form-data/releases)
- [Changelog](https://github.com/form-data/form-data/blob/master/CHANGELOG.md)
- [Commits](https://github.com/form-data/form-data/compare/v4.0.2...v4.0.4)

---
updated-dependencies:
- dependency-name: form-data
  dependency-version: 4.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-18 10:26:20 -07:00
jelveh
abc0d7b16c Update refresh_item_container.js 2025-09-17 16:12:35 -07:00
jelveh
e4ada292f1 Update index.js 2025-09-17 15:59:24 -07:00
ProgrammerIn-wonderland
8884c7f472 fix: get rid of preflight for non-apifs readdir/stat 2025-09-17 18:57:57 -04:00
Nariman Jelveh
e37166dae0 Cache is king baby! Let's go 🚀 (#1574)
* Implement the first naive version of `readdir` cache

* Purge the entire cache on every single mutation

Right now we're going to use the very naive, but safe, approach to purge the entire cache whenever there is change in the user's fs. We're going to incrementally improve this; but for now, better safe than sorry!

* Add socket event listeners to flush cache on file system item changes

This update introduces event listeners for 'item.added', 'item.renamed', and 'item.moved' events, triggering a cache flush on each event to ensure data consistency in the file system module.

* increase exp time for the cache

* Update readdir.js

* Update index.js
2025-09-17 15:36:42 -07:00
Amritpandey5
214fd3010e added missing values (#1577)
* added missing values

* Update de.js

---------

Co-authored-by: jelveh <nj@puter.com>
2025-09-17 14:09:35 -07:00
aaryan
f4af6874b0 doc: added missing Dutch translations (#1575)
* doc: added missing Dutch translations
- fixes #1515

* Update nl.js

---------

Co-authored-by: jelveh <nj@puter.com>
2025-09-17 08:56:06 -07:00
Neal Shah
b1facfbabd fix: get rid of a console log 2025-09-16 19:46:53 -04:00
ProgrammerIn-wonderland
a48f3e0274 get rid of noReallyItsJson 2025-09-16 19:46:53 -04:00
ProgrammerIn-wonderland
1e620c73bc make drivers and KV also preflightless 2025-09-16 19:46:53 -04:00
ProgrammerIn-wonderland
135d7b81a4 preflightless stat/readdir 2025-09-16 19:46:53 -04:00
Nariman Jelveh
079d060747 Make templates non blocking (#1573)
* refactor: update available_templates function for non-blocking template loading

- Changed the available_templates function to initiate loading templates asynchronously without blocking the UI.
- Initialized window.file_templates with an empty array and updated it once the templates are loaded.
- Added a console log in UIDesktop to track transaction duration upon completion.

* Update UIDesktop.js
2025-09-16 14:57:01 -07:00
Nariman Jelveh
6d17385f09 add getDuration() to the Transaction class 2025-09-16 14:31:55 -07:00
Jatin Sharma
b6da8ba9ce Complete Missing Hungarian Translations in hu.js (#1572)
* Update Hungarian translations in hu.js

* Update hu.js

---------

Co-authored-by: Nariman Jelveh <nj@puter.com>
2025-09-16 13:39:32 -07:00
dtakahashi333
42302b12ac fix: add Japanese translations (#1519) (#1570) 2025-09-16 12:30:09 -07:00
Thiago (Teet)
b2d38e2058 Fixes to PT-BR translation (br.js) (#1568)
Fixed spelling and missing accentuations

Adjusted capitalization for consistency with other strings

Made wording more natural in PT-BR (e.g. “site” instead of “website”, “Login” instead of “Início de Sessão”)
2025-09-15 23:39:36 -07:00