How to have About informations



  • Hello, I’d like to display an about page with informations relating to my app.
    Can I use the quasar.conf.js manifest and how ?
    or should I set these infos in a boot file ?
    Thanks for your suggestions.



  • @Incremental

    you just create a page like any other Quasar pages. quasar.conf or boot has nothing to do with that.



  • The quasar.conf.js contains :

          pwa: {
             workboxPluginMode: "GenerateSW", // 'GenerateSW' or 'InjectManifest'
             workboxOptions: {}, // only for GenerateSW
             manifest: {
                name: `My App`,
                short_name: `app`,
                description: `My App descrition`,
    

    My question is : is it possible to reference this data from a page ?



  • @Incremental You can try something like this in quasar.conf.js

    const manifest = {
      name: `My App`,
      short_name: `app`,
      description: `My App descrition`,
      // ...
    }
    
    module.exports = function (ctx) {
      // ...
      build: {
        // ...
        env: {
          manifest
        },
      },
      // ...
    
      pwa: {
        workboxPluginMode: "GenerateSW", // 'GenerateSW' or 'InjectManifest'
        workboxOptions: {}, // only for GenerateSW
        manifest: manifest,
      },
    }
    

    Then it should be available in your app as process.env.manifest

    Alternatively, put it into it’s own file like manifest.json, and require it in quasar.conf.js and import it in the component.



  • Thanks Beets. It’s probably more simple to keep it in my boot constants.js file.
    I thought the manifest could be used like an AssemblyInfo in C# Visual Studio…


Log in to reply