Commit Graph

51 Commits

Author SHA1 Message Date
Nariman Jelveh
3b65523da9 separate refresh_item_container into a module 2024-04-13 13:41:15 -07:00
Nariman Jelveh
3cfee32ae0 Update helpers.js 2024-04-13 12:28:28 -07:00
KernelDeimos
5fbbfb4c18 Enable background and builtin apps 2024-04-12 20:52:57 -04:00
Eric Dubé
92dc0a7671
Merge pull request #255 from AtkinsSJ/appconnection-close
Notify apps when a child app closes, and let them close their children manually
2024-04-09 21:31:48 -04:00
Sam Atkins
cce6531d45 Notify parents/children when an app closes
Send an appClosed message with the instance ID of the app that was
closed. This will be picked up by Puter.js's AppConnection and reported
as a 'close' event.

To make this work, a `data-parent_instance_id` attribute is set on child
app windows. This is very similar to the `data-parent_uuid` attribute,
which tracks parent windows instead of parent app instances. (Dialogs
have a parent window, but are not apps, so don't have a parent app
instance.) The difference is subtle, and we may want to combine these in
the future, but currently closing an app will close any child windows,
which is not behaviour we want for child apps.
2024-04-09 15:55:14 +01:00
Sam Atkins
84a31b3520 Broadcast when the language changes
This is left open to future additions, by naming it 'locale', and having
the language just be an object field.

Side note, maybe we should have a LocaleService for this?
2024-04-09 10:44:51 +01:00
Sam Atkins
725cbf2e20 Add support for launching child apps
Calling `puter.ui.launchApp()` now treats the new app as a child of the
one that launched it.

A child app is given a `puter.parent_instance_id` URL param, containing
its parent's instance ID.

