274 Commits

Author SHA1 Message Date
Eric Dubé 331d9e7542 feat: allow apps to add a menubar via puter.js
* Begin work on menubar and dropdowns

* Improve menubar

* Fix pointer event behavior

* Fix labels

* Fix active button

* Eliminate flicker

* Update _default.js

---------

Co-authored-by: Nariman Jelveh <n.jelveh@gmail.com>
2024-04-22 20:38:16 -04:00
Nariman Jelveh fa60f66057 Update helpers.js 2024-04-22 13:13:49 -07:00
zinreq 14098b2ff2 Do not show the "Change Password" option when user is temporary 2024-04-20 19:42:30 -07:00
Nariman Jelveh 915152d3b9 Merge pull request #296 from Xiayucheng1212/keep_params
Keep the query params in the url started with '/app/*'
2024-04-20 16:45:05 -07:00
Nariman Jelveh 2ecea9a7b0 Prevent XSS by escaping user_set_url_params 2024-04-20 16:34:15 -07:00
Eric Dubé dc2a620b4e Merge pull request #304 from HeyPuter/eric/stdio-bridge/2
stdio-bridge 2
2024-04-20 19:29:15 -04:00
Nariman Jelveh 8648a303f1 use puter.js to retrieve server info 2024-04-20 15:29:33 -07:00
Eric Lighthall 338d925bcc Fetch server info from versionservice.js module
Instead of directly fetching for the version info in UITabAbout.js, the module is now used for it
2024-04-20 02:24:45 -07:00
Eric Lighthall 7e2c4a0a1c Add server/version info on login page
The server/version info is under the forgot password section of the login page
2024-04-20 02:22:13 -07:00
Eric Lighthall 9822be5df4 Add version service module for fetching server information
this centralizes the handling of requests to get the server information
2024-04-20 01:58:12 -07:00
Sam Atkins 2f49c1c9b0 Remove a whole load of noisy log messages
These can be added back if and when we need them, but right now, it's
hard to follow console output with all this chatter. 😅
2024-04-19 17:29:26 +01:00
Sam Atkins 639653dac2 Report when a non-SDK app closes
puter.ui.launchApp() returns a Promise that needs to resolve whether the
app uses the Puter SDK or not. Non-SDK apps are tricky because they
don't send a READY message on startup, and we don't know in advance
whether an app will use the SDK or not.

This is a workaround to ensure that launchApp() always resolves. When an
app is closed, if it wasn't using the SDK, we send an artificial
notification that it launched, followed by an extra notification that
it has closed (because the original close notification was sent before
this point). This means any users of launchApp() can await it, and get
an AppConnection, and listen to the close event. They can't otherwise
interact with a non-SDK app because it will have closed already, but we
can improve this in the future without breaking the API.
2024-04-19 15:52:59 +01:00
Sam Atkins 0aa5543397 Let AppConnection know if its target app uses the Puter SDK
Apps are not required to use the Puter SDK. If they don't, then we can
still launch them, close them, and listen to their close event, but are
unable to send messages to them.
2024-04-19 15:52:59 +01:00
Sam Atkins dfdda4f3b9 Extract some helper functions for accessing a window/iframe by uuid 2024-04-19 15:52:59 +01:00
Xiayucheng1212 8713db3d55 Fix params lost 2024-04-17 19:45:01 +08:00
Eric Dubé 3a4858b83c Merge pull request #286 from AtkinsSJ/background-settings
Settings: Organise code to be grouped by tab, and add desktop background picker
2024-04-15 17:55:09 -04:00
KernelDeimos 66fecf88ef Fix funny context menu on task manager 2024-04-15 15:58:07 -04:00
Sam Atkins 868202ba41 Settings: Add desktop-background setting to 'Personalization' tab 2024-04-15 17:41:19 +01:00
Sam Atkins c6b0ed32bf Settings: Move 'Clock' tab into its own file 2024-04-15 17:41:19 +01:00
Sam Atkins 17adef11a6 Settings: Move 'Language' tab into its own file
Also implement an optional `on_show` callback for settings tabs, to
support the "select and clear the search field" behaviour we had before.
2024-04-15 17:41:19 +01:00
Sam Atkins 6d1c807879 Settings: Move 'Personalization' tab into its own file 2024-04-15 17:41:19 +01:00
Sam Atkins 0ed5b20627 Settings: Move 'Account' tab into its own file 2024-04-15 17:41:19 +01:00
Sam Atkins f5175941d9 Settings: Move 'Usage' tab into its own file 2024-04-15 17:41:19 +01:00
Sam Atkins e2f048ec2d Settings: Move 'About'-specific logic and data into UITabAbout.js
Keeping all the logic and data for the tab together should make it
easier to modify.
2024-04-15 17:41:19 +01:00
KernelDeimos 2717444c29 Oops 2024-04-15 12:17:09 -04:00
KernelDeimos 37ff97b52f Thanks minify 2024-04-15 03:59:39 -04:00
Eric Dubé b897598fac Merge pull request #282 from HeyPuter/eric/task-manager
Add a task manager
2024-04-15 03:53:51 -04:00
KernelDeimos 5730dc642a Add process ending and i18n 2024-04-15 03:37:04 -04:00
KernelDeimos 7c2a3b4612 Portal shows up as 'app' 2024-04-15 02:12:39 -04:00
Nariman Jelveh dbf796d698 Update index.js 2024-04-14 21:27:25 -07:00
Nariman Jelveh 2dbde52338 live-update email address after change 2024-04-14 21:09:41 -07:00
KernelDeimos 61f1caa122 Add type column 2024-04-14 23:58:14 -04:00
Nariman Jelveh 695d7b8654 Update UIDesktop.js 2024-04-14 20:53:31 -07:00
KernelDeimos 6e7fd2ca95 Add polling 2024-04-14 23:52:53 -04:00
KernelDeimos 79bfcf226b Integrate ProcessService with task manager 2024-04-14 23:52:53 -04:00
KernelDeimos 9d9e091a7a Add process management 2024-04-14 23:52:53 -04:00
KernelDeimos be1bb6bc06 Improve task manager style 2024-04-14 23:52:53 -04:00
KernelDeimos d39bb412f3 Begin work on task manager 2024-04-14 23:52:53 -04:00
Nariman Jelveh 49c3df2328 allow child windows to center relative to parent window 2024-04-14 20:04:27 -07:00
Nariman Jelveh 61a4b10adf add i18n text 2024-04-14 19:14:33 -07:00
Nariman Jelveh aae1d194c7 wip 2024-04-14 17:43:20 -07:00
Nariman Jelveh bfaaa914f1 wip 2024-04-14 17:30:22 -07:00
Nariman Jelveh 2f101c4a39 close #271 2024-04-14 17:10:46 -07:00
Nariman Jelveh 765eb43568 Disable manual arrangement in Explore 2024-04-14 12:50:28 -07:00
Nariman Jelveh 5b2e2b037b Update tr.js 2024-04-14 09:50:21 -07:00
Nariman Jelveh bcfd685826 Update translations.js 2024-04-14 09:48:43 -07:00
hasanbeder 6679318207 Translated Turkish language file
This commit includes the Turkish language file with the translations. 🇹🇷
2024-04-14 13:12:56 +03:00
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 199b68a964 Highlight current session 2024-04-13 02:30:48 -04:00