Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
Quick deploy changes (#755)
Browse files Browse the repository at this point in the history
* Center reading mode

* Fixes #742 loading component

* Fixes #704 contact us to zendesk

* Fix sitemap

* Fix overflow and default reciter
  • Loading branch information
mmahalwy authored Apr 20, 2017
1 parent 538606d commit e83e447
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/ComponentLoader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { PropTypes } from 'react';

const ComponentLoader = ({ isLoading, error, pastDelay }) => {
if (isLoading) {
return pastDelay ? <div>Loading...</div> : null;
return pastDelay ? <noscript /> : null;
} else if (error) {
return <div>Error! Component failed to load</div>;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ const Footer = () => (
</Link>
</li>
<li>
<Link to="/contact">
<a href="https://quran.zendesk.com/hc/en-us/requests/new">
<LocaleFormattedMessage
id="nav.contactUs"
defaultMessage="Contact Us"
/>
</Link>
</a>
</li>
<li>
<a
Expand Down
4 changes: 2 additions & 2 deletions src/components/Verse/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@
float: left;

b, span{
float: right;
border-color: transparent;
border-width: 0px 0px 1px 0px;
border-style: solid;
float: right;
&.active {
color: $brand-primary-darker-5;
border-color: $brand-primary-darker-15;
Expand All @@ -87,7 +87,7 @@

.line{
direction: rtl;
b{
b, span{
float: none;
display: inline-block;
}
Expand Down
2 changes: 1 addition & 1 deletion src/redux/actions/audioplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function load({ chapterId, verseId, verseKey, audio }) { // eslint-disabl
types: [LOAD, LOAD_SUCCESS, LOAD_FAIL],
promise: client => client.get(`/api/v3/chapters/${chapterId}/verses/${verseId}/audio_files`, {
params: {
recitation: audio || 8 // NOTE: default, but should never be used
recitation: audio || 7 // NOTE: default, but should never be used
}
}),
verseKey,
Expand Down
4 changes: 2 additions & 2 deletions src/redux/modules/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const initialState = {
isShowingSurahInfo: false,
loadingRecitations: false,
loadingTranslations: false,
audio: 8,
translations: [20],
audio: 7, // Mishari Rashid al-`Afasy
translations: [20], // Sahih International
tooltip: 'translation',
userAgent: null,
footNote: null,
Expand Down
9 changes: 4 additions & 5 deletions src/server/config/sitemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ export default (server) => {

client.get('/api/v3/chapters').then((response) => {
response.chapters.forEach((chapter) => {
Array(chapter.versesCount).fill().forEach((_, index) => {
const ayahId = index + 1;
Array(chapter.verses_count).fill().forEach((_, index) => {
const verseId = index + 1;

urls.push({
url: `/${chapter.id}/${ayahId}`,
url: `/${chapter.id}/${verseId}`,
changefreq: 'weekly',
priority: 1
});

urls.push({
url: `/${chapter.id}/${ayahId}-${ayahId + 9}`,
url: `/${chapter.id}/${verseId}-${verseId + 9}`,
changefreq: 'weekly',
priority: 1
});
Expand Down Expand Up @@ -62,7 +62,6 @@ export default (server) => {
});
});


const xml = sitemap.createSitemap({
hostname: 'https://quran.com',
cacheTime: 600000, // 600 sec cache period
Expand Down

0 comments on commit e83e447

Please sign in to comment.