Skip to content

Upgrade bootstrap to 5.3.5 and remove ttip package #3336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 26 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.7.2",
"bootstrap": "^3.4.1",
"bootstrap": "^5.3.5",
"brush-cpp": "^4.0.1",
"brush-diff": "^4.0.0",
"brush-javascript": "^4.0.0",
Expand Down
6 changes: 2 additions & 4 deletions root/base/release.tx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@
%% ? '/release/' ~ $release.author ~ '/' ~ $release.name
%% : '/dist/' ~ $release.distribution;
<li class="nav-header no-margin-top">
<div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of [% $release.distribution %] was released.">
<span class="relatize">[% datetime($release.date).to_http %]</span>
</div>
<span>Released <span class="relatize">[% datetime($release.date).to_http %]</span></span>
</li>
%% include inc::release_status { maturity => $release.maturity }
%% block left_nav_lead -> {
Expand Down Expand Up @@ -100,7 +98,7 @@
</li>
%% if defined $distribution.river.bus_factor {
<li>
<div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on [% $release.distribution %] who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
<div title="The # people with an indexing permission on [% $release.distribution %] who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
Bus factor: [% $distribution.river.bus_factor %]
</div>
</li>
Expand Down
4 changes: 2 additions & 2 deletions root/inc/dependencies.tx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<li><a href="/pod/[% $dep %]" title="[% $dep %]" class="ellipsis">[% $dep %]</a></li>
%% }
%% if !$deps.size() && !$release.metadata {
<li><i class="ttip" title="no META file provided">unknown</i></li>
<li><i title="no META file provided">unknown</i></li>
%% }
%% else if $release.metadata.dynamic_config {
<li><i class="ttip" title="dynamic_config enabled">[% $deps.size() ? "and possibly others" : "unknown" %]</i></li>
<li><i title="dynamic_config enabled">[% $deps.size() ? "and possibly others" : "unknown" %]</i></li>
%% }
%% else if !$deps.size() {
<li><i>none</i></li>
Expand Down
3 changes: 0 additions & 3 deletions root/static/js/cpan.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const {
const jQuery = require('jquery');
require('bootstrap/js/dropdown.js');
require('bootstrap/js/modal.js');
require('bootstrap/js/tooltip.js');

function setFavTitle(button) {
button.setAttribute('title', button.classList.contains('active') ? 'Remove from favorites' : 'Add to favorites');
Expand Down Expand Up @@ -104,8 +103,6 @@ function format_string(input_string, replacements) {
// User customisations
processUserData();

jQuery(".ttip").tooltip(); // bootstrap

for (const el of document.querySelectorAll('.keyboard-shortcuts')) {
el.addEventListener('click', e => {
e.preventDefault();
Expand Down
Loading