-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JENKINS-39763 Move new header components to blueocean-core-js for use…
… 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
1 parent
c6fccc8
commit d77c99a
Showing
21 changed files
with
1,594 additions
and
93 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { configure } from '@kadira/storybook'; | ||
|
||
function loadStories() { | ||
require('../src/js/components/stories/index'); | ||
} | ||
|
||
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,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"> |
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,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 | ||
], | ||
} | ||
}; |
Oops, something went wrong.