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

Added 3rd Party Software Licenses Page #8748

Merged
merged 26 commits into from
Oct 21, 2024
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
80a2ff7
Create generate-sbom.yml
tellmeY18 Oct 8, 2024
b8c6c43
added LicensePage
tellmeY18 Oct 8, 2024
75b0ac5
fixed be
tellmeY18 Oct 8, 2024
a340b44
applied UI changes
tellmeY18 Oct 9, 2024
e3f8a31
Merge branch 'ohcnetwork:develop' into develop
tellmeY18 Oct 9, 2024
1abaf26
Added 3rd Party link to Homepage and minor UI changes
tellmeY18 Oct 9, 2024
4822f8a
Merge branch 'ohcnetwork:develop' into develop
tellmeY18 Oct 9, 2024
4f32cd6
Merge branch 'develop' into develop
khavinshankar Oct 10, 2024
bc1a589
migrated to Licenses Directory and transfered licenseUrl to json
tellmeY18 Oct 10, 2024
4a53047
Removed Axios
tellmeY18 Oct 10, 2024
4b9e72b
Merge branch 'develop' into develop
tellmeY18 Oct 10, 2024
4ce5ec6
Merge branch 'develop' into tellmeY18/develop
rithviknishad Oct 14, 2024
b5fd14f
improve code quality
rithviknishad Oct 14, 2024
d870984
adds missing locale
rithviknishad Oct 14, 2024
064844c
Merge branch 'develop' into develop
tellmeY18 Oct 15, 2024
48fc6f0
mobile friendly view
tellmeY18 Oct 15, 2024
77ea4d4
info button
tellmeY18 Oct 15, 2024
d539d63
updated auth
tellmeY18 Oct 15, 2024
c229c3d
added break-words to fix text overflow
tellmeY18 Oct 16, 2024
48ab921
Merge branch 'develop' into develop
tellmeY18 Oct 16, 2024
c718359
updated locale
tellmeY18 Oct 16, 2024
2646ea3
Merge pull request #1 from tellmeY18/resolve-conflict
tellmeY18 Oct 16, 2024
e91ef5b
updated locale
tellmeY18 Oct 16, 2024
02ddd14
fix locale sort
rithviknishad Oct 16, 2024
d239847
Merge branch 'develop' into develop
nihal467 Oct 18, 2024
788a239
Merge branch 'develop' into develop
nihal467 Oct 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
applied UI changes
UI
tellmeY18 committed Oct 9, 2024
commit a340b4433096b988ab8d267a8706c5fa059ba177
26 changes: 14 additions & 12 deletions src/Components/SBOMViewer.tsx
Original file line number Diff line number Diff line change
@@ -108,7 +108,7 @@ const BOMDisplay: React.FC = () => {
return (
<Card className="rounded-lg bg-white p-4 shadow-md transition-all duration-300">
<div className="mb-4">
<h2 className="mb-2 text-2xl font-semibold">
<h2 className="mb-2 text-2xl font-semibold text-primary">
{bomData.bomFormat || "N/A"} BOM (Version:{" "}
{bomData.version || "N/A"})
</h2>
@@ -119,12 +119,14 @@ const BOMDisplay: React.FC = () => {
: "N/A"}
</p>
</div>
<div className="mt-4 grid grid-cols-2 gap-4">
<h3 className="col-span-2 text-lg font-semibold">Components:</h3>
<div className="mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2">
<h3 className="col-span-2 text-lg font-semibold text-primary">
Components:
</h3>
{bomData.components?.map((component, index) => (
<div
key={index}
className="block rounded-md border p-2 transition-all duration-300 hover:shadow-md"
className="block rounded-md border p-2 transition-all duration-300 hover:shadow-lg"
>
<a
href={
@@ -134,7 +136,7 @@ const BOMDisplay: React.FC = () => {
}
target="_blank"
rel="noopener noreferrer"
className="text-primary-400 hover:text-primary-500"
className="hover:text-primary-dark text-primary"
>
<strong className="block text-lg">
{component.name || "N/A"} v{component.version || "N/A"}
@@ -149,7 +151,7 @@ const BOMDisplay: React.FC = () => {
}
target="_blank"
rel="noopener noreferrer"
className="text-primary-400 hover:text-primary-500"
className="hover:text-primary-dark text-primary"
>
{component.licenses[0].license.id || "N/A"}
</a>
@@ -162,7 +164,7 @@ const BOMDisplay: React.FC = () => {
)}
<div>
<h5
className="cursor-pointer font-semibold"
className="cursor-pointer font-semibold text-primary"
onClick={() =>
setShowExternalRefs(
showExternalRefs === index ? null : index,
@@ -177,7 +179,7 @@ const BOMDisplay: React.FC = () => {
<li key={idx}>
<a
href={ref.url || "#"}
className="text-primary-400 hover:text-primary-500"
className="hover:text-primary-dark text-primary"
>
{ref.url || "N/A"}
</a>
@@ -195,7 +197,7 @@ const BOMDisplay: React.FC = () => {
text={JSON.stringify(bomData, null, 2)}
onCopy={handleCopy}
>
<button className="text-md rounded-md bg-blue-400 px-4 py-2 text-white transition-all duration-300 hover:bg-blue-500 focus:outline-none">
<button className="text-md hover:bg-primary-dark rounded-md bg-primary px-4 py-2 text-white transition-all duration-300 focus:outline-none">
Copy BOM JSON
</button>
</CopyToClipboard>
@@ -210,19 +212,19 @@ const BOMDisplay: React.FC = () => {
};

return (
<div>
<div className="p-4">
<div className="mb-4 flex space-x-4">
<button
className={`text-md rounded-md px-4 py-2 transition-all duration-300 ${
activeTab === "bom" ? "bg-blue-400 text-white" : "bg-gray-200"
activeTab === "bom" ? "bg-primary text-white" : "bg-gray-200"
}`}
onClick={() => setActiveTab("bom")}
>
Care Frontend
</button>
<button
className={`text-md rounded-md px-4 py-2 transition-all duration-300 ${
activeTab === "beBom" ? "bg-blue-400 text-white" : "bg-gray-200"
activeTab === "beBom" ? "bg-primary text-white" : "bg-gray-200"
}`}
onClick={() => setActiveTab("beBom")}
>