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

Commit b065df9

Browse files
authored
Release v3 (#740)
* Webpack 2 (#597) * working for dev * production working * push for now * missing package * fix * Fixes staging and Fixes #593 (#612) * Fixes staging and Fixes #593 * fix dev tools * better urdu translation * Update server.prod.js (#616) * Share on every ayah + ayah level url (#618) * Added Indonesian Translation (#613) * Added Indonesian Translation * Edit config.js * Update id.js Adding and editing indonesian translation. * fixed local change link (#622) * fixed local change link * :/ * fixed lint err * another lint! * Error page space bug fixed (#628) * Copy-edit english locale Replaces some awkward wording with some less awkward wording. * Feature/back to home + css fix (#636) * Added back to home link in sidebar * Fixed CSS loading issue for the back to home link * Rename Bayyinah string * Fixes for repeat range bugs (#644) * Fix 'from' onChange * Fix available 'to' options * Fix available 'from' options * Added top margin to the index header logo (#643) * Fix/smart banner appid switch and close/open (#646) * tr.js - Turkish language locale file added (#660) * some translation improved (#662) * V3 API (#633) * changes * work homepage * fix surah * Fix linting * chapter for repeat dropdown * Fixed typo in urdu locale (#649) * Fixes #657 Recitations dropdown from API call (#664) * added turkish locale name in config (#661) added turkish locale name in config line:22 * Fixes #659 Double Click for Word Audio (#665) * Fixes #659 Double Click for Word Audio * replaced the clicks on word * fixed local keys (#668) * fixed rendering of pause, sajdah and rub( pause word) (#666) * fixed rendering of pause, sajdah and rub( pause word) * fixed lint errors * added surah name and bismillah icons (#667) * added surah name and bismillah icons * fixed lint * Surah page (#670) * fixed responsive issues for surah translated name * fixed verse badge * fixed media * last word in ayah ( ayah number ) don't have audio * fixed translations * .env should be in gitignore list! * fixed lint rules * make slack more prominent (#680) * make slack more prominent * Update README.md * Enhancement added - Now copy Ayah feature includes Surah and Ayah number (#647) * Enhancement added - Now copy Ayah feature includes Surah and Ayah number * Rebased :) * Stagin API Added * Fixes #656 Translation dropdown (#671) * translation type * add content type * Fix autoscroll jankiness (#683) * Switch verse PK back to verseKey - fixes continous playback, etc * Fix lagging autoscroll, bad scroll alignment * Forgot one `offset` term. * Text based fonts (#672) * added word rendering comparision * regenerated surah name icon fonts using private unicode area * render text fonts for supported browsers only * moved user agent to options tree * fixed lint breaks * fixed floating of ayah number word * added empty space after 'word' word :) * French localization (#684) * French localization Add French localization, courtesy of brother Nadim Sohail, may Allah reward him greatly! * (WIP) Integration work with quran-components (#679) * add the surahTitle and jumbotron components * add vscode to gitignore * remove vscode * use lib folder of the surahTitle component * fix title in position * use quran-components Loader * use loader * remove functional tests (#691) * save night mode in option cookie #676 (#692) * save night mode in option cookie #676 * moved add night-mode class to componentDidMount * fixed color of bismaalah for night mode * Fixes #681 API calls for reciter (#694) * Fixes #693 rerendering (#695) * Fixes #693 Rerendering on the client * ESlint * Fixes #686 Translations author name (#697) * Reduce nbsp spacing (#696) * added language in every api call (#699) * added language in every api call * fixed lint errors * React loadable (#701) * React Loadable for components * Eslint happy * Add Google Optimize (#706) * Fix pause toggle (#707) * Foot note (#710) * added foot note popup * lint happy * Fix non existant ayat (#708) * fix page when ayat not found * refactor previous commit * add translation for ‘chapter.index.ayatNotFound’ * fix typo * refactor verses checker * change key in translation * update ar translation * search improvement (#712) * search improvement * lint breaks * use text fonts for render page mode (#715) * Fix search no results and error (#720) * Separating audio files from verses api (#721) * Separating audio files from verses api * change reciter * remove dependency on audio from verses route * Settings on right drawer (#719) * Settings on right drawer * Settings looking good * Fixed cutting text and pr comments * Surah info SEO (#722) * Surah info SEO * Add full surah button * info server render * Sitemap * convert to id * Custom prop types (#726) * customPorpTypes.js file added that would hold all propType validations * custom props added to all components * Type folder removed * wrong imports were fixed * Fix staging (#731) * Fix search * Fixes #727 highlight word by word * Fixes #728 * ontop of master * Fixes #654 Verses dropdown (#724) * Fixes #654 Verses dropdown * default color for dropdown * fixed suggestion (#736) * fixed suggestion * fixed verse text for suggestion * don't load audio on search * disabled text based fonts (#739) * disabled text based fonts * disabled bot as well
1 parent a563999 commit b065df9

File tree

1,510 files changed

+6526
-19789
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,510 files changed

+6526
-19789
lines changed

.babelrc

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"presets": ["react", "es2015", "stage-0"],
33
"plugins": [
44
"transform-runtime",
5-
"add-module-exports",
65
"transform-decorators-legacy",
76
"transform-react-display-name",
87
["system-import-transformer", {"modules": "common"}]

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ webpack-stats.json
1111
webpack-assets.json
1212
bundle-stats.json
1313
selenium-debug.log
14-
tests/functional/output/*
15-
test/functional/screenshots/*
1614
.ssh
1715
webpack-stats.debug.json
1816
*.DS_Store
17+
.vscode

CONTRIBUTING.md

-4
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ Pull requests are the greatest contributions, so be sure they are focused in sco
5555
```
5656
Our `npm run test` tests and _watch_. Otherwise use `npm run test:ci:unit` for CI level tests.
5757

58-
We also have nightwatch function tests. You can install nightwatch globally and can run tests like this:
59-
```
60-
nightwatch --test tests/functional/specs/Index_spec.js
61-
```
6258

6359
5. To create a PR you need to push your branch to the origin(forked) remote and then press some buttons on GitHub:
6460

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Quran.com
1+
# Quran.com [![SLACK](http://i.imgur.com/Lk5HsBo.png)](https://quranslack.herokuapp.com)
22

33
This project is the frontend for Quran.com. It is built using
44
[Reactjs] + [Redux] + [Expressjs] + [Webpack]. It is isomorphic (javascript shared

bin/server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ if (__DEVELOPMENT__) {
3434
global.webpack_isomorphic_tools = new webpackIsomorphicTools(require('../webpack/isomorphic-tools-configuration'))
3535
.development(process.env.NODE_ENV === 'development')
3636
.server(rootDir, function() {
37-
require('../src/server.js')();
37+
require('../src/server.js').default();
3838
});

bin/server.prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ global.__DEVELOPMENT__ = process.env.NODE_ENV !== 'production';
1313
global.webpack_isomorphic_tools = new webpackIsomorphicTools(require('../webpack/isomorphic-tools-configuration'))
1414
.development(__DEVELOPMENT__)
1515
.server(rootDir, function() {
16-
require('../dist/server.js')();
16+
require('../dist/server.js').default();
1717
});

package.json

+24-19
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@
77
"test": "npm run test:dev:unit",
88
"test:ci:unit": "karma start --browsers PhantomJS --single-run",
99
"pretest:ci:unit": "npm run test:ci:lint",
10-
"test:ci:functional": "BROWSER=phantomjs ./tests/functional/test.sh start-ci",
11-
"posttest:ci:functional": "./tests/functional/test.sh stop",
1210
"test:dev:unit": "karma start",
1311
"test:ci:lint": "./node_modules/eslint/bin/eslint.js ./src",
14-
"test:dev:functional": "BROWSER=chrome ./tests/functional/test.sh start",
15-
"posttest:dev:functional": "./tests/functional/test.sh stop",
1612
"test:dev:lint": "./node_modules/eslint/bin/eslint.js ./src",
1713
"test:stylelint": "stylelint './src/**/*.scss' --config ./webpack/.stylelintrc",
18-
"dev": "env NODE_PATH='./src' PORT=8000 UV_THREADPOOL_SIZE=100 node ./webpack/webpack-dev-server.js & env NODE_PATH='./src' PORT=8000 node ./bin/server.js",
14+
"dev-old": "env NODE_PATH='./src' PORT=8000 UV_THREADPOOL_SIZE=100 node ./webpack/webpack-dev-server.js & env NODE_PATH='./src' PORT=8000 node ./bin/server.js",
15+
"dev": "env NODE_PATH='./src' PORT=8000 UV_THREADPOOL_SIZE=100 node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --config ./webpack/dev.config.js & env NODE_PATH='./src' PORT=8000 node ./bin/server.js",
1916
"start": "NODE_PATH='src' node ./start",
2017
"build": "npm run build:client & npm run build:server",
2118
"build:server": "babel ./src -d ./dist -D",
@@ -29,12 +26,14 @@
2926
},
3027
"dependencies": {
3128
"app-module-path": "1.0.2",
29+
"autoprefixer": "6.6.1",
3230
"autoprefixer-loader": "3.2.0",
3331
"babel-cli": "6.11.4",
34-
"babel-core": "6.13.2",
35-
"babel-loader": "6.2.4",
32+
"babel-core": "^6.24.0",
33+
"babel-loader": "^6.4.1",
3634
"babel-plugin-add-module-exports": "0.1.4",
37-
"babel-plugin-system-import-transformer": "2.2.1",
35+
"babel-plugin-syntax-dynamic-import": "^6.18.0",
36+
"babel-plugin-system-import-transformer": "^3.1.0",
3837
"babel-plugin-transform-decorators-legacy": "1.3.4",
3938
"babel-plugin-transform-react-constant-elements": "6.9.1",
4039
"babel-plugin-transform-react-display-name": "6.8.0",
@@ -43,46 +42,52 @@
4342
"babel-plugin-transform-runtime": "6.12.0",
4443
"babel-plugin-typecheck": "3.9.0",
4544
"babel-polyfill": "6.13.0",
46-
"babel-preset-es2015": "6.13.2",
45+
"babel-preset-es2015": "^6.24.0",
4746
"babel-preset-react": "6.11.1",
4847
"babel-preset-stage-0": "6.5.0",
48+
"babel-preset-stage-2": "6.13.0",
4949
"babel-register": "6.11.6",
5050
"babel-runtime": "6.11.6",
5151
"body-parser": "1.15.2",
52-
"bootstrap-loader": "1.1.0",
52+
"bootstrap-loader": "2.0.0-beta.19",
5353
"bootstrap-sass": "3.3.7",
54-
"bootstrap-sass-loader": "1.0.10",
5554
"bundle-loader": "0.5.4",
5655
"cache-manager": "1.5.0",
56+
"caniuse-db": "1.0.30000613",
5757
"clean-webpack-plugin": "0.1.10",
5858
"compression": "1.6.2",
5959
"compression-webpack-plugin": "0.3.2",
6060
"cookie-parser": "1.4.3",
6161
"copy-to-clipboard": "3.0.5",
6262
"cors": "2.7.1",
63-
"css-loader": "0.23.1",
63+
"css-loader": "0.26.1",
64+
"cssnano": "3.10.0",
6465
"debug": "2.2.0",
6566
"dotenv": "2.0.0",
6667
"errorhandler": "1.4.3",
6768
"express": "4.14.0",
6869
"express-state": "1.4.0",
6970
"express-useragent": "1.0.4",
70-
"extract-text-webpack-plugin": "2.0.0-beta.3",
71+
"extract-text-webpack-plugin": "2.0.0-beta.5",
7172
"file-loader": "0.8.5",
7273
"fontfaceobserver": "1.7.3",
7374
"history": "^3.0.0",
7475
"html-webpack-plugin": "1.7.0",
7576
"http-proxy": "1.14.0",
7677
"humps": "2.0.0",
78+
"image-webpack-loader": "3.1.0",
7779
"imports-loader": "0.6.5",
7880
"json-loader": "0.5.4",
7981
"morgan": "1.7.0",
8082
"node-sass": "4.1.1",
8183
"normalizr": "3.0.2",
84+
"postcss-loader": "0.9.1",
85+
"precss": "1.4.0",
8286
"pretty-error": "2.0.0",
8387
"promise": "7.1.1",
8488
"proxy-middleware": "0.14.0",
8589
"qs": "6.2.1",
90+
"quran-components": "^0.0.66",
8691
"raven": "1.1.1",
8792
"raw-loader": "0.5.1",
8893
"react": "15.4.1",
@@ -92,8 +97,10 @@
9297
"react-cookie": "1.0.4",
9398
"react-dom": "15.4.1",
9499
"react-helmet": "3.1.0",
100+
"react-hot-loader": "3.0.0-beta.6",
95101
"react-inlinesvg": "0.5.4",
96102
"react-intl": "2.1.5",
103+
"react-loadable": "^3.0.1",
97104
"react-metrics": "1.2.1",
98105
"react-paginate": "4.1.0",
99106
"react-redux": "5.0.1",
@@ -108,6 +115,7 @@
108115
"redux-connect": "5.0.0",
109116
"reselect": "2.5.3",
110117
"resolve-url": "0.2.1",
118+
"resolve-url-loader": "1.6.1",
111119
"sass-loader": "4.1.1",
112120
"serialize-javascript": "1.3.0",
113121
"serve-favicon": "2.3.0",
@@ -117,7 +125,8 @@
117125
"superagent": "3.3.1",
118126
"url": "0.11.0",
119127
"url-loader": "0.5.7",
120-
"webpack": "2.1.0-beta.20",
128+
"webpack": "2.2.0",
129+
"webpack-dev-server": "2.1.0-beta.0",
121130
"webpack-isomorphic-tools": "2.5.7",
122131
"winston": "1.1.2"
123132
},
@@ -163,16 +172,12 @@
163172
"redux-devtools": "3.1.1",
164173
"redux-devtools-dock-monitor": "1.1.0",
165174
"redux-devtools-log-monitor": "1.0.5",
166-
"selenium-server": "2.48.2",
167175
"sinon": "1.15.3",
168176
"sinon-chai": "2.8.0",
169177
"stylelint": "7.1.0",
170178
"stylelint-webpack-plugin": "0.2.0",
171-
"wdio-mocha-framework": "0.3.7",
172-
"wdio-spec-reporter": "0.0.3",
173-
"webdriverio": "4.2.1",
174179
"webpack-bundle-analyzer": "2.2.1",
175-
"webpack-dev-server": "1.6.5",
180+
"webpack-dev-server": "2.1.0-beta.0",
176181
"webpack-hot-middleware": "2.12.2"
177182
},
178183
"pre-commit": [

0 commit comments

Comments
 (0)