appscms-tools-theme 1.5.0 → 1.5.4

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: d7c51687d84a982a14407f15c4b8b547afe5839c3e5a13b4a805148de7288f86
4
- data.tar.gz: 7be49d85a0ce6d32ddae76074258a6ca097edb5ed3682ca4e2c44536ed1ee703
3
+ metadata.gz: 15f57ed0f27144633d7fa89e1e7db3771579d19fed5eb24637601cd8de642e18
4
+ data.tar.gz: 0f244555c7f5d5afb031c8069587e35ecf0e0f2aac41a126e12e3278e075dc5b
5
5
  SHA512:
6
- metadata.gz: ca12df7ac95484565ccd158bbb8af582b457068224b7c80a1458762fe7792c585cee2b9f356e78415f43d38531fa8495802ae6d73a2891e8b43ae8fe5c428e60
7
- data.tar.gz: 3fe19e15d16fc1a6f854561048be57c342b6961a1d9ad935a39bf1f35d8d5e462fa676e745ea6151f56bd04f09547196aaa72274b401d06f50252a942fc4943d
6
+ metadata.gz: 75ee3b7b3b2aff5f0577e66cefc4621557937b56d02f0a8b6cfc5efc90901b8c6f917c9fda45aa4e86dbe385fc708520dd2964e11f27c56943bfaaf55528d183
7
+ data.tar.gz: 20053f11cc45d1db1cabb8ddea5cc0bbb8e5504eec88048392a32b1d04672b14fcfeaa4114584d9fbf9a48f3f125830aafed2f5bf007e9c6017db4bdfde00850
@@ -1,8 +1,8 @@
1
1
  {% assign scriptData = site.data.[page.folderName][lang][file] %}
2
2
  {%- assign dataAtt = "data-folderName='$folderName' data-lang='$lang' data-fileName='$fileName' data-tool='$tool'" -%}
3
3
  {%- assign $folderName = '$folderName' -%}
4
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" {%- if site.crossorigin -%} crossorigin
5
- {%- endif -%}></script>
4
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" {%- if site.crossorigin
5
+ -%} "crossorigin" {%- endif -%}></script>
6
6
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"
7
7
  integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous" {%- if
8
8
  site.crossorigin -%} crossorigin {%- endif -%}></script>
@@ -11,15 +11,15 @@
11
11
  {%- if site.safeui -%}
12
12
  <div class="alert alert-{{featureData.variant | default: 'warning'}} alert-dismissible fade show text-center"
13
13
  role="alert">
14
- <img {%- if site.crossorigin -%} crossorigin {%- endif -%} src="/assets/secure.svg" height="23px" width="18px"
15
- alt="secure"> &nbsp;
14
+ <img src="/assets/secure.svg" height="23px" width="18px" alt="secure" {%- if site.crossorigin -%} crossorigin
15
+ {%- endif -%}> &nbsp;
16
16
  {%- if featureData.alertmsg -%}
17
17
  {{featureData.alertmsg}}
18
18
  {%- else -%}
19
19
  We do not upload any files to server, hence your data is 100% secure.
20
20
  {%- endif -%} &nbsp;
21
- <img {%- if site.crossorigin -%} crossorigin {%- endif -%} src="/assets/noserverupload.svg" height="23px"
22
- width="20px" alt="no server upload">
21
+ <img src="/assets/noserverupload.svg" height="23px" width="20px" alt="no server upload" {%- if site.crossorigin
22
+ -%} crossorigin {%- endif -%}>
23
23
  <button type="button" class="close" data-dismiss="alert" aria-label="Close">
24
24
  <span aria-hidden="true">&times;</span>
25
25
  </button>
@@ -30,9 +30,9 @@
30
30
  <div class="d-flex justify-content-center align-items-center"><span class="fHhdVc">
31
31
  <div class="div-cont feature-img mr-2">
32
32
  {%- if featureData.img -%}
33
- <img {%- if site.crossorigin -%} crossorigin {%- endif -%}
34
- style=width:{{featureData.imgwidth}};height:{{featureData.imgheight}};
35
- src="{{featureData.img}}" alt="{{featureData.imgalt}}">
33
+ <img style=width:{{featureData.imgwidth}};height:{{featureData.imgheight}};
34
+ src="{{featureData.img}}" alt="{{featureData.imgalt}}" {%- if site.crossorigin -%}
35
+ crossorigin {%- endif -%}>
36
36
  {%- else -%}
37
37
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
38
38
  viewBox="0 0 36 36" fill="#000">
@@ -69,8 +69,8 @@
69
69
  <div class="row px-0">
70
70
  {% for data in featureData.TEXTUAL_CONTENT %}
