appscms-tools-theme 5.7.4 → 5.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0de347069f3a8970e61f89ea140a4961401d21554b62c8d011f653cdffc6979
4
- data.tar.gz: a1ab67ed517d4ec1910f9a62c381df169bd7ba32d6df64fd054f536e4860d7c8
3
+ metadata.gz: 603f77565f7ca03d9e332a1ffc3e836edbb5e9036f7e6d10d284a5f5e404ce99
4
+ data.tar.gz: 6900bfe337176424f568bde31695c14a4787e4a2a72d21b0711915dfe25ebd3c
5
5
  SHA512:
6
- metadata.gz: ed2b792052e40b6bd7b9b202afb7622c75b49d074dbcbde31bdd9ed01c070d8c7dce166a9f4448d520dc62d610366aa93a37f18d8a08a869d74f0e0a3dc9f49d
7
- data.tar.gz: 1d77b17361e1296b7a9826b2936d84386d996ad293be392e83e1a31f25cb267c8f23d80cdc47a49d6af6a6452dc36e53d620a09bf535bd1889c6723774391a8d
6
+ metadata.gz: d9bb51e505968e549efc5b24fac360f826d0cef8d4f3f13ab95d5135ec71c6d99c74b92eb5b03f41a60986a4d95b52499a14bdfbdb9e39dc7b614f7e10dc6043
7
+ data.tar.gz: 38fe929ab239f1035ea9488b8c268a52104e1bee32a2306ec541a379fe92f869852aca63fdc27c7e785ae5feec1f12d2dbf857c5f723eb11d03ed7e83f0282af
Binary file
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "internatlionalization_whitelist_urls": [
3
- "http://localhost:4000/hi",
4
- "http://localhost:4000/ar",
5
- "http://localhost:4000/id",
6
- "http://localhost:4000/da",
7
- "http://localhost:4000/de",
8
- "http://localhost:4000/es",
9
- "http://localhost:4000/fr",
10
- "http://localhost:4000/it",
11
- "http://localhost:4000/nl",
12
- "http://localhost:4000/appscms-feature",
13
- "http://localhost:4000/hi/appscms-feature",
14
- "http://localhost:4000/ar/appscms-feature",
15
- "http://localhost:4000/id/appscms-feature",
16
- "http://localhost:4000/da/appscms-feature",
17
- "http://localhost:4000/de/appscms-feature",
18
- "http://localhost:4000/es/appscms-feature",
19
- "http://localhost:4000/fr/appscms-feature",
20
- "http://localhost:4000/it/appscms-feature",
21
- "http://localhost:4000/nl/appscms-feature"
3
+ "/hi",
4
+ "/ar",
5
+ "/id",
6
+ "/da",
7
+ "/de",
8
+ "/es",
9
+ "/fr",
10
+ "/it",
11
+ "/nl",
12
+ "/appscms-feature",
13
+ "/hi/appscms-feature",
14
+ "/ar/appscms-feature",
15
+ "/id/appscms-feature",
16
+ "/da/appscms-feature",
17
+ "/de/appscms-feature",
18
+ "/es/appscms-feature",
19
+ "/fr/appscms-feature",
20
+ "/it/appscms-feature",
21
+ "/nl/appscms-feature"
22
22
  ]
23
23
  }
data/_includes/.DS_Store CHANGED
Binary file
@@ -1,64 +1,69 @@
1
- {%- assign whitelist_urls =
2
- site.data.noindexURLs.internatlionalization_whitelist_urls -%} {%- include
3
- languages/languages.html -%} {%- if page.nointernationalization -%} {%- elsif
4
- site.internationalizationall -%} {%- for item in matchurls -%} {%- if item !=
5
- 'zh-TW' -%} {%- if item == 'en'-%} {%- if dataFile.htmlLangAtt == item -%} {%
6
- assign full_url = site.url | append: page.permalink %} {%- if whitelist_urls
7
- contains full_url -%}
1
+ {%- include languages/languages.html -%}
2
+ {%- assign whitelist_urls = site.data.noindexURLs.internatlionalization_whitelist_urls -%}
3
+ {%- if page.permalink == nil -%}
4
+ <link data-rh="true" rel="alternate" href="{{site.url}}" hreflang="en" />
5
+ {%- for i in matchurls -%} {%- for checklang in site.pages -%} {%- if
6
+ checklang.permalink == i -%} {%- assign languagetext = [i] -%}
7
+ {%- assign check_path = languagetext[0] | append: "@" | replace: "/@", "" | replace: "@", "" -%}
8
+ {%- unless check_path contains "/" -%}{%- assign check_path = check_path | prepend: "/" -%}{%- endunless -%}
9
+ {%- if whitelist_urls == nil or whitelist_urls contains check_path -%}
8
10
  <link
9
11
  data-rh="true"
10
12
  rel="alternate"
11
- class="active-lang internationalization-language-drop-down-item font-weight-bold"
12
- href="{{site.url}}/{{ page.permalink}}"
13
- hreflang="{{item}}"
13
+ href="{{site.url}}/{{languagetext[0]}}"
14
+ hreflang="{{languagetext[0]}}"
14
15
  />
15
- {%- endif -%} {%- else -%} {%- if dataFile.features -%}
16
-
17
- <link data-rh="true" rel="alternate" data-rh="true" rel="alternate" href="/" />
18
- {%- else -%} {% assign full_url = site.url | append: page.permalink %} {% assign
19
- last_segment = page.permalink | split: '/' | last %} {% assign full_url =
20
- site.url | append: '/' | append: last_segment %} {%- if whitelist_urls contains
21
- full_url -%}
16
+ {%- endif -%}
17
+ {%- endif -%} {%- endfor -%} {%- endfor -%} {%- else -%} {%- if matchurls
18
+ contains page.permalink -%} {%- assign languagetext = [i] -%}
19
+ <link data-rh="true" rel="alternate" href="{{site.url}}" hreflang="en" />
20
+ {%- for i in matchurls -%} {%- assign languagetext = [i] -%} {%- if i==
21
+ page.permalink -%}
22
+ {%- assign check_path = page.permalink | append: "@" | replace: "/@", "" | replace: "@", "" -%}
23
+ {%- unless check_path contains "/" -%}{%- assign check_path = check_path | prepend: "/" -%}{%- endunless -%}
24
+ {%- if whitelist_urls == nil or whitelist_urls contains check_path -%}
22
25
  <link
23
26
  data-rh="true"
24
27
  rel="alternate"
25
- href="{{site.url}}/{{ page.permalink | split: '/' | last}}"
26
- hreflang="{{item}}"
28
+ href="{{site.url}}/{{page.permalink}}"
29
+ hreflang="{{languagetext[0]}}"
27
30
  />
28
- {%- endif -%} {%- endif -%} {%- endif -%} {%- else -%} {%- if
29
- dataFile.htmlLangAtt == item -%} {%- if page.permalink | split: '/' | last !=
30
- item -%} {% assign full_url = site.url | append: page.permalink %} {%- if
31
- whitelist_urls contains full_url -%}
32
- <link href="{{site.url}}/{{ page.permalink}}" hreflang="{{item}}" />
33
- {%- endif -%} {%- else -%} {% assign full_url = site.url | append: '/' | append:
34
- item %} {%- if whitelist_urls contains full_url -%}
35
- <link class="active-lang" href="{{site.url}}/{{item}}" hreflang="{{item}}" />
36
- {%- endif -%} {%- endif -%} {%- else -%} {%- if page.permalink | split: '/' |
37
- last != item -%} {%- if dataFile.features -%} {%- if whitelist_urls contains
38
- page.permalink -%}
31
+ {%- endif -%}
32
+ {%- else -%} {%- for checklang in site.pages -%} {%- if checklang.permalink == i
33
+ -%} {%- assign languagetext = [i] -%}
34
+ {%- assign check_path = languagetext[0] | append: "@" | replace: "/@", "" | replace: "@", "" -%}
35
+ {%- unless check_path contains "/" -%}{%- assign check_path = check_path | prepend: "/" -%}{%- endunless -%}
36
+ {%- if whitelist_urls == nil or whitelist_urls contains check_path -%}
39
37
  <link
40
38
  data-rh="true"
41
39
  rel="alternate"
42
- href="{{site.url}}/{{item}}"
43
- hreflang="{{item}}"
40
+ href="{{site.url}}/{{languagetext[0]}}"
41
+ hreflang="{{languagetext[0]}}"
44
42
  />
45
- 5 {%- endif -%} {%- else -%} {% assign last_segment = page.permalink | split:
46
- '/' | last %} {% assign full_url = site.url | append: '/' | append: item |
47
- append: '/' | append: last_segment %} {%- if whitelist_urls contains full_url
48
- -%}
43
+ {%- endif -%}
44
+ {%- endif -%} {%- endfor -%} {%- endif -%} {%- endfor -%} {%- else -%} {%- for
45
+ item in site.pages -%} {%- assign languagetext = [item.lang] -%} {%- assign
46
+ pagelink = page.permalink | split: "/" | last-%} {%- assign itemlink =
47
+ item.permalink | split: "/" | last-%} {%- if pagelink == itemlink and page.lang
48
+ != item.lang and page.permalink != item.permalink -%}
49
+ {%- assign check_path = item.permalink | append: "@" | replace: "/@", "" | replace: "@", "" -%}
50
+ {%- if whitelist_urls == nil or whitelist_urls contains check_path -%}
49
51
  <link
