This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Included routes, forms, validators, tests and in general everything for making possible create safes, save them, load them and visualize them.
- Loading branch information
Showing
168 changed files
with
29,109 additions
and
1,682 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
node_modules/ | ||
build/ | ||
build_webpack/ | ||
build_storybook/ | ||
build/contracts/ | ||
truffle-config.js | ||
gnosis-safe-contracts/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import '@storybook/addon-actions/register' | ||
import '@storybook/addon-links/register' | ||
import '@storybook/addon-knobs/register' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import 'babel-polyfill' | ||
import { addDecorator, configure } from '@storybook/react' | ||
import { withKnobs } from '@storybook/addon-knobs' | ||
import { MuiThemeProvider } from 'material-ui/styles' | ||
import * as React from 'react' | ||
import { Provider } from 'react-redux' | ||
import StoryRouter from 'storybook-router' | ||
import { store } from '~/store' | ||
import theme from '~/theme/mui' | ||
import 'index.scss' | ||
|
||
(function (global) { | ||
//Useful for adding data and libraries to window object. | ||
})(typeof window !== 'undefined' ? window : {}); | ||
|
||
addDecorator(withKnobs); | ||
addDecorator(StoryRouter()) | ||
|
||
addDecorator((story) => ( | ||
<Provider store={store}> | ||
<MuiThemeProvider theme={theme}> | ||
{ story() } | ||
</MuiThemeProvider> | ||
</Provider> | ||
)) | ||
|
||
const components = require.context('../src/components', true, /\.stories\.((js|ts)x?)$/) | ||
const routes = require.context('../src/routes', true, /\.stories\.((js|ts)x?)$/) | ||
|
||
function loadStories() { | ||
components.keys().forEach((filename) => components(filename)) | ||
routes.keys().forEach((filename) => routes(filename)) | ||
} | ||
|
||
configure(loadStories, module) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700" rel="stylesheet"> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
process.env.NODE_ENV = 'development' | ||
const prodConfig = require('../config/webpack.config.dev'); | ||
|
||
module.exports = function(storybookConfig, configType) { | ||
|
||
const config = Object.assign({}, prodConfig); | ||
|
||
storybookConfig.module.rules = storybookConfig.module.rules.concat(config.module.rules) | ||
storybookConfig.resolve = config.resolve; | ||
|
||
return storybookConfig; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// @flow | ||
class LocalStorageMock { | ||
store: Object | ||
|
||
constructor() { | ||
this.store = {} | ||
} | ||
|
||
clear() { | ||
this.store = {} | ||
} | ||
|
||
getItem(key) { | ||
return this.store[key] || null | ||
} | ||
|
||
setItem(key, value) { | ||
this.store[key] = value.toString() | ||
} | ||
|
||
removeItem(key) { | ||
delete this.store[key] | ||
} | ||
} | ||
|
||
global.localStorage = new LocalStorageMock() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// @flow | ||
import Web3 from 'web3' | ||
|
||
const window = global.window || {} | ||
window.web3 = window.web3 || {} | ||
window.web3.currentProvider = new Web3.providers.HttpProvider('http://localhost:8545') | ||
|
||
global.window = window |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
import '@babel/polyfill'; | ||
// @flow | ||
import '@babel/polyfill' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// flow-typed signature: d33e1b8f0888822895515e3ca6a3f8eb | ||
// flow-typed version: 1709d3212d/@storybook/addon-actions_v3.x.x/flow_>=v0.25.x | ||
|
||
declare module '@storybook/addon-actions' { | ||
declare type Action = (name: string) => Function; | ||
declare type DecorateFn = (args: Array<any>) => Array<any>; | ||
|
||
declare module.exports: { | ||
action: Action, | ||
decorateAction(args: Array<DecorateFn>): Action; | ||
}; | ||
} |
Oops, something went wrong.