Skip to content

Commit

Permalink
chore: init project
Browse files Browse the repository at this point in the history
  • Loading branch information
gcusnieux committed Oct 10, 2019
0 parents commit 7869fa5
Show file tree
Hide file tree
Showing 9 changed files with 11,654 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
49 changes: 49 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
/node_modules

# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db

.docs
storybook-static
10 changes: 10 additions & 0 deletions .storybook/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": "last 2 Chrome versions, last 2 Edge versions, last 2 Firefox versions, last 2 Safari versions"
}
]
]
}
4 changes: 4 additions & 0 deletions .storybook/addons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* eslint-disable import/no-extraneous-dependencies */
import '@storybook/addon-actions/register'
import '@storybook/addon-knobs/register'
import '@storybook/addon-notes/register'
27 changes: 27 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { addDecorator, configure, addParameters } from '@storybook/html';
import { create } from '@storybook/theming';
import { withKnobs } from '@storybook/addon-knobs';

const req = require.context('../stories', true, /.stories.tsx$/);

addDecorator(withKnobs);

const graviteeTheme = create({
base: 'light',
brandTitle: 'Gravitee components',
brandUrl: 'https://gravitee.io/',
brandImage: 'https://graviteesource.com/images/GS_transp.png'
});

addParameters({
options: {
enableShortcuts: true,
theme: graviteeTheme,
},
});

function loadStories () {
req.keys().forEach(filename => req(filename));
}

configure(loadStories, module);
20 changes: 20 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<style>
body {
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: 1rem;
}

.title {
border-bottom: 1px solid #ccc;
color: #333;
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
font-weight: bold;
margin-top: 2rem;
margin-right: -1rem;
margin-left: -1rem;
margin-bottom: 1rem;
padding-bottom: 0.25rem;
padding-left: 1rem;
}
</style>
Loading

0 comments on commit 7869fa5

Please sign in to comment.