Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modularized webui #73

Closed
wants to merge 3 commits into from
Closed

Modularized webui #73

wants to merge 3 commits into from

Conversation

krl
Copy link
Contributor

@krl krl commented Jul 25, 2015

Major rehaul of the webui architecture.

Logs and Config are not in yet.

Config is blocked on making ipfs.add solid in the browser, and logs on changing back the log entry point into the api.

@jbenet jbenet added the status/in-progress In progress label Jul 25, 2015
@krl
Copy link
Contributor Author

krl commented Jul 25, 2015

Ok, i got a mega-conflict here since master changed by one commit while i was reorganizing everything. I could manually incorperate the patch, but i think a rebase will simply not be possible here.

Any git advice here?

@jbenet
Copy link
Member

jbenet commented Jul 25, 2015

Manual is fine, just flag the previous commit so we can make sure it's the same in CR :)

@jbenet
Copy link
Member

jbenet commented Jul 25, 2015

(Same/similar)

## Dev

```bash
git clone https://github.com/ipfs/webui
cd ipfs-webui
npm install
# Runs server on port 8000. Set env PORT to change.
./alldeps.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove the makefile? makefile can do this easier. + can have other targets, like publish.

@jbenet
Copy link
Member

jbenet commented Jul 28, 2015

should probably use webcomponents, as we discussed with @diasdavid, but will CR some anyway.

@diasdavid, would be great to get your input here too

React.render(<Connections ipfs={ipfs} />,
document.getElementById('mount'))
}
})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we could match the typical

module.exports = function() {
}
// or 
module.exports = {} 

type of thing, that may be nice. maybe not easy? this may be ok. impressions @diasdavid?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I typically see (and do) code like

// If the module has a constructor 
exports = module.exports [= <name of func that might be a constructor or main call of this module>]

// and then, for other calls:
exports.anotherThing = function () { }

If the module is a facade, I do exports.<something> for all of them instead of doing module.exports = {}

This way, if you can declare exported values along the file and you don't have to update the exported interface in two places.

@jbenet
Copy link
Member

jbenet commented Jul 28, 2015

hard to tell everything that changed becuase the github diff is off and the PR is huge. maybe splitting off the apps into own repos will help scope the CR 👍

@jbenet
Copy link
Member

jbenet commented Jul 28, 2015

@krl in general like where this is at. if it all works well, that's very nice already! 👍

@daviddias
Copy link
Member

@krl any luck with the webcomponetized webui? It would be cool to get that also with #75 to go-ipfs, so that ipfs/ipfs-desktop#23 gets fixed

//cc @whyrusleeping

@jbenet
Copy link
Member

jbenet commented Aug 26, 2015

yeah status here?

@daviddias
Copy link
Member

Whats the status here @krl ? ETA to be finished? There are some people looking to help on the webui and it would be awesome if they can contribute on the new Web Componentized version

@giodamelio giodamelio mentioned this pull request Oct 6, 2015
3 tasks
@krl
Copy link
Contributor Author

krl commented Oct 9, 2015

@diasdavid hey, sorry for being out of the loop for a bit, i'm going to have a look at this again next week

@daviddias
Copy link
Member

@krl nice :) If you have the times to also describe the goal of 'Web Componetizing' all of the things, could be good for people doing work on the other IPFS apps to follow the model. @giodamelio wants to contribute to the webui :)

@jbenet
Copy link
Member

jbenet commented Oct 9, 2015 via email

@dignifiedquire
Copy link
Member

Also it would be good to have an outline about the tooling especially in relation to react, as from
what I have gathered so far the tooling seems quite problematic at some points especially the integration parts.

@daviddias
Copy link
Member

@krl updates on this PR? I eager and excited for the moment we can write tests for the webui

This was referenced Nov 9, 2015
@dignifiedquire
Copy link
Member

After the latest discussions I will close this (see notes here: ipfs/team-mgmt#55 (comment)) Will create issues with detailed todos in the next days, but the gist is that we will use react components for the webui with a simple build process rather than trying to get webcomponents and react married.

Thanks @krl for all the work and discussions!

@jbenet jbenet removed the status/in-progress In progress label Nov 19, 2015
@dignifiedquire dignifiedquire deleted the modularized-webui branch March 13, 2016 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants