Uploaded image for project: 'Browser Developer Extensions'
  1. Browser Developer Extensions
  2. BDE-197

Provide the ability to open WebUI source code

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Acknowledged
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Base Code
    • Tags:
    • Logged In as Administrator:
      Yes
    • Dev Mode Activated:
      Yes
    • CORS Configured:
      Yes

      Description

      It is often helpful to refer to the WebUI source code when troubleshooting issues. The difficulty comes in finding the correct source code on github to match what you have deployed.

      With the new management endpoint in 11.x/LTS2021 it's possible to open the exact matching source code. Nelson was kind enough to work on a couple of bookmarklets that help illustrate what I mean.

      To open the correct version of WebUI source code:

      javascript:(async () => window.open(`https://github.com/nuxeo/nuxeo-web-ui/tree/v${(await (await fetch(`//${location.host}/nuxeo/api/v1/management/distribution`, {credentials: 'include'})).json()).bundles.find(b => b.name === 'org.nuxeo.web.ui').version}`))();
      

      To open the correct version of nuxeo-elements source code:

      javascript:(async () => window.open(`https://github.com/nuxeo/nuxeo-elements/tree/v${(await (await fetch(`//${location.host}/nuxeo/api/v1/management/distribution`, {credentials: 'include'})).json()).bundles.find(b => b.name === 'org.nuxeo.web.ui').version}`))();
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jfletcher Joshua Fletcher
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: