sgosiaco / wails-template-quasar-js Goto Github PK
View Code? Open in Web Editor NEWA wails template using JavaScript + Quasar V2 (Vue 3, Vite, Sass, Pinia, ESLint, Prettier)
License: MIT License
A wails template using JavaScript + Quasar V2 (Vue 3, Vite, Sass, Pinia, ESLint, Prettier)
License: MIT License
would it going to support wails v3?
Hi @sgosiaco
Thanks for putting this together. I've just (yesterday) discovered Wails, but been using Quasar for a couple of years no, so this is fantastic.
I'm having problems using the wails runtime events though.
At the moment, my initial proof-of-concept page is:
<template>
<q-page class="row items-center justify-evenly"> Dashboard </q-page>
</template>
<script setup lang="ts">
import { onMounted } from 'vue';
onMounted(() => {
try {
window.runtime.EventsOn('test', function (data) {
console.log('Timer', data);
});
} catch (err) {
console.log('Error', err);
}
});
</script>
But windows.runtime is undefined.
I've tried a few things to get round this:
First:
import * as runtime from "../../wailsjs/runtime/runtime"
This results in the EventsOn function failing with: Cannot read properties of undefined (reading 'EventsOnMultiple')
Second:
import than assign to windows:
window.runtime = runtime;```
This results in a recursive loop and maximum call stack reached.
Do you have an example of the runtime being available within Quasar? I've seen a vanilla vue project template as well, and that uses window.runtime but again I can't see any point where the runtime is specifically attached to the window.
Any help would be MUCH appreciated!
Regards,
Andy
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.