feat: init bootstrap5

This commit is contained in:
Baoshuo Ren 2022-09-23 20:59:22 +08:00
parent a911142fe3
commit 7d9b043cb9
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
7 changed files with 28 additions and 0 deletions

View File

@ -41,13 +41,24 @@
<script type="text/javascript">uojHome = ''; // '<?= HTML::url('/') ?>'</script>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<!-- Bootstrap 5 (CSS) -->
<?= HTML::css_link('/css/bootstrap5.min.css?v=5.2.1') ?>
<!-- Bootstrap Icons -->
<?= HTML::css_link('/css/bootstrap-icons.min.css?v=2022.9.23') ?>
<?php else: ?>
<!-- Bootstrap core CSS -->
<?= HTML::css_link('/css/bootstrap.min.css?v=2019.5.31') ?>
<!-- Bootstrap Glyphicons CSS-->
<?= HTML::css_link('/css/bootstrap-glyphicons.min.css?v=2019.5.31') ?>
<?php endif ?>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<?= HTML::css_link('/css/uoj-bs5.css?v=' . UOJConfig::$data['profile']['css-version']) ?>
<?php else: ?>
<!-- Custom styles for this template -->
<?= HTML::css_link('/css/uoj-theme.css?v=' . UOJConfig::$data['profile']['s2oj-version']) ?>
<?php endif ?>
<!-- jQuery (necessary for Bootstrap\'s JavaScript plugins) -->
<?= HTML::js_src('/js/jquery.min.js') ?>
@ -71,9 +82,13 @@
<?= HTML::js_src('/js/jquery.tagcanvas.min.js') ?>
<?php endif ?>
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
<?= HTML::js_src('/js/bootstrap5.bundle.min.js?v=2022.9.23') ?>
<?php else: ?>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<?= HTML::js_src('/js/popper.min.js?v=2019.5.31') ?>
<?= HTML::js_src('/js/bootstrap.min.js?v=2019.5.31') ?>
<?php endif ?>
<!-- Color converter -->
<?= HTML::js_src('/js/color-converter.min.js') ?>

1
web/css/bootstrap-icons.min.css vendored Normal file

File diff suppressed because one or more lines are too long

6
web/css/bootstrap5.min.css vendored Normal file

File diff suppressed because one or more lines are too long

0
web/css/uoj-bs5.css Normal file
View File

Binary file not shown.

Binary file not shown.

6
web/js/bootstrap5.bundle.min.js vendored Normal file

File diff suppressed because one or more lines are too long