File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed
Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 11# Git-Analytics
22
3- [ ![ PyPI] ( https://img.shields.io/pypi/v/git-analytics.svg )] ( https://pypi.org/project/git-analytics/ )
3+ [ ![ PyPI] ( https://img.shields.io/pypi/v/git-analytics.svg?color=green )] ( https://pypi.org/project/git-analytics/ )
44[ ![ Python Versions] ( https://img.shields.io/pypi/pyversions/git-analytics.svg )] ( https://pypi.org/project/git-analytics/ )
55[ ![ code quality check] ( https://github.com/n0rfas/git-analytics/actions/workflows/code-check-dev.yml/badge.svg?branch=dev )] ( https://github.com/n0rfas/git-analytics/tree/dev )
66[ ![ python versions check] ( https://github.com/n0rfas/git-analytics/actions/workflows/python-matrix-main.yml/badge.svg?branch=main )] ( https://github.com/n0rfas/git-analytics/tree/main )
Original file line number Diff line number Diff line change @@ -168,5 +168,18 @@ <h1 class="h3 mb-4">Other statistics</h1>
168168 < script src ="js/bootstrap.bundle.min.js "> </ script >
169169 < script src ="js/chart.umd.min.js "> </ script >
170170 < script src ="js/git-analytics.js "> </ script >
171+
172+ <!-- Loading Modal -->
173+ < div class ="modal fade " id ="loadingModal " tabindex ="-1 " aria-hidden ="true " data-bs-backdrop ="static " data-bs-keyboard ="false ">
174+ < div class ="modal-dialog modal-dialog-centered ">
175+ < div class ="modal-content text-center ">
176+ < div class ="modal-body ">
177+ < div class ="spinner-border text-primary mb-3 " role ="status "> </ div >
178+ < p class ="mb-0 "> < strong > Analyzing repository. Please wait...</ strong > </ p >
179+ </ div >
180+ </ div >
181+ </ div >
182+ </ div >
183+
171184</ body >
172185</ html >
Original file line number Diff line number Diff line change @@ -392,7 +392,11 @@ async function fetchStatistics() {
392392
393393 document . addEventListener ( "DOMContentLoaded" , async ( ) => {
394394 try {
395+ const modalEl = document . getElementById ( "loadingModal" ) ;
396+ const modal = new bootstrap . Modal ( modalEl , { backdrop : "static" , keyboard : false } ) ;
397+ modal . show ( ) ;
395398 const stats = await fetchStatistics ( ) ;
399+ modal . hide ( ) ;
396400 const authorsData = stats . authors_statistics . authors ;
397401 renderSummary ( stats ) ;
398402 buildAuthorsChart ( authorsData ) ;
You can’t perform that action at this time.
0 commit comments