al_folio_core 1.0.10 → 1.0.11
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/_includes/repository/repo.liquid +2 -0
- data/_includes/repository/repo_trophies.liquid +6 -0
- data/_includes/repository/repo_user.liquid +2 -0
- data/_sass/_utilities.scss +35 -1
- data/lib/al_folio_core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a0caf83b1d9690592f8f86b5043c6840a1a3adf995c721dd719661acbdf0655
|
|
4
|
+
data.tar.gz: 45c30b4f1347f32dfa7989d4f8bf05e3cde2b850902ca8a88a90b80c5e44fffe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 577bd3d1712aaa79bc38dbfd052ad54640114543cb06359c746ef4890d1276715e828f8a576a6c8d18422bd59b02cab12c8576f97fd8ac50e26ce8319a1db53b
|
|
7
|
+
data.tar.gz: 2314d6fcb4fa89a1df8df8d11961db663d3737e4cb4e38d60499652b412cd2f01846ec8f529fc54395c17e3eb00145a24372c31af092790dec463d72d88cbdcd
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.11 - 2026-06-02
|
|
4
|
+
|
|
5
|
+
- Added `onerror` handlers to all repository stat-card images (`repo.liquid`, `repo_user.liquid`, `repo_trophies.liquid`). When the external github-readme-stats or github-profile-trophy service is unavailable the entire card is now hidden gracefully instead of showing broken alt-text.
|
|
6
|
+
- Added CSS for `.af-popover` and `.af-tooltip` in `_sass/_utilities.scss`. The vanilla fallback popover/tooltip implementation in `tooltips-setup.js` (used when bootstrap-compat is disabled) creates elements with these class names, but they previously had no positioning or visual styling — making them appear as unstyled, unpositioned text. They are now absolutely positioned, styled with theme colors, and have appropriate z-index.
|
|
7
|
+
|
|
3
8
|
## 1.0.10 - 2026-06-01
|
|
4
9
|
|
|
5
10
|
- Replaced leftover jQuery `$(...)` calls with vanilla JS in the publications "N more authors" expander (`_layouts/bib.liquid`) and the responsive-image `onerror` fallback (`_includes/figure.liquid`). Since jQuery was removed in v1 these threw `ReferenceError: $ is not defined` at runtime — the author list never expanded and the broken-image fallback never ran.
|
|
@@ -37,11 +37,13 @@
|
|
|
37
37
|
class="only-light w-100"
|
|
38
38
|
alt="{{ include.repository }}"
|
|
39
39
|
src="{{ site.external_services.github_readme_stats_url }}/api/pin/?username={{ repo_url[0] }}&repo={{ repo_url[1] }}&theme={{ site.repo_theme_light }}&locale={{ lang }}&show_owner={{ show_owner }}&description_lines_count={{ max_lines }}"
|
|
40
|
+
onerror="this.closest('.repo').style.display='none'"
|
|
40
41
|
>
|
|
41
42
|
<img
|
|
42
43
|
class="only-dark w-100"
|
|
43
44
|
alt="{{ include.repository }}"
|
|
44
45
|
src="{{ site.external_services.github_readme_stats_url }}/api/pin/?username={{ repo_url[0] }}&repo={{ repo_url[1] }}&theme={{ site.repo_theme_dark }}&locale={{ lang }}&show_owner={{ show_owner }}&description_lines_count={{ max_lines }}"
|
|
46
|
+
onerror="this.closest('.repo').style.display='none'"
|
|
45
47
|
>
|
|
46
48
|
</a>
|
|
47
49
|
</div>
|
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
class="only-light"
|
|
6
6
|
alt="{{ include.username }}"
|
|
7
7
|
src="{{ site.external_services.github_profile_trophy_url }}/?username={{ include.username }}&theme={{ site.repo_trophies.theme_light }}&locale={{ site.lang }}&margin-w=15&margin-h=15&no-bg=true&rank=-C&column=6"
|
|
8
|
+
onerror="this.closest('.repo').style.display='none'"
|
|
8
9
|
>
|
|
9
10
|
<img
|
|
10
11
|
class="only-dark"
|
|
11
12
|
alt="{{ include.username }}"
|
|
12
13
|
src="{{ site.external_services.github_profile_trophy_url }}/?username={{ include.username }}&theme={{ site.repo_trophies.theme_dark }}&locale={{ site.lang }}&margin-w=15&margin-h=15&no-bg=true&rank=-C&column=6"
|
|
14
|
+
onerror="this.closest('.repo').style.display='none'"
|
|
13
15
|
>
|
|
14
16
|
</span>
|
|
15
17
|
|
|
@@ -18,11 +20,13 @@
|
|
|
18
20
|
class="only-light"
|
|
19
21
|
alt="{{ include.username }}"
|
|
20
22
|
src="{{ site.external_services.github_profile_trophy_url }}/?username={{ include.username }}&theme={{ site.repo_trophies.theme_light }}&locale={{ site.lang }}&margin-w=15&margin-h=15&no-bg=true&rank=-C&column=4"
|
|
23
|
+
onerror="this.closest('.repo').style.display='none'"
|
|
21
24
|
>
|
|
22
25
|
<img
|
|
23
26
|
class="only-dark"
|
|
24
27
|
alt="{{ include.username }}"
|
|
25
28
|
src="{{ site.external_services.github_profile_trophy_url }}/?username={{ include.username }}&theme={{ site.repo_trophies.theme_dark }}&locale={{ site.lang }}&margin-w=15&margin-h=15&no-bg=true&rank=-C&column=4"
|
|
29
|
+
onerror="this.closest('.repo').style.display='none'"
|
|
26
30
|
>
|
|
27
31
|
</span>
|
|
28
32
|
|
|
@@ -31,11 +35,13 @@
|
|
|
31
35
|
class="only-light"
|
|
32
36
|
alt="{{ include.username }}"
|
|
33
37
|
src="{{ site.external_services.github_profile_trophy_url }}/?username={{ include.username }}&theme={{ site.repo_trophies.theme_light }}&locale={{ site.lang }}&margin-w=15&margin-h=15&no-bg=true&rank=-C&column=3"
|
|
38
|
+
onerror="this.closest('.repo').style.display='none'"
|
|
34
39
|
>
|
|
35
40
|
<img
|
|
36
41
|
class="only-dark"
|
|
37
42
|
alt="{{ include.username }}"
|
|
38
43
|
src="{{ site.external_services.github_profile_trophy_url }}/?username={{ include.username }}&theme={{ site.repo_trophies.theme_dark }}&locale={{ site.lang }}&margin-w=15&margin-h=15&no-bg=true&rank=-C&column=3"
|
|
44
|
+
onerror="this.closest('.repo').style.display='none'"
|
|
39
45
|
>
|
|
40
46
|
</span>
|
|
41
47
|
</a>
|
|
@@ -24,11 +24,13 @@
|
|
|
24
24
|
class="only-light w-100"
|
|
25
25
|
alt="{{ include.username }}"
|
|
26
26
|
src="{{ site.external_services.github_readme_stats_url }}/api/?username={{ include.username }}&theme={{ site.repo_theme_light }}&locale={{ lang }}&show_icons=true"
|
|
27
|
+
onerror="this.closest('.repo').style.display='none'"
|
|
27
28
|
>
|
|
28
29
|
<img
|
|
29
30
|
class="only-dark w-100"
|
|
30
31
|
alt="{{ include.username }}"
|
|
31
32
|
src="{{ site.external_services.github_readme_stats_url }}/api/?username={{ include.username }}&theme={{ site.repo_theme_dark }}&locale={{ lang }}&show_icons=true"
|
|
33
|
+
onerror="this.closest('.repo').style.display='none'"
|
|
32
34
|
>
|
|
33
35
|
</a>
|
|
34
36
|
</div>
|
data/_sass/_utilities.scss
CHANGED
|
@@ -530,7 +530,41 @@ table[data-toggle="table"].af-table-enhanced tbody tr.af-row-selected {
|
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
|
|
533
|
-
//
|
|
533
|
+
// Vanilla fallback popovers/tooltips (created by tooltips-setup.js when
|
|
534
|
+
// bootstrap-compat is not loaded). These need position + styling so they
|
|
535
|
+
// appear correctly above their trigger elements.
|
|
536
|
+
|
|
537
|
+
.af-popover {
|
|
538
|
+
position: absolute;
|
|
539
|
+
z-index: 1070;
|
|
540
|
+
max-width: 276px;
|
|
541
|
+
padding: 0.5rem 0.75rem;
|
|
542
|
+
background-color: var(--global-bg-color);
|
|
543
|
+
border: 1px solid var(--global-divider-color);
|
|
544
|
+
border-radius: 0.375rem;
|
|
545
|
+
color: var(--global-text-color);
|
|
546
|
+
font-size: 0.875rem;
|
|
547
|
+
line-height: 1.5;
|
|
548
|
+
white-space: pre-line;
|
|
549
|
+
word-wrap: break-word;
|
|
550
|
+
box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
|
|
551
|
+
pointer-events: none;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.af-tooltip {
|
|
555
|
+
position: absolute;
|
|
556
|
+
z-index: 1080;
|
|
557
|
+
padding: 0.25rem 0.5rem;
|
|
558
|
+
background-color: rgba(0, 0, 0, 0.85);
|
|
559
|
+
border-radius: 0.25rem;
|
|
560
|
+
color: #fff;
|
|
561
|
+
font-size: 0.8125rem;
|
|
562
|
+
max-width: 200px;
|
|
563
|
+
word-wrap: break-word;
|
|
564
|
+
pointer-events: none;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
// Bootstrap popover theming (used when bootstrap-compat is enabled)
|
|
534
568
|
|
|
535
569
|
.popover {
|
|
536
570
|
background-color: var(--global-bg-color);
|