mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-21 20:55:55 +00:00
Revert "Fix mac setup bug (#1449)" (#1492)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
This reverts commit dfcf234d47.
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
{
|
||||
"config_name": "generated default config",
|
||||
"env": "dev",
|
||||
"nginx_mode": true,
|
||||
"server_id": "localhost",
|
||||
"http_port": "auto",
|
||||
"domain": "puter.localhost",
|
||||
"protocol": "http",
|
||||
"contact_email": "hey@example.com",
|
||||
"services": {
|
||||
"database": {
|
||||
"engine": "sqlite",
|
||||
"path": "puter-database.sqlite"
|
||||
},
|
||||
"thumbnails": {
|
||||
"engine": "purejs"
|
||||
},
|
||||
"file-cache": {
|
||||
"disk_limit": 16384,
|
||||
"disk_max_size": 16384,
|
||||
"precache_size": 16384,
|
||||
"path": "./file-cache"
|
||||
}
|
||||
},
|
||||
"cookie_name": "61ed0898-f0da-498d-a988-86f5ffcd8afe",
|
||||
"jwt_secret": "923d54d9-0911-44b3-87b1-ea3b04c5fa48",
|
||||
"url_signature_secret": "e076d914-f1c8-4c33-82a6-cc52dc469a37",
|
||||
"private_uid_secret": "cb751192555c60f8b985651bed2535738609960d69eeb177",
|
||||
"private_uid_namespace": "75deb70d-08b7-4391-b331-484d955dcfca",
|
||||
"": null
|
||||
}
|
||||
+19
-19
@@ -273,9 +273,6 @@ async function UIDesktop(options) {
|
||||
* It is not necessary to query unreads separately. If this stops working,
|
||||
* then this event should be fixed rather than querying unreads separately.
|
||||
*/
|
||||
// Ensure horizontal scroll na aaye
|
||||
$('.desktop.item-container').css('overflow-x', 'hidden');
|
||||
|
||||
window.__already_got_unreads = false;
|
||||
window.socket.on('notif.unreads', async ({ unreads }) => {
|
||||
if (window.__already_got_unreads) return;
|
||||
@@ -770,23 +767,26 @@ async function UIDesktop(options) {
|
||||
// Allow dragging of local files onto desktop.
|
||||
// --------------------------------------------------------
|
||||
$(el_desktop).dragster({
|
||||
enter: function(dragsterEvent, event) {
|
||||
$('.context-menu').remove();
|
||||
},
|
||||
leave: function(dragsterEvent, event) {},
|
||||
drop: async function (dragsterEvent, event) {
|
||||
const e = event.originalEvent;
|
||||
// ...existing drop logic...
|
||||
},
|
||||
enter: function (dragsterEvent, event) {
|
||||
$('.context-menu').remove();
|
||||
},
|
||||
leave: function (dragsterEvent, event) {
|
||||
},
|
||||
drop: async function (dragsterEvent, event) {
|
||||
const e = event.originalEvent;
|
||||
// no drop on item
|
||||
if ($(event.target).hasClass('item') || $(event.target).parent('.item').length > 0)
|
||||
return false;
|
||||
// recursively create directories and upload files
|
||||
if (e.dataTransfer?.items?.length > 0) {
|
||||
window.upload_items(e.dataTransfer.items, window.desktop_path);
|
||||
}
|
||||
|
||||
drag: function (dragsterEvent, event) {
|
||||
if (event && event.position && typeof event.position.left === 'number') {
|
||||
if (event.position.left < 0) {
|
||||
event.position.left = 0; // Only block left edge from going offscreen
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
// --------------------------------------------------------
|
||||
// Droppable
|
||||
|
||||
Reference in New Issue
Block a user