remove bootstrap.js

This commit is contained in:
Miao Wang 2024-04-09 00:33:06 +08:00
parent c459c1cad2
commit c10467b093
4 changed files with 4 additions and 10 deletions

View File

@ -31,7 +31,6 @@
<title>{{ page_title }}</title>
{% unless include.nostyle %}
<link rel="stylesheet" href="/static/css/style.css?{{ site.data['hash'] }}">
<script src="/static/js/bootstrap.min.js?{{ site.data['hash'] }}"></script>
<script src="/static/js/webfont.js?{{ site.data['hash'] }}"></script>
<script src="/static/js/thuhidden.js?{{ site.data['hash'] }}"></script>
{% include vite_script.html %}

View File

@ -4,6 +4,7 @@ import { TUNASYNC_JSON_PATH } from "../lib/consts";
import {options as globalOptions} from 'virtual:jekyll-data'
import HelpPages from 'virtual:tuna-help-pages'
import {format as TimeAgoFormat} from 'timeago.js'
import {Popover as BootStrapPopover} from 'bootstrap'
import SearchBox from './SearchBox.vue'
const label_map = globalOptions.label_map;
@ -88,7 +89,7 @@ onMounted(() => {
onUpdated(() => {
Array.from(document.getElementsByClassName('mirror-item-label')).map((el) => {
new bootstrap.Popover(el);
new BootStrapPopover(el);
});
});

View File

@ -1,6 +1,7 @@
import Empty from '../components/Empty.vue'
import IsoModal from '../components/IsoModal.vue'
import MainMirrorList from '../components/MainMirrorList.vue'
import { Modal as BootStrapModal } from 'bootstrap';
import { createApp } from 'vue';
import './default'
import '../styles/main-page.scss'
@ -13,7 +14,7 @@ const isoModalEl = document.getElementById('isoModal');
createApp(IsoModal, {
onReady: async function() {
if (window.location.hash.match(/#iso-download(\?.*)?/)) {
new bootstrap.Modal(isoModalEl).show();
new BootStrapModal(isoModalEl).show();
}
},
}).mount(isoModalEl);

File diff suppressed because one or more lines are too long