mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
remove bootstrap.js
This commit is contained in:
parent
c459c1cad2
commit
c10467b093
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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
Loading…
Reference in New Issue