stackedit
stackedit copied to clipboard
Provide owncloud backend ?
It would be awesome if we could export/import to/from an owncloud server.
Really cool work, by the way :smiley:
I vote this up
Seconded.
ownCloud has now an API to share files https://github.com/owncloud/documentation/blob/stable6/developer_manual/core/ocs-share-api.rst
+42
+1 I would also pay a bounty on this.
Let's add some interest on this.
@jnials you can start a bounty here: https://www.bountysource.com/issues/998492-provide-owncloud-backend
OK, I put up a $25 bounty, some of the rest of you, add to it. Make it worth somebody's while. Thanks @ccvergara.
https://www.bountysource.com/issues/998492-provide-owncloud-backend
@jnials you just gave $2.5 to @ccvergara's company... is there a way to block this kind of spam?
Well, don't I feel like a sucker. Sigh. Yeah. You can block her from your timeline (click her name above, click the gear, select block user). That will do it for you. You can also report abuse, which is what I'm about to do.
Hi - I look at Bountysource stuff when considering project to contribute to. I think bounties are a pretty cool idea for non-devs or devs without enough time to crowdfund solutions.
@mattkatz I don't like people using this site and this project to make money furtively without any contribution. I haven't criticized Bountysource and, anyway, Github is not a place to debate about this kind of topic.
@benweet Might want to report her/them for spam. Seems problematic at best to be making money off OS projects like this without working with the developer(s) of those projects first.
Guys, let's drop this. I've delt directly with this offline, and as @benweet said, this is not the place to debate this.
You can access ownCloud through WebDAV. Then they can be shared using the above mentioned Share API. cc @PVince81
ownCloud also has a Notes app with API which seems well-fitting here (it simply stores notes in the »Notes« subfolder):
- https://github.com/owncloud/notes/wiki/API-0.2
- https://github.com/owncloud/notes/wiki/Notes-0.2
cc @Raydiation who developed the Notes app.
@bentweet it would be cool if we can get sync going here, especially as both StackEdit and ownCloud are open source. :) If you use IRC, you can also join us in #owncloud-dev (on freenode).
@jancborchardt I'm looking in to this ATM and it seems that CORS is going to prevent this:( Is there a way to turn on CORS for OCS Share API? Alternatively is there JSONP support?
@jfearn nice! That question ^ can probably better be answered by @DeepDiver1975 @schiesbn, or @Raydiation who partly introduced CORS to ownCloud.
I opened https://github.com/owncloud/core/issues/10415 to create a list of APIs where we should enable CORS. Please add more if required and then I can take a look at it.
Easy Cors support depends on app framework usage. I don't think the api uses that.
FYI I have checked in a version of this support, it only works for co-hosted systems ATM due to CORS and possibly other authentication issues.
https://github.com/jfearn/stackedit/tree/owncloud
Given it's limited to co-hosting & is missing a few nice features, like sub-directory support, I won't issue a pull request at this time.
@jfearn best come join us on IRC in #owncloud-dev if you have more questions. It’s a bit more lively than the mailing list. :)
Would love that feature !
+1, are there any updates on this?
+1 would love to see this come true
+1
IMHO clicking on .md files on the owncloud web ui should open the file in stackedit in a new browser tab. Basically the way google drive and google docs works.
Owncloud notes plugin I believe works this way.
You also might want to try to use the owncloud js client which was developed during GSoC 2017: https://github.com/noveens/js-owncloud-client
What about this function in nextcloud with webdav?
Is there still any interest in this?
I've been on a quest for the best markdown editor that pairs with Nextcloud, and kinda disappointed with the options. I was almost at the point of making something myself, when I remembered how much I love StackEdit and its design, and realized it might be easier to create a StackEdit/Nextcloud integration. Also psyched to learn y'all are using Vue these days, which is my bread and butter.
I'm trying to understand the backend challenges. If I'm not mistaken, the main issues seem to be:
-
CORS: I'm guessing a user's Nextcloud server has to be configured with the appropriate
Allow-Controll-Allow-Origin
header etc, in addition to usingmode: 'cors'
or whatever in the client. Anything else I'm missing? - Authentication: This seems pretty straightforward, as Nextcloud uses OAuth2 these days. Just needs to be configured.
- WebDAV: I'm totally new to this protocol, but seems like Nextcloud has pretty good support for this type of thing. Any particular challenges that folks are aware of?
- Nextcloud app: Since most of the above issues also entail some server configuration, it might be best to have some sort of app in the Nextcloud store for easier setup on each server instance.
Other than that, there would be some strictly client-side work, mainly creating a nextcloudProvider
, which would need a getLocationUrl
method similar to the gitlabProvider
, but all that seems pretty straightforward. A few modals... what else?
I don't have a ton of time to commit to this, but would be happy to make contributions if they'd be accepted, especially if there were others willing to provide some pointers in areas where I'm not super knowledgeable. It'd be slow-going, but I could get the ball rolling and chip away at it over time. Or has someone else already made some headway here?