Skip to content
Permalink
Browse files

Merge pull request #1 from benjyz/master

keep up to date
  • Loading branch information...
thanhson1085 committed Jun 18, 2018
2 parents b2e4f91 + 39a7702 commit feb912f040528212e429bc963192640ce517e19f
Showing 697 changed files with 105,452 additions and 14,791 deletions.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -2,4 +2,5 @@ app/scripts/lib/extension-instance.js
test/integration/bundle.js
test/integration/jquery-3.1.0.min.js
test/integration/helpers.js
test/integration/lib/first-time.js
test/integration/lib/first-time.js
ui/lib/blockies.js
@@ -29,18 +29,19 @@
"plugins": [
"mocha",
"chai",
"react"
"react",
"json"
],

"globals": {
"document": false,
"log": true,
"navigator": false,
"web3": true,
"window": false
},

"rules": {
"no-restricted-globals": ["error", "event"],
"accessor-pairs": 2,
"arrow-spacing": [2, { "before": true, "after": true }],
"block-spacing": [2, "always"],
@@ -148,7 +149,7 @@
"space-in-parens": [1, "never"],
"space-infix-ops": 2,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!", ","] }],
"spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!", ","], "exceptions": ["=", "-"] } ],
"strict": 0,
"template-curly-spacing": [2, "never"],
"use-isnan": 2,
@@ -1,11 +1,15 @@
npm-debug.log
node_modules
package-lock.json
yarn.lock

app/bower_components
test/bower_components
package

# IDEs
.idea
.vscode

temp
.tmp
.sass-cache
@@ -16,6 +20,7 @@ dist
builds/
disc/
builds.zip
docs/jsdocs

development/bundle.js
development/states.js
@@ -24,7 +29,12 @@ test/background.js
test/bundle.js
test/test-bundle.js

test-artifacts

#ignore css output and sourcemaps
ui/app/css/output/

notes.txt

.coveralls.yml
.nyc_output
.nyc_output

This file was deleted.

Oops, something went wrong.
6 .nsprc
@@ -0,0 +1,6 @@
{
"exceptions": [
"https://nodesecurity.io/advisories/566",
"https://nodesecurity.io/advisories/157"
]
}
@@ -0,0 +1,10 @@
# Storybook
We're currently using [Storybook](https://storybook.js.org/) as part of our design system. To run Storybook and test some of our UI components, clone the repo and run the following:
```
npm install
npm run storybook
```
You should then see:
> info Storybook started on => http://localhost:6006/
In your browser, navigate to http://localhost:6006/ to see the Storybook application. From here, you'll be able to easily view components and even modify some of their properties.
@@ -0,0 +1,2 @@
import '@storybook/addon-knobs/register'
import '@storybook/addon-actions/register'
@@ -0,0 +1,11 @@
import { configure } from '@storybook/react'
import '../ui/app/css/index.scss'

const req = require.context('../ui/app/components', true, /\.stories\.js$/)

function loadStories () {
require('./decorators')
req.keys().forEach((filename) => req(filename))
}

configure(loadStories, module)
@@ -0,0 +1,21 @@
import React from 'react'
import { addDecorator } from '@storybook/react'
import { withInfo } from '@storybook/addon-info'
import { withKnobs } from '@storybook/addon-knobs/react'

const styles = {
height: '100vh',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
}

const CenterDecorator = story => (
<div style={styles}>
{ story() }
</div>
)

addDecorator((story, context) => withInfo()(story)(context))
addDecorator(withKnobs)
addDecorator(CenterDecorator)
@@ -0,0 +1,37 @@
const path = require('path')

module.exports = {
module: {
rules: [
{
test: /\.(woff(2)?|ttf|eot|svg|otf)(\?v=\d+\.\d+\.\d+)?$/,
loaders: [{
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: 'fonts/',
},
}],
},
{
test: /\.scss$/,
loaders: [
'style-loader',
'css-loader',
'resolve-url-loader',
{
loader: 'sass-loader',
options: {
sourceMap: true,
},
},
],
},
],
},
resolve: {
alias: {
'./fonts/Font_Awesome': path.resolve(__dirname, '../fonts/Font_Awesome'),
},
},
}
@@ -0,0 +1,10 @@
app/
development/
dist/
docs/
fonts/
images/
mascara/
node_modules/
notices/
test/
@@ -0,0 +1,50 @@
{
"extends": "stylelint-config-standard",
"rules": {
"color-named": "never",
"font-family-name-quotes": "always-where-recommended",
"font-weight-notation": "numeric",
"function-url-quotes": "always",
"number-leading-zero": "never",
"value-no-vendor-prefix": true,
"value-list-comma-newline-before": "never-multi-line",
"custom-property-empty-line-before": "never",
"property-no-unknown": [
true,
{
"ignoreProperties": [
"composes",
"all",
"-webkit-appearance"
]
}
],
"declaration-block-semicolon-newline-after": "always",
"block-opening-brace-newline-after": "always",
"selector-attribute-quotes": "always",
"selector-max-specificity": "0,5,2",
"selector-pseudo-class-no-unknown": [
true,
{
"ignorePseudoClasses": ["local", "global"]
}
],
"at-rule-empty-line-before": [
"always",
{
"ignore": [
"after-comment",
]
}
],
"indentation": [
2,
{
"indentInsideParens": "once-at-root-twice-in-block"
}
],
"max-nesting-depth": 3,
"no-duplicate-selectors": true,
"no-unknown-animations": true
}
}
Oops, something went wrong.

0 comments on commit feb912f

Please sign in to comment.
You can’t perform that action at this time.