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

architecture(web): init #7

Merged
merged 2 commits into from Mar 15, 2019
Merged

architecture(web): init #7

merged 2 commits into from Mar 15, 2019

Conversation

wuyuyue
Copy link
Contributor

@wuyuyue wuyuyue commented Mar 13, 2019

No description provided.

web/README.md Outdated
@@ -1,3 +1,17 @@
# CKB Explorer Web
# introduction
Copy link
Collaborator

Choose a reason for hiding this comment

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

introduction to Introduction

web/README.md Outdated
CKB block explorer web
# Build Setup

prerequisite: nodejs
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prerequisite

Copy link
Collaborator

Choose a reason for hiding this comment

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

better to indicate version of NodeJS

web/README.md Outdated

yarn i

yarn start // for development
Copy link
Collaborator

Choose a reason for hiding this comment

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

comments in shell should start with #

web/src/App.tsx Outdated
@@ -0,0 +1,55 @@
import React, { useContext, useEffect } from 'react'
import Routers from './routes'
import Loading from './components/loading'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Component File should be named PascalCase

Copy link
Contributor

Choose a reason for hiding this comment

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

Agree. Component name should be PascalCase

web/src/App.tsx Outdated
appContext.resize(window.innerWidth, window.innerHeight)
}
window.addEventListener('resize', resizeListener)
// appContext.toastMessage('hello', 12999933)
Copy link
Collaborator

Choose a reason for hiding this comment

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

meaningless comments

return (
<LoadingDiv className="loading">
<div
className="loading_content"
Copy link
Collaborator

Choose a reason for hiding this comment

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

class name should follow the camelCase or BEMlink

@@ -0,0 +1,15 @@
{
"short_name": "React App",
"name": "Create React App Sample",
Copy link
Contributor

Choose a reason for hiding this comment

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

short_name and name should be CKB Explorer

@duanyytop duanyytop merged commit 5011ad7 into nervosnetwork:develop Mar 15, 2019
@wuyuyue wuyuyue deleted the init branch March 28, 2019 02:26
shaojunda added a commit that referenced this pull request Oct 5, 2019
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.

None yet

3 participants