quasar-framework

Function not recognized by the new Vue Composition API

爷,独闯天下 提交于 2020-06-29 05:44:10
问题 We're trying to convert a simple SFC to use the new Vue CompositionAPI. This code works flawless: export default { data() { return { miniState: true } }, methods: { setMiniState(state) { if (this.$q.screen.width > 1023) { this.miniState = false; } else if (state !== void 0) { this.miniState = state === true } else { this.miniState = true } }, }, watch: { '$q.screen.width'() { this.setMiniState() } } }; Converting this to the new CompostionAPI looks like this: export default defineComponent({

Quasar Framework Uploader with axios

倾然丶 夕夏残阳落幕 提交于 2020-04-06 22:20:11
问题 A question about the quasar framework uploader component. I need to post the images to a URL that will rename the uploaded file and return the full path. I'm using the upload-factory and axios But I'm having problems understanding exactly how to pass the file to axios as if it was just an input type file. Basically I need to make it as If I'm sending a form with a single input file like this: <input type="file" name="banner"> This is the component: <q-uploader url="" extensions=".gif,.jpg,

Quasar Framework Uploader with axios

怎甘沉沦 提交于 2020-04-06 22:18:13
问题 A question about the quasar framework uploader component. I need to post the images to a URL that will rename the uploaded file and return the full path. I'm using the upload-factory and axios But I'm having problems understanding exactly how to pass the file to axios as if it was just an input type file. Basically I need to make it as If I'm sending a form with a single input file like this: <input type="file" name="banner"> This is the component: <q-uploader url="" extensions=".gif,.jpg,

Pattern for firebase onAuthStateChanged & Navigation Guards - Quasar app

老子叫甜甜 提交于 2019-12-11 02:35:31
问题 I am facing an issue in my Quasar app with regards to browser refresh and firebase authentication. After a user logs in and then clicks on the browser refresh, then the firebase.auth().currentUser returns null (as this executes asynchronously). This means that when the beforeEach gets executed the currentUser is null and the user is prompted with the logon page. However I see that when the callback to onAuthStateChanged is getting invoked the user is getting set correctly. Is there any

Any way yet to auto-update (or just clear the cache on) a PWA on iOS?

☆樱花仙子☆ 提交于 2019-12-03 07:50:33
问题 I have been struggling on iOS with something that works easily on Android: Getting my PWA to auto-update when there is a new version. I am not at all sure this is even possible on iOS. I have used vue.js and Quasar to build my app, and everything works out of the box on Android. Here is the (ugly, terrible) way things stand currently on the iOS version: I can check my own server for the version and compare it against the current one stored in my app (in indexedDB) and throw up a notice that

Any way yet to auto-update (or just clear the cache on) a PWA on iOS?

[亡魂溺海] 提交于 2019-12-02 21:18:12
I have been struggling on iOS with something that works easily on Android: Getting my PWA to auto-update when there is a new version. I am not at all sure this is even possible on iOS. I have used vue.js and Quasar to build my app, and everything works out of the box on Android. Here is the (ugly, terrible) way things stand currently on the iOS version: I can check my own server for the version and compare it against the current one stored in my app (in indexedDB) and throw up a notice that there is a new version. So far so good. Other than having the user MANUALLY CLEAR THE SAFARI CACHE (!!)