Previously, `launchApp()` would resolve as soon as the app was launched.
This commit changes that, so that it is notified after the child app
sends its READY event to Puter. This means that as soon as `launchApp()`
has completed, the child app is ready to receive messages. The downside
is that launching an app that does not include Puter.js will now not
cause a notification, so `await puter.ui.launchApp()` will not resolve
in that case.
2024-04-06 12:27:36 +01:00
vineethvk11
6006767a9f fixing issues in copy while overwriting 2024-04-05 09:11:39 +05:30
KernelDeimos
08838c989e Fix fragmented if..else seq (fix app tokens) 2024-04-04 17:44:54 -04:00
KernelDeimos
5290d78e20 Display error in directory when readdir fails 2024-04-02 16:46:34 -04:00
KernelDeimos
6f7264b60b Fix logout for invalid sessions 2024-04-02 04:19:12 -04:00
Nariman Jelveh
51bb41863e remove more calls to deprecated endpoints 2024-03-30 09:05:54 -07:00
Nariman Jelveh
0094e2e2cf
Merge pull request #191 from meetqy/main
Make showing/hiding the clock configurable
2024-03-29 21:34:52 -07:00
Nariman Jelveh
8883c892ed Fix auto not being triggered when changing visibility 2024-03-29 21:25:03 -07:00
Nariman Jelveh
db245f9ba2 Fix spelling mistake 2024-03-29 20:59:50 -07:00
Nariman Jelveh
b4be6aa4a6 remove deprecated sharing endpoints and event handlers 2024-03-29 20:49:53 -07:00
meetqy
4aaa44a487
Merge branch 'HeyPuter:main' into main 2024-03-30 10:54:14 +08:00
meetqy
514abf030c fix: Make showing/hiding the clock configurable #159 2024-03-30 10:53:39 +08:00
Nariman Jelveh
fe0cd891e1 Pass API origin to apps 2024-03-28 19:10:03 -07:00
Nariman Jelveh
3aab04a245 First version of Settings 2024-03-24 00:41:27 -07:00
Nariman Jelveh
1e3fcc8bdb Set default Python icon and improve logic for default app prompt dialog 2024-03-22 11:49:57 -07:00
Sondre Tungesvik Njåstad
b31c5a672d The user can now choose to always use a given app (when double clicking the icon) after rightclicking and clicking "open with" 2024-03-22 13:46:55 +01:00
Nariman Jelveh
51fb668b66
Merge pull request #132 from SondreNjaastad/main
More translation
2024-03-19 15:46:34 -07:00
Sondre Njåstad
ae335df11e Presist language user_preference 2024-03-19 06:13:39 +01:00
Sondre Njåstad
8e1dbc8189 Fix broken dialogboxes 2024-03-18 21:16:33 +01:00
Sondre Njåstad
592a30ca6d Translation WIP 2024-03-18 21:07:29 +01:00
Nariman Jelveh
3e2ad61189 Fix issue with detecting whether positions is an object or not 2024-03-17 21:16:15 -07:00
vineeth kumar
a2fedfcd97
Merge branch 'main' into #10 2024-03-18 09:17:34 +05:30
vineethvk11
ed663c0824 fixing issues in auto arrange while moving items 2024-03-18 09:14:51 +05:30
Nariman Jelveh
86080b0ccf Add i18n for English, Korean, and Chinese
This is WIP. Help make the translations better.
2024-03-17 16:01:06 -07:00
vineethvk11
c63e546a9c minor bug fix in desktop item positions arrangement 2024-03-17 09:52:02 +05:30
Nariman Jelveh
f3e4a12e57 Refactor helpers.js to reduce file size 2024-03-16 20:13:48 -07:00
Nariman Jelveh
ec984ac81d Remove redundant logic 2024-03-16 19:59:36 -07:00
Nariman Jelveh
8100edbef9 implement query param passing between browser window and app iframe 2024-03-16 19:57:33 -07:00
vineethvk11
dfc03be3d2 optimising by storing desktop item positions as a map in kv store 2024-03-16 11:32:11 +05:30
vineethvk11
fddda77523 adding ability to customise desktop by arranging items 2024-03-15 20:32:47 +05:30
Nariman Jelveh
e1c44d91c5
Merge pull request #71 from vineeth-vk11/#9
Adding ability to undo actions
2024-03-13 21:32:05 -07:00
vineethvk11
64e3e2082c minor fix in renaming get html from options function 2024-03-14 08:13:56 +05:30
vineethvk11
b2087f77fc Disallow uploading files directly to trash 2024-03-14 02:11:12 +05:30
vineethvk11
1ae905bd7a Adding ability to undo move and delete actions 2024-03-14 01:45:28 +05:30
vineethvk11
20dd9b87cf adding ability to undo copy 2024-03-12 23:48:15 +05:30
vineethvk11
2413bd7816 adding ability to undo upload and minor fix in undo rename 2024-03-11 14:37:53 +05:30
vineethvk11
09c706a99d adding ability to undo rename action 2024-03-10 20:05:58 +05:30
vineethvk11
a18ec1efdb adding ability to undo create file/folder action 2024-03-10 19:48:17 +05:30
Nariman Jelveh
4e1fb06b94
Merge pull request #69 from vineeth-vk11/#6
delaying progress window for quick move/copy operations
2024-03-09 21:42:57 -08:00
vineethvk11
2afb1a295b delaying progress window for quick move/copy operations 2024-03-10 10:56:49 +05:30
Nariman Jelveh
61c3d3571d Apply user preferences every time Desktop is loaded 2024-03-08 20:02:17 -08:00
Sun Jia Cheng
e39e38da11 Implement 'Show Hidden Files' feature 2024-03-09 11:37:34 +08:00
Nariman Jelveh
e04da6d8b1 fix license formatting
Prefix lines with ' * ' and use the correct repo name.
2024-03-04 13:00:26 -08:00
Nariman Jelveh
17f0709a42 Add license headers
lame but necessary
2024-03-02 19:59:32 -08:00