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> </style>
<script> <script>
new Vue({ window.app = Vue.createApp({
el: '#vue', el: '#vue',
mixins: [windowMixin], mixins: [window.windowMixin],
data: function () { data: function () {
return { return {
loginData: { loginData: {

View file

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

View file

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

File diff suppressed because one or more lines are too long

View file

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

View file

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

View file

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