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. rab
    3. Best
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 42
    • Best 6
    • Groups 0

    Best posts made by rab

    • RE: How to manipulate JSON / Array for QTable

      @ebena

      Use q-table with :data=“userData” and define userData as a computed property:

      computed: {
          userData: function () {
            return Object.entries(this.user).map(([k,v]) => { return {key: k, value: v} })
          }
        }
      
      posted in Help
      R
      rab
    • RE: Integrating thrid party component

      @Quasarman

      1. Tag should be gb-flag not gb-flags
      2. Library seems not to register gb-flags component
        https://github.com/growthbunker/vueflags/blob/master/src/entry.js
      3. Although gb-flag tag worked for me the corresponding image did not resolve.
      4. Btw (I think) you can register plugins simply with a direct reference in boot part of quasar.conf.js; e.g.
      boot: [
          ...
          '~@growthbunker/vueflags'
      ]
      posted in Framework
      R
      rab
    • RE: Multi tenant SSR application with subdomains

      @rulrok

      Am interested in this as will be hitting same challenge down the line.

      Some thoughts:

      1. You may like to consider SSR + PWA handoff.
        https://quasar.dev/quasar-cli/developing-ssr/ssr-with-pwa

      2. SSR shopfront knows subdomain through ssrContext
        https://quasar.dev/quasar-cli/developing-ssr/configuring-ssr#Boot-Files

      3. PWA shopfront knows subdomain through window.location

      4. Code knows whether it is running client or server via process.env.CLIENT and process.env.SERVER

      posted in Help
      R
      rab
    • RE: How to use external vue packages in quasar framework?

      Use quasar boot file:
      https://quasar.dev/quasar-cli/cli-documentation/boot-files

      Example in this post:
      https://forum.quasar-framework.org/topic/5224/integrating-thrid-party-component

      posted in Framework
      R
      rab
    • RE: Upload image

      Not a great comment mecjos. I am just a regular user of Quasar. Have found the support in this forum to be excellent. Much like the Quasar framework itself.

      posted in Framework
      R
      rab
    • RE: Global Bus v Page Bus ?

      @rab

      A Problem

      • Vue 3 instances no longer implement the event emitter interface.
      • Recommendation is to use mitt.
      • See: https://github.com/vuejs/rfcs/blob/master/active-rfcs/0020-events-api-change.md

      A Solution

      • Load the code below as a boot file (e.g. pagebus.js).
      • Using this.$on is detected as error so am using $$on instead.
      // file boot/pagebus.js
      import { boot } from 'quasar/wrappers'
      import mitt from 'mitt'
      
      export default boot(({ app }) => {
        app.use({
          install: function (Vue, options) {
            const pagebus = mitt()
            app.config.globalProperties.$$on = pagebus.on
            app.config.globalProperties.$$emit = pagebus.emit
          }
        })
      })
      

      If you wish to debug:

         ...
         app.config.globalProperties.$$on = function (ev, ...args) {
            console.log(ev, args)
            return pagebus.on(ev, ...args)
         }
         ...
      
      posted in Framework
      R
      rab