my-mind icon indicating copy to clipboard operation
my-mind copied to clipboard

NextCloud Integration

Open mmosley77 opened this issue 2 years ago • 13 comments

Would it be possible to make integration with NextCloud happen? There is another mind mapping app setup to do this found here https://github.com/ACTom/files_mindmap but it would be great if users that like the My Mind app better to do the same.

mmosley77 avatar Mar 02 '22 12:03 mmosley77

I have no idea what NextCloud is and what kind of interfacing does it offer. Perhaps it could work as a generic WebDAV/REST backend?

ondras avatar Mar 02 '22 12:03 ondras

Nextcloud is an open and online "hub" environment for apps, file storage, contacts, etc that can be self-hosted.

https://docs.nextcloud.com/server/latest/developer_manual/

joho1968 avatar Nov 07 '22 05:11 joho1968

NextCloud/OwnCloud my-mind webdav

well it seems to work "somehow" using

/remote.php/files instead of /remote.php/dav/files/username/

(

  • my-mind cant handle 201
  • but saving/ loading works
  • though the files apear under a different user than the one currently in the web session

grafik

)

benchonaut avatar Nov 07 '22 22:11 benchonaut

HTTP 201 should be fixed in: https://github.com/ondras/my-mind/issues/171

It will need to run through Make before it gets into the main my-mind.js

I've been testing with my own DAV server locally and it works well, 201 doesnt give an alert. I believe NextCloud has WebDAV too, so this could be a great back end.

melvincarvalho avatar Apr 16 '23 20:04 melvincarvalho

It will need to run through Make before it gets into the main my-mind.js

Done, and synced to the github-hosted demoversion.

ondras avatar Apr 17 '23 07:04 ondras

On https://my-mind.github.io, if I enter "Generic WebDAV" as the storage target, and click on "Save" without entering an URL, I get this in a modal:

<html>
<head><title>405 Not Allowed</title></head>
<body bgcolor="white">
<center><h1>405 Not Allowed</h1></center>
</body>
</html>

joho1968 avatar Apr 17 '23 08:04 joho1968

@joho1968 you need to save your file somewhere. That will be a URL. Without it you get an error. If you have loaded the mindmap from a URL it should populate the box.

melvincarvalho avatar Apr 17 '23 08:04 melvincarvalho

On https://my-mind.github.io, if I enter "Generic WebDAV" as the storage target, and click on "Save" without entering an URL, I get this in a modal:

...because the demo version at GitHub is hosted via GitHub Pages; this services does not provide any WebDAV endpoints.

ondras avatar Apr 17 '23 08:04 ondras

@joho1968 I made a little webdav map that you can try:

https://my-mind.github.io/?url=https%3A%2F%2Fmelvin.solidweb.org%2Fpublic%2Fmymind%2Ftest.json%2Ftest.mymind

Saving should work

melvincarvalho avatar Apr 17 '23 08:04 melvincarvalho

@joho1968 you need to save your file somewhere. That will be a URL. Without it you get an error. If you have loaded the mindmap from a URL it should populate the box.

Yes, I understand that. Sorry, I should have been more clear in my "report". What I meant to say is that I don't think the button should do anything if the URL field is blank.

joho1968 avatar Apr 17 '23 08:04 joho1968

What I meant to say is that I don't think the button should do anything if the URL field is blank.

Right, then perhaps you are reporting an unrelated issue "disable the button while the input is empty".

ondras avatar Apr 17 '23 09:04 ondras

#173

joho1968 avatar Apr 17 '23 09:04 joho1968

one last hint:

409 Conflict ( see above screenshot) should be handled , either by

  • "first get then diff then push"

OR

  • "open dialog , let user choose to overwrite/rename/whatever"

.. or it might be a real pain

benchonaut avatar May 09 '23 11:05 benchonaut