Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
37b95e6
Delete main.c60ada44.js
JestersKing Jun 15, 2022
7967cb0
Delete main.c60ada44.js.LICENSE.txt
JestersKing Jun 15, 2022
9133fec
Delete main.c60ada44.js.map
JestersKing Jun 15, 2022
5d444ef
Delete armenia.00142f79f390bcd4698d.mp3
JestersKing Jun 15, 2022
5b65644
Delete off.8a2c2606237f1fe506cdbf3bef1918c0.svg
JestersKing Jun 15, 2022
ada52f7
Delete on.ba5f263f4550f25eab1316a10c9fc5c3.svg
JestersKing Jun 15, 2022
dec7bac
Delete speed.fda3206eac26de406b1aa3cc3c757711.svg
JestersKing Jun 15, 2022
ed3d150
Delete volume.9941df86dd3881e6bc38b5752894331a.svg
JestersKing Jun 15, 2022
14fb75c
Delete asset-manifest.json
JestersKing Jun 15, 2022
9a93200
Delete favicon.ico
JestersKing Jun 15, 2022
0b11576
Delete index.html
JestersKing Jun 15, 2022
a7f03b3
Delete logo192.png
JestersKing Jun 15, 2022
bcd3d28
Delete logo512.png
JestersKing Jun 15, 2022
84ba513
Delete manifest.json
JestersKing Jun 15, 2022
c3595d4
Delete robots.txt
JestersKing Jun 15, 2022
e886da5
Add files via upload
JestersKing Jun 15, 2022
adde1fe
Add files via upload
JestersKing Jun 15, 2022
e398281
🙈 Add node_modules path to ignore
ningaro Jun 15, 2022
33ded0f
🚚 Migrate from npm to yarn
ningaro Jun 15, 2022
d5a4d57
🩹 Remove ChakraProvider from every component
ningaro Jun 15, 2022
0b83e37
change
JestersKing Jun 15, 2022
35d7af6
Merge branch 'source' into source
ningaro Jun 15, 2022
a70f163
🔁 Ningaro code quality
ningaro Jun 15, 2022
9a7a1b8
✨ Change volume logic
JestersKing Jun 15, 2022
aefb1f3
🥪Add volume control
JestersKing Jun 15, 2022
9765832
♻️ Remove unused components
ningaro Jun 15, 2022
00afb3a
Update README.md
JestersKing Jun 16, 2022
b8feb5c
Update README.md
JestersKing Jun 16, 2022
d16efef
Create LICENCE.md
JestersKing Jun 16, 2022
18caa49
Merge pull request #3 from GreenDevald1523/add-license-1
JestersKing Jun 16, 2022
56bd2c4
Update package.json
JestersKing Jun 16, 2022
b051bf0
Update README.md
JestersKing Jun 16, 2022
55473ba
Add files via upload
JestersKing Jun 22, 2022
07b0b3f
Delete yarn.lock
JestersKing Jun 22, 2022
bb77ea0
Add files via upload
JestersKing Jun 22, 2022
ddef03a
➖ Remove default cra testing libs
ningaro Jun 22, 2022
db180e3
➖ Remove web-vitals
ningaro Jun 22, 2022
f193a49
🔧 Update npm config file
ningaro Jun 22, 2022
dbe654f
🔖 v0.2.1
ningaro Jun 22, 2022
14f65c0
Update README.md
JestersKing Jun 22, 2022
9af931c
⚰️ Remove unused files
ningaro Jun 22, 2022
660ceb4
⚰️ Remove onVolumeChange handler
ningaro Jun 22, 2022
53a0469
➕ Add prettier
ningaro Jun 22, 2022
b9dfb2b
🎨 Prettier auto format
ningaro Jun 22, 2022
5e99148
➕ Add airbnb-eslint-rules
ningaro Jun 22, 2022
ae75a62
➕ Add prop-types
ningaro Jun 22, 2022
ccb168e
🎨 Format with airbnb rules
ningaro Jun 22, 2022
9c373b2
🐛 Fix secondsToHms function with airbnb rules
ningaro Jun 22, 2022
84a8253
🩹 Fix proptypes
ningaro Jun 22, 2022
1bccdea
✨ Add color prop
ningaro Jun 22, 2022
2dbace7
🐛 Return song prop
ningaro Jun 22, 2022
0b4c56f
🔥 Remove dist folder
ningaro Jun 22, 2022
8202cbe
🙈 Add dist folder to gitignore
ningaro Jun 22, 2022
c883139
🔖 v0.3.7
ningaro Jun 22, 2022
51e1c3e
📝 Add color prop
ningaro Jun 22, 2022
7c376af
📝 Update links to repo
ningaro Jun 22, 2022
0c5875f
🚚 Change files folders
ningaro Jun 23, 2022
c3729a4
🚚 Move example audio out of lib
ningaro Jun 23, 2022
7b74e5c
🙈 Add README to prettier ignore
ningaro Jun 23, 2022
72f301c
🔧 Update package entry point
ningaro Jun 23, 2022
92e9ef6
🔖 v0.4.0
ningaro Jun 23, 2022
0f3d937
🔖 v0.4.2
ningaro Jun 24, 2022
a4bca3e
🔖 v0.4.3
ningaro Jun 24, 2022
4600ffe
🩹 Song is not required prop now
ningaro Jun 24, 2022
b240175
🔖 v0.4.4
ningaro Jun 24, 2022
75aba8d
🔖 v0.4.5
ningaro Jun 24, 2022
d6762f7
🚨 Disable default prop warning for song prop
ningaro Jun 24, 2022
579378a
💄 Set player elements align center
ningaro Jun 24, 2022
e0dc472
🔖 v0.4.6
ningaro Jun 24, 2022
5956979
🔧 Downgrade react versions
ningaro Jun 24, 2022
d60aefa
🔖 v0.4.7
ningaro Jun 24, 2022
d93086f
⬆️ Upgrade react and react-dom to 18 version
ningaro Jun 24, 2022
2424213
🔖 v0.4.8
ningaro Jun 24, 2022
fef920e
:pushpin: Downgrade react, react-dom and @chakra-ui/react versions
JestersKing Jun 26, 2022
b9153a9
:wrench: Add TypeScipt
JestersKing Jun 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore artifacts:
dist
README.md
21 changes: 21 additions & 0 deletions LICENCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 GreenDevald1523

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# chakra-player `v0.4.11`

