Skip to content

Commit 7670a13

Browse files
committed
Move branch from other project
1 parent dd56a22 commit 7670a13

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+14491
-6389
lines changed

Diff for: .storybook/main.js

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
var path = require('path')
2+
var webpack = require('webpack')
3+
4+
module.exports = {
5+
//stories: ['../stories/*.stories.js'],
6+
//stories: ['/stories/*.stories.js'],
7+
// stories: ['../stories/*.stories.js'],
8+
9+
//stories: ['../stories/TEST.stories.js'],
10+
//stories: ['../src/*.stories.js']
11+
//stories: ['../src/**/*.stories.js']
12+
stories: ['../stories/*.stories.js'],
13+
module: {
14+
loaders: [
15+
{
16+
test: /\.js$/,
17+
loaders: [ 'babel-loader' ],
18+
exclude: /node_modules/,
19+
include: __dirname
20+
},
21+
{
22+
test: /\.css?$/,
23+
loaders: [ 'style-loader', 'raw-loader' ],
24+
include: __dirname
25+
}
26+
]
27+
},
28+
addons: [
29+
'@storybook/addon-storysource',
30+
'@storybook/addon-knobs',
31+
],
32+
};

Diff for: .storybook/preview.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React from 'react';
2+
import { addDecorator } from '@storybook/react';
3+
import '../node_modules/@coreui/coreui/dist/css/coreui.min.css';
4+
import CRow from '../src/grid/CRow'
5+
import CContainer from '../src/grid/CContainer'
6+
import CCol from '../src/grid/CCol'
7+
import CCard from '../src/card/CCard'
8+
//@import '~@coreui/icons/css/all.css';
9+
10+
addDecorator(story => (
11+
<>
12+
<CContainer fluid>
13+
<CRow>
14+
<CCol lg="12" xs="12">
15+
<CCard lg="12" xs="12">
16+
<h1 class="ml-3">CoreUI</h1>
17+
</CCard>
18+
</CCol>
19+
{story()}
20+
</CRow>
21+
</CContainer>
22+
</>
23+
));

Diff for: .storybook/webpack.config.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const path = require('path');
2+
3+
module.exports = {
4+
module: {
5+
rules: [
6+
{
7+
test: /\.css?$/,
8+
loaders: [ 'style-loader', 'raw-loader' ],
9+
include: path.resolve(__dirname, '../')
10+
}
11+
]
12+
}
13+
}

0 commit comments

Comments
 (0)