Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

[FEATURE] Implement https://pkg.go.dev/ Page Parsing for React Based Extension #130

Closed
DarthHater opened this issue May 4, 2021 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@DarthHater
Copy link
Member

Now that we've got things working in React, it's time to implement each websites page parsing in React:

To do this you'll need to:

In: src/utils/PageParsing.ts

const getArtifactDetailsFromDOM = (format: string, url: string): PackageURL | undefined => {
  console.info('url', url);
  console.info('format', format);

  if (format === 'npm') {
    return parseNPM(url);
  }
  return undefined;
};

You will want to add a new block for else if (format === 'golang') and implement a parseGolang(url) function.

Non functional requirements:

Most of these have actually already been written, and you can look at the existing utils.js to guide you along the way!

https://github.com/sonatype-nexus-community/nexus-iq-chrome-extension/blob/master/src/Scripts/utils.js#L2229-L2274

^ that is an example of the current Nuget Implementation

Best of all: have fun! Ask questions if you get stuck?!

@DarthHater DarthHater added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels May 4, 2021
@DarthHater DarthHater added this to the 2.0.0 milestone May 4, 2021
@DarthHater DarthHater added this to To do in Release 2.0.0 via automation May 4, 2021
@ctownshend
Copy link
Collaborator

cameron here, changing this to use the new golang site https://pkg.go.dev/, not GoCenter

@ctownshend ctownshend moved this from To do to In progress in Release 2.0.0 May 5, 2021
@ctownshend ctownshend moved this from In progress to Done in Release 2.0.0 May 6, 2021
DarthHater added a commit that referenced this issue May 6, 2021
💥 

Co-authored-by: Jeffry Hesse <5544326+DarthHater@users.noreply.github.com>
@madpah madpah changed the title Implement GoCenter Page Parsing for React Based Extension [FEATURE] Implement https://pkg.go.dev/ Page Parsing for React Based Extension Jun 28, 2023
@madpah madpah modified the milestones: 2.0.0, 2.1.x Jun 28, 2023
@madpah madpah removed this from the 2.1.x milestone Jul 13, 2023
@madpah madpah closed this as completed Jul 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
No open projects
Development

No branches or pull requests

3 participants