This repository has been archived by the owner on Jun 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 361
Simplify audioplayer #360
Merged
Merged
Simplify audioplayer #360
Changes from 7 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
de47969
Audioplayer refactor
mmahalwy c347b9b
more reshuffling
mmahalwy d1a18bc
move logic outside of tracker
mmahalwy d2553eb
fixes #359
mmahalwy d79f3af
eslint
mmahalwy d2988a5
refactor and works
mmahalwy ca5b80d
Added segments
mmahalwy f8fc81f
Fix navigating from home to surah
mmahalwy d367d64
reciter change
mmahalwy 2e624ed
on word click working!
mmahalwy 0c5de90
segments encryption and lazy decryption
mmahalwy 2761143
encryption lib
mmahalwy cbe4b19
linter is happy
mmahalwy 3dce960
unit tests
mmahalwy aa04e13
env
mmahalwy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
NODE_ENV=development | ||
PORT=8000 | ||
API_URL=http://quran.com:3000 | ||
API_URL=http://localhost:3000 | ||
SEGMENTS_KEY= | ||
SENTRY_KEY_CLIENT= | ||
SENTRY_KEY_SERVER= |
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'; | ||
|
||
export default () => ( | ||
<div className="sequence"> | ||
<div className="seq-preloader"> | ||
<svg height="16" width="42" className="seq-preload-indicator" xmlns="http://www.w3.org/2000/svg"> | ||
<circle className="seq-preload-circle seq-preload-circle-1" cx="6" cy="8" r="5" /> | ||
<circle className="seq-preload-circle seq-preload-circle-2" cx="20" cy="8" r="5" /> | ||
<circle className="seq-preload-circle seq-preload-circle-3" cx="34" cy="8" r="5" /> | ||
</svg> | ||
</div> | ||
</div> | ||
); |
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,39 @@ | ||
import React, { PropTypes } from 'react'; | ||
import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger'; | ||
import Tooltip from 'react-bootstrap/lib/Tooltip'; | ||
|
||
const style = require('../style.scss'); | ||
|
||
const RepeatButton = ({ shouldRepeat, onRepeatToggle }) => { | ||
const tooltip = ( | ||
<Tooltip id="repeat-button-tooltip"> | ||
Repeats the current ayah on end... | ||
</Tooltip> | ||
); | ||
|
||
return ( | ||
<div className="text-center"> | ||
<input type="checkbox" id="repeat" className={style.checkbox} /> | ||
<OverlayTrigger | ||
overlay={tooltip} | ||
placement="right" | ||
trigger={['hover', 'focus']} | ||
> | ||
<label | ||
htmlFor="repeat" | ||
className={`pointer ${style.buttons} ${shouldRepeat ? style.repeat : ''}`} | ||
onClick={onRepeatToggle} | ||
> | ||
<i className="ss-icon ss-repeat" /> | ||
</label> | ||
</OverlayTrigger> | ||
</div> | ||
); | ||
}; | ||
|
||
RepeatButton.propTypes = { | ||
shouldRepeat: PropTypes.bool.isRequired, | ||
onRepeatToggle: PropTypes.func.isRequired | ||
}; | ||
|
||
export default RepeatButton; |
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,39 @@ | ||
import React, { PropTypes } from 'react'; | ||
import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger'; | ||
import Tooltip from 'react-bootstrap/lib/Tooltip'; | ||
|
||
const style = require('../style.scss'); | ||
|
||
const ScrollButton = ({ shouldScroll, onScrollToggle }) => { | ||
const tooltip = ( | ||
<Tooltip id="scroll-button-tooltip"> | ||
Automatically scrolls to the currently playing ayah on transitions... | ||
</Tooltip> | ||
); | ||
|
||
return ( | ||
<div className="text-center"> | ||
<input type="checkbox" id="scroll" className={style.checkbox} /> | ||
<OverlayTrigger | ||
overlay={tooltip} | ||
placement="right" | ||
trigger={['hover', 'focus']} | ||
> | ||
<label | ||
htmlFor="scroll" | ||
className={`pointer ${style.buttons} ${shouldScroll ? style.scroll : ''}`} | ||
onClick={onScrollToggle} | ||
> | ||
<i className="ss-icon ss-link" /> | ||
</label> | ||
</OverlayTrigger> | ||
</div> | ||
); | ||
}; | ||
|
||
ScrollButton.propTypes = { | ||
shouldScroll: PropTypes.bool.isRequired, | ||
onScrollToggle: PropTypes.func.isRequired | ||
}; | ||
|
||
export default ScrollButton; |
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ill change it back!