Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 11 additions & 11 deletions .vim/coc-settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"tsserver.enable": false,
"deno.enable": true,
"deno.lint": true,
"coc.source.file.trimSameExts": [],
"prettier.disableLanguage": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
]
}
"tsserver.enable": false,
"deno.enable": true,
"deno.lint": true,
"coc.source.file.trimSameExts": [],
"prettier.disableLanguage": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
]
}
2 changes: 1 addition & 1 deletion .watchmanconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{}
38 changes: 19 additions & 19 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,28 @@ If you see someone who is making an extra effort to ensure our community is welc

The following behaviors are expected and requested of all community members:

* Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community.
* Exercise consideration and respect in your speech and actions.
* Attempt collaboration before conflict.
* Refrain from demeaning, discriminatory, or harassing behavior and speech.
* Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential.
* Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations.
- Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community.
- Exercise consideration and respect in your speech and actions.
- Attempt collaboration before conflict.
- Refrain from demeaning, discriminatory, or harassing behavior and speech.
- Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential.
- Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations.

## 4. Unacceptable Behavior

The following behaviors are considered harassment and are unacceptable within our community:

* Violence, threats of violence or violent language directed against another person.
* Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language.
* Posting or displaying sexually explicit or violent material.
* Posting or threatening to post other people's personally identifying information ("doxing").
* Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability.
* Inappropriate photography or recording.
* Inappropriate physical contact. You should have someone's consent before touching them.
* Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances.
* Deliberate intimidation, stalking or following (online or in person).
* Advocating for, or encouraging, any of the above behavior.
* Sustained disruption of community events, including talks and presentations.
- Violence, threats of violence or violent language directed against another person.
- Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language.
- Posting or displaying sexually explicit or violent material.
- Posting or threatening to post other people's personally identifying information ("doxing").
- Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability.
- Inappropriate photography or recording.
- Inappropriate physical contact. You should have someone's consent before touching them.
- Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances.
- Deliberate intimidation, stalking or following (online or in person).
- Advocating for, or encouraging, any of the above behavior.
- Sustained disruption of community events, including talks and presentations.

## 5. Weapons Policy

Expand All @@ -59,13 +59,13 @@ If a community member engages in unacceptable behavior, the community organizers

If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community organizer as soon as possible. https://sobhanbera.vercel.app (This will be changed - contact Info).

[Reporting guidelines](https://sobhanbera.vercel.app (This will be changed - Link to reporting guidelines))
[Reporting guidelines](https://sobhanbera.vercel.app 'This will be changed - Link to reporting guidelines')

Additionally, community organizers are available to help community members engage with local law enforcement or to otherwise help those experiencing unacceptable behavior feel safe. In the context of in-person events, organizers will also provide escorts as desired by the person experiencing distress.

## 8. Addressing Grievances

If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify Sobyte with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies. [Policy](https://sobhanbera.vercel.app (This will be changed - Link to policy))
If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify Sobyte with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies. [Policy](https://sobhanbera.vercel.app 'This will be changed - Link to policy')

https://sobhanbera.vercel.app (This will be changed - Note)

Expand Down
12 changes: 6 additions & 6 deletions __tests__/App-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
* @format
*/

import 'react-native';
import React from 'react';
import App from '../App';
import 'react-native'
import React from 'react'
import App from '../App'

// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
import renderer from 'react-test-renderer'

it('renders correctly', () => {
renderer.create(<App />);
});
renderer.create(<App />)
})
6 changes: 3 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "Sobyte",
"displayName": "Sobyte"
}
"name": "Sobyte",
"displayName": "Sobyte"
}
7 changes: 5 additions & 2 deletions app/api/Music.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export function getBaseURL(musicID: string) {
return `https://www.youtube.com/watch?v=${musicID.trim()}`
}

const BASE_URL = 'https://www.youtube.com/'
const BASE_PARAMETER = 'watch?v='

