stackedit icon indicating copy to clipboard operation
stackedit copied to clipboard

Provide owncloud backend ?

Open ldidry opened this issue 10 years ago • 36 comments

It would be awesome if we could export/import to/from an owncloud server.

Really cool work, by the way :smiley:

ldidry avatar Oct 08 '13 08:10 ldidry

I vote this up

wizzard0 avatar Oct 22 '13 17:10 wizzard0

Seconded.

mAAdhaTTah avatar Oct 23 '13 13:10 mAAdhaTTah

ownCloud has now an API to share files https://github.com/owncloud/documentation/blob/stable6/developer_manual/core/ocs-share-api.rst

flyinva avatar Dec 13 '13 17:12 flyinva

+42

HLFH avatar Jan 04 '14 11:01 HLFH

+1 I would also pay a bounty on this.

jnials avatar Feb 02 '14 06:02 jnials

Let's add some interest on this.

ghetolay avatar Feb 03 '14 16:02 ghetolay

@jnials you can start a bounty here: https://www.bountysource.com/issues/998492-provide-owncloud-backend

ccverg avatar Feb 04 '14 22:02 ccverg

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 avatar Feb 04 '14 23:02 jnials

@jnials you just gave $2.5 to @ccvergara's company... is there a way to block this kind of spam?

benweet avatar Feb 04 '14 23:02 benweet

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.

jnials avatar Feb 05 '14 00:02 jnials

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 avatar Feb 09 '14 20:02 mattkatz

@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 avatar Feb 09 '14 21:02 benweet

@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.

mAAdhaTTah avatar Feb 10 '14 15:02 mAAdhaTTah

Guys, let's drop this. I've delt directly with this offline, and as @benweet said, this is not the place to debate this.

jnials avatar Feb 10 '14 17:02 jnials

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 avatar Apr 15 '14 07:04 jancborchardt

@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?

ghost avatar Aug 14 '14 06:08 ghost

@jfearn nice! That question ^ can probably better be answered by @DeepDiver1975 @schiesbn, or @Raydiation who partly introduced CORS to ownCloud.

jancborchardt avatar Aug 14 '14 08:08 jancborchardt

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.

LukasReschke avatar Aug 14 '14 08:08 LukasReschke

Easy Cors support depends on app framework usage. I don't think the api uses that.

BernhardPosselt avatar Aug 14 '14 09:08 BernhardPosselt

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.

ghost avatar Aug 26 '14 06:08 ghost

@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. :)

jancborchardt avatar Aug 26 '14 10:08 jancborchardt

Would love that feature !

djibux avatar Oct 22 '14 10:10 djibux

+1, are there any updates on this?

l3iggs avatar Jan 22 '15 05:01 l3iggs

+1 would love to see this come true

nano4711 avatar Jan 22 '15 14:01 nano4711

+1

RileyStarlight avatar Mar 11 '15 12:03 RileyStarlight

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.

nommaz avatar Feb 06 '17 20:02 nommaz

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

DeepDiver1975 avatar Mar 05 '18 08:03 DeepDiver1975

What about this function in nextcloud with webdav?

maschhoff avatar May 25 '20 20:05 maschhoff

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 using mode: '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?

jgaehring avatar Jun 21 '20 15:06 jgaehring