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. D3myon
    3. Posts
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 14
    • Best 2
    • Groups 0

    Posts made by D3myon

    • Use a Cordova plugin inside the Quasar app (file caching)

      Hi Quasar-Community,

      I know, this is primarily a Cordova related problem, but I just don’t know, what to do on the Quasar side.

      Currently I try to integrate markmarijnissen/cordova-file-cache plugin into my app. Is anyone here, who used this already and has a primitive working example for me, just to see how to use it inside my app?

      Or is there a better way to cache files on my device?

      Is this generally possible?

      Would be great if anyone could share his experience with me.

      Thanks for your time.

      posted in Help
      D
      D3myon
    • RE: Push-notification with Quasar and FCM

      I will take a look. Thank you. 🙂

      posted in Help
      D
      D3myon
    • RE: Push-notification with Quasar and FCM

      @rafaelbtz said in Push-notification with Quasar and FCM:

      Edit .eslintrc.js file and add ‘FCMPlugin’: true, in global list, result:
      globals: {
      ‘cordova’: true,
      ‘FCMPlugin’: true,
      ‘DEV’: true,
      ‘PROD’: true,
      ‘__THEME’: true
      },

      Hi,

      I’ve got the same problem as @felixis. This one did not work for me.
      I only find information about how to get the cordova-plugin-fcm installed, but there is no information about how to import the FCMPlugin into the Quasar-App.

      Of course, there are information about the pure usage. But somehow, I need to get the plugin inside my app code.

      posted in Help
      D
      D3myon
    • RE: Alerts appear mutliple times

      I see, the problem was, that I put the Event-Listener into the mounted() function. I put it into created() and unsubscribed the event in beforeDestroy().

      Everything works fine now.

      Example

      created () {
        Events.$on('logout', response => {
          this.showLogoutAlert()
        })
      },
      beforeDestroy () {
        Events.$off('logout')
      }
      

      This does the trick for me.

      posted in Help
      D
      D3myon
    • RE: Alerts appear mutliple times

      Hi @benoitranque,

      I use a component called Sidelinks.vue. The function logout() is called here.

      Part of the template (also from Sidelinks.vue)

      <q-item @click="logout">
        <q-item-side icon="lock"/>
        <q-item-main label="Abmelden" sublabel=""/>
      </q-item>
      

      Script from Sidelinks.vue

        import {
          QList,
          QSideLink,
          QItemSide,
          QItemMain,
          QListHeader,
          QItemSeparator,
          QItem,
          Events
        } from 'quasar'
      
        import Helpers from '../Helpers.vue'
      
        export default {
          mixins: [Helpers],
          components: {
            QList,
            QSideLink,
            QItemSide,
            QItemMain,
            QListHeader,
            QItemSeparator,
            QItem
          },
          data () {
            return {
              loggedIn: false
            }
          },
          mounted () {
            this.loggedIn = this.isUserLoggedIn()
            Events.$on('logout', response => {
              this.loggedIn = response.loggedIn
            })
          }
        }
      

      logout() is imported from Helpers.vue which is used as mixin

      logout: function () {
        LocalStorage.remove('private_access_token')
        Events.$emit('logout', {
          loggedIn: false
        })
      }
      

      This is from Layout.vue (the parent layout)

          mounted () {
            this.changeColors()
            Events.$on('logout', response => {
              this.showLogoutAlert()
            })
          }
      

      When I click on logout, the alert is shown multiple times and one above the other. So the one is hiding the other and when I tab the cross, it disappears and others are still visible until is dismiss them all.

      posted in Help
      D
      D3myon
    • Alerts appear mutliple times

      Hi,

      somehow I’ve got some problems with Alerts.

      Scenario

      A user is logged in to a server. When he’s going to logout, an event is gone to be fired:

      LocalStorage.remove('private_access_token')
      Events.$emit('logout', {
        loggedIn: false
      })
      

      So far so good. Everthing works fine.

      In my Layout.vue file the event handler does its work:

      Events.$on('logout', response => {
        // some logic
        this.showLogoutAlert()
      })
      

      The function showLogoutAlert() does the following:

      showLogoutAlert () {
        Alert.create({
          enter: 'bounceInRight',
          leave: 'bounceOutRight',
          color: 'positive',
          icon: 'lock',
          html: `Sie wurden erfolgreich abgemeldet`,
          position: 'top-right'
        })
      }
      

      In another part of the code, another event is fired, when a user changes the password:

      Events.$emit('passwordChange', {
        showModal: false
      })
      

      The event handler does following:

      Events.$on('passwordChange', response => {
        this.showPasswordModal = response.showModal
        this.showPassChangedAlert()
      })
      

      And the function showPassChangedAlert() contains the following code:

      showPassChangedAlert () {
        Alert.create({
          enter: 'bounceInRight',
          leave: 'bounceOutRight',
          color: 'positive',
          icon: 'update',
          html: `Das Passwort wurde geändert`,
          position: 'top-right'
        })
      }
      

      The Problem

      When the user is logged out. The alert appears. The little cross is tabbed and the alert disappears. Great!

      But when the user does another login and goes to change the password, then the alert for the password change and the previous logout-alert show.

      I really have no idea, why this is happening. May someone can help me please?

      Thank you for your time.

      Michael

      posted in Help
      D
      D3myon
    • Quasar Electron App - Icon of .exe-file won't change

      Hi,

      I’m new in building Electron Apps. So I made my first steps and a test build for Windows. Everything works fine so far.

      I changed the icons within the icons folder. The icon that I see in the title bar changes. But the icon of the .exe-file does not.

      alt text

      Is anyone here, who had the same issue?

      Thank you very much.

      Michael

      posted in Help
      D
      D3myon
    • RE: Tabs only in pages with sub routes

      @benoitranque So, I took a look now. This is exactly what I was looking for. Thank you so much.

      posted in Help
      D
      D3myon
    • RE: Tabs only in pages with sub routes

      @benoitranque thank you for your answer and time. I will try this solution this evening and revert after that.

      posted in Help
      D
      D3myon
    • Tabs only in pages with sub routes

      Hi,

      I’ve got the following problem:

      I intend to use the side menu as the primary navigation and want to use tabs inside the navigation slot for sub routes (sub pages). So some pages with sub routes shall contain tabs and those without shall not.

      I could load different layouts, but I guess it’s not really best practice.

      Is there a proper way to realize this?

      Thank you very much.

      And Merry Christmas!

      posted in Help
      D
      D3myon
    • RE: Call route inside a function

      Right after posting the question, I found the answer.

      this.$router.push('/xxxxx')
      

      did the trick.

      Thank you for reading.

      posted in Help
      D
      D3myon
    • Call route inside a function

      Hi together,

      I’ve got one small question regarding the routing. Is there a Quasar based function I can call within a function to call another route?

      Scenario

      I enter my credentials into a login form and receive the access token from the api-server. After that I want to redirect the user to a specific page.

      I tried to reach it via

      location.href = "/xxxxx"
      

      This works fine when I use Quasar Play and using the webbrowser, but not as a built Android application.

      Thank you very much.

      posted in Help
      D
      D3myon
    • RE: Login to Symfony application

      Ok, thank you for the quick reply.

      posted in Help
      D
      D3myon
    • Login to Symfony application

      Hello together,

      I’m pretty new to the Quasar Framework and currently I’m building an app which will become Cordova app.

      I wonder if there is a way to build an API with Symfony login within the app, to get user specific access. Any hints, how I can reach this aim?

      Please tell me, if this question is not precise enough.

      Thank you.

      posted in Help
      D
      D3myon