Uploaded image for project: 'Mobile App'
  1. Mobile App
  2. MOBILEAPP-13

Upgrade theme capabilities

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0.0
    • 1.0.0
    • None
    • None
    • WORKSPACES 2.0.0

      At this time the theme is defined in WEB-INF\param\mobileapp\theme.json and looks like

      [{
          "src": "skins/mobile/resources/img/logo96x96.png",
          "sizes": "96x96",
          "type": "image/png"
        }]
      

      This allow to define only the icons, at the end the plugin is sending this

      {
          "name":"Agglo@Net",
          "icons": [{
              "src": "skins/mobile/resources/img/logo96x96.png",
              "sizes": "96x96",
              "type": "image/png"
            }],   
          "main_link": "https://intratest.ametys.org/siteA/",
          "project_enabled": "true",
      }
      

      But if we want to send more information about the theme to the application it is not possible!

      Expected behavior
      Concat all the content of the theme file, for exemple if we define :

      "icons": [{
          "src": "skins/mobile/resources/img/logo96x96.png",
          "sizes": "96x96",
          "type": "image/png"
        }],
      "default_content_image": [{
          "src": "skins/mobile/resources/img/default-content-image.png",
          "sizes": "256x256",
          "type": "image/png"
        }]
      

      Then it sends

      {
          "name":"Agglo@Net",
          "icons": [{
              "src": "skins/mobile/resources/img/logo96x96.png",
              "sizes": "96x96",
              "type": "image/png"
            }],   
      "default_content_image": [{
          "src": "skins/mobile/resources/img/default-content-image.png",
          "sizes": "256x256",
          "type": "image/png"
        }],
          "main_link": "https://intratest.ametys.org/siteA/",
          "project_enabled": "true",
      }
      

      May be it should be added at the end to avoid a problem of a missing comma.

            pgros Pierre Gros (Inactive)
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: