Skip to content

Commit

Permalink
fix(all): 🐛 minor fixes and improvements
Browse files Browse the repository at this point in the history
Signed-off-by: Yunus Andréasson <yunus@edenmind.com>
  • Loading branch information
YunusAndreasson committed Aug 6, 2023
1 parent b2a99f7 commit a0555fb
Show file tree
Hide file tree
Showing 208 changed files with 21,369 additions and 978 deletions.
Binary file modified api/.yarn/install-state.gz
Binary file not shown.
Empty file added api/.yarn/versions/54e8690e.yml
Empty file.
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"homepage": "https://openarabic.io",
"repository": "https://github.com/edenmind/OpenArabic",
"version": "1444.12.231",
"version": "1444.12.232",
"authors": [
"Yunus Andreasson <yunus@edenmind.com> (https://github.com/YunusAndreasson)"
],
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified mobile/.yarn/install-state.gz
Binary file not shown.
Empty file.
12 changes: 4 additions & 8 deletions mobile/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"expo": {
"name": "Open Arabic",
"slug": "OpenArabic",
"version": "1444.12.316",
"version": "1444.12.332",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "automatic",
Expand All @@ -15,9 +15,7 @@
"fallbackToCacheTimeout": 0,
"url": "https://u.expo.dev/1c598c45-ad51-4592-9f75-f655407765b3"
},
"assetBundlePatterns": [
"**/*"
],
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": false,
"bundleIdentifier": "openarabic"
Expand All @@ -28,14 +26,12 @@
"backgroundColor": "#323200"
},
"package": "com.edenmind.OpenArabic",
"versionCode": 113
"versionCode": 114
},
"web": {
"favicon": "./assets/favicon.png"
},
"plugins": [
"@bugsnag/plugin-expo-eas-sourcemaps"
],
"plugins": ["@bugsnag/plugin-expo-eas-sourcemaps"],
"extra": {
"bugsnag": {
"apiKey": "77c30e82c802aed265d4d31617059924"
Expand Down
13 changes: 8 additions & 5 deletions mobile/components/context-highlighted.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const WordsContextHighLighted = (props) => {

const highlightWords = (sentence, words) => {
return sentence.map((word, index) => {
return word.id === words.id ? (
return word.id === words.id && !props.sentenceIsComplete ? (
<HighlightedWord word={word} key={index} />
) : (
<Text
Expand All @@ -60,9 +60,11 @@ const WordsContextHighLighted = (props) => {
<View style={rowWrapper}>{highlightWords(props.englishSentence, props.englishWord)}</View>
<Text style={{ ...sharedStyle.arabicBody, paddingBottom: 10 }}>
{props.arabicSentence}
<Animated.View style={{ opacity: fadeAnim }}>
<Text style={{ ...sharedStyle.arabicBody, color: theme.colors.tertiary }}>...</Text>
</Animated.View>
{!props.sentenceIsComplete && (
<Animated.View style={{ opacity: fadeAnim }}>
<Text style={{ ...sharedStyle.arabicBody, color: theme.colors.tertiary }}>...</Text>
</Animated.View>
)}
</Text>
</View>
)
Expand All @@ -71,7 +73,8 @@ const WordsContextHighLighted = (props) => {
WordsContextHighLighted.propTypes = {
englishSentence: PropTypes.array.isRequired,
arabicSentence: PropTypes.string.isRequired,
englishWord: PropTypes.any.isRequired
englishWord: PropTypes.any.isRequired,
sentenceIsComplete: PropTypes.bool
}

export default WordsContextHighLighted
2 changes: 0 additions & 2 deletions mobile/components/play-sound.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ export default function PlaySound({ audioFileNames, buttonText, mode = 'elevated

// function that loops over audioFileName that is an array and calls playSound with the should that should be played
const playAllSounds = async () => {
console.log(audioFileNames)

if (Array.isArray(audioFileNames)) {
for (const audioFileName of audioFileNames) {
await playSound(audioFileName)
Expand Down
Loading

0 comments on commit a0555fb

Please sign in to comment.