appscms-tools-theme 4.3.7 → 4.3.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9976bc81715655c6e3035b634912e6792b7fe8b99d3ddb7c2c2a492707feb45
4
- data.tar.gz: ce49399fb239ba769ba14b1475999dd220f048bf5b1723d074306e13567a9bb9
3
+ metadata.gz: 13789faaa9d31caa1926d9a39eec3bbc2e64bcd699ddbc907b844150990bd40d
4
+ data.tar.gz: c87b6447e07d7aa9a960b380cfd0821e5f6014e53d6780b0513c8ea818fc3d1b
5
5
  SHA512:
6
- metadata.gz: 6cf7033a455e20b3c289837cf3bb2c40bee2361fdc88ea6ef9c42a12cd11064da08d06ddb66a468d426b81aae1da97214cc4392973bd7c316d2dad1196b36304
7
- data.tar.gz: bf28d201a492b145584bed1cfbfb9244334804ad1ce5a80262dc0d6b1793648f92a8ed0eb6d753663ee87f460be8f5b03c3247e6d8788f4d4b9cefa6800a7c07
6
+ metadata.gz: 42c2a58c0fac20db8e85213cf4ceb01d9588b352554bb81caf39719e49a5f3d53d49e574925ecf6e001d09af6a59ddca618c1d44226968bc06fd301d5e8eb2f1
7
+ data.tar.gz: 275cc9eed6b686191cfaafaec8e4c8fb56a86ce3fc7a4dfc858258c0e4c0ec432bcf1bd6539aff4456fcec0acc7e2683525c1ee1d274739dc33a312ba04a2f15
@@ -68,8 +68,12 @@
68
68
  })
69
69
  .then(response => response.json())
70
70
  .then(data => {
71
- ratingValue.innerText = data.rating
72
- count.innerText = data.count
71
+ console.log(data)
72
+
73
+ ratingValue.innerText = data.rating
74
+ count.innerText = data.count
75
+
76
+
73
77
  })
74
78
  .catch((error) => {
75
79
  console.error('Error:', error);
@@ -79,8 +83,13 @@
79
83
  const fetchRating = async () => {
80
84
 
81
85
  const data = await fetch(`https://ratingapi-main.netlify.app/.netlify/functions/api/v1/${tool}/rating`).then(res => res.json())
86
+ if (data.rating === "NaN") {
87
+ ratingValue.innerText = "5.00"
88
+ count.innerText = "1"
89
+ }
90
+ else{
82
91
  ratingValue.innerText = data.rating
83
- count.innerText = data.votes
92
+ count.innerText = data.votes}
84
93
  }
85
94
  let ratingImg = document.querySelector('#rating-img');
86
95
  ratingImg.addEventListener('load', (event) => {
@@ -4,7 +4,7 @@
4
4
  <div class="container appscms-upload-section-container">
5
5
  <div class="row">
6
6
  <div
7
- class="col-xxl-4 col-lg-6 col-md-8 col-sm-10 offset-md-1 offset-sm-0 mx-auto"
7
+ class="col-xl-5 col-lg-4 col-md-8 col-sm-10 offset-md-1 offset-sm-0 mx-auto"
8
8
  >
9
9
  <div class="appscms-upload-section box">
10
10
 
@@ -430,9 +430,7 @@
430
430
  </div>
431
431
  </section>
432
432
 
433
-
434
-
435
- {% include script.html %}
433
+ {%- include appscms/scripts/script.html -%}
436
434
  {%- include appscms/footer/static-footer.html -%}
437
435
  </body>
438
436
 
@@ -160,7 +160,8 @@
160
160
  </div>
161
161
  {% include section/count.html %}
162
162
  </section>
163
- {%- include appscms/footer/static-footer.html -%} {% include script.html %}
163
+ {%- include appscms/footer/static-footer.html -%}
164
+ {%- include appscms/scripts/script.html -%}
164
165
  </body>
165
166
 
166
167
  </html>
@@ -289,7 +289,7 @@
289
289
 
290
290
  .inforgraphics_section .wrapper {
291
291
  display: flex;
292
- max-width: 700px;
292
+ max-width: 90%;
293
293
  position: relative;
294
294
  }
295
295
 
@@ -329,7 +329,7 @@
329
329
 
330
330
  .carousel {
331
331
  display: flex;
332
- max-width: 700px;
332
+ max-width: 100%;
333
333
  overflow-x: scroll;
334
334
  scroll-snap-type: x mandatory;
335
335
  scroll-behavior: smooth;
@@ -391,4 +391,3 @@
391
391
  margin-right: 0;
392
392
  }
393
393
  }
394
-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.7
4
+ version: 4.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-10 00:00:00.000000000 Z
11
+ date: 2024-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll