Skip to content

Commit f577d6f

Browse files
committed
إضافة دولة الجزائر لمواقيت الصلاة + تحديث التبعيات
1 parent 74c35fb commit f577d6f

File tree

7 files changed

+10815
-11
lines changed

7 files changed

+10815
-11
lines changed

app/Allah_names/Allah_names.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@
803803
<p>الرَّحْمَنُ</p>
804804
</div>
805805
<div class="text">
806-
<p>hhhhh</p>
806+
<p>الرحمن معناه الكثرة، يعني اسم الله الرحمن يشمل كل الخلائق من دون استثناء، فرحمته وسعت كل شيء، وهو أرحم الراحمين</p>
807807
</div>
808808
</div>
809809

@@ -987,4 +987,4 @@
987987

988988
</body>
989989

990-
</html>
990+
</html>

app/adhan/adhan.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ <h3 id="city"></h3>
109109
<option value="ae">الإمارات</option>
110110
<option value="kw">الكويت</option>
111111
<option value="eg">مصر</option>
112+
<option value="dz">الجزائر</option>
112113
</select>
113114
<button type="submit" id="submit_country_Submit">أدخل</button>
114115
</form>

app/adhan/class_adhan.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = async function class_adhan() {
99

1010
let App_Path = await ipcRenderer.invoke('electron-app-get-path');
1111
let json_city = fs.readJsonSync(path.join(App_Path, '/json/city.json'));
12-
let city_CalculationMethod = json_city.timezone === 'Africa/Cairo' ? adhan.CalculationMethod.Egyptian() : adhan.CalculationMethod.UmmAlQura()
12+
let city_CalculationMethod = json_city.timezone === 'Africa/Cairo' ? adhan.CalculationMethod.Egyptian() : json_city.timezone === 'Africa/Algiers' ? adhan.CalculationMethod.MuslimWorldLeague() : adhan.CalculationMethod.UmmAlQura()
1313
let params = city_CalculationMethod;
1414
let prayerTimes = new adhan.PrayerTimes(new adhan.Coordinates(json_city.latitude, json_city.longitude), new Date(), params);
1515

@@ -30,7 +30,7 @@ module.exports = async function class_adhan() {
3030
let sleep = (time) => new Promise(resolve => setTimeout(resolve, time));
3131
let json_city = fs.readJsonSync(path.join(App_Path, '/json/city.json'));
3232
let coordinates = new adhan.Coordinates(json_city.latitude, json_city.longitude);
33-
let city_CalculationMethod = json_city.timezone === 'Africa/Cairo' ? adhan.CalculationMethod.Egyptian() : adhan.CalculationMethod.UmmAlQura()
33+
let city_CalculationMethod = json_city.timezone === 'Africa/Cairo' ? adhan.CalculationMethod.Egyptian() : json_city.timezone === 'Africa/Algiers' ? adhan.CalculationMethod.MuslimWorldLeague() : adhan.CalculationMethod.UmmAlQura()
3434
let params = city_CalculationMethod;
3535
let prayerTimes = new adhan.PrayerTimes(coordinates, date, params);
3636
let current = prayerTimes.currentPrayer()
@@ -95,7 +95,7 @@ module.exports = async function class_adhan() {
9595
let date = new Date();
9696
let json_city = fs.readJsonSync(path.join(App_Path, '/json/city.json'));
9797
let coordinates = new adhan.Coordinates(lop2.latitude, lop2.longitude);
98-
let city_CalculationMethod = json_city.timezone === 'Africa/Cairo' ? adhan.CalculationMethod.Egyptian() : adhan.CalculationMethod.UmmAlQura()
98+
let city_CalculationMethod = json_city.timezone === 'Africa/Cairo' ? adhan.CalculationMethod.Egyptian() : json_city.timezone === 'Africa/Algiers' ? adhan.CalculationMethod.MuslimWorldLeague() : adhan.CalculationMethod.UmmAlQura()
9999
let params = city_CalculationMethod;
100100
let prayerTimes = new adhan.PrayerTimes(coordinates, date, params);
101101
let current = prayerTimes.currentPrayer()

folder.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = async function folder(App_Path, resourcesPath) {
88
let eg = '/json/eg.json'
99
let kw = '/json/kw.json'
1010
let sa = '/json/sa.json'
11+
let dz = '/json/dz.json'
1112
let Adhkar = '/json/Adhkar.json'
1213
let Adhkar_morning = '/json/Adhkar_morning.json'
1314
let Adhkar_night = '/json/Adhkar_night.json'
@@ -44,6 +45,14 @@ module.exports = async function folder(App_Path, resourcesPath) {
4445

4546
}
4647

48+
if (fs.existsSync(path.join(App_Path, dz)) === false){
49+
50+
fs.mkdirSync(path.join(App_Path, '/json'), { recursive: true });
51+
let dz_json = fs.readJSONSync(path.join(resourcesPath, dz));
52+
fs.writeJsonSync(path.join(App_Path, dz), dz_json , { spaces: '\t' });
53+
54+
}
55+
4756
if (fs.existsSync(path.join(App_Path, sa)) === false){
4857

4958
fs.mkdirSync(path.join(App_Path, '/json'), { recursive: true });

json/city.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
{"name":"مكة المكرمة","latitude":21.4225,"longitude":39.826111111,"timezone":"Asia/Riyadh"}
1+
{
2+
"name": "مكة المكرمة",
3+
"latitude": 21.4225,
4+
"longitude": 39.826111111,
5+
"timezone": "Asia/Riyadh"
6+
}

0 commit comments

Comments
 (0)