- .
+
+ .
- © 2016 Quran.com. .
+ © 2016 Quran.com.
+ {' '}
+
+ .
diff --git a/src/locale/tr.js b/src/locale/tr.js
index a409e0ef3..4890663a9 100644
--- a/src/locale/tr.js
+++ b/src/locale/tr.js
@@ -8,7 +8,7 @@ export default {
'local.selectLabel': 'Dil',
'setting.title': 'Ayarlar',
'setting.surahs': 'Sureler',
- 'setting.verses': 'Ayet\'e git',
+ 'setting.verses': "Ayet'e git",
'setting.reciters.title': 'Hafızlar',
'setting.translations.title': 'Çeviriler',
'setting.translations.removeAll': 'Tümünü kaldır',
@@ -72,12 +72,12 @@ export default {
'nav.otherLinks': 'Diğer bağlantılar',
'nav.contactUs': 'Bize ulaşın',
'nav.help': 'Yardım & Geri Bildirim',
- 'nav.aboutQuranProject': 'Quran.com (Kur\'an-ı Kerim) bir pro bono projesidir.', // eslint-disable-line max-len
+ 'nav.aboutQuranProject': "Quran.com (Kur'an-ı Kerim) bir pro bono projesidir.", // eslint-disable-line max-len
'nav.rightsReserved': 'Tüm Hakları Saklıdır',
'nav.mobile': 'Mobil Uygulamalar',
'nav.navigate': 'Bağlantılar', // there is no exact translation for Navigate in Turkish
'nav.legacySite': 'Eski Siteye Git Quran.com',
- 'login.message': 'Tüm yer işaretlerinizi, notlarınızı ve etkinliklerinizi saklamak için Quran.com\'a giriş yapın.'
+ 'login.message': "Tüm yer işaretlerinizi, notlarınızı ve etkinliklerinizi saklamak için Quran.com'a giriş yapın."
}
};
diff --git a/src/redux/actions/audioplayer.js b/src/redux/actions/audioplayer.js
index 87ad25490..053797570 100644
--- a/src/redux/actions/audioplayer.js
+++ b/src/redux/actions/audioplayer.js
@@ -13,7 +13,8 @@ import {
LOAD,
LOAD_SUCCESS,
LOAD_FAIL,
- UPDATE } from 'redux/constants/audioplayer.js';
+ UPDATE
+} from 'redux/constants/audioplayer.js';
export function setCurrentFile(file) {
return {
@@ -96,14 +97,19 @@ export function update(payload) {
};
}
-export function load({ chapterId, verseId, verseKey, audio }) { // eslint-disable-line
+export function load({ chapterId, verseId, verseKey, audio }) {
+ // eslint-disable-line
return {
types: [LOAD, LOAD_SUCCESS, LOAD_FAIL],
- promise: client => client.get(`/api/v3/chapters/${chapterId}/verses/${verseId}/audio_files`, {
- params: {
- recitation: audio || 7 // NOTE: default, but should never be used
- }
- }),
+ promise: client =>
+ client.get(
+ `/api/v3/chapters/${chapterId}/verses/${verseId}/audio_files`,
+ {
+ params: {
+ recitation: audio || 7 // NOTE: default, but should never be used
+ }
+ }
+ ),
verseKey,
chapterId
};
diff --git a/src/redux/modules/lines.js b/src/redux/modules/lines.js
index ef648e4d0..b6deff14c 100644
--- a/src/redux/modules/lines.js
+++ b/src/redux/modules/lines.js
@@ -2,8 +2,8 @@
import {
LOAD as AYAHS_LOAD,
LOAD_SUCCESS as AYAHS_LOAD_SUCCESS,
- LOAD_FAIL as AYAHS_LOAD_FAIL,
- } from 'redux/constants/verses.js';
+ LOAD_FAIL as AYAHS_LOAD_FAIL
+} from 'redux/constants/verses.js';
import { SET_CURRENT as SURAHS_SET_CURRENT } from 'redux/constants/chapters.js';
@@ -34,7 +34,9 @@ export default function reducer(state = initialState, action = {}) {
ayah.words.forEach((word) => {
if (lines[`${word.pageNumber}-${word.lineNumber}`]) {
- const isInArray = lines[`${word.pageNumber}-${word.lineNumber}`].find((item) => {
+ const isInArray = lines[
+ `${word.pageNumber}-${word.lineNumber}`
+ ].find((item) => {
const itemChecksum = `${item.lineNumber}${item.code}${item.verseKey}${item.position}`;
const dataChecksum = `${word.lineNumber}${word.code}${word.verseKey}${item.position}`;
diff --git a/src/redux/modules/options.js b/src/redux/modules/options.js
index e9ee5ce0f..3eadf43cc 100644
--- a/src/redux/modules/options.js
+++ b/src/redux/modules/options.js
@@ -5,7 +5,7 @@ import {
SET_USER_AGENT,
LOAD_TRANSLATIONS,
LOAD_TRANSLATIONS_SUCCESS
- } from 'redux/constants/options.js';
+} from 'redux/constants/options.js';
const initialState = {
isReadingMode: false,
@@ -14,7 +14,7 @@ const initialState = {
loadingRecitations: false,
loadingTranslations: false,
audio: 7, // Mishari Rashid al-`Afasy
- translations: [20], // Sahih International
+ translations: [20], // Sahih International
tooltip: 'translation',
userAgent: null,
footNote: null,
diff --git a/src/routes.js b/src/routes.js
index 417b02f57..01624117b 100644
--- a/src/routes.js
+++ b/src/routes.js
@@ -10,7 +10,7 @@ import {
hasAccessToken
} from 'redux/actions/auth';
-import checkValidSurah from './utils/checkValidSurah';
+import checkValidSurah from './utils/routeFilters';
import App from './containers/App';
import Home from './containers/Home';
@@ -136,9 +136,20 @@ export default (store) => {
import('./containers/ChapterInfo')
.then(module => cb(null, module.default))
.catch(err => console.trace(err))}
+ onEnter={checkValidSurah}
/>