-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
9 changed files
with
120 additions
and
86 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
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,23 @@ | ||
import React, { useState } from 'react'; | ||
|
||
import { storiesOf } from '@storybook/react'; | ||
import { action } from '@storybook/addon-actions'; | ||
|
||
import AddPipelineForm from 'components/dumb/AddPipelineForm.react'; | ||
import addPipelineTemplate from 'config/addPipeline.template.json'; | ||
|
||
function Container() { | ||
const [current, setCurrent] = useState(0); | ||
const [formData, setFormData] = useState(addPipelineTemplate); | ||
return ( | ||
<AddPipelineForm | ||
formData={formData} | ||
onSubmit={action('click')} | ||
onChange={setFormData} | ||
onStep={setCurrent} | ||
step={current} | ||
/> | ||
); | ||
} | ||
|
||
storiesOf('Basics|AddPipelineForm', module).add('Default', () => <Container />); |
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,11 +1,14 @@ | ||
const pluckDeep = key => obj => key.split('.').reduce((accum, key) => accum[key], obj) | ||
// Summer-Time Carbon Preset, lookup "summer-time-theme-vscode" | ||
const pluckDeep = key => obj => | ||
key.split('.').reduce((accum, key) => accum[key], obj); | ||
|
||
const compose = (...fns) => res => fns.reduce((accum, next) => next(accum), res) | ||
const compose = (...fns) => res => | ||
fns.reduce((accum, next) => next(accum), res); | ||
|
||
const unfold = (f, seed) => { | ||
const go = (f, seed, acc) => { | ||
const res = f(seed) | ||
return res ? go(f, res[1], acc.concat([res[0]])) : acc | ||
} | ||
return go(f, seed, []) | ||
} | ||
const res = f(seed); | ||
return res ? go(f, res[1], acc.concat([res[0]])) : acc; | ||
}; | ||
return go(f, seed, []); | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,62 +1,62 @@ | ||
{ | ||
"name": "summer-time", | ||
"displayName": "Summer Time Theme", | ||
"description": "🍧 A modern Dark Material theme for VS-Code IDE 🍦", | ||
"version": "1.0.9", | ||
"publisher": "DennisVash", | ||
"engines": { | ||
"vscode": "^1.15.0" | ||
}, | ||
"icon": "images/logo-clean.png", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/denvash/summer-time-theme-vscode" | ||
}, | ||
"galleryBanner": { | ||
"color": "#2B303B", | ||
"theme": "dark" | ||
}, | ||
"categories": [ | ||
"Themes" | ||
], | ||
"keywords": [ | ||
"Summer Time", | ||
"Dark Theme", | ||
"Material", | ||
"Minimalistic", | ||
"Theme", | ||
"VS-Code" | ||
], | ||
"contributes": { | ||
"themes": [ | ||
{ | ||
"label": "Summer Time", | ||
"uiTheme": "vs-dark", | ||
"path": "./themes/summer-time-vscode-theme.json" | ||
} | ||
] | ||
}, | ||
"devDependencies": { | ||
"auto-changelog": "^1.11.0", | ||
"nodemon": "^1.18.10", | ||
"release-it": "^7.6.3" | ||
}, | ||
"auto-changelog": { | ||
"output": "CHANGELOG.md", | ||
"commitLimit": false, | ||
"package": true, | ||
"replaceText": { | ||
"FIX: ": "", | ||
"NEW: ": "", | ||
"IMPROVE: ": "", | ||
"DOC: ": "" | ||
} | ||
}, | ||
"scripts": { | ||
"start": "nodemon --exec vsce package", | ||
"log": "auto-changelog && git add . && git ci -m ' 📖 DOC: Update the changelog' && git push", | ||
"release": "release-it && npx vsce publish", | ||
"release-major": "release-it major && npx vsce publish", | ||
"release-dry": "release-it --dry-run" | ||
"name": "summer-time", | ||
"displayName": "Summer Time Theme", | ||
"description": "🍧 A modern Dark Material theme for VS-Code IDE 🍦", | ||
"version": "1.0.10", | ||
"publisher": "DennisVash", | ||
"engines": { | ||
"vscode": "^1.15.0" | ||
}, | ||
"icon": "images/logo-clean.png", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/denvash/summer-time-theme-vscode" | ||
}, | ||
"galleryBanner": { | ||
"color": "#2B303B", | ||
"theme": "dark" | ||
}, | ||
"categories": [ | ||
"Themes" | ||
], | ||
"keywords": [ | ||
"Summer Time", | ||
"Dark Theme", | ||
"Material", | ||
"Minimalistic", | ||
"Theme", | ||
"VS-Code" | ||
], | ||
"contributes": { | ||
"themes": [ | ||
{ | ||
"label": "Summer Time", | ||
"uiTheme": "vs-dark", | ||
"path": "./themes/summer-time-vscode-theme.json" | ||
} | ||
] | ||
}, | ||
"devDependencies": { | ||
"auto-changelog": "^1.11.0", | ||
"nodemon": "^1.18.10", | ||
"release-it": "^7.6.3" | ||
}, | ||
"auto-changelog": { | ||
"output": "CHANGELOG.md", | ||
"commitLimit": false, | ||
"package": true, | ||
"replaceText": { | ||
"FIX: ": "", | ||
"NEW: ": "", | ||
"IMPROVE: ": "", | ||
"DOC: ": "" | ||
} | ||
}, | ||
"scripts": { | ||
"start": "nodemon --exec vsce package", | ||
"log": "auto-changelog && git add . && git ci -m ' 📖 DOC: Update the changelog' && git push", | ||
"release": "release-it && npx vsce publish", | ||
"release-major": "release-it major && npx vsce publish", | ||
"release-dry": "release-it --dry-run" | ||
} | ||
} |