mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix(client): use portal-vue for tooltips
This commit is contained in:
parent
ab8cfd0695
commit
239bcfb82e
5 changed files with 4646 additions and 17011 deletions
21635
client/package-lock.json
generated
21635
client/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -10,6 +10,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.21.2",
|
"axios": "^0.21.2",
|
||||||
|
"portal-vue": "^2.1.7",
|
||||||
"vue": "^2.6.12",
|
"vue": "^2.6.12",
|
||||||
"vue-content-loader": "^0.2.3",
|
"vue-content-loader": "^0.2.3",
|
||||||
"vue-meta": "^2.4.0",
|
"vue-meta": "^2.4.0",
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
<SVGContainer />
|
<SVGContainer />
|
||||||
<NotificationsContainer />
|
<NotificationsContainer />
|
||||||
<RunesContainer />
|
<RunesContainer />
|
||||||
|
<portal-target name="tooltip-destination" />
|
||||||
<component :is="layout">
|
<component :is="layout">
|
||||||
<router-view />
|
<router-view />
|
||||||
</component>
|
</component>
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- tooltip content -->
|
<!-- tooltip content -->
|
||||||
|
<portal v-if="isOpen" to="tooltip-destination">
|
||||||
<div
|
<div
|
||||||
v-show="isOpen"
|
v-show="isOpen"
|
||||||
ref="content"
|
ref="content"
|
||||||
|
|
@ -21,6 +22,7 @@
|
||||||
>
|
>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
|
</portal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ import Vue from 'vue'
|
||||||
import VueAxios from './plugins/axios'
|
import VueAxios from './plugins/axios'
|
||||||
import VueMeta from 'vue-meta'
|
import VueMeta from 'vue-meta'
|
||||||
import { VuePlausible } from 'vue-plausible'
|
import { VuePlausible } from 'vue-plausible'
|
||||||
|
import PortalVue from 'portal-vue'
|
||||||
|
|
||||||
|
|
||||||
import '@/assets/css/main.css'
|
import '@/assets/css/main.css'
|
||||||
|
|
@ -19,6 +20,7 @@ Vue.use(VuePlausible, {
|
||||||
})
|
})
|
||||||
Vue.$plausible.enableAutoPageviews()
|
Vue.$plausible.enableAutoPageviews()
|
||||||
Vue.use(VueMeta)
|
Vue.use(VueMeta)
|
||||||
|
Vue.use(PortalVue)
|
||||||
|
|
||||||
Vue.filter('capitalize', (value) => {
|
Vue.filter('capitalize', (value) => {
|
||||||
return value.charAt(0).toUpperCase() + value.slice(1).toLowerCase()
|
return value.charAt(0).toUpperCase() + value.slice(1).toLowerCase()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue