Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Browser extension): Initial iteration for Chrome #71

Merged
merged 4 commits into from
Jan 19, 2024

Conversation

dboyd13
Copy link
Contributor

@dboyd13 dboyd13 commented Jan 18, 2024

Initial iteration of the 'View with Threat Composer' browser extension, with compatibility focused on Google Chrome.

This aims to enable one to “view web accessible Threat Composer exports (.tc.json) with one click”. Note that this has a bake-in version of the Threat Composer react app, it is not dependant on (nor can it use) a remote hosted version.

The extension (Chrome only for now) supports the following integrations where a ‘View in Threat Composer’ button is added to the page:

GitHub Code Browser

Screenshot 2024-01-18 at 6 47 46 pm

Amazon Code Catalyst

Screenshot 2024-01-18 at 6 46 45 pm

View Raw

Anywhere online so long as the URL includes reference to .tc.json

Screenshot 2024-01-18 at 6 50 12 pm

@dboyd13 dboyd13 requested a review from jessieweiyi January 18, 2024 07:42
useEffect(() => {
window.threatcomposer.stringifyWorkspaceData = stringifyWorkspaceData;
}, []);
window.threatcomposer.stringifyWorkspaceData = stringifyWorkspaceData;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not need this. It has been defined above in window.threatcomposer = { stringifyWorkspaceData,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed in commit

@jessieweiyi jessieweiyi merged commit 48d54f3 into main Jan 19, 2024
2 checks passed
@jessieweiyi jessieweiyi deleted the feat/browser-extension-refactor branch January 19, 2024 02:27
Copy link

🎉 This PR is included in version 1.0.32 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants