ultimate-jekyll-manager 0.0.61 → 0.0.62

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.
@@ -27,12 +27,12 @@
27
27
  {% for action in data.actions %}
28
28
  {% if action.type == 'account' and action.dropdown %}
29
29
  {% capture action_attributes %}{% if action.attributes %}{% for attr in action.attributes %} {{ attr[0] }}="{{ attr[1] }}"{% endfor %}{% endif %}{% endcapture %}
30
- <div class="dropdown animation-slide-up ms-2 d-inline-flex" data-wm-bind="@show user" hidden>
30
+ <div class="dropdown animation-slide-up ms-2 d-inline-flex" data-wm-bind="@show auth.user" hidden>
31
31
  <button class="p-0 border-0 bg-transparent" type="button" data-bs-toggle="dropdown" {{ action_attributes }} aria-expanded="false">
32
32
  <span class="d-flex align-items-center">
33
33
  <span class="position-relative d-inline-block">
34
34
  <span class="avatar avatar-sm rounded-circle bg-secondary bg-opacity-10 border d-flex align-items-center justify-content-center overflow-hidden" style="display: inline-flex !important;">
35
- <img src="{{ site.uj.placeholder.src }}" alt="Profile picture" data-wm-bind="@attr src user.photoURL"/>
35
+ <img src="{{ site.uj.placeholder.src }}" alt="Profile picture" data-wm-bind="@attr src auth.user.photoURL"/>
36
36
  </span>
37
37
  <!-- Active status indicator -->
38
38
  <span class="position-absolute bottom-0 end-0 p-1 bg-success border border-2 border-white avatar avatar-2xs rounded-circle mb-1">
@@ -48,7 +48,7 @@
48
48
  <div class="d-flex align-items-center">
49
49
  <div class="position-relative me-3">
50
50
  <div class="avatar avatar-md rounded-circle bg-secondary bg-opacity-10 border d-flex align-items-center justify-content-center overflow-hidden">
51
- <img src="{{ site.uj.placeholder.src }}" alt="Profile picture" data-wm-bind="@attr src user.photoURL"/>
51
+ <img src="{{ site.uj.placeholder.src }}" alt="Profile picture" data-wm-bind="@attr src auth.user.photoURL"/>
52
52
  </div>
53
53
  <!-- Active status indicator -->
54
54
  <span class="position-absolute bottom-0 end-0 p-1 bg-success border border-2 border-white avatar avatar-2xs rounded-circle mb-0">
@@ -56,8 +56,8 @@
56
56
  </span>
57
57
  </div>
58
58
  <div class="flex-grow-1 overflow-hidden">
59
- <div class="fw-semibold text-truncate text-body" data-wm-bind="@text user.displayName">User</div>
60
- <div class="small text-muted text-truncate" data-wm-bind="@text user.email">email@example.com</div>
59
+ <div class="fw-semibold text-truncate text-body" data-wm-bind="@text auth.user.displayName">User</div>
60
+ <div class="small text-muted text-truncate" data-wm-bind="@text auth.user.email">email@example.com</div>
61
61
  </div>
62
62
  </div>
63
63
  </a>
@@ -178,12 +178,12 @@
178
178
  {% if action.type == 'account' %}
179
179
  <!-- Account dropdown with profile picture (desktop) -->
180
180
  {% capture action_attributes %}{% if action.attributes %}{% for attr in action.attributes %} {{ attr[0] }}="{{ attr[1] }}"{% endfor %}{% endif %}{% endcapture %}
181
- <div class="dropdown ms-lg-3 animation-slide-up d-inline-flex" data-wm-bind="@show user" hidden>
181
+ <div class="dropdown ms-lg-3 animation-slide-up d-inline-flex" data-wm-bind="@show auth.user" hidden>
182
182
  <button class="p-0 border-0 bg-transparent" type="button" data-bs-toggle="dropdown" {{ action_attributes }} aria-expanded="false">
183
183
  <span class="d-flex align-items-center">
184
184
  <span class="position-relative d-inline-block">
185
185
  <span class="avatar avatar-md rounded-circle bg-secondary bg-opacity-10 border d-flex align-items-center justify-content-center overflow-hidden" style="display: inline-flex !important;">
186
- <img src="{{ site.uj.placeholder.src }}" alt="Profile picture" data-wm-bind="@attr src user.photoURL"/>
186
+ <img src="{{ site.uj.placeholder.src }}" alt="Profile picture" data-wm-bind="@attr src auth.user.photoURL"/>
187
187
  </span>
188
188
  <!-- Active status indicator -->
189
189
  <span class="position-absolute bottom-0 end-0 p-1 bg-success border border-2 border-white avatar avatar-2xs rounded-circle mb-2">
@@ -199,7 +199,7 @@
199
199
  <div class="d-flex align-items-center">
200
200
  <div class="position-relative me-3">
201
201
  <div class="avatar avatar-md rounded-circle bg-secondary bg-opacity-10 border d-flex align-items-center justify-content-center overflow-hidden">
202
- <img src="{{ site.uj.placeholder.src }}" alt="Profile picture" data-wm-bind="@attr src user.photoURL"/>
202
+ <img src="{{ site.uj.placeholder.src }}" alt="Profile picture" data-wm-bind="@attr src auth.user.photoURL"/>
203
203
  </div>