/**
* @param musicID the music ID
* @param options other specific details that need to be checked before providing the actual final data
Expand All @@ -52,7 +55,7 @@ export async function getTrackURL(
const finalOptions: MusicDataFetchOptions = {
hasAudio: true,
hasVideo: false,
audioQuality: 'extreme',
audioQuality: 'auto',
...options,
}

Expand All @@ -63,7 +66,7 @@ export async function getTrackURL(
* and default settings...
*/
const trackResultData: MusicFormats = await getMusicDetails(
getBaseURL(musicID),
`${BASE_URL}${BASE_PARAMETER}${musicID}`,
)
// extracting the formats from whole data...
const {formats} = trackResultData
Expand Down
7 changes: 5 additions & 2 deletions app/components/KeywordResultsRenderer/Artists.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ const SongsKeywordResultsRenderer = ({
// search results for the keyword provided in the props
// promising all because we need many type of artists data like romance, hits, mashups, pops, etc... in one variable.
Promise.all(
keywords.map(keyword => search(keyword, 'ARTIST', false, true)), // providing an array of the promises
[search(keywords[0], 'ARTIST', false, true)],
// keywords.map(keyword => search(keyword, 'ARTIST', false, true)), // providing an array of the promises
)
.then((res: FetchedArtistObject[]) => {
console.log(res)
// this is the list which would be assigned to the main UI component or the state of this component
const DiffTypesOfArtistsList: ArtistObject[] = []
for (let i in res) {
Expand All @@ -65,7 +67,8 @@ const SongsKeywordResultsRenderer = ({
}
}
}
setArtistsData(DiffTypesOfArtistsList)

console.log(DiffTypesOfArtistsList, keywords[0])
})
.catch(_err => {})
}
Expand Down
14 changes: 7 additions & 7 deletions app/components/MusicPlayer/TrackButtonControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ type LocalPlayState = 'playing' | 'paused' | 'buffering' | 'ready'
interface Props {
color: string
isLiked: boolean
likeIsMusic: Function
onLike: Function
launchLyrics: Function
}
const TrackButtonControls = (props: Props) => {
// by default its value is paused since we don't need the user is pausing even if the song haven't started
const [localPlayingState, setLocalPlayingState] =
useState<LocalPlayState>('paused')

useEffect(async () => {
console.log(
await TrackPlayer.getCurrentTrack().then(res => console.log(res)),
)
}, [])
// useEffect(async () => {
// console.log(
// await TrackPlayer.getCurrentTrack().then(res => console.log(res)),
// )
// }, [])

useEffect(() => {
// triggered when the song/track is played from notification/lock-screen/other parts of the android
Expand Down Expand Up @@ -80,7 +80,7 @@ const TrackButtonControls = (props: Props) => {
<View style={styles.wrapper}>
<View style={styles.innerWrapper}>
<Scaler
onPress={() => props.likeIsMusic()} // TODO like feature
onPress={() => props.onLike()} // TODO like feature
touchableOpacity={1}
scale={0.85}>
<FontAwesome
Expand Down
10 changes: 5 additions & 5 deletions app/components/MusicPlayerSongView/BackgroundBluredImage.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import React from 'react'
const {width, height} = Dimensions.get('screen')
import {StyleSheet, Animated, Dimensions} from 'react-native'

import {APP_LOGO_LINK, MUSIC_PLAYER_BLUR} from '../../constants'

const {width, height} = Dimensions.get('screen')
import {ThumbnailObject} from '../../interfaces'

interface Props {
image: string
thumbnails: Array<ThumbnailObject>
scrollX: Animated.Value
index: number
}
const BackgroundBluredImage = (props: Props) => {
const {image, scrollX, index} = props
const {thumbnails, scrollX, index} = props
const inputRange = [
(index - 1) * height,
index * height,
Expand All @@ -31,7 +31,7 @@ const BackgroundBluredImage = (props: Props) => {
},
]}
source={{
uri: image || APP_LOGO_LINK,
uri: thumbnails[1].url || APP_LOGO_LINK,
// cache: 'force-cache',
}}
blurRadius={MUSIC_PLAYER_BLUR}
Expand Down
Loading