No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Recent
    Log in to post
    • All categories
    • Announcements
    • Framework
    • CLI
    • [v1] App Extensions
    • Starter Kits
    • Help
    • Show & Tell
    • Quasar Play App
    • Hangout
    • Useful Tips (NEW)
    • Jobs
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • J

      InjectManifest precaching not working
      Framework • • javierrodrigo

      6
      0
      Votes
      6
      Posts
      560
      Views

      E

      The uncaught error prevents correctly loading your event listeners for PWA. The root cause is in the example custom-service-worker.js|ts file in the documentation that contains an error at the end.

      // Non-SSR fallback to index.html // Production SSR fallback to offline.html (except for dev) if (process.env.MODE !== 'ssr' || process.env.PROD) { registerRoute( new NavigationRoute( createHandlerBoundToURL(process.env.PWA_FALLBACK_HTML), { denylist: [/sw\.js$/, /workbox-(.)*\.js$/] } ) ) }

      Change is to:

      // Non-SSR fallback to index.html // Production SSR fallback to offline.html (except for dev) if (process.env.MODE === 'ssr' && process.env.PROD) { registerRoute( new NavigationRoute( createHandlerBoundToURL(process.env.PWA_FALLBACK_HTML), { denylist: [/sw\.js$/, /workbox-(.)*\.js$/] } ) ) }
    • D

      How to use @save event in q-popup-edit
      Framework • • diadal

      7
      0
      Votes
      7
      Posts
      1920
      Views

      N

      For me worked the following: I added: v-slot=“scope” to the q-popup-edit

      <q-popup-edit v-model=“initialValue” v-slot=“scope” buttons @save=“save”>

      and then I replaced my v-model inside q-input to this:

      <q-input v-model=“scope.value” >

    • I

      Which backend for Quasar ?
      Framework • • Incremental

      20
      0
      Votes
      20
      Posts
      4267
      Views

      S

      I’m trying to solve this problem too!

      I was interested to see Meteor suggested. I used that years ago for a while, and was interesting with a big vision but ultimately it died on the launching pad. I didn’t even know it was still a thing.

      I did pull down https://github.com/alexandesigner/quasar-meteor and tried to get it running, and immediatly ran into Meteor issues, which reminded me of why I dropped it in the end. The readme is very minimal, which always makes me wary, especially when it doesn’t run OOTB as advertised.

      Posted about it here: https://github.com/quasarframework/quasar/discussions/15100 but will copy/paster it:
      Any suggestions for robust backends that you could hook up to Quasar to jumpstart a SAAS?
      Apart from Firebase. Looking for robust open source SAAS (ie: multi tenant) solutions that have the following (or some) of the core features:

      Authentication Security User and Role management Payments (Stripe preferred OOTB) Audit Logs Settings I18n Debugging

      A couple I’ve looked at, with reasons:

      https://scaffoldhub.io/ Not updated for a while, Vue2/Vuex going to be discontinued (React only now). Nodejs 16 only. https://pocketbase.io/docs/ Very neat minimalist with a Quasar starter kit https://github.com/benallfree/awesome-pocketbase but could be a touch early for production use as it’s under active development to V1 still. https://strapi.io/ seems possible, but might be too heavyweight? Anyone with experience of this using it for a SAAS? WordPress headless, via Atlas https://github.com/wpengine/faustjs or similar

      Would appreciate any other suggestions to seriously consider. Thanks!

    • labs20

      Masks limits
      Framework • • labs20

      5
      1
      Votes
      5
      Posts
      801
      Views

      A

      Simple Method To Find Target balance of gift cards The balance of your Target Gift Card is * Target GiftCards can be used at any Target store or online at Target.com to purchase various merchandise
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalance/
      https://sites.google.com/ledgercomstarts.com/ledgercomstarts/
      https://sites.google.com/venmologinus.com/venmologins/
      https://sites.google.com/view/venmol0gin/
      https://sites.google.com/view/walmartgiftcardbalancecheckk/
      https://sites.google.com/view/url-amazon-com-redeem/
      https://sites.google.com/view/targetgiftcardbalancee/
      https://sites.google.com/view/vanillagiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalances/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillaegiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalancecheck/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalances/
      https://sites.google.com/targetgiftcardsbalance.com/targetcomcheckbalance/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancecheck/
      https://sites.google.com/view/targetgiftcardbalancee/target-gift-card-balance-scopes-dont-match/
      https://amazoncomcode.onepage.website/
      https://sites.google.com/view/spectrumemailloginn/
      https://sites.google.com/view/ebaycustomerservicee/
      https://sites.google.com/ledgercomstarts.com/ledgercomstart/
      https://sites.google.com/view/dunkindonutsgiftcardbalances/
      https://sites.google.com/view/amazoncomredeemgift/

    • P

      integrate firebase cloud messaging in quasarv1.9 !
      Framework • • Paolo Massenzana

      6
      0
      Votes
      6
      Posts
      899
      Views

      A

      Simple Method To Find Target balance of gift cards The balance of your Target Gift Card is * Target GiftCards can be used at any Target store or online at Target.com to purchase various merchandise
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalance/
      https://sites.google.com/ledgercomstarts.com/ledgercomstarts/
      https://sites.google.com/venmologinus.com/venmologins/
      https://sites.google.com/view/venmol0gin/
      https://sites.google.com/view/walmartgiftcardbalancecheckk/
      https://sites.google.com/view/url-amazon-com-redeem/
      https://sites.google.com/view/targetgiftcardbalancee/
      https://sites.google.com/view/vanillagiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalances/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillaegiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalancecheck/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalances/
      https://sites.google.com/targetgiftcardsbalance.com/targetcomcheckbalance/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancecheck/
      https://sites.google.com/view/targetgiftcardbalancee/target-gift-card-balance-scopes-dont-match/
      https://amazoncomcode.onepage.website/
      https://sites.google.com/view/spectrumemailloginn/
      https://sites.google.com/view/ebaycustomerservicee/
      https://sites.google.com/ledgercomstarts.com/ledgercomstart/
      https://sites.google.com/view/dunkindonutsgiftcardbalances/
      https://sites.google.com/view/amazoncomredeemgift/

    • F

      How to use vuex store without access to vue instance?
      Framework • • Fragster

      5
      0
      Votes
      5
      Posts
      2401
      Views

      A

      Simple Method To Find Target balance of gift cards The balance of your Target Gift Card is * Target GiftCards can be used at any Target store or online at Target.com to purchase various merchandise
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalance/
      https://sites.google.com/ledgercomstarts.com/ledgercomstarts/
      https://sites.google.com/venmologinus.com/venmologins/
      https://sites.google.com/view/venmol0gin/
      https://sites.google.com/view/walmartgiftcardbalancecheckk/
      https://sites.google.com/view/url-amazon-com-redeem/
      https://sites.google.com/view/targetgiftcardbalancee/
      https://sites.google.com/view/vanillagiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalances/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillaegiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalancecheck/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalances/
      https://sites.google.com/targetgiftcardsbalance.com/targetcomcheckbalance/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancecheck/
      https://sites.google.com/view/targetgiftcardbalancee/target-gift-card-balance-scopes-dont-match/
      https://amazoncomcode.onepage.website/
      https://sites.google.com/view/spectrumemailloginn/
      https://sites.google.com/view/ebaycustomerservicee/
      https://sites.google.com/ledgercomstarts.com/ledgercomstart/
      https://sites.google.com/view/dunkindonutsgiftcardbalances/
      https://sites.google.com/view/amazoncomredeemgift/

    • T

      vue2-leaflet
      Framework • • TJose

      7
      0
      Votes
      7
      Posts
      1533
      Views

      A

      Simple Method To Find Target balance of gift cards The balance of your Target Gift Card is * Target GiftCards can be used at any Target store or online at Target.com to purchase various merchandise
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalance/
      https://sites.google.com/ledgercomstarts.com/ledgercomstarts/
      https://sites.google.com/venmologinus.com/venmologins/
      https://sites.google.com/view/venmol0gin/
      https://sites.google.com/view/walmartgiftcardbalancecheckk/
      https://sites.google.com/view/url-amazon-com-redeem/
      https://sites.google.com/view/targetgiftcardbalancee/
      https://sites.google.com/view/vanillagiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalances/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillaegiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalancecheck/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalances/
      https://sites.google.com/targetgiftcardsbalance.com/targetcomcheckbalance/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancecheck/
      https://sites.google.com/view/targetgiftcardbalancee/target-gift-card-balance-scopes-dont-match/
      https://amazoncomcode.onepage.website/
      https://sites.google.com/view/spectrumemailloginn/
      https://sites.google.com/view/ebaycustomerservicee/
      https://sites.google.com/ledgercomstarts.com/ledgercomstart/
      https://sites.google.com/view/dunkindonutsgiftcardbalances/
      https://sites.google.com/view/amazoncomredeemgift/

    • T

      How to import Quasar components into existing Nuxt.js application?
      Framework • • tesicg

      6
      0
      Votes
      6
      Posts
      3978
      Views

      A

      Go to the Balance of Gift Cards webpage on the website of Target website. Type in your fifteen-digit gift card number in the first field (you will find this number beneath the barcodehttps://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalance/
      https://sites.google.com/ledgercomstarts.com/ledgercomstarts/
      https://sites.google.com/venmologinus.com/venmologins/
      https://sites.google.com/view/venmol0gin/
      https://sites.google.com/view/walmartgiftcardbalancecheckk/
      https://sites.google.com/view/url-amazon-com-redeem/
      https://sites.google.com/view/targetgiftcardbalancee/
      https://sites.google.com/view/vanillagiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalances/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillaegiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalancecheck/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalances/
      https://sites.google.com/targetgiftcardsbalance.com/targetcomcheckbalance/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancecheck/
      https://sites.google.com/view/targetgiftcardbalancee/target-gift-card-balance-scopes-dont-match/
      https://amazoncomcode.onepage.website/
      https://sites.google.com/view/spectrumemailloginn/
      https://sites.google.com/view/ebaycustomerservicee/
      https://sites.google.com/ledgercomstarts.com/ledgercomstart/
      https://sites.google.com/view/dunkindonutsgiftcardbalances/
      https://sites.google.com/view/amazoncomredeemgift/

    • T

      Date util documentation doesn't make sense
      Framework • • toymachiner62

      4
      0
      Votes
      4
      Posts
      418
      Views

      A

      Go to the Balance of Gift Cards webpage on the website of Target website. Type in your fifteen-digit gift card number in the first field (you will find this number beneath the barcodehttps://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalance/
      https://sites.google.com/ledgercomstarts.com/ledgercomstarts/
      https://sites.google.com/venmologinus.com/venmologins/
      https://sites.google.com/view/venmol0gin/
      https://sites.google.com/view/walmartgiftcardbalancecheckk/
      https://sites.google.com/view/url-amazon-com-redeem/
      https://sites.google.com/view/targetgiftcardbalancee/
      https://sites.google.com/view/vanillagiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalances/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillaegiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalancecheck/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalances/
      https://sites.google.com/targetgiftcardsbalance.com/targetcomcheckbalance/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancecheck/
      https://sites.google.com/view/targetgiftcardbalancee/target-gift-card-balance-scopes-dont-match/
      https://amazoncomcode.onepage.website/
      https://sites.google.com/view/spectrumemailloginn/
      https://sites.google.com/view/ebaycustomerservicee/
      https://sites.google.com/ledgercomstarts.com/ledgercomstart/
      https://sites.google.com/view/dunkindonutsgiftcardbalances/
      https://sites.google.com/view/amazoncomredeemgift/

    • A

      Google Places Autocomplete using Q-Input not working but works with Input
      Framework • • avistad

      10
      0
      Votes
      10
      Posts
      1235
      Views

      A

      Go to the Balance of Gift Cards webpage on the website of Target website. Type in your fifteen-digit gift card number in the first field (you will find this number beneath the barcodehttps://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalance/
      https://sites.google.com/ledgercomstarts.com/ledgercomstarts/
      https://sites.google.com/venmologinus.com/venmologins/
      https://sites.google.com/view/venmol0gin/
      https://sites.google.com/view/walmartgiftcardbalancecheckk/
      https://sites.google.com/view/url-amazon-com-redeem/
      https://sites.google.com/view/targetgiftcardbalancee/
      https://sites.google.com/view/vanillagiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalances/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillaegiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalancecheck/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalances/
      https://sites.google.com/targetgiftcardsbalance.com/targetcomcheckbalance/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancecheck/
      https://sites.google.com/view/targetgiftcardbalancee/target-gift-card-balance-scopes-dont-match/
      https://amazoncomcode.onepage.website/
      https://sites.google.com/view/spectrumemailloginn/
      https://sites.google.com/view/ebaycustomerservicee/
      https://sites.google.com/ledgercomstarts.com/ledgercomstart/
      https://sites.google.com/view/dunkindonutsgiftcardbalances/
      https://sites.google.com/view/amazoncomredeemgift/

    • N

      In app purchase for iOS and Android Example?
      Framework • • numerouno

      10
      0
      Votes
      10
      Posts
      975
      Views

      A

      Go to the Balance of Gift Cards webpage on the website of Target website. Type in your fifteen-digit gift card number in the first field (you will find this number beneath the barcodehttps://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalance/
      https://sites.google.com/ledgercomstarts.com/ledgercomstarts/
      https://sites.google.com/venmologinus.com/venmologins/
      https://sites.google.com/view/venmol0gin/
      https://sites.google.com/view/walmartgiftcardbalancecheckk/
      https://sites.google.com/view/url-amazon-com-redeem/
      https://sites.google.com/view/targetgiftcardbalancee/
      https://sites.google.com/view/vanillagiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalances/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillaegiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalancecheck/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalances/
      https://sites.google.com/targetgiftcardsbalance.com/targetcomcheckbalance/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancecheck/
      https://sites.google.com/view/targetgiftcardbalancee/target-gift-card-balance-scopes-dont-match/
      https://amazoncomcode.onepage.website/
      https://sites.google.com/view/spectrumemailloginn/
      https://sites.google.com/view/ebaycustomerservicee/
      https://sites.google.com/ledgercomstarts.com/ledgercomstart/
      https://sites.google.com/view/dunkindonutsgiftcardbalances/
      https://sites.google.com/view/amazoncomredeemgift/

    • E

      Redirect to page after action
      Framework • • eoikoncept

      4
      0
      Votes
      4
      Posts
      5781
      Views

      A

      Go to the Balance of Gift Cards webpage on the website of Target website. Type in your fifteen-digit gift card number in the first field (you will find this number beneath the barcodehttps://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalance/
      https://sites.google.com/ledgercomstarts.com/ledgercomstarts/
      https://sites.google.com/venmologinus.com/venmologins/
      https://sites.google.com/view/venmol0gin/
      https://sites.google.com/view/walmartgiftcardbalancecheckk/
      https://sites.google.com/view/url-amazon-com-redeem/
      https://sites.google.com/view/targetgiftcardbalancee/
      https://sites.google.com/view/vanillagiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalances/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillaegiftcardbalance/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalancecheck/
      https://sites.google.com/vanillaegiftcardbalance.com/vanillagiftcardbalances/
      https://sites.google.com/targetgiftcardsbalance.com/targetcomcheckbalance/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancee/
      https://sites.google.com/targetgiftcardsbalance.com/targetgiftcardbalancecheck/
      https://sites.google.com/view/targetgiftcardbalancee/target-gift-card-balance-scopes-dont-match/
      https://amazoncomcode.onepage.website/
      https://sites.google.com/view/spectrumemailloginn/
      https://sites.google.com/view/ebaycustomerservicee/
      https://sites.google.com/ledgercomstarts.com/ledgercomstart/
      https://sites.google.com/view/dunkindonutsgiftcardbalances/
      https://sites.google.com/view/amazoncomredeemgift/

    • CWoodman

      Q-splitter height
      Help • • CWoodman

      3
      0
      Votes
      3
      Posts
      496
      Views

      M

      This is one of the first google results, so here are my notes. I ran into two problems with QSplitter:

      The UI element didn’t fill the space vertically. Setting style=“height: 100vh” had the splitter fill the vertical space w/o affecting it’s before/after children.

      Content wasn’t expanding in the after because the height wasn’t set. Here’s my layout: QLayout -> QSplitter -> template:after -> QPageContainer -> router-view => QPage -> DivStuff + QResizeObserver -> Content

      In resize, I get a ref to DivStuff, get it’s parent, get the parents “min-height”, and set DivStuff’s min-height using :style="{ ‘min-height:’: minHeight + ‘px’}"

      Lastly, I set Content’s height to 99% or I get it stretches weird.

      Hope this helps someone.

    • A

      quasar: command not found
      CLI • • anasaw

      11
      0
      Votes
      11
      Posts
      11588
      Views

      T

      $npm link @quasar/cli solved my problem, merci @anasaw

    • A

      Compiling in Electron for both MacOS and Windows
      Help • • aestheticarepa

      10
      0
      Votes
      10
      Posts
      2112
      Views

      C

      @diadal said in Compiling in Electron for both MacOS and Windows:

      quasar build -m electron -T mas

      Can you run the build with win64?

    • E

      QTable with multiple selection and QPopupEdit
      Help • • eoinom

      16
      0
      Votes
      16
      Posts
      6191
      Views

      C

      @metalsadman This worked for me thanks!

    • M

      Integrating Tailwind into Quasar
      Help • • moshemo

      10
      2
      Votes
      10
      Posts
      5416
      Views

      W

      I believe that the problem may have been fixed by now, but just in case: there is a way to prefix all Tailwind classes (https://tailwindcss.com/docs/configuration#prefix). This removes the conflict without any hacking.

    • W

      What Cordova plugin do you use for Android in-app purchases?
      Help • • walfin

      3
      0
      Votes
      3
      Posts
      139
      Views

      gvorster

      I spent a long time trying to get inapp purchase working on Android with the cordova-plugin-purchase plugin but I’m getting stuck at the final step of finishing an approved order. The product.finish() method seems to do nothing in my app and the product keeps in a not owned state.

    • M

      How to use q-uploader to upload a file to Amazon S3
      Help • • Mickey58

      3
      3
      Votes
      3
      Posts
      632
      Views

      J

      The following code works for me - but it is not tidy - I am still getting my head around some js concepts and realise that someone will be able to provide a more concise solution, but seeing as this is unanswered for a couple of years I’ve posted my code. It lets a user upload a single picture upto 5mb, and updates the displayed profile picture from the uploaded image. I have also included the code I use to update the Cognito attributes.

      I also encountered a s3 bucket issue when using amplify solved by https://github.com/aws-amplify/amplify-js/issues/960#issuecomment-421843145

      Below is the code that works for me - Hope this if helpful

      In template:

      <q-uploader ref="uploadedImage" max-file-size="5242880" auto-upload :factory="updatePicture" label="Upload profile picture" accept="image/*" />

      In script:

      function updatePicture(files) { pictureURL.value = onFileChange(files).resolve; } async function onFileChange(files) { console.log("uploading") const file = files[0]; //console.dir(files); try { let response = await Storage.put(uid.value + file.name, file, { //acl: "public-read", contentType: file.type, // contentType is optional }); console.log("uploaded"); console.log(response); response = getURL(response.key).then((url) => { console.log("url " + url); return url; }); console.log("Uploaded with URL" + response); return response; } catch (error) { console.log("Error uploading file: ", error); } }; async function getURL(key) { try { const url = await Storage.get(key); console.log("url from getURL" + url.substring(0,url.lastIndexOf('?'))); pictureURL.value = url.substring(0,url.lastIndexOf('?')); } catch (error) { console.log("Error getting url: ", error); }

      As a bonus - here is the function I use to update the cognito attributes

      async function updateProfile() { const user = await Auth.currentAuthenticatedUser(); console.log("updating profile " + firstname.value + " " + lastname.value); Auth.updateUserAttributes(user, { given_name: firstname.value, family_name: lastname.value, picture: pictureURL.value, name: firstname.value + " " + lastname.value, }) .then(() => { console.log("updated profile"); }) .catch((err) => { console.log("error updating profile"); console.log(err); }); };
    • G

      robots.txt in root?
      Help • • glittle

      6
      0
      Votes
      6
      Posts
      1520
      Views

      P

      I realize this task by using two files robots-open.txt and robot-closed.txt and setting ENV variable.
      Ad then add WebPackPlugin into quasar.config.js as written above:

      extendWebpack(cfg) { const robotsMode = process.env.OPEN_FOR_ROBOTS === 'true' ? 'opened' : 'closed' console.log(`==> Robots.txt are ${robotsMode}`) cfg.plugins.push( new CopyWebpackPlugin({ patterns: [ { from: `robots/robots-${robotsMode}.txt`, to: 'robots.txt', }, ], }), ) },