Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Events page updated #11

Merged
merged 17 commits into from
Oct 17, 2017
Merged

Events page updated #11

merged 17 commits into from
Oct 17, 2017

Conversation

M-ZubairAhmed
Copy link

As per the new design mock up event page design updated

@duttakapil
Copy link
Member

@M-ZubairAhmed is it possible for you to host this somewhere and share a demo link, so that people can interact with the what you've created?

@M-ZubairAhmed
Copy link
Author

@duttakapil we have mentioned how to run the dev server in our readme i guess developers should be able to run a local copy.
If you want we can have animated gifs here!

package.json Outdated
},
"lint-staged": {
"*.js": [
"prettier --write --single-quote --print-width=80 --trailing-comma=all",
"prettier --write --single-quote --print-width=80 --trailing-comma=all --no-semi",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you disable semicolons?

Copy link
Author

Choose a reason for hiding this comment

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

more of a coding style and also one less thing to worry about

Copy link
Contributor

Choose a reason for hiding this comment

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

If you don't like semicolons then you don't type them in code, let tools like prettier and xo place them at the time of committing(which will be taken care by pre-commit hook lint-staged).

@vinaypuppal
Copy link
Contributor

@M-ZubairAhmed It has lot of unrelated changes would you revert them back and submit a new PR with just event page updates.

BTW if you don't like semicolons then you don't type them in code, let tools like prettier and xo place them at the time of committing(which will be taken care by pre-commit hook lint-staged).

common/urls.js Outdated
@@ -0,0 +1,5 @@
export const pastEventsMeetupURL =
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this file under utils folder

width: '800px',
backgroundColor: '#fafafa',
}}
>
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move all inline styles to <style jsx> tag

package.json Outdated
},
"lint-staged": {
"*.js": [
"prettier --write --single-quote --print-width=80 --trailing-comma=all",
"prettier --write --single-quote --print-width=80 --trailing-comma=all --no-semi",
Copy link
Contributor

Choose a reason for hiding this comment

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

If you don't like semicolons then you don't type them in code, let tools like prettier and xo place them at the time of committing(which will be taken care by pre-commit hook lint-staged).

pages/events.js Outdated
pastEvents: requestPastEvents.data,
futureEvents: requestFutureEvents.data,
})
NProgress.done()
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move this logic to getInitialProps so page can be Server Side Rendered. More Info https://github.com/zeit/next.js/#fetching-data-and-component-lifecycle

pages/events.js Outdated
}}
>
<h1
style={{
Copy link
Contributor

Choose a reason for hiding this comment

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

Move inline styles to <style jsx>

@vinaypuppal
Copy link
Contributor

This is the preview url https://coderplex-app-assdaiebwd.now.sh/events
@M-ZubairAhmed Next time use now.sh to deploy your changes and place url in your PR
@duttakapil We can automate this process if we have a paid now.sh account because OSS plan allows only 3 instances to be active at a point of time.

@vinaypuppal
Copy link
Contributor

@M-ZubairAhmed There seems some CORS issue in above url page is not loading events
screen shot 2017-10-16 at 19 28 15

@M-ZubairAhmed
Copy link
Author

M-ZubairAhmed commented Oct 16, 2017

yes, i raised the issue #9

@vinaypuppal
Copy link
Contributor

vinaypuppal commented Oct 16, 2017

@M-ZubairAhmed Its not related to our backend, its from meetup API. Maybe we can do a call and I can explain this

.gitignore Outdated

# generate lock files
package-lock.json
Copy link
Contributor

Choose a reason for hiding this comment

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

package-lock.json should not be ignored. And we should both either use either yarn or npm only not both. As this repo already has yarn.lock file so you should continue with it.

@M-ZubairAhmed
Copy link
Author

M-ZubairAhmed commented Oct 17, 2017

Demo link (updated)

https://coderplex-app-kgrzxzxtng.now.sh

@vinaypuppal vinaypuppal merged commit 113f0f7 into coderplex-org:master Oct 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants