Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3 from danestves/feat/adding-docs
Browse files Browse the repository at this point in the history
feat: adding more stories to docs
  • Loading branch information
danestves authored Dec 25, 2020
2 parents 8b904fd + e336a98 commit ba7983b
Show file tree
Hide file tree
Showing 18 changed files with 121 additions and 32 deletions.
49 changes: 49 additions & 0 deletions .chglog/CHANGELOG.tpl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{{ if .Versions -}}
<a name="unreleased"></a>
## [Unreleased]

{{ if .Unreleased.CommitGroups -}}
{{ range .Unreleased.CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

{{ range .Versions }}
<a name="{{ .Tag.Name }}"></a>
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
{{ range .CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end }}
{{ end -}}

{{- if .RevertCommits -}}
### Reverts
{{ range .RevertCommits -}}
- {{ .Revert.Header }}
{{ end }}
{{ end -}}

{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}
{{ range .Notes }}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

{{- if .Versions }}
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
{{ range .Versions -}}
{{ if .Tag.Previous -}}
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
{{ end -}}
{{ end -}}
{{ end -}}
27 changes: 27 additions & 0 deletions .chglog/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://github.com/danestves/react-youtube-lite
options:
commits:
# filters:
# Type:
# - feat
# - fix
# - perf
# - refactor
commit_groups:
# title_maps:
# feat: Features
# fix: Bug Fixes
# perf: Performance Improvements
# refactor: Code Refactoring
header:
pattern: "^(\\w*)\\:\\s(.*)$"
pattern_maps:
- Type
- Subject
notes:
keywords:
- BREAKING CHANGE
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

A responsive react component to render YouTube videos in a lazyload mode to get a high speed load website.

You can see a [demo here](demo)
You can see a [demo here](https://danestves.github.io/react-youtube-lite)

## ⏳ Installation

Expand Down
2 changes: 1 addition & 1 deletion docs/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@



window['FRAMEWORK_OPTIONS'] = {};</script><script src="runtime~main.f1f7bccb3e8f3933841f.bundle.js"></script><script src="vendors~main.f1f7bccb3e8f3933841f.bundle.js"></script><script src="main.f1f7bccb3e8f3933841f.bundle.js"></script></body></html>
window['FRAMEWORK_OPTIONS'] = {};</script><script src="runtime~main.fa188c12686e594ebf76.bundle.js"></script><script src="vendors~main.fa188c12686e594ebf76.bundle.js"></script><script src="main.fa188c12686e594ebf76.bundle.js"></script></body></html>
2 changes: 0 additions & 2 deletions docs/main.f1f7bccb3e8f3933841f.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/main.f1f7bccb3e8f3933841f.bundle.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions docs/main.fa188c12686e594ebf76.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/main.fa188c12686e594ebf76.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/runtime~main.f1f7bccb3e8f3933841f.bundle.js.map

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/runtime~main.fa188c12686e594ebf76.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/vendors~main.f1f7bccb3e8f3933841f.bundle.js.map

This file was deleted.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/vendors~main.fa188c12686e594ebf76.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.2.0",
"version": "1.0.0",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
41 changes: 20 additions & 21 deletions src/styles/styles.css
Original file line number Diff line number Diff line change
@@ -1,31 +1,10 @@
/* Styles for Storybook */

.aspect-ratio-none {
padding-bottom: 0;
}

.aspect-ratio-square {
padding-bottom: 100%;
}

.aspect-ratio-16\/9 {
padding-bottom: 56.25%;
}

.aspect-ratio-4\/3 {
padding-bottom: 75%;
}

.aspect-ratio-21\/9 {
padding-bottom: 42.86%;
}

.embed-responsive {
position: relative !important;
display: block !important;
height: 0 !important;
padding: 0 !important;
padding-bottom: 56.25% !important;
overflow: hidden !important;
}

Expand All @@ -43,6 +22,26 @@
border: 0;
}

.aspect-ratio-none {
padding-bottom: 0 !important;
}

.aspect-ratio-square {
padding-bottom: 100% !important;
}

.aspect-ratio-16\/9 {
padding-bottom: 56.25% !important;
}

.aspect-ratio-4\/3 {
padding-bottom: 75% !important;
}

.aspect-ratio-21\/9 {
padding-bottom: 42.86% !important;
}

/* Components Styles */

.ryt-lite {
Expand Down
14 changes: 14 additions & 0 deletions stories/ReactYouTubeLite.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,17 @@ export const Default = Template.bind({});
Default.args = {
url: 'https://www.youtube.com/watch?v=DVQTGidS1yk',
};

export const NoCookie = Template.bind({});

NoCookie.args = {
url: 'https://www.youtube.com/watch?v=DVQTGidS1yk',
noCookie: true,
};

export const NoAd = Template.bind({});

NoAd.args = {
url: 'https://www.youtube.com/watch?v=DVQTGidS1yk',
adNetwork: false,
};

0 comments on commit ba7983b

Please sign in to comment.