71
71
  <div class="col-lg-4 col-md-6 my-4">
72
- <div><img {%- if site.crossorigin -%} crossorigin {%- endif -%} class="feature-card-img"
73
- src="{{data.logoUrl}}" loading="lazy" height="48px" width="48px" alt={{data.header}}>
72
+ <div><img class="feature-card-img" src="{{data.logoUrl}}" loading="lazy" height="48px" width="48px"
73
+ alt="{{data.header}}" {%- if site.crossorigin -%} crossorigin {%- endif -%}>
74
74
  <div class="feature-card-title">{{data.header | replace: "$variable", page.value}}</div>
75
75
  <div class="feature-card-desc">{{data.content | replace: "$variable", page.value}}</div>
76
76
  </div>
@@ -83,10 +83,10 @@
83
83
  <div class="flex-class">
84
84
  <div class=" d-flex flex-wrap justify-content-center">
85
85
  {%- if featureData.HOW_TO_CONTENT.logoImageUrl -%}
86
- <div class="how-to-img-wrapper "><img {%- if site.crossorigin -%} crossorigin {%- endif -%}
87
- class="how-to-leftimg" height="180px" width="300px"
86
+ <div class="how-to-img-wrapper "><img class="how-to-leftimg" height="180px" width="300px"
88
87
  src="{{featureData.HOW_TO_CONTENT.logoImageUrl}}" loading="lazy"
89
- alt="{{featureData.HOW_TO_CONTENT.logoImageAlt}}">
88
+ alt="{{featureData.HOW_TO_CONTENT.logoImageAlt}}" {%- if site.crossorigin -%} crossorigin
89
+ {%- endif -%}>
90
90
  </div>
91
91
  {%- endif -%}
92
92
  <div class="how-to-right">
data/_layouts/home.html CHANGED
@@ -11,15 +11,15 @@
11
11
  {%- if homeData.nofileupload -%}
12
12
  <div class="alert alert-{{featureData.variant | default: 'warning'}} alert-dismissible fade show text-center"
13
13
  role="alert">
14
- <img {%- if site.crossorigin -%} crossorigin {%- endif -%} src="/assets/secure.svg" height="23px" width="18px"
15
- alt="secure"> &nbsp;
14
+ <img src="/assets/secure.svg" height="23px" width="18px" alt="secure" {%- if site.crossorigin -%} crossorigin
15
+ {%- endif -%}> &nbsp;
16
16
  {%- if featureData.alertmsg -%}
17
17
  {{featureData.alertmsg}}
18
18
  {%- else -%}
19
19
  We do not upload any files to server, hence your data is 100% secure.
20
20
  {%- endif -%} &nbsp;
21
- <img {%- if site.crossorigin -%} crossorigin {%- endif -%} src="/assets/noserverupload.svg" height="23px"
22
- width="20px" alt="no server upload">
21
+ <img src="/assets/noserverupload.svg" height="23px" width="20px" alt="no server upload" {%- if site.crossorigin
22
+ -%} crossorigin {%- endif -%}>
23
23
  <button type="button" class="close" data-dismiss="alert" aria-label="Close">
24
24
  <span aria-hidden="true">&times;</span>
25
25
  </button>
@@ -31,9 +31,8 @@
31
31
  <div class="d-flex justify-content-center align-items-center"><span class="fHhdVc">
32
32
  <div class="div-cont feature-img mr-2">
33
33
  {%- if homeData.img -%}
34
- <img {%- if site.crossorigin -%} crossorigin {%- endif -%}
35
- style=width:{{homeData.imgwidth}};height:{{homeData.imgheight}}; src="{{homeData.img}}"
36
- alt="{{homeData.imgalt}}">
34
+ <img style=width:{{homeData.imgwidth}};height:{{homeData.imgheight}}; src="{{homeData.img}}"
35
+ alt="{{homeData.imgalt}}" {%- if site.crossorigin -%} crossorigin {%- endif -%}>
37
36
  {%- endif -%}
38
37
  </div>
39
38
  </span>
@@ -51,8 +50,8 @@
51
50
  <li style=background:{{product.color}} class="home-feature-box">
52
51
  <div class="home-inner-box">
53
52
  <div class="div-cont feature-img" height="36px" width="36px">
54
- <img {%- if site.crossorigin -%} crossorigin {%- endif -%} src="{{product.icon}}"
55
- height="36px" width="36px" alt="star icon">
53
+ <img src="{{product.icon}}" height="36px" width="36px" alt="star icon" {%- if
54
+ site.crossorigin -%} crossorigin {%- endif -%}>
56
55
  </div>
57
56
  </div>
