-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: website in own workspace (#387)
* chore: move website into own workspace * chore: resolve linting problems * chore: website missing deps, peers * chore: ci, artifacts * docs: refs to start
- Loading branch information
Showing
29 changed files
with
4,835 additions
and
2,556 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,3 @@ | ||
import '@storybook/addon-options/register' | ||
import '@storybook/addon-knobs/register' | ||
import '@storybook/addon-actions/register' |
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,21 @@ | ||
import { configure, addDecorator } from '@storybook/react' | ||
import { withOptions } from '@storybook/addon-options' | ||
import { version } from '../../package.json' | ||
|
||
const req = require.context('./stories', true, /.js*/) | ||
|
||
function loadStories() { | ||
req.keys().forEach(filename => req(filename)) | ||
// eslint-disable-next-line global-require | ||
require('./styles/styles.scss') | ||
} | ||
|
||
addDecorator( | ||
withOptions({ | ||
name: `react-intl-tel-input v${version}`, | ||
url: 'https://github.com/patw0929/react-intl-tel-input', | ||
sidebarAnimations: true, | ||
}), | ||
) | ||
|
||
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,11 @@ | ||
// eslint-disable-next-line import/prefer-default-export | ||
export const lookup = callback => { | ||
const request = new XMLHttpRequest() | ||
|
||
request.addEventListener('load', () => { | ||
callback(JSON.parse(request.responseText).country_code) | ||
}) | ||
|
||
request.open('GET', 'https://api.ipdata.co/?api-key=test') | ||
request.send() | ||
} |
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,13 @@ | ||
import React from 'react' | ||
import { storiesOf } from '@storybook/react' | ||
import { withInfo } from '@storybook/addon-info' | ||
|
||
import IntlTelInput from '../../../../src/components/IntlTelInput' | ||
import '../../../../src/intlTelInput.scss' | ||
|
||
storiesOf('Documentation', module) | ||
.addParameters({ options: { showAddonPanel: false } }) | ||
.add( | ||
'Props', | ||
withInfo({ inline: true, source: false })(() => <IntlTelInput />), | ||
) |
Oops, something went wrong.