fix: forgotten Vue inits (#2708)

This commit is contained in:
dni ⚡ 2024-09-25 07:01:11 +02:00 committed by GitHub
parent 1d0547ea97
commit cf2aca3327
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 10 additions and 15 deletions

View file

@ -97,9 +97,9 @@
}
</style>
<script>
new Vue({
window.app = Vue.createApp({
el: '#vue',
mixins: [windowMixin],
mixins: [window.windowMixin],
data: function () {
return {
loginData: {

View file

@ -47,7 +47,7 @@
Vue.component(VueQrcode.name, VueQrcode)
Vue.use(VueQrcodeReader)
new Vue({
window.app = Vue.createApp({
el: '#vue',
config: {
globalProperties: {
@ -55,7 +55,7 @@
msg: 'hello'
}
},
mixins: [windowMixin],
mixins: [window.windowMixin],
data: function () {
return {
isSuperUser: false,

View file

@ -53,10 +53,7 @@ context %} {% block page %}
{% endblock %} {% block scripts %} {{ window_vars(user) }}
<script src="{{ static_url_for('static', 'js/node.js') }}"></script>
<script>
Vue.component(VueQrcode.name, VueQrcode)
Vue.use(VueQrcodeReader)
new Vue({
window.app = Vue.createApp({
el: '#vue',
config: {
globalProperties: {
@ -64,7 +61,7 @@ context %} {% block page %}
msg: 'hello'
}
},
mixins: [windowMixin],
mixins: [window.windowMixin],
data: function () {
return {
isSuperUser: false,

File diff suppressed because one or more lines are too long

View file

@ -329,7 +329,7 @@ window.LNbits = {
401: 'warning',
500: 'negative'
}
Quasar.plugins.Notify.create({
Quasar.Notify.create({
timeout: 5000,
type: types[error.response.status] || 'warning',
message:

View file

@ -1,5 +1,4 @@
<!doctype html>
<html lang="en">
<head>
{% for url in INCLUDED_CSS %}
@ -30,7 +29,6 @@
<link async="async" rel="manifest" href="{{ web_manifest }}" />
{% endif %} {% block head_scripts %}{% endblock %}
</head>
<body data-theme="bitcoin">
<div id="vue">
<q-layout view="hHh lpR lfr" v-cloak>

View file

@ -43,9 +43,9 @@
{% endblock %} {% block scripts %}
<script>
new Vue({
window.app = Vue.createApp({
el: '#vue',
mixins: [windowMixin],
mixins: [window.windowMixin],
data: function () {
return {}
},