Skip to content

Commit

Permalink
JENKINS-39763 Move new header components to blueocean-core-js for use…
Browse files Browse the repository at this point in the history
… in web and dashboard (#705)

 * Move the header / logo components into blueocean-core-js, add storybook support
 * Make some adjustments to i18n so it doesn't block components from appearing in other modules' storybooks
 * Fix a couple of small issues in RunButton
 * Remove components from -dashboard that have been migrated to -core-js, and related stories
 * Add some excludes to storybook webpack config, which we haven't noticed because browserify is smart enough to know them already
 * Re-indent routes so they make sense
  • Loading branch information
sophistifunk authored Jan 16, 2017
1 parent c6fccc8 commit d77c99a
Show file tree
Hide file tree
Showing 21 changed files with 1,594 additions and 93 deletions.
7 changes: 7 additions & 0 deletions blueocean-core-js/.storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { configure } from '@kadira/storybook';

function loadStories() {
require('../src/js/components/stories/index');
}

configure(loadStories, module);
16 changes: 16 additions & 0 deletions blueocean-core-js/.storybook/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- Reset -->
<link href="/css/normalize.css" rel="stylesheet">

<!-- Icons -->
<link href="/css/latofonts.css" rel="stylesheet">
<link href="/octicons/octicons.css" rel="stylesheet">

<!-- Jenkins theme -->
<link href="/css/jenkins-design-language.css" rel="stylesheet">

<!-- Module CSS -->
<link href="/css/blueocean-core-js.css" rel="stylesheet">
16 changes: 16 additions & 0 deletions blueocean-core-js/.storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const path = require('path');

module.exports = {
module: {},
node: {
net: "empty",
dns: "empty",
tls: "empty"
},
resolve: {
extensions: [
'.js', // required by storybook
'', '.jsx' // for blueocean files
],
}
};
Loading

0 comments on commit d77c99a

Please sign in to comment.