Skip to content
Snippets Groups Projects
Commit 19dab41c authored by Pierre-Jean CHANCELLIER's avatar Pierre-Jean CHANCELLIER
Browse files

re-activate tooltips

parent 4809be7f
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,10 @@ $info: #0a8299; ...@@ -47,6 +47,10 @@ $info: #0a8299;
table-layout: fixed; table-layout: fixed;
} }
& > :not(:first-child) {
border-top: none;
}
&.sortable thead { &.sortable thead {
tr { tr {
border-left: 1px solid var(--text-primary-color); border-left: 1px solid var(--text-primary-color);
......
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
</template> </template>
<script> <script>
import Tooltip from "~/node_modules/bootstrap/js/dist/tooltip"
export default { export default {
props: { props: {
textContent: { textContent: {
...@@ -26,14 +28,16 @@ export default { ...@@ -26,14 +28,16 @@ export default {
methods: { methods: {
copyText() { copyText() {
navigator.clipboard.writeText(this.textContent) navigator.clipboard.writeText(this.textContent)
// $("#btncopy").tooltip({ let btn = document.querySelector("#btncopy")
// title: this.$t("copie") + " !", let tooltip = new Tooltip(btn, {
// trigger: "manual" title: this.$t("copie") + " !",
// }) trigger: "manual"
// $("#btncopy").tooltip("show") })
// setTimeout(() => {
// $("#btncopy").tooltip("hide") tooltip.show()
// }, 1000) setTimeout(() => {
tooltip.hide()
}, 1000)
} }
} }
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="card-body"> <div class="card-body">
<div <div
class="uid-wrapper d-flex align-items-center justify-content-between mb-4"> class="uid-wrapper d-flex align-items-center justify-content-between mb-4">
<h2 class="card-title text-center d-flex align-items-center"> <h2 class="h3 card-title text-center d-flex align-items-center">
<span class="text-truncate d-inline-block"> <span class="text-truncate d-inline-block">
{{ hash.uid }} {{ hash.uid }}
</span> </span>
......
import i18n from "./i18n" import i18n from "./i18n"
import webpack from "webpack"
import pkg from "./package.json" import pkg from "./package.json"
export default { export default {
...@@ -31,11 +30,7 @@ export default { ...@@ -31,11 +30,7 @@ export default {
css: ["@/assets/css/style.scss"], css: ["@/assets/css/style.scss"],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [ plugins: ["~plugins/favourites.js", "~plugins/filters.js"],
"~plugins/favourites.js",
"~plugins/filters.js",
{ src: "~/plugins/bootstrap.js", mode: "client" }
],
// Auto import components: https://go.nuxtjs.dev/config-components // Auto import components: https://go.nuxtjs.dev/config-components
components: true, components: true,
......
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<td class="p-0"> <td class="p-0">
<div class="list-group rounded-0"> <div class="list-group rounded-0">
<nuxt-link <nuxt-link
class="list-group-item list-group-item-action border-0 d-flex justify-content-between" class="list-group-item list-group-item-action border-0 d-flex justify-content-between p-3"
:to=" :to="
localePath('/membre/?hash=' + member.member.hash) localePath('/membre/?hash=' + member.member.hash)
" "
......
import bootstrap from "bootstrap"
import Vue from "vue" import Vue from "vue"
import Tooltip from "~/node_modules/bootstrap/js/dist/tooltip"
export default (context, inject) => { export default (context, inject) => {
let liste_favoris = localStorage.favourites let liste_favoris = localStorage.favourites
...@@ -6,20 +7,21 @@ export default (context, inject) => { ...@@ -6,20 +7,21 @@ export default (context, inject) => {
: [] : []
let toggleFavourite = (uid, e) => { let toggleFavourite = (uid, e) => {
// $(e.target).tooltip({ let btn = e.currentTarget
// title: function () { let tooltip = new Tooltip(btn, {
// return context.$favourites.list.includes(uid) title: function () {
// ? context.app.i18n.t("favoris.supprime") return context.$favourites.list.includes(uid)
// : context.app.i18n.t("favoris.enregistre") ? context.app.i18n.t("favoris.supprime")
// }, : context.app.i18n.t("favoris.enregistre")
// html: true, },
// trigger: "manual" html: true,
// }) trigger: "manual"
})
// $(e.target).tooltip("show") tooltip.show()
// setTimeout(() => { setTimeout(() => {
// $(e.target).tooltip("hide") tooltip.hide()
// }, 600) }, 1000)
if (!context.$favourites.list.includes(uid)) { if (!context.$favourites.list.includes(uid)) {
context.$favourites.list.push(uid) context.$favourites.list.push(uid)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment