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

    How to have About informations

    Framework
    3
    5
    99
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      Incremental last edited by

      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.

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @Incremental last edited by

        @Incremental

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

        1 Reply Last reply Reply Quote 0
        • I
          Incremental last edited by

          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 ?

          beets 1 Reply Last reply Reply Quote 0
          • beets
            beets @Incremental last edited by

            @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.

            1 Reply Last reply Reply Quote 1
            • I
              Incremental last edited by

              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…

              1 Reply Last reply Reply Quote 0
              • First post
                Last post