-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migracja Bootstrapa do wersji 5 (#1366)
Podsumowanie większości modyfikacji, w zasadniczej części odpowiadających analogicznym zmianom w Bootstrapie: * _Namespacing_ atrybutów (zamiana `data-{toggle,trigger,content,dismiss,target}` na odpowiednio `data-bs-{toggle,trigger,content,dismiss,target}`) oraz zmiennych SCSS (`--red` → `--bs-red` itd.) * Zmiana nomenklatury klas `{float,text}-left` → `{float,text}-start`, `{float,text}-right` → `{float,text}-end`, `ml-X` → `ms-X`, `mr-X` → `me-X` itd. * Zastąpienie dedykowanych klas stylujących `badge-X` (wycofanych) przez bardziej ogólne `bg-X` i ew. `text-Y`, podobnie w nagłówkach niektórych tabel efekt wycofanej `thead-dark` daje teraz `table-dark`. * Zamiana rozmiarów `display-{1,3}` (mocno przedefiniowanych) na odpowiednio `display-{5,6}` (nowo wprowadzone). * Przebudowanie kilku typowych elementów (wycofany `jumbotron` buduje się w BS5 z bardziej ogólnych klas, `accordion` składa się z elementów `accordion-item` a nie `card`, przycisk do zamykania modali w całości zdefiniowany jest stylami i nie potrzeba podawać jego zawartości). * Usunięcie wycofywanych klas `form-row` (zamiana na `row`), `input-group-{append,prepend}` itd. * Okazjonalne poprawki marginesów, które przestały dobrze wyglądać. * Wykorzystanie `bootstrap-print-css` (nowa zależność) dla zachowania styli do druku wycofanych w BS5. * Przekonfigurowanie `fullcalendar`. * Poprawki w kilku kawałkach JS, które przestały działać – w wyborze sali do rezerwacji, wyświetlaniu pytania o zgodę na przetwarzanie danych, i dymkach dla grup z autozapisem. Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: KaMaCH12 <51365804+KaMaCH12@users.noreply.github.com> Co-authored-by: Bartosz Cieślik <Bartosz-lab@users.noreply.github.com> Co-authored-by: Bogusz Kaszowski <bkaszowski@users.noreply.github.com> Co-authored-by: Cezary Świtała <MusicFreak456@users.noreply.github.com> Co-authored-by: Karolina Lubczańska <lubczanska@users.noreply.github.com> Co-authored-by: Hello, Yes, This Is Dog <lgpawel@users.noreply.github.com>
- Loading branch information
1 parent
86e162d
commit e630b44
Showing
73 changed files
with
604 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import $ from "jquery"; | ||
import Popper from "popper.js"; | ||
import * as bootstrap from "bootstrap"; | ||
|
||
(window as any).$ = $; | ||
(window as any).jQuery = $; | ||
(window as any).Popper = Popper; | ||
|
||
import "bootstrap"; | ||
|
||
$(function () { | ||
// Enable Bootstrap popovers on entire site. | ||
$('[data-toggle="popover"]').popover(); | ||
window.addEventListener("load", () => { | ||
Array.from(document.querySelectorAll('[data-bs-toggle="popover"]')).map( | ||
function (popoverTriggerEl) { | ||
return new bootstrap.Popover(popoverTriggerEl); | ||
} | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.