Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

broken drag & drop ? #489

Open
drzraf opened this issue Oct 13, 2024 · 1 comment
Open

broken drag & drop ? #489

drzraf opened this issue Oct 13, 2024 · 1 comment

Comments

@drzraf
Copy link

drzraf commented Oct 13, 2024

Describe the bug
Can't drag & drop and official pack. Seems forbidden / unsupported : The UI doesn't let drag & drop.

To Reproduce
When trying to D&D from the library to the device, stories' text is highlighted instead of a clear D&D effect. When releasing the selected text, a React errors is triggered

Expected behavior

  1. D&D should work.
  2. If if doesn't, an explanation should be provided (or a clear icon)
  3. A simple clickable button, as a consistent and simpler fallback, should exists to do such an important action as uploading an item to the device (or a command-line cli alternative)

Screenshots
a

Logs
The device is perfectly detected (UUID, fs size, firmware version, ...)

Desktop and environment (please complete the following information):

  • OS: Linux
  • Browser Chromium
  • Java version: openjdk version "21.0.4" 2024-07-16
  • STUdio application version 0.4.1 / 0.4.0
  • Firmware version: 3.1

b

With Firefox, no error in the console (but no drag & drop either).

I tried call the endpoint manually:
curl http://localhost:8080/api/device/addFromLibrary -H "Content-Type: application/json" --data-binary '{"uuid":"74e59c16-6a28-45ce-9906-fca8fd69f23c", "path": "22137b298646433580694a4c9a2d7e89.pack"}' (uuid taken from the library object, format=fs)

=> Response {"transferId":"c6731478-b1fd-40be-a89c-ecb4e3cd4a7e"}
=> log Copying file 22137b298646433580694a4c9a2d7e89.pack (346.74 MB) to /media/me/LUNII/.content/FD69F23C
=> Actual result: Only the directory is created under .content. No file is created.

copyPackFolder(src, dest) should really be the subject of a standalone simple command-line operating on a plain file-system level : it's such a core and critical feature.

Issue copied over from DantSu/studio#7 (I don't understand what/why this other repository copied rathern than forked this one, released a new minor version with no possibility to evaluate the actual changes from a common git history. Is that other one a legit' or a malware-oriented repository?)

@marian-m12l
Copy link
Owner

Thanks for the feedback.
The react error is unexpected, but drag and drop is indeed disabled for official story packs, as you can simply use the Luniistore application to manage your official packs.
I started working on a CLI at some point, with the idea of providing GraalVM-based native binaries, but didn't finish it. It's certainly doable. Also as you may have seen, there are a bunch of other tools based on STUdio that may better suit your needs?
As far as I can tell the fork you're pointing out is legit. It was used by community members to develop support for v3 devices. STUdio wouldn't support v3 without this effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants