From f9d4863e65e686fa4dddb8b488cc7510e357dab0 Mon Sep 17 00:00:00 2001 From: Niklas Sombert Date: Tue, 13 Aug 2024 20:13:49 +0200 Subject: [PATCH] Remove bootstrap-vue-next to fix the dropdowns This was broken in the upgrade to Vue 3, whoops. --- package.json | 2 +- src/static/bootstrap-vue.css | 1 - src/static/bootstrap-vue.js | 1 - src/static/bootstrap-vue.js.map | 1 - src/static/bootstrap.js | 1 + src/static/bootstrap.js.map | 1 + src/static/bootstrap.min.js | 1 + src/static/bootstrap.min.js.map | 1 + src/static/host_check.js | 1 - src/static/main.js | 5 +++++ src/static/popper.js | 1 + src/static/popper.js.map | 1 + src/static/popper.min.js | 1 + src/static/popper.min.js.map | 1 + src/static/talks.js | 1 - src/templates/base.html.j2 | 4 ++-- src/templates/host_action.html.j2 | 4 ++-- src/templates/macros_talks.html.j2 | 29 ++++++++++++++++++----------- yarn.lock | 10 +++++----- 19 files changed, 41 insertions(+), 26 deletions(-) delete mode 120000 src/static/bootstrap-vue.css delete mode 120000 src/static/bootstrap-vue.js delete mode 120000 src/static/bootstrap-vue.js.map create mode 120000 src/static/bootstrap.js create mode 120000 src/static/bootstrap.js.map create mode 120000 src/static/bootstrap.min.js create mode 120000 src/static/bootstrap.min.js.map create mode 120000 src/static/popper.js create mode 120000 src/static/popper.js.map create mode 120000 src/static/popper.min.js create mode 120000 src/static/popper.min.js.map diff --git a/package.json b/package.json index 324b9ec..6655246 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "private": true, "dependencies": { "bootstrap": "^5", - "bootstrap-vue-next": "^0.24", + "@popperjs/core": "^2", "raven-js": "^3.27.0", "vue": "^3", "vue-sse": "^2.5.2" diff --git a/src/static/bootstrap-vue.css b/src/static/bootstrap-vue.css deleted file mode 120000 index 39d53a8..0000000 --- a/src/static/bootstrap-vue.css +++ /dev/null @@ -1 +0,0 @@ -../../node_modules/bootstrap-vue-next/dist/bootstrap-vue-next.css \ No newline at end of file diff --git a/src/static/bootstrap-vue.js b/src/static/bootstrap-vue.js deleted file mode 120000 index deadfbf..0000000 --- a/src/static/bootstrap-vue.js +++ /dev/null @@ -1 +0,0 @@ -../../node_modules/bootstrap-vue-next/dist/bootstrap-vue-next.umd.js \ No newline at end of file diff --git a/src/static/bootstrap-vue.js.map b/src/static/bootstrap-vue.js.map deleted file mode 120000 index e155b1b..0000000 --- a/src/static/bootstrap-vue.js.map +++ /dev/null @@ -1 +0,0 @@ -../../node_modules/bootstrap-vue-next/dist/bootstrap-vue-next.umd.js.map \ No newline at end of file diff --git a/src/static/bootstrap.js b/src/static/bootstrap.js new file mode 120000 index 0000000..188e26e --- /dev/null +++ b/src/static/bootstrap.js @@ -0,0 +1 @@ +../../node_modules/bootstrap/dist/js/bootstrap.js \ No newline at end of file diff --git a/src/static/bootstrap.js.map b/src/static/bootstrap.js.map new file mode 120000 index 0000000..3af1253 --- /dev/null +++ b/src/static/bootstrap.js.map @@ -0,0 +1 @@ +../../node_modules/bootstrap/dist/js/bootstrap.js.map \ No newline at end of file diff --git a/src/static/bootstrap.min.js b/src/static/bootstrap.min.js new file mode 120000 index 0000000..e734ff9 --- /dev/null +++ b/src/static/bootstrap.min.js @@ -0,0 +1 @@ +../../node_modules/bootstrap/dist/js/bootstrap.min.js \ No newline at end of file diff --git a/src/static/bootstrap.min.js.map b/src/static/bootstrap.min.js.map new file mode 120000 index 0000000..6b00217 --- /dev/null +++ b/src/static/bootstrap.min.js.map @@ -0,0 +1 @@ +../../node_modules/bootstrap/dist/js/bootstrap.min.js.map \ No newline at end of file diff --git a/src/static/host_check.js b/src/static/host_check.js index 7cd4319..de716f1 100644 --- a/src/static/host_check.js +++ b/src/static/host_check.js @@ -174,6 +174,5 @@ var checkApp = Vue.createApp({ }); window.onload = function() { - checkApp.use(window["bootstrap-vue-next"].createBootstrap()); checkApp.mount("#check-status"); } diff --git a/src/static/main.js b/src/static/main.js index f8b9a2d..a3ebddc 100644 --- a/src/static/main.js +++ b/src/static/main.js @@ -5,3 +5,8 @@ function mediaQueryUpdated(mq) { } mediaQuery.addListener(mediaQueryUpdated); mediaQueryUpdated(mediaQuery); + +[...document.querySelectorAll('[data-bs-toggle="tooltip"]')] + .forEach(el => new bootstrap.Tooltip(el)); +[...document.querySelectorAll('[data-bs-toggle="popover"]')] + .forEach(el => new bootstrap.Popover(el)); diff --git a/src/static/popper.js b/src/static/popper.js new file mode 120000 index 0000000..3172d0e --- /dev/null +++ b/src/static/popper.js @@ -0,0 +1 @@ +../../node_modules/@popperjs/core/dist/umd/popper.js \ No newline at end of file diff --git a/src/static/popper.js.map b/src/static/popper.js.map new file mode 120000 index 0000000..b445e2b --- /dev/null +++ b/src/static/popper.js.map @@ -0,0 +1 @@ +../../node_modules/@popperjs/core/dist/umd/popper.js.map \ No newline at end of file diff --git a/src/static/popper.min.js b/src/static/popper.min.js new file mode 120000 index 0000000..e045527 --- /dev/null +++ b/src/static/popper.min.js @@ -0,0 +1 @@ +../../node_modules/@popperjs/core/dist/umd/popper.min.js \ No newline at end of file diff --git a/src/static/popper.min.js.map b/src/static/popper.min.js.map new file mode 120000 index 0000000..b2f5a54 --- /dev/null +++ b/src/static/popper.min.js.map @@ -0,0 +1 @@ +../../node_modules/@popperjs/core/dist/umd/popper.min.js.map \ No newline at end of file diff --git a/src/static/talks.js b/src/static/talks.js index a7c8eea..0379b79 100644 --- a/src/static/talks.js +++ b/src/static/talks.js @@ -251,6 +251,5 @@ var talksApp = Vue.createApp({ window.onload = function() { talksApp.use(VueSSE); - talksApp.use(window["bootstrap-vue-next"].createBootstrap()); talksApp.mount("#talks"); } diff --git a/src/templates/base.html.j2 b/src/templates/base.html.j2 index b658695..859e8f1 100644 --- a/src/templates/base.html.j2 +++ b/src/templates/base.html.j2 @@ -4,7 +4,6 @@ {% block title %}{% endblock %} - Freitagsfoo - @@ -53,7 +52,8 @@ freitagsfoo-web {{ REVISION }} - + + diff --git a/src/templates/host_action.html.j2 b/src/templates/host_action.html.j2 index e299b05..9ae01e7 100644 --- a/src/templates/host_action.html.j2 +++ b/src/templates/host_action.html.j2 @@ -66,12 +66,12 @@
- ? + ?
- ? + ?
diff --git a/src/templates/macros_talks.html.j2 b/src/templates/macros_talks.html.j2 index d068363..b942fc3 100644 --- a/src/templates/macros_talks.html.j2 +++ b/src/templates/macros_talks.html.j2 @@ -46,19 +46,26 @@ -
- - - {{ input.name }} - - - (no input) - - - +
+ diff --git a/yarn.lock b/yarn.lock index 54ae5aa..c1ae1b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -33,6 +33,11 @@ resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a" integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== +"@popperjs/core@^2": + version "2.11.8" + resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.8.tgz#6b79032e760a0899cd4204710beede972a3a185f" + integrity sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A== + "@vue/compiler-core@3.4.37": version "3.4.37" resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.4.37.tgz#55db3900e09424c65c39111a05a3c6e698f371e3" @@ -113,11 +118,6 @@ resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.4.37.tgz#4f4c08a2e73da512a77b47165cf59ffbc1b5ade8" integrity sha512-nIh8P2fc3DflG8+5Uw8PT/1i17ccFn0xxN/5oE9RfV5SVnd7G0XEFRwakrnNFE/jlS95fpGXDVG5zDETS26nmg== -bootstrap-vue-next@^0.24: - version "0.24.6" - resolved "https://registry.yarnpkg.com/bootstrap-vue-next/-/bootstrap-vue-next-0.24.6.tgz#b6c8fef326806244e0608753ff16ad4381133a76" - integrity sha512-G38cI/pUHnGxKE9brEuIedc5dp112rZcK+3zeBkZbNh7UNyVHegj9uz9xabO1WQLw9gxq61FhSTtYqRCOfPGfg== - bootstrap@^5: version "5.3.3" resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-5.3.3.tgz#de35e1a765c897ac940021900fcbb831602bac38"