/puter/src/UI/UIWindowDesktopBGSettings.js
168:26 error 'api_origin' is not defined no-undef
178:52 error 'auth_token' is not defined no-undef
182:29 error 'logout' is not defined no-undef
188:24 error Empty block statement no-empty
/puter/src/UI/UIWindowEmailConfirmationRequired.js
113:26 error 'api_origin' is not defined no-undef
121:52 error 'auth_token' is not defined no-undef
125:29 error 'logout' is not defined no-undef
131:29 error 'refresh_user_data' is not defined no-undef
160:22 error 'api_origin' is not defined no-undef
165:48 error 'auth_token' is not defined no-undef
169:25 error 'logout' is not defined no-undef
188:13 error 'logout' is not defined no-undef
/puter/src/UI/UIWindowChangePassword.js
107:31 error 'check_password_strength' is not defined no-undef
117:18 error 'api_origin' is not defined no-undef
121:44 error 'auth_token' is not defined no-undef
And also add some missing imports.
/puter/src/UI/UIWindow.js
33:20 error 'global_element_id' is not defined no-undef
34:5 error 'last_window_zindex' is not defined no-undef
48:5 error 'window_stack' is not defined no-undef
69:52 error 'uuidv4' is not defined no-undef
90:9 error 'is_embedded' is not defined no-undef
174:52 error 'last_window_zindex' is not defined no-undef
174:94 error 'last_window_zindex' is not defined no-undef
244:77 error 'is_embedded' is not defined no-undef
289:57 error 'navbar_path' is not defined no-undef
436:25 error 'launch_app' is not defined no-undef
456:9 error 'window_nav_history' is not defined no-undef
457:9 error 'window_nav_history_current_position' is not defined no-undef
524:9 error 'animate_window_opening' is not defined no-undef
599:17 error 'validate_fsentry_name' is not defined no-undef
790:9 error 'navbar_path_droppable' is not defined no-undef
791:9 error 'sidebar_item_droppable' is not defined no-undef
801:33 error 'window_nav_history' is not defined no-undef
801:63 error 'window_nav_history_current_position' is not defined no-undef
804:46 error 'root_dirname' is not defined no-undef
812:17 error 'window_nav_history_current_position' is not defined no-undef
812:68 error 'window_nav_history_current_position' is not defined no-undef
813:34 error 'window_nav_history' is not defined no-undef
813:64 error 'window_nav_history_current_position' is not defined no-undef
815:17 error 'update_window_path' is not defined no-undef
825:29 error 'window_nav_history_current_position' is not defined no-undef
826:38 error 'window_nav_history' is not defined no-undef
834:25 error 'window_nav_history_current_position' is not defined no-undef
835:42 error 'window_nav_history' is not defined no-undef
835:72 error 'window_nav_history_current_position' is not defined no-undef
840:59 error 'root_dirname' is not defined no-undef
847:29 error 'update_window_path' is not defined no-undef
869:33 error 'window_nav_history' is not defined no-undef
869:63 error 'window_nav_history_current_position' is not defined no-undef
872:46 error 'root_dirname' is not defined no-undef
880:17 error 'window_nav_history_current_position' is not defined no-undef
882:37 error 'window_nav_history' is not defined no-undef
882:67 error 'window_nav_history_current_position' is not defined no-undef
885:21 error 'update_window_path' is not defined no-undef
896:29 error 'window_nav_history_current_position' is not defined no-undef
896:86 error 'window_nav_history' is not defined no-undef
897:38 error 'window_nav_history' is not defined no-undef
905:25 error 'window_nav_history_current_position' is not defined no-undef
906:42 error 'window_nav_history' is not defined no-undef
906:72 error 'window_nav_history_current_position' is not defined no-undef
911:59 error 'root_dirname' is not defined no-undef
918:29 error 'update_window_path' is not defined no-undef
941:50 error 'root_dirname' is not defined no-undef
950:17 error 'window_nav_history' is not defined no-undef
950:46 error 'window_nav_history' is not defined no-undef
950:82 error 'window_nav_history_current_position' is not defined no-undef
951:17 error 'window_nav_history' is not defined no-undef
952:17 error 'window_nav_history_current_position' is not defined no-undef
954:17 error 'update_window_path' is not defined no-undef
968:25 error 'update_window_layout' is not defined no-undef
983:25 error 'update_window_layout' is not defined no-undef
986:25 error 'update_window_layout' is not defined no-undef
997:13 error 'is_auth' is not defined no-undef
1023:13 error 'update_explorer_footer_selected_items_count' is not defined no-undef
1106:21 error 'active_element' is not defined no-undef
1117:13 error 'update_explorer_footer_selected_items_count' is not defined no-undef
1143:18 error 'mouseover_window' is not defined no-undef
1205:82 error 'mouseX' is not defined no-undef
1205:107 error 'mouseY' is not defined no-undef
1219:83 error 'mouseover_window' is not defined no-undef
1244:31 error 'mouseover_window' is not defined no-undef
1246:17 error 'copy_items' is not defined no-undef
1246:45 error 'mouseover_window' is not defined no-undef
1252:21 error 'create_shortcut' is not defined no-undef
1255:27 error 'mouseover_window' is not defined no-undef
1264:17 error 'move_items' is not defined no-undef
1264:45 error 'mouseover_window' is not defined no-undef
1286:13 error 'scale_window' is not defined no-undef
1302:13 error 'scale_window' is not defined no-undef
1359:21 error 'upload_items' is not defined no-undef
1413:47 error 'window_width_threshold_for_sidebar' is not defined no-undef
1414:49 error 'window_width_threshold_for_sidebar' is not defined no-undef
1420:53 error 'window_width_threshold_for_sidebar' is not defined no-undef
1435:17 error 'last_window_zindex' is not defined no-undef
1460:29 error 'current_active_snap_zone' is not defined no-undef
1469:50 error 'current_active_snap_zone' is not defined no-undef
1473:43 error 'desktop_height' is not defined no-undef
1474:40 error 'toolbar_height' is not defined no-undef
1476:44 error 'last_window_zindex' is not defined no-undef
1480:55 error 'current_active_snap_zone' is not defined no-undef
1484:43 error 'desktop_height' is not defined no-undef
1485:40 error 'toolbar_height' is not defined no-undef
1487:44 error 'last_window_zindex' is not defined no-undef
1491:55 error 'current_active_snap_zone' is not defined no-undef
1495:43 error 'desktop_height' is not defined no-undef
1496:40 error 'toolbar_height' is not defined no-undef
1497:41 error 'desktop_width' is not defined no-undef
1498:44 error 'last_window_zindex' is not defined no-undef
1502:55 error 'current_active_snap_zone' is not defined no-undef
1506:43 error 'desktop_height' is not defined no-undef
1507:40 error 'toolbar_height' is not defined no-undef
1510:44 error 'last_window_zindex' is not defined no-undef
1514:55 error 'current_active_snap_zone' is not defined no-undef
1517:42 error 'desktop_width' is not defined no-undef
1518:43 error 'desktop_height' is not defined no-undef
1519:40 error 'toolbar_height' is not defined no-undef
1521:44 error 'last_window_zindex' is not defined no-undef
1525:55 error 'current_active_snap_zone' is not defined no-undef
1528:40 error 'toolbar_height' is not defined no-undef
1528:57 error 'desktop_height' is not defined no-undef
1531:43 error 'desktop_height' is not defined no-undef
1532:44 error 'last_window_zindex' is not defined no-undef
1536:55 error 'current_active_snap_zone' is not defined no-undef
1539:40 error 'toolbar_height' is not defined no-undef
1539:57 error 'desktop_height' is not defined no-undef
1540:41 error 'desktop_width' is not defined no-undef
1542:43 error 'desktop_height' is not defined no-undef
1543:44 error 'last_window_zindex' is not defined no-undef
1559:52 error 'current_active_snap_zone' is not defined no-undef
1590:28 error 'current_active_snap_zone' is not defined no-undef
1592:40 error 'toolbar_height' is not defined no-undef
1595:43 error 'desktop_height' is not defined no-undef
1599:33 error 'current_active_snap_zone' is not defined no-undef
1601:40 error 'toolbar_height' is not defined no-undef
1604:43 error 'desktop_height' is not defined no-undef
1608:33 error 'current_active_snap_zone' is not defined no-undef
1610:40 error 'toolbar_height' is not defined no-undef
1613:43 error 'desktop_height' is not defined no-undef
1617:33 error 'current_active_snap_zone' is not defined no-undef
1619:40 error 'toolbar_height' is not defined no-undef
1619:57 error 'desktop_height' is not defined no-undef
1622:43 error 'desktop_height' is not defined no-undef
1626:33 error 'current_active_snap_zone' is not defined no-undef
1628:40 error 'toolbar_height' is not defined no-undef
1628:57 error 'desktop_height' is not defined no-undef
1629:41 error 'desktop_width' is not defined no-undef
1631:43 error 'desktop_height' is not defined no-undef
1635:33 error 'current_active_snap_zone' is not defined no-undef
1637:40 error 'toolbar_height' is not defined no-undef
1640:43 error 'desktop_height' is not defined no-undef
1644:33 error 'current_active_snap_zone' is not defined no-undef
1645:29 error 'scale_window' is not defined no-undef
1656:51 error 'window_width_threshold_for_sidebar' is not defined no-undef
1657:53 error 'window_width_threshold_for_sidebar' is not defined no-undef
1663:57 error 'window_width_threshold_for_sidebar' is not defined no-undef
1674:71 error 'taskbar_height' is not defined no-undef
1676:51 error 'taskbar_height' is not defined no-undef
1703:35 error 'window_width_threshold_for_sidebar' is not defined no-undef
1718:36 error 'window_width_threshold_for_sidebar' is not defined no-undef
1719:49 error 'window_width_threshold_for_sidebar' is not defined no-undef
1725:42 error 'window_width_threshold_for_sidebar' is not defined no-undef
1733:50 error 'toolbar_height' is not defined no-undef
1734:38 error 'toolbar_height' is not defined no-undef
1736:32 error 'toolbar_height' is not defined no-undef
1773:13 error 'setItem' is not defined no-undef
1820:21 error 'scale_window' is not defined no-undef
1867:51 error 'trash_path' is not defined no-undef
1881:41 error 'sort_items' is not defined no-undef
1882:41 error 'set_sort_by' is not defined no-undef
1889:41 error 'sort_items' is not defined no-undef
1890:41 error 'set_sort_by' is not defined no-undef
1897:41 error 'sort_items' is not defined no-undef
1898:41 error 'set_sort_by' is not defined no-undef
1905:41 error 'sort_items' is not defined no-undef
1906:41 error 'set_sort_by' is not defined no-undef
1918:41 error 'sort_items' is not defined no-undef
1919:41 error 'set_sort_by' is not defined no-undef
1927:41 error 'sort_items' is not defined no-undef
1928:41 error 'set_sort_by' is not defined no-undef
1973:40 error 'clipboard' is not defined no-undef
1975:36 error 'clipboard_op' is not defined no-undef
1976:37 error 'copy_clipboard_items' is not defined no-undef
1977:41 error 'clipboard_op' is not defined no-undef
1978:37 error 'move_clipboard_items' is not defined no-undef
1986:39 error 'actions_history' is not defined no-undef
1988:33 error 'undo_last_action' is not defined no-undef
1998:33 error 'init_upload_using_dialog' is not defined no-undef
2014:48 error 'UIWindowSaveAccount' is not defined no-undef
2023:85 error 'UIWindowEmailConfirmationRequired' is not defined no-undef
2036:33 error 'launch_app' is not defined no-undef
2059:44 error 'mouseX' is not defined no-undef
2063:43 error 'mouseY' is not defined no-undef
2102:68 error 'trash_path' is not defined no-undef
2103:37 error 'delete_item' is not defined no-undef
2110:67 error 'trash_path' is not defined no-undef
2110:128 error 'trash_path' is not defined no-undef
2146:21 error 'upload_items' is not defined no-undef
2163:13 error 'enter_fullpage_mode' is not defined no-undef
2173:8 error 'active_element' is not defined no-undef
2174:9 error 'active_element' is not defined no-undef
2195:25 error 'item_icon' is not defined no-undef
2210:9 error 'window_nav_history' is not defined no-undef
2210:45 error 'window_nav_history' is not defined no-undef
2210:88 error 'window_nav_history_current_position' is not defined no-undef
2211:9 error 'window_nav_history' is not defined no-undef
2212:9 error 'window_nav_history_current_position' is not defined no-undef
2214:9 error 'update_window_path' is not defined no-undef
2257:37 error 'item_icon' is not defined no-undef
2364:9 error 'update_window_path' is not defined no-undef
2380:38 error 'root_dirname' is not defined no-undef
2389:9 error 'window_nav_history' is not defined no-undef
2389:45 error 'window_nav_history' is not defined no-undef
2389:88 error 'window_nav_history_current_position' is not defined no-undef
2390:9 error 'window_nav_history' is not defined no-undef
2391:9 error 'window_nav_history_current_position' is not defined no-undef
2391:62 error 'window_nav_history' is not defined no-undef
2392:9 error 'update_window_path' is not defined no-undef
2436:59 error 'root_dirname' is not defined no-undef
2453:19 error 'clipboard' is not defined no-undef
2455:16 error 'clipboard_op' is not defined no-undef
2456:17 error 'copy_clipboard_items' is not defined no-undef
2457:21 error 'clipboard_op' is not defined no-undef
2458:17 error 'move_clipboard_items' is not defined no-undef
2484:18 error 'mouseover_window' is not defined no-undef
2503:21 error 'create_shortcut' is not defined no-undef
2515:17 error 'move_items' is not defined no-undef
2525:18 error 'mouseover_window' is not defined no-undef
2605:12 error 'window_nav_history' is not defined no-undef
2605:42 error 'window_nav_history' is not defined no-undef
2605:84 error 'window_nav_history_current_position' is not defined no-undef
2612:12 error 'window_nav_history_current_position' is not defined no-undef
2626:55 error 'navbar_path' is not defined no-undef
2687:17 error 'update_window_layout' is not defined no-undef
2690:21 error 'update_details_layout_sort_visuals' is not defined no-undef
2698:13 error 'update_window_path' is not defined no-undef
2707:54 error 'root_dirname' is not defined no-undef
2712:9 error 'navbar_path_droppable' is not defined no-undef
2715:5 error 'update_explorer_footer_selected_items_count' is not defined no-undef
2727:18 error 'mouseover_window' is not defined no-undef
2746:21 error 'create_shortcut' is not defined no-undef
2758:17 error 'move_items' is not defined no-undef
2768:18 error 'mouseover_window' is not defined no-undef
2807:36 error 'sendWindowWillCloseMsg' is not defined no-undef
2819:23 error 'window_stack' is not defined no-undef
2829:17 error 'remove_taskbar_item' is not defined no-undef
2836:17 error 'exit_fullpage_mode' is not defined no-undef
2853:31 error 'window_stack' is not defined no-undef
2854:73 error 'window_stack' is not defined no-undef
2854:86 error 'window_stack' is not defined no-undef
2857:47 error 'window_stack' is not defined no-undef
2857:60 error 'window_stack' is not defined no-undef
2916:22 error 'window_stack' is not defined no-undef
2924:13 error 'active_item_container' is not defined no-undef
2949:20 error 'toolbar_height' is not defined no-undef
3007:14 error 'api_origin' is not defined no-undef
3017:40 error 'auth_token' is not defined no-undef
3021:17 error 'logout' is not defined no-undef
3083:43 error 'last_window_zindex' is not defined no-undef
3123:38 error 'last_window_zindex' is not defined no-undef
3127:98 error 'last_window_zindex' is not defined no-undef
3131:100 error 'last_window_zindex' is not defined no-undef
3147:81 error 'mouseX' is not defined no-undef
3147:106 error 'mouseY' is not defined no-undef
3151:9 error 'active_item_container' is not defined no-undef
3153:34 error 'active_item_container' is not defined no-undef
3155:9 error 'window_stack' is not defined no-undef
3157:11 error 'active_item_container' is not defined no-undef
3252:5 error 'sort_items' is not defined no-undef
3253:5 error 'set_sort_by' is not defined no-undef
3258:14 error 'api_origin' is not defined no-undef
3267:40 error 'auth_token' is not defined no-undef
3271:17 error 'logout' is not defined no-undef
3280:21 error 'update_details_layout_sort_visuals' is not defined no-undef
/puter/src/UI/UITaskbarItem.js
31:24 error 'global_element_id' is not defined no-undef
124:21 error 'launch_app' is not defined no-undef
143:21 error 'empty_trash' is not defined no-undef
158:25 error 'remove_taskbar_item' is not defined no-undef
160:21 error 'update_taskbar' is not defined no-undef
174:21 error 'update_taskbar' is not defined no-undef
250:73 error 'mouseover_window' is not defined no-undef
254:33 error 'path' is not defined no-undef
297:21 error 'launch_app' is not defined no-undef
328:89 error 'mouseover_window' is not defined no-undef
/puter/src/UI/UITaskbar.js
24:5 error 'global_element_id' is not defined no-undef
31:14 error 'api_origin' is not defined no-undef
36:40 error 'auth_token' is not defined no-undef
44:33 error 'global_element_id' is not defined no-undef
77:17 error 'launch_apps' is not defined no-undef
77:33 error 'launch_apps' is not defined no-undef
77:55 error 'launch_apps' is not defined no-undef
79:17 error 'launch_apps' is not defined no-undef
80:26 error 'api_origin' is not defined no-undef
85:52 error 'auth_token' is not defined no-undef
99:16 error 'launch_apps' is not defined no-undef
105:88 error 'launch_apps' is not defined no-undef
106:38 error 'launch_apps' is not defined no-undef
119:16 error 'launch_apps' is not defined no-undef
121:107 error 'launch_apps' is not defined no-undef
125:45 error 'launch_apps' is not defined no-undef
126:38 error 'launch_apps' is not defined no-undef
179:17 error 'launch_app' is not defined no-undef
201:25 error 'launch_app' is not defined no-undef
215:39 error 'trash_path' is not defined no-undef
228:68 error 'trash_path' is not defined no-undef
230:17 error 'launch_app' is not defined no-undef
236:13 error 'move_items' is not defined no-undef
236:31 error 'trash_path' is not defined no-undef
240:5 error 'make_taskbar_sortable' is not defined no-undef
262:22 error Empty block statement no-empty
284:29 error 'launch_app' is not defined no-undef
297:17 error 'update_taskbar' is not defined no-undef
301:17 error 'update_taskbar' is not defined no-undef
/puter/src/UI/UIPopover.js
28:5 error 'global_element_id' is not defined no-undef
33:30 error 'global_element_id' is not defined no-undef
40:59 error 'global_element_id' is not defined no-undef
76:59 error 'taskbar_height' is not defined no-undef
The click handler also makes use of the `options` parameter from
UINotification(), which isn't available there, so I've commented that
out. This needs more work.
/puter/src/UI/UINotification.js
21:5 error 'global_element_id' is not defined no-undef
26:39 error 'global_element_id' is not defined no-undef
34:73 error 'global_element_id' is not defined no-undef
47:14 error 'toolbar_height' is not defined no-undef
55:12 error 'options' is not defined no-undef
55:36 error 'options' is not defined no-undef
56:13 error 'options' is not defined no-undef
/puter/src/UI/UIItem.js
42:21 error 'global_element_id' is not defined no-undef
62:23 error 'determine_website_url' is not defined no-undef
100:58 error 'timeago' is not defined no-undef
104:42 error 'byte_format' is not defined no-undef
161:151 error 'truncate_filename' is not defined no-undef
161:183 error 'TRUNCATE_LENGTH' is not defined no-undef
171:5 error 'show_or_hide_empty_folder_message' is not defined no-undef
178:64 error 'trash_path' is not defined no-undef
186:9 error 'update_explorer_footer_item_count' is not defined no-undef
190:10 error 'is_auto_arrange_enabled' is not defined no-undef
217:21 error 'upload_items' is not defined no-undef
336:16 error 'mouseover_window' is not defined no-undef
337:39 error 'mouseover_window' is not defined no-undef
338:23 error 'mouseover_window' is not defined no-undef
341:24 error 'mouseX' is not defined no-undef
341:46 error 'mouseX' is not defined no-undef
341:69 error 'mouseY' is not defined no-undef
341:90 error 'mouseY' is not defined no-undef
342:88 error 'mouseX' is not defined no-undef
342:113 error 'mouseY' is not defined no-undef
350:18 error 'is_auto_arrange_enabled' is not defined no-undef
350:78 error 'trash_path' is not defined no-undef
352:17 error 'mouseover_window' is not defined no-undef
358:17 error 'desktop_item_positions' is not defined no-undef
359:17 error 'save_desktop_item_positions' is not defined no-undef
383:73 error 'mouseover_window' is not defined no-undef
427:21 error 'launch_app' is not defined no-undef
448:25 error 'copy_items' is not defined no-undef
450:25 error 'copy_items' is not defined no-undef
455:25 error 'create_shortcut' is not defined no-undef
468:32 error 'desktop_item_positions' is not defined no-undef
469:25 error 'save_desktop_item_positions' is not defined no-undef
471:21 error 'move_items' is not defined no-undef
483:89 error 'mouseover_window' is not defined no-undef
525:13 error 'open_item' is not defined no-undef
540:13 error 'open_item' is not defined no-undef
579:9 error 'update_explorer_footer_selected_items_count' is not defined no-undef
596:13 error 'update_explorer_footer_selected_items_count' is not defined no-undef
651:34 error 'truncate_filename' is not defined no-undef
651:66 error 'TRUNCATE_LENGTH' is not defined no-undef
661:9 error 'rename_file' is not defined no-undef
678:13 error 'last_enter_pressed_to_rename_ts' is not defined no-undef
679:13 error 'update_explorer_footer_selected_items_count' is not defined no-undef
718:25 error 'activate_item_name_editor' is not defined no-undef
763:78 error 'trash_path' is not defined no-undef
775:29 error 'move_items' is not defined no-undef
796:25 error 'zipItems' is not defined no-undef
810:25 error 'zipItems' is not defined no-undef
875:39 error 'delete_item' is not defined no-undef
877:63 error 'trash_path' is not defined no-undef
885:67 error 'trash_path' is not defined no-undef
885:116 error 'trash_path' is not defined no-undef
886:69 error 'trash_path' is not defined no-undef
906:29 error 'create_shortcut' is not defined no-undef
925:25 error 'move_items' is not defined no-undef
925:53 error 'trash_path' is not defined no-undef
936:63 error 'trash_path' is not defined no-undef
936:122 error 'trash_path' is not defined no-undef
945:25 error 'open_item' is not defined no-undef
962:49 error 'suggest_apps_for_fsentry' is not defined no-undef
984:37 error 'user_preferences' is not defined no-undef
987:43 error 'user_preferences' is not defined no-undef
989:42 error 'user_preferences' is not defined no-undef
1007:41 error 'user_preferences' is not defined no-undef
1008:72 error 'user_preferences' is not defined no-undef
1011:33 error 'launch_app' is not defined no-undef
1047:29 error 'open_item' is not defined no-undef
1093:25 error 'launch_app' is not defined no-undef
1114:25 error 'empty_trash' is not defined no-undef
1127:29 error 'zipItems' is not defined no-undef
1129:29 error 'trigger_download' is not defined no-undef
1140:25 error 'zipItems' is not defined no-undef
1151:41 error 'JSZip' is not defined no-undef
1180:25 error 'move_items' is not defined no-undef
1219:31 error 'clipboard' is not defined no-undef
1221:28 error 'clipboard_op' is not defined no-undef
1222:29 error 'copy_clipboard_items' is not defined no-undef
1223:33 error 'clipboard_op' is not defined no-undef
1224:29 error 'move_clipboard_items' is not defined no-undef
1247:25 error 'create_shortcut' is not defined no-undef
1265:25 error 'move_items' is not defined no-undef
1265:47 error 'trash_path' is not defined no-undef
1290:35 error 'delete_item' is not defined no-undef
1292:63 error 'trash_path' is not defined no-undef
1299:67 error 'trash_path' is not defined no-undef
1299:128 error 'trash_path' is not defined no-undef
1300:57 error 'trash_path' is not defined no-undef
1313:25 error 'activate_item_name_editor' is not defined no-undef
1373:9 error 'sort_items' is not defined no-undef
1376:9 error 'activate_item_name_editor' is not defined no-undef
1433:31 error 'copy_to_clipboard' is not defined no-undef
1517:9 error 'show_or_hide_empty_folder_message' is not defined no-undef
/puter/src/UI/UIDesktop.js
44:24 error 'gui_origin' is not defined no-undef
46:25 error 'auth_token' is not defined no-undef
86:5 error 'socket' is not defined no-undef
95:5 error 'socket' is not defined no-undef
104:5 error 'socket' is not defined no-undef
105:43 error 'trash_path' is not defined no-undef
106:45 error 'trash_path' is not defined no-undef
109:49 error 'trash_path' is not defined no-undef
112:5 error 'socket' is not defined no-undef
118:9 error 'launch_apps' is not defined no-undef
121:9 error 'launch_apps' is not defined no-undef
121:39 error 'launch_apps' is not defined no-undef
124:9 error 'launch_apps' is not defined no-undef
124:30 error 'launch_apps' is not defined no-undef
127:5 error 'socket' is not defined no-undef
146:5 error 'socket' is not defined no-undef
153:85 error 'truncate_filename' is not defined no-undef
153:114 error 'TRUNCATE_LENGTH' is not defined no-undef
156:77 error 'item_icon' is not defined no-undef
192:13 error 'update_window_path' is not defined no-undef
199:13 error 'sort_items' is not defined no-undef
203:5 error 'socket' is not defined no-undef
206:9 error 'sendItemChangeEventToWatchingApps' is not defined no-undef
220:25 error 'fsentry.path' is assigned to itself no-self-assign
233:17 error 'update_explorer_footer_item_count' is not defined no-undef
234:17 error 'update_explorer_footer_selected_items_count' is not defined no-undef
239:26 error 'trash_path' is not defined no-undef
249:17 error 'update_window_path' is not defined no-undef
253:26 error 'trash_path' is not defined no-undef
280:25 error 'item_icon' is not defined no-undef
281:34 error 'trash_path' is not defined no-undef
287:39 error 'trash_path' is not defined no-undef
308:37 error 'item_icon' is not defined no-undef
319:17 error 'sort_items' is not defined no-undef
324:13 error 'sort_items' is not defined no-undef
328:5 error 'socket' is not defined no-undef
333:9 error 'refresh_user_data' is not defined no-undef
336:5 error 'socket' is not defined no-undef
341:9 error 'refresh_user_data' is not defined no-undef
344:5 error 'socket' is not defined no-undef
346:9 error 'sendItemChangeEventToWatchingApps' is not defined no-undef
360:85 error 'truncate_filename' is not defined no-undef
360:114 error 'TRUNCATE_LENGTH' is not defined no-undef
363:77 error 'item_icon' is not defined no-undef
398:13 error 'update_window_path' is not defined no-undef
405:13 error 'sort_items' is not defined no-undef
409:5 error 'socket' is not defined no-undef
415:9 error 'sendItemChangeEventToWatchingApps' is not defined no-undef
440:81 error 'item_icon' is not defined no-undef
445:17 error 'sort_items' is not defined no-undef
455:29 error 'item_icon' is not defined no-undef
463:17 error Duplicate key 'associated_app_name' no-dupe-keys
470:17 error 'sort_items' is not defined no-undef
491:42 error 'desktop_path' is not defined no-undef
496:5 error 'getItem' is not defined no-undef
508:8 error 'url_query_params' is not defined no-undef
525:9 error 'update_user_preferences' is not defined no-undef
560:17 error 'upload_items' is not defined no-undef
560:52 error 'desktop_path' is not defined no-undef
577:16 error 'mouseover_window' is not defined no-undef
585:69 error 'desktop_path' is not defined no-undef
613:17 error 'copy_items' is not defined no-undef
613:43 error 'desktop_path' is not defined no-undef
617:17 error 'move_items' is not defined no-undef
617:43 error 'desktop_path' is not defined no-undef
649:39 error 'is_auto_arrange_enabled' is not defined no-undef
651:37 error 'is_auto_arrange_enabled' is not defined no-undef
651:64 error 'is_auto_arrange_enabled' is not defined no-undef
652:37 error 'store_auto_arrange_preference' is not defined no-undef
652:67 error 'is_auto_arrange_enabled' is not defined no-undef
653:40 error 'is_auto_arrange_enabled' is not defined no-undef
654:41 error 'sort_items' is not defined no-undef
655:41 error 'set_sort_by' is not defined no-undef
656:41 error 'clear_desktop_item_positions' is not defined no-undef
658:41 error 'set_desktop_item_positions' is not defined no-undef
668:44 error 'is_auto_arrange_enabled' is not defined no-undef
671:37 error 'sort_items' is not defined no-undef
672:37 error 'set_sort_by' is not defined no-undef
677:44 error 'is_auto_arrange_enabled' is not defined no-undef
680:37 error 'sort_items' is not defined no-undef
681:37 error 'set_sort_by' is not defined no-undef
686:44 error 'is_auto_arrange_enabled' is not defined no-undef
689:37 error 'sort_items' is not defined no-undef
690:37 error 'set_sort_by' is not defined no-undef
695:44 error 'is_auto_arrange_enabled' is not defined no-undef
698:37 error 'sort_items' is not defined no-undef
699:37 error 'set_sort_by' is not defined no-undef
708:44 error 'is_auto_arrange_enabled' is not defined no-undef
712:37 error 'sort_items' is not defined no-undef
713:37 error 'set_sort_by' is not defined no-undef
718:44 error 'is_auto_arrange_enabled' is not defined no-undef
722:37 error 'sort_items' is not defined no-undef
723:37 error 'set_sort_by' is not defined no-undef
757:43 error 'desktop_path' is not defined no-undef
767:35 error 'clipboard' is not defined no-undef
769:32 error 'clipboard_op' is not defined no-undef
770:33 error 'copy_clipboard_items' is not defined no-undef
770:54 error 'desktop_path' is not defined no-undef
771:37 error 'clipboard_op' is not defined no-undef
772:33 error 'move_clipboard_items' is not defined no-undef
780:35 error 'actions_history' is not defined no-undef
782:29 error 'undo_last_action' is not defined no-undef
791:29 error 'init_upload_using_dialog' is not defined no-undef
818:9 error 'is_embedded' is not defined no-undef
911:12 error 'user' is not defined no-undef
922:13 error 'is_embedded' is not defined no-undef
940:8 error 'url_query_params' is not defined no-undef
941:28 error 'url_query_params' is not defined no-undef
943:35 error 'home_path' is not defined no-undef
944:16 error 'url_query_params' is not defined no-undef
945:34 error 'url_query_params' is not defined no-undef
950:29 error 'item_icon' is not defined no-undef
966:13 error 'launch_app' is not defined no-undef
967:23 error 'app_launched_from_url' is not defined no-undef
970:25 error 'app_query_params' is not defined no-undef
1017:40 error 'taskbar_height' is not defined no-undef
1023:40 error 'user' is not defined no-undef
1024:9 error 'getItem' is not defined no-undef
1031:21 error 'setItem' is not defined no-undef
1125:47 error 'user' is not defined no-undef
1128:48 error 'user' is not defined no-undef
1131:25 error 'update_auth_data' is not defined no-undef
1170:37 error 'listSupportedLanguages' is not defined no-undef
1249:29 error 'logout' is not defined no-undef
1253:25 error 'logout' is not defined no-undef
1261:9 error 'is_fullscreen' is not defined no-undef
1308:5 error 'launch_app' is not defined no-undef
1381:9 error 'launch_apps' is not defined no-undef
1460:14 error 'api_origin' is not defined no-undef
1468:40 error 'auth_token' is not defined no-undef
1488:14 error 'toolbar_height' is not defined no-undef
1502:9 error 'reset_window_size_and_position' is not defined no-undef
1513:5 error 'refresh_desktop_background' is not defined no-undef
1520:26 error 'window_border_radius' is not defined no-undef
/puter/src/UI/UIContextMenu.js
23:21 error 'global_element_id' is not defined no-undef
117:57 error 'taskbar_height' is not defined no-undef
118:52 error 'taskbar_height' is not defined no-undef
260:17 error 'make_taskbar_sortable' is not defined no-undef
Solves these eslint issues:
/puter/src/UI/Settings/UITabAccount.js
34:13 error 'user' is not defined no-undef
47:99 error 'user' is not defined no-undef
55:12 error 'user' is not defined no-undef
59:105 error 'user' is not defined no-undef
/puter/src/UI/Settings/UITabLanguage.js
35:37 error 'listSupportedLanguages' is not defined no-undef
/puter/src/UI/Settings/UITabUsage.js
45:18 error 'api_origin' is not defined no-undef
50:46 error 'auth_token' is not defined no-undef
54:21 error 'logout' is not defined no-undef
96:18 error 'api_origin' is not defined no-undef
101:46 error 'auth_token' is not defined no-undef
105:21 error 'logout' is not defined no-undef
116:51 error 'byte_format' is not defined no-undef
123:41 error 'byte_format' is not defined no-undef
124:45 error 'byte_format' is not defined no-undef
/puter/src/UI/Settings/UIWindowChangeEmail.js
96:18 error 'api_origin' is not defined no-undef
100:44 error 'auth_token' is not defined no-undef
/puter/src/UI/Settings/UIWindowFinalizeUserDeletion.js
29:12 error 'user' is not defined no-undef
97:16 error 'user' is not defined no-undef
115:22 error 'api_origin' is not defined no-undef
120:50 error 'auth_token' is not defined no-undef
127:25 error 'logout' is not defined no-undef
139:25 error 'logout' is not defined no-undef
/puter/src/UI/Settings/UIWindowSettings.js
48:162 error 'icons' is not defined no-undef
86:13 error Duplicate key 'height' no-dupe-keys
Resolves these eslint errors:
/puter/src/IPC.js
53:69 error 'appCallbackFunctions' is not defined no-undef
55:9 error 'appCallbackFunctions' is not defined no-undef
57:16 error 'appCallbackFunctions' is not defined no-undef
81:33 error 'window_for_app_instance' is not defined no-undef
84:27 error 'iframe_for_app_instance' is not defined no-undef
105:48 error Empty block statement no-empty
180:18 error 'api_origin' is not defined no-undef
190:44 error 'auth_token' is not defined no-undef
194:21 error 'logout' is not defined no-undef
207:18 error 'api_origin' is not defined no-undef
216:44 error 'auth_token' is not defined no-undef
220:21 error 'logout' is not defined no-undef
239:18 error 'api_origin' is not defined no-undef
248:44 error 'auth_token' is not defined no-undef
252:21 error 'logout' is not defined no-undef
268:13 error 'is_auth' is not defined no-undef
309:13 error 'is_auth' is not defined no-undef
348:27 error 'window_for_app_instance' is not defined no-undef
360:27 error 'window_for_app_instance' is not defined no-undef
576:35 error 'uuidv4' is not defined no-undef
582:9 error 'launch_app' is not defined no-undef
597:37 error 'appdata_path' is not defined no-undef
629:12 error 'appdata_signatures' is not defined no-undef
633:23 error 'appdata_signatures' is not defined no-undef
638:30 error 'appdata_path' is not defined no-undef
647:25 error 'appdata_signatures' is not defined no-undef
664:29 error 'appdata_signatures' is not defined no-undef
682:13 error 'is_auth' is not defined no-undef
717:13 error 'is_auth' is not defined no-undef
745:13 error 'is_auth' is not defined no-undef
773:13 error 'is_auth' is not defined no-undef
783:22 error 'api_origin' is not defined no-undef
793:48 error 'auth_token' is not defined no-undef
797:25 error 'logout' is not defined no-undef
825:13 error 'is_auth' is not defined no-undef
857:36 error 'operation_id' is not defined no-undef
872:41 error 'auth_token' is not defined no-undef
873:41 error 'api_origin' is not defined no-undef
939:45 error 'item_icon' is not defined no-undef
951:33 error 'sort_items' is not defined no-undef
954:29 error 'show_save_account_notice_if_needed' is not defined no-undef
998:38 error 'busy_indicator_hide_delay' is not defined no-undef
1004:33 error 'busy_indicator_hide_delay' is not defined no-undef
1018:37 error 'pictures_path' is not defined no-undef
1020:37 error 'desktop_path' is not defined no-undef
1022:37 error 'documents_path' is not defined no-undef
1024:37 error 'videos_path' is not defined no-undef
1026:37 error 'audio_path' is not defined no-undef
1028:37 error 'appdata_path' is not defined no-undef
1032:13 error 'is_auth' is not defined no-undef
1044:28 error 'operation_id' is not defined no-undef
1059:33 error 'auth_token' is not defined no-undef
1060:33 error 'api_origin' is not defined no-undef
1145:31 error 'iframe_for_app_instance' is not defined no-undef
1163:31 error 'window_for_app_instance' is not defined no-undef
1178:36 error 'get_apps' is not defined no-undef
1199:11 error 'window_for_app_instance' is not defined no-undef
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.
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.
Firstly, I was missing an `async` here, which somehow still worked for
me then, but produced errors for me when I tried it today.
Then, actually await the promise.
Finally, actually check the target's parent is us, and not just that it
has the attribute!
I don't know what was going on in my head that day. 🤦♂️
Sending a 'closeApp' message allows an app to close a target app, if it
has permission to do so. Currently, permission is granted if the
requesting app is the parent of the target app, or has godmode set.
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.
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?
A broadcast is a message sent to every running app that uses Puter.js.
Broadcasts have a name and a data payload, and are sent as a 'broadcast'
message.
Send a broadcast using:
`globalThis.services.get('broadcast').sendBroadcast(...)`
When doing so, you have the option to keep the broadcast message around,
so that it can be sent to any newly-launched apps. Sending another
broadcast with the same name will overwrite the previous one, so you
don't have to worry about flooding a new app with duplicates.
Previously, we just output whatever err.responseText was. However, that
has some downsides:
- If there's no responseText (as for when we can't find the domain) then
the user gets a blank message.
- If it's a 404 error, the responseText includes the full HTML for
Puter's 404 page, which we don't want to dump in the error box! This
is unlikely to happen in practice, but was easy enough to cater for.
So, add a nicer message in those cases.
The misconfiguration message is taken from here:
https://github.com/HeyPuter/puter/issues/185#issuecomment-2037977592Resolves#235.
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.
This lets apps communicate with each other, via Puter.
We probably want to limit this in some way, but for now, all apps are
allowed to send messages to any other apps.
The message is:
- `targetAppInstanceID`: The instance ID to send the message to
- `targetAppOrigin`: targetOrigin passed to postMessage(), in case we
want to restrict which URL can receive the message
- `contents`: The message to send to the target
Correct many instances of PT-BR to PT-PT. The original had some typos too. Kept “Password” as “Password” instead of a mix of “Senha” and “Palavra Chave”.
Adding `allow-storage-access-by-user-activation` which is important for permitting Safari to ask the user if the embedded app can use cookies, which enhances security, privacy and user consent.
See here for more discussion: https://github.com/HeyPuter/puter/issues/143#issuecomment-2008692100
The resizing and repositioning is safe from abuse in that the window's position and size cannot cause it to escape the viewport. More could be done here, e.g. rate limit resize/repos. I will request rate-limiting in a separate issue.