204
204
  <!-- Active status indicator -->
205
205
  <span class="position-absolute bottom-0 end-0 p-1 bg-success border border-2 border-white avatar avatar-2xs rounded-circle mb-0">
@@ -207,8 +207,8 @@
207
207
  </span>
208
208
  </div>
209
209
  <div class="flex-grow-1 overflow-hidden">
210
- <div class="fw-semibold text-truncate text-body" data-wm-bind="@text user.displayName">User</div>
211
- <div class="small text-muted text-truncate" data-wm-bind="@text user.email">email@example.com</div>
210
+ <div class="fw-semibold text-truncate text-body" data-wm-bind="@text auth.user.displayName">User</div>
211
+ <div class="small text-muted text-truncate" data-wm-bind="@text auth.user.email">email@example.com</div>
212
212
  </div>
213
213
  </div>
214
214
  </a>
@@ -35,7 +35,7 @@ theme:
35
35
  // Read and parse localStorage data
36
36
  var managerData = localStorage.getItem('_manager');
37
37
  var parsedData = managerData ? JSON.parse(managerData) : null;
38
- var isLoggedIn = !!(parsedData && parsedData.user && parsedData.user.auth && parsedData.user.auth.uid);
38
+ var isLoggedIn = !!(parsedData && parsedData.auth && parsedData.auth.user && parsedData.auth.user.auth && parsedData.auth.user.auth.uid);
39
39
 
40
40
  // Quit if NOT logged in
41
41
  if (!isLoggedIn) {
@@ -48,10 +48,10 @@ theme:
48
48
  $bindElements.forEach(function($el) {
49
49
  var bindValue = $el.getAttribute('data-wm-bind');
50
50
 
51
- if (bindValue === '@show user') {
51
+ if (bindValue === '@show auth.user') {
52
52
  // Show element when user is logged in
53
53
  $el.removeAttribute('hidden');
54
- } else if (bindValue === '@show !user') {
54
+ } else if (bindValue === '@show !auth.user') {
55
55
  // Hide element when user is logged in (show when not logged in)
56
56
  $el.setAttribute('hidden', '');
57
57
  }
@@ -202,7 +202,7 @@ badges:
202
202
  <div id="avatar-container" class="me-3 position-relative">
203
203
  <!-- Avatar always available from getUser() -->
204
204
  <div class="avatar avatar-lg rounded-circle overflow-hidden border">
205
- <img src="{{ site.uj.placeholder.src }}" alt="Profile picture" class="object-fit-cover w-100 h-100" data-wm-bind="@attr src user.photoURL"/>
205
+ <img src="{{ site.uj.placeholder.src }}" alt="Profile picture" class="object-fit-cover w-100 h-100" data-wm-bind="@attr src auth.user.photoURL"/>
206
206
  </div>
207
207
  <!-- Active status indicator -->
208
208
  <span class="position-absolute bottom-0 end-0 p-1 bg-success border border-2 border-white avatar avatar-2xs rounded-circle mb-2">
@@ -210,7 +210,7 @@ badges:
210
210
  </span>
211
211
  </div>
212
212
  <div>
213
- <h5 class="mb-1" data-wm-bind="@text user.displayName">Loading...</h5>
213
+ <h5 class="mb-1" data-wm-bind="@text auth.user.displayName">Loading...</h5>
214
214
  <small class="text-muted" id="profile-join-date">Member since Loading...</small>
215
215
  </div>
216
216
  </div>
@@ -130,7 +130,7 @@ web_manager:
130
130
  <h3 class="h5 fw-bold mb-3">Customer Information</h3>
131
131
 
132
132
  <div class="text-center">
133
- Managing order for <strong data-wm-bind="@text user.email"></strong>, <a href="#" id="switch-account">switch account</a>.
133
+ Managing order for <strong data-wm-bind="@text auth.user.email"></strong>, <a href="#" id="switch-account">switch account</a>.
134
134
  </div>
135
135
 
136
136
  <!-- Customer form fields will go here when needed -->
@@ -38,13 +38,13 @@
38
38
  "class": "gradient-animated _animation-wiggle",
39
39
  "icon": "user-plus",
40
40
  "attributes": [
41
- ["data-wm-bind", "@show !user"]
41
+ ["data-wm-bind", "@show !auth.user"]
42
42
  ]
43
43
  },
44
44
  {
45
45
  "type": "account",
46
46
  "attributes": [
47
- ["data-wm-bind", "@show user"],
47
+ ["data-wm-bind", "@show auth.user"],
48
48
  ["hidden", ""]
49
49
  ],
50
50
  "dropdown": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-jekyll-manager",
3
- "version": "0.0.61",
3
+ "version": "0.0.62",
4
4
  "description": "Ultimate Jekyll dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -94,7 +94,7 @@
94
94
  "sass": "^1.93.2",
95
95
  "spellchecker": "^3.7.1",
96
96
  "through2": "^4.0.2",
97
- "web-manager": "file:../web-manager",
97
+ "web-manager": "^4.0.2",
98
98
  "webpack": "^5.101.3",
99
99
  "wonderful-fetch": "^1.3.3",
100
100
  "wonderful-version": "^1.3.2",