Navigation

    Quasar Framework

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. donvie
    3. Posts
    D
    • Profile
    • Following 2
    • Followers 0
    • Topics 20
    • Posts 41
    • Best 4
    • Groups 0

    Posts made by donvie

    • RE: Tray icon not showing in production(Electron)

      NEED HELP!! Can someone experienced this problem

      posted in Help
      D
      donvie
    • Tray icon not showing in production(Electron)

      Tray icon not showing in production but in development the icon it is showing. i am using mac to build the electron app.

      Thank you

      import { app, BrowserWindow, nativeTheme, Menu, Tray } from 'electron'
      const path = require('path')
      
      try {
        if (process.platform === 'win32' && nativeTheme.shouldUseDarkColors === true) {
          require('fs').unlinkSync(require('path').join(app.getPath('userData'), 'DevTools Extensions'))
        }
      } catch (_) { }
      
      /**
       * Set `__statics` path to static files in production;
       * The reason we are setting it here is that the path needs to be evaluated at runtime
       */
      if (process.env.PROD) {
        global.__statics = __dirname
      }
      
      let mainWindow
      
      function createWindow () {
        /**
         * Initial window options
         */
        mainWindow = new BrowserWindow({
          width: 350,
          height: 600,
          useContentSize: true,
          frame: false,
          minWidth: 240,
          minHeight: 500,
          titleBarStyle: 'hidden',
          webPreferences: {
            // Change from /quasar.conf.js > electron > nodeIntegration;
            // More info: https://quasar.dev/quasar-cli/developing-electron-apps/node-integration
            nodeIntegration: process.env.QUASAR_NODE_INTEGRATION,
            nodeIntegrationInWorker: process.env.QUASAR_NODE_INTEGRATION,
      
            // More info: /quasar-cli/developing-electron-apps/electron-preload-script
            // preload: path.resolve(__dirname, 'electron-preload.js')
          }
        })
      
        mainWindow.setBackgroundColor('#f5f5f5') 
      
        mainWindow.loadURL(process.env.APP_URL)
      
        mainWindow.on('closed', () => {
          mainWindow = null
        })
      }
      
      
      let tray = null
      app.whenReady().then(() => {
        tray = new Tray(path.resolve(__statics,'icons', 'favicon-16x16.png'))
        const contextMenu = Menu.buildFromTemplate([
          {
            label: 'Light Mode / Dark Mode',
            click: function (item) {
              mainWindow.webContents.send('darkMode')
            }
          }
        ])
      
        tray.setToolTip('This is my application.')
        tray.setContextMenu(contextMenu)
      })
      
      app.on('ready', createWindow)
      
      app.on('window-all-closed', () => {
        if (process.platform !== 'darwin') {
          app.quit()
        }
      })
      
      app.on('activate', () => {
        if (mainWindow === null) {
          createWindow()
        }
      })
      
      
      posted in Help
      D
      donvie
    • I created quasar framework community for filipinos kindly join!

      https://facebook.com/quasarframeworkph/

      posted in Help
      D
      donvie
    • How to add plugins in capacitor android

      Register the plugin in com.companyname.appname.MainActivity#onCreate

      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
      
          List<Class<? extends Plugin>> additionalPlugins = new ArrayList<>();
          // Additional plugins you've installed go here
          // Ex: additionalPlugins.add(TotallyAwesomePlugin.class);
          additionalPlugins.add(SmsManagerPlugin.class);
      
          // Initializes the Bridge
          this.init(savedInstanceState, additionalPlugins);
      }
      posted in CLI
      D
      donvie
    • RE: Need help!! Got this error about cookies

      up up up up!

      posted in Help
      D
      donvie
    • Need help!! Got this error about cookies

      A cookie associated with a cross-site resource at http://localhost:8080/ was set without the SameSite attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite=None and Secure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.

      posted in Help
      D
      donvie
    • RE: How to send files and images in chat message?

      up? Anyone can help me thanks in advance

      posted in Help
      D
      donvie
    • How to send files and images in chat message?

      How to send files and images in chat message?

      posted in Help
      D
      donvie
    • RE: Quasar v1.0 beta has arrived

      @jezzta667 I saw it thanks man Cool

      posted in Announcements
      D
      donvie
    • RE: Quasar v1.0 beta has arrived

      qsearch and qinput missing v1.0

      posted in Announcements
      D
      donvie
    • Quasar v1.0

      QSearch and QInput missing

      posted in Help
      D
      donvie
    • Hows the right way to do this cordova geolocation

      <template>

      </template>

      <script>

      document.addEventListener(‘deviceready’, () => {
      navigator.geolocation.getCurrentPosition(this.onMapSuccess(), this.onMapError(), { maximumAge: 3000, timeout: 5000, enableHighAccuracy: true })
      }, false)

      export default {
      methods: {
      onMapSuccess (position) {
      this.Latitude = position.coords.latitude
      this.Longitude = position.coords.longitude
      }
      }
      }
      </script>

      posted in Framework
      D
      donvie
    • Hows the right way to do this cordova geolocation

      <template>

      </template>

      <script>

      document.addEventListener(‘deviceready’, () => {
      navigator.geolocation.getCurrentPosition(this.onMapSuccess(), this.onMapError(), { maximumAge: 3000, timeout: 5000, enableHighAccuracy: true })
      }, false)

      export default {
      methods: {
      onMapSuccess (position) {
      this.Latitude = position.coords.latitude
      this.Longitude = position.coords.longitude
      }
      }
      }
      </script>

      posted in Help
      D
      donvie
    • RE: I initialize my vue firestore in app plugin and I got this error everytime i will go to another component

      up!!!

      posted in Help
      D
      donvie
    • I initialize my vue firestore in app plugin and I got this error everytime i will go to another component

      0_1528091045553_dcdc1cfb-adaa-4070-9a01-5008d3a725bb-image.png

      posted in Help
      D
      donvie
    • RE: WYSIWYG - Embeding Images ( or upload a image ) and youtube videos

      @a47ae up

      posted in Framework
      D
      donvie
    • RE: WYSIWYG - Embeding Images ( or upload a image ) and youtube videos

      Thats my problem too

      posted in Framework
      D
      donvie
    • RE: Hows the proper way to do that layouts using flex

      @chbarr Thanks my man

      posted in Help
      D
      donvie
    • how to insert image in editor wyswg?

      how to insert image in editor wyswg?

      posted in Framework
      D
      donvie
    • how to insert image in editor wyswg?

      how to insert image in editor wyswg?

      posted in Help
      D
      donvie