50
52
  data-rh="true"
51
53
  rel="alternate"
52
- href="{{site.url}}/{{item}}/{{ page.permalink | split: '/' | last}}"
53
- hreflang="{{item}}"
54
+ href="{{site.url}}{{item.permalink}}"
55
+ hreflang="{{languagetext[0]}}"
54
56
  />
55
- {%- endif -%} {%- endif -%} {%- else -%} {% assign full_url = site.url | append:
56
- '/' | append: item %} {%- if whitelist_urls contains full_url -%}
57
+ {%- endif -%}
58
+ {%- endif -%} {%- if pagelink == itemlink and page.lang == item.lang -%}
59
+ {%- assign check_path = item.permalink | append: "@" | replace: "/@", "" | replace: "@", "" -%}
60
+ {%- if whitelist_urls == nil or whitelist_urls contains check_path -%}
61
+
57
62
  <link
58
63
  data-rh="true"
59
64
  rel="alternate"
60
- href="{{site.url}}/{{item}}"
61
- hreflang="{{item}}"
65
+ href="{{site.url}}{{item.permalink}}"
66
+ hreflang="{{languagetext[0]}}"
62
67
  />
63
- {%- endif -%} {%- endif -%} {%- endif -%} {%- endif -%} {%- endif -%} {%- endfor
64
- -%} {%- endif -%}
68
+ {%- endif -%}
69
+ {%- endif -%} {%- endfor -%} {%- endif -%} {%- endif -%}
@@ -66,10 +66,10 @@
66
66
 
67
67
  <div class="user-modal" id="userModal">
68
68
  <div class="modal-item">
69
- <div class="profile-user-avatar">GI</div>
69
+ <div class="profile-user-avatar">US</div>
70
70
  <div class="user-info">
71
- <div class="logged-in-username">Gill</div>
72
- <p class="logged-in-user-email">itsrammoudgill@gmail.com</p>
71
+ <div class="logged-in-username">User</div>
72
+ <p class="logged-in-user-email">example@gmail.com</p>
73
73
  </div>
74
74
 
75
75
  </div>
@@ -115,10 +115,10 @@
115
115
  <div class="user-avatar" id="userAvatar" style="display: none">GI</div>
116
116
  <div class="auth-container" id="authContainer">
117
117
  <div id="loginForm">
118
- <h1>Log in</h1>
119
- <h2>
118
+ <div>Log in</div>
119
+ <div>
120
120
  Don't have an account? <a href="#" id="showSignup">Create account</a>
121
- </h2>
121
+ </div>
122
122
 
123
123
  <div class="auth-forms">
124
124
  <button class="social-btn google-btn" id="googleLogin">
@@ -186,11 +186,11 @@
186
186
  Back to login
187
187
  </div>
188
188
 
189
- <h1>Reset password</h1>
190
- <h2>
189
+ <div>Reset password</div>
190
+ <div>
191
191
  Enter your email address and we'll send you a link to reset your
192
192
  password
193
- </h2>
193
+ </div>
194
194
 
195
195
  <form id="resetPasswordForm">
196
196
  <div class="input-group">
@@ -202,15 +202,15 @@
202
202
 
203
203
  <div class="reset-success" id="resetSuccess">
204
204
  <div class="success-icon">✓</div>
205
- <h3>Reset link sent</h3>
205
+ <div>Reset link sent</div>
206
206
  <p>Check your email for instructions to reset your password</p>
207
207
  </div>
208
208
  </div>
209
209
 
210
210
  <!-- Sign Up Form -->
211
211
  <div id="signupForm" style="display: none">
212
- <h1>Create your account</h1>
213
- <h2>Already have an account? <a href="#" id="showLogin">Log in</a></h2>
212
+ <div>Create your account</div>
213
+ <div>Already have an account? <a href="#" id="showLogin">Log in</a></div>
214
214
 
215
215
  <div class="auth-forms">
216
216
  <button class="social-btn google-btn" id="googleSignup">
@@ -268,7 +268,7 @@
268
268
  <div class="share-modal-overlay" id="shareModalOverlay"></div>
269
269
  <div class="share-modal" id="shareModal">
270
270
  <div class="share-modal-content">
271
- <h2 class="share-modal-title">Show Us Some Love</h2>
271
+ <div class="share-modal-title">Show Us Some Love</div>
272
272
  <p class="share-modal-subtitle">Tell the world about {{ site.url }}</p>
273
273
 
274
274
  <div class="share-social-icons">
@@ -55,23 +55,26 @@ replace: "$fileName", page.fileName | replace: "$lang", page.lang | replace:
55
55
  {%- endif -%} {%- include google-analytics.html -%} {%- if site.bookmark -%} {%-
56
56
  if page.layout == "appscms-feature" -%}
57
57
  <script>
58
- const toaster = document.querySelector(".toaster");
59
- if (
60
- !/webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
61
- navigator.userAgent
62
- )
63
- ) {
64
- if (navigator.userAgent.indexOf("Mac OS X") != -1) {
65
- toaster.innerHTML = `Press Command + D to Bookmark this page`;
58
+ (function () {
59
+ var toaster = document.querySelector(".toaster");
60
+ if (!toaster) return;
61
+ if (
62
+ !/webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
63
+ navigator.userAgent
64
+ )
65
+ ) {
66
+ if (navigator.userAgent.indexOf("Mac OS X") != -1) {
67
+ toaster.innerHTML = `Press Command + D to Bookmark this page`;
68
+ } else {
69
+ toaster.innerHTML = `Press Ctrl + D to Bookmark this page`;
70
+ }
66
71
  } else {
67
- toaster.innerHTML = `Press Ctrl + D to Bookmark this page`;
72
+ toaster.style.display = "none";
68
73
  }
69
- } else {
70
- toaster.style.display = "none";
71
- }
72
- setTimeout(() => {
73
- toaster.style.display = "none";
74
- }, 10000);
74
+ setTimeout(function () {
75
+ toaster.style.display = "none";
76
+ }, 10000);
77
+ })();
75
78
  </script>
76
79
  {%- endif -%} {%- endif -%}
77
80
 
@@ -1,7 +1,192 @@
1
1
  {%- if site.bookmark -%}
