re-figure / refigure

web extension to curate scientific results
https://refigure.org/
MIT License
8 stars 2 forks source link

Firefox extension #14

Open MaximeMaW opened 7 years ago

MaximeMaW commented 7 years ago

Hi @re-figure

Thank a lot for this amazing extension, I wish the scientific community had more tools like this, this is really awesome.

I was wondering whether you guys had plans to port the extension to other browser, and primarily to Firefox? This would be of great use to many people. Conversely, how hard do you think it would be to do such port?

Thanks again

re-figure commented 7 years ago

@MaximeMaW thank you! We do plan to make a Firefox extension: to make it work reproducibly is not trivial but it is not hard. So i guess it is of medium difficulty and is midway down our todo list. If you are interested in trying to port it, we can provide some help.

MaximeMaW commented 7 years ago

Awesome! I am definitively interested in this project and will try to dedicate some time to it. However, I cannot commit to a deadline right now.

re-figure commented 7 years ago

No deadlines needed. We are happy that there is community interest in expanding the reach. If there is anything we can do just let us know

On Mon, Sep 4, 2017 at 12:56 PM MaximeMaW notifications@github.com wrote:

Awesome! I am definitively interested in this project and will try to dedicate some time to it. However, I cannot commit to a deadline right now.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/re-figure/refigure/issues/14#issuecomment-327002018, or mute the thread https://github.com/notifications/unsubscribe-auth/AdjmFfNvFLK6VaQzOW_Xdfqhk9DJ3_3sks5sfCvEgaJpZM4PKmLW .

MaximeMaW commented 7 years ago

Ok, so I managed to build the extension, however, instead of what the README says, I had to do:

npm install
bower install
gulp build

I was unable to run the website, and since I am not familiar with the nodejs/gulp environment, I might be doing things totally wrong, but gulp stopped throwing errors at me only after I installed the following:

sudo apt install libcairo2-dev libjpeg-dev libpango1.0-dev
npm install express
npm install cookie-parser
npm install http-status-codes
npm install jsonwebtoken
npm install node-captcha
npm install crypto-js
npm install node-uuid
npm install emailjs
npm install google-auth-library
npm install fbgraph
npm install generate-password
npm install express-https-redirect
npm install body-parser
npm install mysql

Then, when I connected to http://localhost:8181, I got a mysql connection error. I believe that the README is still incomplete and this is the reason why it shows up.

Then, I was able to drop the extension into Firefox (with the help of this link). From there, I was able to:

But it seems that the refigure were not detected, and I got the following in the debugger console:

capture du 2017-09-07 15-32-45

Any pointer from here would be much appreciated.

gg927 commented 7 years ago

Wow, that's awesome. It might take a few days but we will get back once the team has had a look at it. We will also fix the readme.

On Thu, Sep 7, 2017 at 6:45 PM MaximeMaW notifications@github.com wrote:

Ok, so I managed to build the extension, however, instead of what the README says, I had to do:

npm install bower install gulp build

I was unable to run the website, and since I am not familiar with the nodejs/gulp environment, I might be doing things totally wrong, but gulp stopped throwing errors at me only after I installed the following:

sudo apt install libcairo2-dev libjpeg-dev libpango1.0-dev npm install express npm install cookie-parser npm install http-status-codes npm install jsonwebtoken npm install node-captcha npm install crypto-js npm install node-uuid npm install emailjs npm install google-auth-library npm install fbgraph npm install generate-password npm install express-https-redirect npm install body-parser npm install mysql

Then, when I connected to http://localhost:8181, I got a mysql connection error. I believe that the README is still incomplete and this is the reason why it shows up.

Then, I was able to drop the extension into Firefox (with the help of this link https://hacks.mozilla.org/2015/10/porting-chrome-extensions-to-firefox-with-webextensions/). From there, I was able to:

  • login with my refigure account

But it seems that the refigure were not detected, and I got the following in the debugger console:

[image: capture du 2017-09-07 15-32-45] https://user-images.githubusercontent.com/26774320/30188479-64faf7a2-93e3-11e7-922e-790093327f4e.png

Any pointer from here would be much appreciated.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/re-figure/refigure/issues/14#issuecomment-327947454, or mute the thread https://github.com/notifications/unsubscribe-auth/AOWDZM0qPkJcAWXVMBDqcGHnbtlafU9hks5sgHIfgaJpZM4PKmLW .

re-figure commented 7 years ago

Hi @MaximeMaW just an update to say that we identified a few bugs and are ironing out the kinks. It might take a couple of weeks to respond to the firefox extension.

MaximeMaW commented 7 years ago

Hi @re-figure.

Awesome, keep me posted!