silexlabs / cloud-explorer

*this version is deprecated, see CloudExplorer2* File manager for your users cloud services such as dropbox, google drive and FTP
http://cloud-explorer.org
52 stars 23 forks source link

Demo.html error? #56

Closed Sergio-Muriel closed 8 years ago

Sergio-Muriel commented 8 years ago

Hi,

I am trying to run the demo on my local environment, but all i got is a big black screen when clicking on the "Open" button:

Just build the app with:

$ npm install
$ grunt

step1 step2

Note that:

any idea of what could be wrong? Thank

zabojad commented 8 years ago

Hi there !

I have no idea why you get this...

Is your test case accessible anywhere online ?

Sergio-Muriel commented 8 years ago

So, on this server, i didn't get the back screen, but it doesn't work too.

https://tfeserver.be/_cloud-explorer/app/demo.html

lexoyo commented 8 years ago

Hi there In the online version, the iframe is still display:none but if you remove this rule by hand it displays the black rectangle like in your screen shot

lexoyo commented 8 years ago

hello,

i have made these changes to

@zabojad I leave you here? the samples do work on my side now

lexoyo commented 8 years ago

Hi @Sergio-Muriel Did you have a chance to test my fixes? On your test page it looks like it works? Only the CSS are not loaded?

zabojad commented 8 years ago

Hi there !

@Sergio-Muriel , we have two issues on this page.

First as stated by @lexoyo, your cloud explorer css file is not loaded: GET http://tfeserver.be/_cloud-explorer/app/styles/cloud-explorer.css 404 (Not Found)

Then, you cannot use the cloud-explorer.herokuapp.com unifile endpoint for your own instance of Cloud Explorer:

demo.html:1 XMLHttpRequest cannot load http://cloud-explorer.herokuapp.com/api/1.0/services/list. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://tfeserver.be' is therefore not allowed access.

You have to implement your own instance of unifile that will allow via CORS HTTP headers requests from the tfeserver.be domain...

Sergio-Muriel commented 8 years ago

Thanks for all your help. I think thats the problem yes.