2
- <div class="toaster">
3
- <div class="toaster__body">
4
- <div class="toaster__message">Bookmark this webpage</div>
5
- </div>
2
+ <style>
3
+ .bm-prompt {
4
+ position: fixed;
5
+ right: 28px;
6
+ bottom: 32px;
7
+ z-index: 2147483647;
8
+ display: flex;
9
+ align-items: center;
10
+ gap: 18px;
11
+ padding: 24px 22px;
12
+ min-height: 120px;
13
+ max-width: 400px;
14
+ background: #fff;
15
+ border: 1px solid #e4e7f5;
16
+ border-radius: 20px;
17
+ box-shadow: 0 28px 70px -24px rgba(27, 47, 231, 0.45), 0 6px 14px rgba(15, 23, 42, 0.08);
18
+ opacity: 0;
19
+ transform: translateY(20px);
20
+ transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
21
+ pointer-events: none;
22
+ font-family: inherit;
23
+ }
24
+
25
+ .bm-prompt.is-visible {
26
+ opacity: 1;
27
+ transform: translateY(0);
28
+ pointer-events: auto;
29
+ }
30
+
31
+ .bm-prompt::before {
32
+ content: '';
33
+ position: absolute;
34
+ left: 0;
35
+ top: 14%;
36
+ bottom: 14%;
37
+ width: 5px;
38
+ border-radius: 0 5px 5px 0;
39
+ background: linear-gradient(180deg, #1b2fe7, #4a5bff);
40
+ }
41
+
42
+ .bm-prompt__icon {
43
+ width: 60px;
44
+ height: 60px;
45
+ border-radius: 14px;
46
+ display: inline-flex;
47
+ align-items: center;
48
+ justify-content: center;
49
+ background: linear-gradient(135deg, #eef1ff, #e8edff);
50
+ color: #1b2fe7;
51
+ flex-shrink: 0;
52
+ box-shadow: inset 0 0 0 1px rgba(27, 47, 231, 0.1);
53
+ }
54
+
55
+ .bm-prompt__icon svg {
56
+ width: 30px;
57
+ height: 30px;
58
+ }
59
+
60
+ .bm-prompt__body {
61
+ display: flex;
62
+ flex-direction: column;
63
+ gap: 6px;
64
+ line-height: 1.35;
65
+ min-width: 0;
66
+ }
67
+
68
+ .bm-prompt__title {
69
+ font-size: 17px;
70
+ font-weight: 700;
71
+ color: #0f172a;
72
+ letter-spacing: -0.015em;
73
+ }
74
+
75
+ .bm-prompt__hint {
76
+ font-size: 14px;
77
+ color: #64748b;
78
+ display: inline-flex;
79
+ align-items: center;
80
+ gap: 6px;
81
+ flex-wrap: wrap;
82
+ }
83
+
84
+ .bm-prompt__hint kbd {
85
+ display: inline-flex;
86
+ align-items: center;
87
+ justify-content: center;
88
+ min-width: 30px;
89
+ height: 28px;
90
+ padding: 0 9px;
91
+ border-radius: 7px;
92
+ background: #f4f5ff;
93
+ border: 1px solid #d6dbec;
94
+ border-bottom-width: 2px;
95
+ color: #1b2fe7;
96
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
97
+ font-size: 13px;
98
+ font-weight: 700;
99
+ letter-spacing: 0;
100
+ }
101
+
102
+ .bm-prompt__close {
103
+ width: 32px;
104
+ height: 32px;
105
+ border-radius: 10px;
106
+ display: inline-flex;
107
+ align-items: center;
108
+ justify-content: center;
109
+ background: transparent;
110
+ border: none;
111
+ color: #94a3b8;
112
+ cursor: pointer;
113
+ flex-shrink: 0;
114
+ margin-left: auto;
115
+ transition: background 0.15s ease, color 0.15s ease;
116
+ padding: 0;
117
+ }
118
+
119
+ .bm-prompt__close:hover {
120
+ background: #f1f5f9;
121
+ color: #0f172a;
122
+ }
123
+
124
+ .bm-prompt__close svg {
125
+ width: 18px;
126
+ height: 18px;
127
+ }
128
+
129
+ @media (max-width: 640px) {
130
+ .bm-prompt {
131
+ display: none !important;
132
+ }
133
+ }
134
+
135
+ @media (prefers-reduced-motion: reduce) {
136
+ .bm-prompt {
137
+ transition: opacity 0.1s linear;
138
+ transform: none;
139
+ }
140
+ }
141
+ </style>
142
+
143
+ <div class="bm-prompt" role="status" aria-live="polite" aria-label="Bookmark this page tip">
144
+ <span class="bm-prompt__icon" aria-hidden="true">
145
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
146
+ <path d="M19 21 12 16 5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"/>
147
+ </svg>
148
+ </span>
149
+ <span class="bm-prompt__body">
150
+ <span class="bm-prompt__title">Don't lose this tool</span>
151
+ <span class="bm-prompt__hint">
152
+ Hit <kbd class="bm-prompt__k1">Ctrl</kbd> <span>+</span> <kbd>D</kbd> to bookmark &amp; come back anytime
153
+ </span>
154
+ </span>
155
+ <button type="button" class="bm-prompt__close" aria-label="Dismiss bookmark tip">
156
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round">
157
+ <path d="M18 6 6 18M6 6l12 12"/>
158
+ </svg>
159
+ </button>
6
160
  </div>
7
- {%- endif -%}
161
+
162
+ <script>
163
+ (function () {
164
+ var el = document.querySelector('.bm-prompt');
165
+ if (!el) return;
166
+
167
+ var isMobile = /webOS|iPhone|iPad|iPod|Android|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
168
+ if (isMobile) { el.remove(); return; }
169
+
170
+ var isMac = /Mac OS X|Macintosh/i.test(navigator.userAgent);
171
+ var k = el.querySelector('.bm-prompt__k1');
172
+ if (k) k.textContent = isMac ? '⌘' : 'Ctrl';
173
+
174
+ var showTimer = setTimeout(function () { el.classList.add('is-visible'); }, 900);
175
+
176
+ var hideTimer = setTimeout(function () {
177
+ el.classList.remove('is-visible');
178
+ setTimeout(function () { if (el.parentNode) el.parentNode.removeChild(el); }, 350);
179
+ }, 15000);
180
+
181
+ var closeBtn = el.querySelector('.bm-prompt__close');
182
+ if (closeBtn) {
183
+ closeBtn.addEventListener('click', function () {
184
+ clearTimeout(showTimer);
185
+ clearTimeout(hideTimer);
186
+ el.classList.remove('is-visible');
187
+ setTimeout(function () { if (el.parentNode) el.parentNode.removeChild(el); }, 300);
188
+ });
189
+ }
190
+ })();
191
+ </script>
192
+ {%- endif -%}