-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e1ed02
commit 68c063a
Showing
10 changed files
with
4,035 additions
and
110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ dist | |
yarn-error.log | ||
stats.json | ||
coverage | ||
storybook-static |
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,11 @@ | ||
import { configure } from '@storybook/react'; | ||
import '@patternfly/react-core/dist/styles/base.css'; | ||
|
||
// automatically import all files ending in *.stories.tsx | ||
const req = require.context('../stories', true, /\.stories\.tsx$/); | ||
|
||
function loadStories() { | ||
req.keys().forEach(req); | ||
} | ||
|
||
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,3 @@ | ||
{ | ||
"extends": "../tsconfig.json" | ||
} |
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,38 @@ | ||
const path = require('path'); | ||
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin'); | ||
const appConfig = require('../webpack.common'); | ||
|
||
module.exports = ({ config }) => { | ||
config.module.rules = []; | ||
config.module.rules.push(...appConfig.module.rules); | ||
config.module.rules.push({ | ||
test: /\.css$/, | ||
include: [ | ||
path.resolve(__dirname, '../src'), | ||
path.resolve(__dirname, '../node_modules/@storybook'), | ||
path.resolve(__dirname, '../node_modules/patternfly'), | ||
path.resolve(__dirname, '../node_modules/@patternfly/patternfly'), | ||
path.resolve(__dirname, '../node_modules/@patternfly/react-styles/css'), | ||
path.resolve(__dirname, '../node_modules/@patternfly/react-core/dist/styles/base.css'), | ||
path.resolve(__dirname, '../node_modules/@patternfly/react-core/dist/esm/@patternfly/patternfly'), | ||
path.resolve(__dirname, '../node_modules/@patternfly/react-core/node_modules/@patternfly/react-styles/css'), | ||
path.resolve(__dirname, '../node_modules/@patternfly/react-table/node_modules/@patternfly/react-styles/css'), | ||
path.resolve(__dirname, '../node_modules/@patternfly/react-inline-edit-extension/node_modules/@patternfly/react-styles/css') | ||
], | ||
use: ["style-loader", "css-loader"] | ||
}); | ||
config.module.rules.push({ | ||
test: /\.tsx?$/, | ||
include: path.resolve(__dirname, '../src'), | ||
use: [ | ||
require.resolve('react-docgen-typescript-loader'), | ||
], | ||
}) | ||
config.resolve.plugins = [ | ||
new TsconfigPathsPlugin({ | ||
configFile: path.resolve(__dirname, "../tsconfig.json") | ||
}) | ||
]; | ||
config.resolve.extensions.push('.ts', '.tsx'); | ||
return config; | ||
}; |
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,12 @@ | ||
import * as React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { withInfo } from '@storybook/addon-info'; | ||
import { Dashboard } from '@app/Dashboard/Dashboard'; | ||
|
||
const stories = storiesOf('Components', module); | ||
stories.addDecorator(withInfo); | ||
stories.add( | ||
'Dashboard', | ||
() => <Dashboard />, | ||
{ info: { inline: true } } | ||
); |
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 @@ | ||
import * as React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { withInfo } from '@storybook/addon-info'; | ||
import { Support } from '@app/Support/Support'; | ||
|
||
const stories = storiesOf('Components', module); | ||
stories.addDecorator(withInfo); | ||
stories.add( | ||
'Support', | ||
() => <Support />, | ||
{ info: { inline: true } } | ||
); |
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
Oops, something went wrong.