React player, made with [`Chakra UI`](https://chakra-ui.com/), can play the audio that you push in it.

### Usage

```shell
npm install chakra-player
```

or

```shell
yarn add chakra-player
```

```jsx
import React from 'react'
import Audio from 'chakra-player'

// Add {.mp3 / .mp4} file format
<Audio song="****.mp3" />
```

Instead of using a common `url` of a `.mp3`, you also can download this file to your project folder and refer to it:

```jsx
import React from 'react'
import Audio from 'chakra-player'
import song form './audio.mp3'

// Add {.mp3 / .mp4} file format
<Audio song={song} color='blue.600' background='white.600'/>
```

### Props

| Prop | Description | Default |
| ------- | ------------------------------------------------------------------------------------ | ---------- |
| `song` | The url or file of an audio that has to be in `.mp3/.mp4` format | |
| `color` | String with [Chakra UI color](https://chakra-ui.com/docs/styled-system/theme#colors) | `blue.600` |
| `background` | String with [Chakra UI color](https://chakra-ui.com/docs/styled-system/theme#colors) | `white.600` |

15 changes: 0 additions & 15 deletions asset-manifest.json

This file was deleted.

3 changes: 3 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": [["@babel/preset-react", { "runtime": "automatic" }]]
}
1 change: 0 additions & 1 deletion index.html

This file was deleted.

Loading