58
57
  <div class="home-feature-desc">{{product.description}}</div><a class="home-feature-name"
@@ -71,8 +70,8 @@
71
70
  <div class="row px-0">
72
71
  {% for data in homeData.TEXTUAL_CONTENT %}
73
72
  <div class="col-lg-4 col-md-6 my-4">
74
- <div><img {%- if site.crossorigin -%} crossorigin {%- endif -%} class="feature-card-img" height="48px"
75
- width="48px" loading="lazy" src="{{data.logoUrl}}" alt={{data.header}}>
73
+ <div><img class="feature-card-img" height="48px" width="48px" loading="lazy" src="{{data.logoUrl}}"
74
+ alt={{data.header}} {%- if site.crossorigin -%} crossorigin {%- endif -%}>
76
75
  <div class="feature-card-title">{{data.header | replace: "$variable", page.value}}</div>
77
76
  <div class="feature-card-desc">{{data.content | replace: "$variable", page.value}}</div>
78
77
  </div>
@@ -87,10 +86,10 @@
87
86
  <div class="flex-class">
88
87
  <div class=" d-flex flex-wrap justify-content-center">
89
88
  {%- if homeData.HOW_TO_CONTENT.logoImageUrl -%}
90
- <div class="how-to-img-wrapper "><img {%- if site.crossorigin -%} crossorigin {%- endif -%}
91
- class="how-to-leftimg" loading="lazy" height="215px" width="100%"
92
- src="{{homeData.HOW_TO_CONTENT.logoImageUrl}}"
93
- alt="{{homeData.HOW_TO_CONTENT.logoImageAlt}}">
89
+ <div class="how-to-img-wrapper "><img class="how-to-leftimg" loading="lazy" height="215px"
90
+ width="100%" src="{{homeData.HOW_TO_CONTENT.logoImageUrl}}"
91
+ alt="{{homeData.HOW_TO_CONTENT.logoImageAlt}}" {%- if site.crossorigin -%} crossorigin {%-
92
+ endif -%}>
94
93
  </div>
95
94
  {%- endif -%}
96
95
  <div class="how-to-right">
data/_layouts/post.html CHANGED
@@ -131,6 +131,15 @@
131
131
  {% include script.html %}
132
132
  <script src="{{ '/assets/js/TopScroll.js' | relative_url }}" {%- if site.crossorigin -%} crossorigin {%- endif
133
133
  -%}></script>
134
+ {%- if site.crossorigin -%}
135
+ <script>
136
+ const getImages = document.getElementsByTagName('img')
137
+ Array.from(getImages).map(item => {
138
+ item.crossOrigin = 'anonymous'
139
+ })
140
+ </script>
141
+ {%- endif -%}
142
+
134
143
  </body>
135
144
 
136
145
  </html>
@@ -7,6 +7,7 @@ const addScripts=()=>{
7
7
  if(!check){
8
8
  const dropboxscript = document.createElement('script')
9
9
  dropboxscript.src = 'https://www.dropbox.com/static/api/2/dropins.js'
10
+ dropboxscript.crossOrigin = 'anonymous'
10
11
  dropboxscript.dataset.appKey = '{{site.dropboxapikey}}'
11
12
  dropboxscript.id='dropboxjs'
12
13
  document.head.append(dropboxscript)
@@ -15,6 +16,7 @@ const addScripts=()=>{
15
16
  if(!checkgooglescript){
16
17
  const googlescript = document.createElement('script')
17
18
  googlescript.src = 'https://apis.google.com/js/api.js'
19
+ googlescript.crossOrigin = 'anonymous'
18
20
  document.head.append(googlescript)
19
21
  }
20
22
  }
@@ -9,12 +9,14 @@ const addScripts=()=>{
9
9
  dropboxscript.src = 'https://www.dropbox.com/static/api/2/dropins.js'
10
10
  dropboxscript.dataset.appKey = '{{site.dropboxapikey}}'
11
11
  dropboxscript.id='dropboxjs'
12
+ dropboxscript.crossOrigin = 'anonymous'
12
13
  document.head.append(dropboxscript)
13
14
  }
14
15
  const checkgooglescript= Array.from(scripts).find(item=>item.src==='https://apis.google.com/js/api.js')
15
16
  if(!checkgooglescript){
16
17
  const googlescript = document.createElement('script')
17
18
  googlescript.src = 'https://apis.google.com/js/api.js'
19
+ googlescript.crossOrigin = 'anonymous'
18
20
  document.head.append(googlescript)
19
21
  }
20
22
  }
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: 1.5.0
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-10 00:00:00.000000000 Z
11
+ date: 2021-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll