Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

replace microcomponent with nanocomponent #450

Closed

Conversation

aks-
Copy link
Collaborator

@aks- aks- commented Jan 13, 2018

I refactored this, replacing microcomponent with nanocomponent, as in #446, I will do the others in another PR

@aks-
Copy link
Collaborator Author

aks- commented Jan 13, 2018

I see that the appveyor build was already failing, so I didn't go fix that

Copy link
Collaborator

@juliangruber juliangruber left a comment

Choose a reason for hiding this comment

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

...otherwise, this looks great to me! thank you so much for putting in all the work :)

@@ -1,6 +1,6 @@
'use strict'
Copy link
Collaborator

Choose a reason for hiding this comment

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

somehow this broke the hamburger menu, it's not opening up any more for me

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hm, I will take a look when I have time

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed by @martinheidegger in this commit 04697c0 yay!

@juliangruber
Copy link
Collaborator

I had to tweet about this: https://twitter.com/juliangruber/status/952194559328518149 (couldn't find your twitter handle)

Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

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

Code LGTM

@aks-
Copy link
Collaborator Author

aks- commented Jan 13, 2018

@juliangruber thanks for the fantastic praise, I have also forgotten twitter handle, haven't used it in long time. Thank you again :)

@aks-
Copy link
Collaborator Author

aks- commented Jan 18, 2018

Still requires some fix, I will do it when I have time and let you folks know. Currently overloaded at work...

@aks- aks- force-pushed the refactor-with-nanocomponent branch from 1b01530 to 56229d3 Compare January 21, 2018 09:06
@aks-
Copy link
Collaborator Author

aks- commented Jan 21, 2018

@juliangruber updated PR, can you please check it?

@juliangruber
Copy link
Collaborator

side note: please try in the future not to rebase such huge PRs, it can be hard to tell what you have reviewed already and what not

@@ -103,7 +103,7 @@ HeaderElement.prototype.createElement = function (props) {
return html`
<header class="${header}">
<div class="fr relative">
${importButton.render({
${importButton.createElement({
Copy link
Collaborator

Choose a reason for hiding this comment

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

this should still use importButton.render, createElement is a private api. See https://github.com/choojs/nanocomponent#usage

@@ -118,52 +118,44 @@ module.exports = Row
function Row () {
if (!(this instanceof Row)) return new Row()
Nanocomponent.call(this)

this.parts = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

parts is a bit generic, can we call this partials maybe? That term is known from the Ruby on Rails world

}

module.exports = {
datPeers,
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not inline datPeers here too?

Copy link
Collaborator

Choose a reason for hiding this comment

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

datPeers is used in datState. If datState would use this.datPeers to access it the method could not be able to simply use it like: var {datState} = require('./lib/datInfo')

Copy link
Collaborator

Choose a reason for hiding this comment

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

+1

@juliangruber
Copy link
Collaborator

I hope this is the last big view refactor. Thank you so much for going through all this work!

@aks-
Copy link
Collaborator Author

aks- commented Jan 22, 2018

@juliangruber can we remove appveyor tests for windows? or maybe try fixing them by updating deps for hypercore, hyperdive?

@juliangruber
Copy link
Collaborator

Afaik hypercore/hyperdrive isn't breaking the tests on windows, there were UI issues instead

@aks-
Copy link
Collaborator Author

aks- commented Jan 22, 2018

@juliangruber hm I see... I haven't got windows machine otherwise I could have tried fixing it...

btw would you want anything else changed in this PR?

@juliangruber
Copy link
Collaborator

Since windows was failing before, I'm fine with merging this as long as all on the mac / travis side still works. I'll give this a last read through and then will merge!

@juliangruber
Copy link
Collaborator

Does downloading dats work for you? I get this screen after I tried to download dat://40a7f6b6147ae695bcbcff432f684c7bb5291ea339c28c1755896cdeb80bd2f9/:

screen shot 2018-01-22 at 13 46 11

@aks-
Copy link
Collaborator Author

aks- commented Jan 22, 2018

@juliangruber
now

works, downloaded successfully.

@martinheidegger
Copy link
Collaborator

Will the work on this continue or should it be closed in favor of #457 ?

@martinheidegger
Copy link
Collaborator

React branch used, closing this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants