From 309e630b9b34c9df2a2fa6ae8c9813bc17105977 Mon Sep 17 00:00:00 2001 From: Matias Daloia <66310421+matiasdaloia@users.noreply.github.com> Date: Fri, 20 Sep 2024 16:24:19 +0200 Subject: [PATCH] Fix code highlighting (#44) * Fixes highlight * remove not used styles --------- Co-authored-by: agusgroh --- frontend/src/components/CodeViewer.tsx | 21 +- frontend/src/style.css | 20 - frontend/tailwind.config.js | 6 + results.json | 711 +++++++++++++++++++++++++ 4 files changed, 732 insertions(+), 26 deletions(-) create mode 100644 results.json diff --git a/frontend/src/components/CodeViewer.tsx b/frontend/src/components/CodeViewer.tsx index 4b198283..03424d28 100644 --- a/frontend/src/components/CodeViewer.tsx +++ b/frontend/src/components/CodeViewer.tsx @@ -1,6 +1,6 @@ import { Editor } from '@monaco-editor/react'; import * as monaco from 'monaco-editor'; -import { memo, useRef } from 'react'; +import { useRef } from 'react'; import { getHighlightLineRanges } from '@/modules/results/utils'; @@ -17,7 +17,7 @@ interface CodeViewerProps { width?: string; } -export default memo(function CodeViewer({ +export default function CodeViewer({ content, editorType, height = '100%', @@ -45,7 +45,10 @@ export default memo(function CodeViewer({ range: new monaco.Range(1, 1, totalLines, 1), options: { isWholeLine: true, - className: 'line-highlight-decoration', + className: + editorType === 'local' + ? 'bg-highlight-local-line' + : 'bg-highlight-remote-line', }, }, ]; @@ -64,8 +67,14 @@ export default memo(function CodeViewer({ range: new monaco.Range(start, 1, end, 1), options: { isWholeLine: true, - className: 'line-highlight-decoration', - inlineClassName: 'inline-highlight-decoration', + className: + editorType === 'local' + ? 'bg-highlight-local-line' + : 'bg-highlight-remote-line', + inlineClassName: + editorType === 'local' + ? 'bg-highlight-local-inline' + : 'bg-highlight-remote-inline', }, }) ); @@ -103,4 +112,4 @@ export default memo(function CodeViewer({ }} /> ); -}); +} diff --git a/frontend/src/style.css b/frontend/src/style.css index 021cc929..6e6024f4 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -81,23 +81,3 @@ body { --chart-5: 340 75% 55%; } } - -.editor-local { - .line-highlight-decoration { - background-color: #392428; - } - - .inline-highlight-decoration { - background-color: #592b2d; - } -} - -.editor-remote { - .line-highlight-decoration { - background-color: #26352c; - } - - .inline-highlight-decoration { - background-color: #324f36; - } -} diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index 3fcbca32..48f07cc5 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -63,6 +63,12 @@ module.exports = { accent: 'hsl(var(--snippet-accent))', border: 'hsl(var(--snippet-border))', }, + highlight:{ + 'local-line': '#392428', + 'local-inline': '#592b2d', + 'remote-line': '#26352c', + 'remote-inline': '#324f36', + } }, borderRadius: { lg: 'var(--radius)', diff --git a/results.json b/results.json new file mode 100644 index 00000000..8e97acd1 --- /dev/null +++ b/results.json @@ -0,0 +1,711 @@ +{ + "CodeViewer.tsx": [ + { + "id": "none", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + } + } + ], + "ConfirmDialog.tsx": [ + { + "id": "none", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + } + } + ], + "EmptyState.tsx": [ + { + "id": "none", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + } + } + ], + "Sidebar.tsx": [ + { + "id": "none", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + } + } + ], + "ui/alert-dialog.tsx": [ + { + "component": "livewallpaper", + "file": "src/giantapp-wallpaper-ui/src/components/ui/alert-dialog.tsx", + "file_hash": "841b6aecd418a074d6ae7239d7849cd7", + "file_url": "https://api.osskb.org/file_contents/841b6aecd418a074d6ae7239d7849cd7", + "id": "file", + "latest": "3.0.20-alpha.20", + "licenses": [ + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-2.0-only.txt", + "copyleft": "yes", + "incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, ECL-2.0, FTL, IJG, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1", + "name": "GPL-2.0-only", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "yes", + "source": "component_declared", + "url": "https://spdx.org/licenses/GPL-2.0-only.html" + }, + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-2.0-only.txt", + "copyleft": "yes", + "incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, ECL-2.0, FTL, IJG, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1", + "name": "GPL-2.0-only", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "yes", + "source": "license_file", + "url": "https://spdx.org/licenses/GPL-2.0-only.html" + }, + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/LGPL-2.1-only.txt", + "copyleft": "yes", + "incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, ECL-2.0, FTL, IJG, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1", + "name": "LGPL-2.1-only", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "yes", + "source": "license_file", + "url": "https://spdx.org/licenses/LGPL-2.1-only.html" + } + ], + "lines": "all", + "matched": "100%", + "oss_lines": "all", + "purl": [ + "pkg:github/giant-app/livewallpaper" + ], + "release_date": "2023-12-31", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + }, + "source_hash": "841b6aecd418a074d6ae7239d7849cd7", + "status": "pending", + "url": "https://github.com/giant-app/livewallpaper", + "url_hash": "f6fb83ffc30a7dd8e58d7e0d0f368e90", + "url_stats": {}, + "vendor": "giant-app", + "version": "3.0-alpha.1" + } + ], + "ui/badge.tsx": [ + { + "component": "ui", + "file": "apps/www/registry/new-york/ui/badge.tsx", + "file_hash": "d418e7d17e73d698299284a0e46e3e9f", + "file_url": "https://api.osskb.org/file_contents/d418e7d17e73d698299284a0e46e3e9f", + "id": "file", + "latest": "f170784", + "licenses": [ + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/MIT.txt", + "copyleft": "no", + "name": "MIT", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "no", + "source": "component_declared", + "url": "https://spdx.org/licenses/MIT.html" + }, + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/MIT.txt", + "copyleft": "no", + "name": "MIT", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "no", + "source": "license_file", + "url": "https://spdx.org/licenses/MIT.html" + } + ], + "lines": "all", + "matched": "100%", + "oss_lines": "all", + "purl": [ + "pkg:github/shadcn-ui/ui" + ], + "release_date": "2023-06-22", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + }, + "source_hash": "d418e7d17e73d698299284a0e46e3e9f", + "status": "pending", + "url": "https://github.com/shadcn-ui/ui", + "url_hash": "b1f3011676fb6443966401c6c914976b", + "url_stats": {}, + "vendor": "shadcn-ui", + "version": "shadcn-ui@0.2.0" + } + ], + "ui/button.tsx": [ + { + "component": "bonsai-app", + "file": "src/components/ui/button.tsx", + "file_hash": "da1d5a614209e3d274471a479c740c00", + "file_url": "https://api.osskb.org/file_contents/da1d5a614209e3d274471a479c740c00", + "id": "file", + "latest": "app-v0.0.0", + "licenses": [], + "lines": "all", + "matched": "100%", + "oss_lines": "all", + "purl": [ + "pkg:github/madhavsikka/bonsai-app" + ], + "release_date": "2024-02-13", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + }, + "source_hash": "da1d5a614209e3d274471a479c740c00", + "status": "pending", + "url": "https://github.com/madhavsikka/bonsai-app", + "url_hash": "b150f4df6c43f5e4e95cbce685e7a42d", + "url_stats": {}, + "vendor": "madhavsikka", + "version": "app-v0.0.0" + } + ], + "ui/checkbox.tsx": [ + { + "component": "ytdl-gui", + "file": "@/components/ui/checkbox.tsx", + "file_hash": "271afbedc225c5858caab92d5cff41d2", + "file_url": "https://api.osskb.org/file_contents/271afbedc225c5858caab92d5cff41d2", + "id": "file", + "latest": "0.0.10", + "licenses": [ + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/MIT.txt", + "copyleft": "no", + "name": "MIT", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "no", + "source": "license_file", + "url": "https://spdx.org/licenses/MIT.html" + }, + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/Apache-2.0.txt", + "copyleft": "no", + "name": "Apache-2.0", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "yes", + "source": "license_file", + "url": "https://spdx.org/licenses/Apache-2.0.html" + }, + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/MIT.txt", + "copyleft": "no", + "name": "MIT", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "no", + "source": "scancode", + "url": "https://spdx.org/licenses/MIT.html" + } + ], + "lines": "all", + "matched": "100%", + "oss_lines": "all", + "purl": [ + "pkg:github/mienaiyami/ytdl-gui" + ], + "release_date": "2023-08-21", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + }, + "source_hash": "271afbedc225c5858caab92d5cff41d2", + "status": "pending", + "url": "https://github.com/mienaiyami/ytdl-gui", + "url_hash": "a50b76de27f921590b8fba605ab601c0", + "url_stats": {}, + "vendor": "mienaiyami", + "version": "0.0.2" + } + ], + "ui/collapsible.tsx": [ + { + "component": "isimm-frontend", + "file": "src/components/ui/Collapsible.tsx", + "file_hash": "8bcc61ee503a05663fb77ad9b7ec064a", + "file_url": "https://api.osskb.org/file_contents/8bcc61ee503a05663fb77ad9b7ec064a", + "id": "file", + "latest": "c7d50b7", + "licenses": [ + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/MIT.txt", + "copyleft": "no", + "name": "MIT", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "no", + "source": "component_declared", + "url": "https://spdx.org/licenses/MIT.html" + }, + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/MIT.txt", + "copyleft": "no", + "name": "MIT", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "no", + "source": "scancode", + "url": "https://spdx.org/licenses/MIT.html" + }, + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/MIT.txt", + "copyleft": "no", + "name": "MIT", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "no", + "source": "license_file", + "url": "https://spdx.org/licenses/MIT.html" + } + ], + "lines": "all", + "matched": "100%", + "oss_lines": "all", + "purl": [ + "pkg:github/stormynight9/isimm-frontend" + ], + "release_date": "2023-04-29", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + }, + "source_hash": "8bcc61ee503a05663fb77ad9b7ec064a", + "status": "pending", + "url": "https://github.com/stormynight9/isimm-frontend", + "url_hash": "44533fda75a08903dbf8c1c8b38c5748", + "url_stats": {}, + "vendor": "stormynight9", + "version": "f9c5433" + } + ], + "ui/dropdown-menu.tsx": [ + { + "component": "MotionVariants", + "file": "components/ui/dropdown-menu.tsx", + "file_hash": "64781367ae447ecd636b55df02985b83", + "file_url": "https://api.osskb.org/file_contents/64781367ae447ecd636b55df02985b83", + "id": "file", + "latest": "d041314", + "licenses": [], + "lines": "all", + "matched": "100%", + "oss_lines": "all", + "purl": [ + "pkg:github/chrisabdo/motionvariants" + ], + "release_date": "2023-06-25", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + }, + "source_hash": "64781367ae447ecd636b55df02985b83", + "status": "pending", + "url": "https://github.com/ChrisAbdo/MotionVariants", + "url_hash": "c459262adc7bff2ce40ec3365bce6913", + "url_stats": {}, + "vendor": "ChrisAbdo", + "version": "d81d34f" + } + ], + "ui/resizable.tsx": [ + { + "component": "@jansora/ui", + "file": "src/components/ui/resizable.tsx", + "file_hash": "4520e7018ad7c780cd2af5c4ba752fb2", + "file_url": "https://api.osskb.org/file_contents/4520e7018ad7c780cd2af5c4ba752fb2", + "id": "file", + "latest": "0.0.2", + "licenses": [ + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/MIT.txt", + "copyleft": "no", + "name": "MIT", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "no", + "source": "component_declared", + "url": "https://spdx.org/licenses/MIT.html" + } + ], + "lines": "all", + "matched": "100%", + "oss_lines": "all", + "purl": [ + "pkg:npm/%40jansora/ui", + "pkg:github/jansora/packages" + ], + "release_date": "2023-12-30", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + }, + "source_hash": "4520e7018ad7c780cd2af5c4ba752fb2", + "status": "pending", + "url": "https://www.npmjs.com/package/%40jansora/ui", + "url_hash": "8cfcd007d2d1de6d4bd86fa0c10ff9b7", + "url_stats": {}, + "vendor": "Jansora", + "version": "0.0.2" + } + ], + "ui/scroll-area.tsx": [ + { + "component": "ai-studio", + "file": "src/components/ui/scroll-area.tsx", + "file_hash": "1ba7e7d91b39df2a12b1b6d9f6641900", + "file_url": "https://api.osskb.org/file_contents/1ba7e7d91b39df2a12b1b6d9f6641900", + "id": "snippet", + "latest": "2da8f40", + "licenses": [ + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/Apache-2.0.txt", + "copyleft": "no", + "name": "Apache-2.0", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "yes", + "source": "component_declared", + "url": "https://spdx.org/licenses/Apache-2.0.html" + } + ], + "lines": "4-46", + "matched": "91%", + "oss_lines": "4-46", + "purl": [ + "pkg:github/dynaboard/ai-studio" + ], + "release_date": "2023-12-02", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + }, + "source_hash": "fe504e1c506351e825ba7afec7be9452", + "status": "pending", + "url": "https://github.com/dynaboard/ai-studio", + "url_hash": "4aa62d5779730611f2c6c152e52b2d60", + "url_stats": { + "ignored_files": 10, + "indexed_files": 114, + "package_size": 2457099, + "source_files": 93, + "total_files": 124 + }, + "vendor": "dynaboard", + "version": "1.0.0-beta.1" + } + ], + "ui/select.tsx": [ + { + "component": "bonsai-app", + "file": "src/components/ui/select.tsx", + "file_hash": "66eab9c23f62f97729bd6611ed810049", + "file_url": "https://api.osskb.org/file_contents/66eab9c23f62f97729bd6611ed810049", + "id": "file", + "latest": "app-v0.0.0", + "licenses": [], + "lines": "all", + "matched": "100%", + "oss_lines": "all", + "purl": [ + "pkg:github/madhavsikka/bonsai-app" + ], + "release_date": "2024-02-13", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + }, + "source_hash": "66eab9c23f62f97729bd6611ed810049", + "status": "pending", + "url": "https://github.com/madhavsikka/bonsai-app", + "url_hash": "b150f4df6c43f5e4e95cbce685e7a42d", + "url_stats": {}, + "vendor": "madhavsikka", + "version": "app-v0.0.0" + } + ], + "ui/skeleton.tsx": [ + { + "component": "MomentMeal", + "file": "src/components/ui/skeleton.tsx", + "file_hash": "2b43053b8a60703648a1cf110ebf5113", + "file_url": "https://api.osskb.org/file_contents/2b43053b8a60703648a1cf110ebf5113", + "id": "file", + "latest": "bdd67fb", + "licenses": [ + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/AGPL-3.0-only.txt", + "copyleft": "yes", + "incompatible_with": "Apache-1.0, Apache-1.1, BSD-4-Clause, BSD-4-Clause-UC, FTL, IJG, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement", + "name": "AGPL-3.0-only", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "yes", + "source": "component_declared", + "url": "https://spdx.org/licenses/AGPL-3.0-only.html" + } + ], + "lines": "all", + "matched": "100%", + "oss_lines": "all", + "purl": [ + "pkg:github/bhelpful/momentmeal" + ], + "release_date": "2023-10-21", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + }, + "source_hash": "2b43053b8a60703648a1cf110ebf5113", + "status": "pending", + "url": "https://github.com/BHelpful/MomentMeal", + "url_hash": "01a3316069622b752c7d3be662eadcbc", + "url_stats": {}, + "vendor": "BHelpful", + "version": "35bddbb" + } + ], + "ui/toast.tsx": [ + { + "component": "ytdl-gui", + "file": "@/components/ui/toast.tsx", + "file_hash": "c464db67f4fe980170c7112c73ea3c43", + "file_url": "https://api.osskb.org/file_contents/c464db67f4fe980170c7112c73ea3c43", + "id": "file", + "latest": "0.0.10", + "licenses": [ + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/MIT.txt", + "copyleft": "no", + "name": "MIT", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "no", + "source": "license_file", + "url": "https://spdx.org/licenses/MIT.html" + }, + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/Apache-2.0.txt", + "copyleft": "no", + "name": "Apache-2.0", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "yes", + "source": "license_file", + "url": "https://spdx.org/licenses/Apache-2.0.html" + }, + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/MIT.txt", + "copyleft": "no", + "name": "MIT", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "no", + "source": "scancode", + "url": "https://spdx.org/licenses/MIT.html" + } + ], + "lines": "all", + "matched": "100%", + "oss_lines": "all", + "purl": [ + "pkg:github/mienaiyami/ytdl-gui" + ], + "release_date": "2023-08-21", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + }, + "source_hash": "c464db67f4fe980170c7112c73ea3c43", + "status": "pending", + "url": "https://github.com/mienaiyami/ytdl-gui", + "url_hash": "a50b76de27f921590b8fba605ab601c0", + "url_stats": {}, + "vendor": "mienaiyami", + "version": "0.0.2" + } + ], + "ui/toaster.tsx": [ + { + "component": "shadow-nft-standard", + "file": "apps/sample-ui/components/ui/toaster.tsx", + "file_hash": "3d3c9e5ba9c3b7230e267d3668c87bf5", + "file_url": "https://api.osskb.org/file_contents/3d3c9e5ba9c3b7230e267d3668c87bf5", + "id": "file", + "latest": "09ac3d5", + "licenses": [ + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/Apache-2.0.txt", + "copyleft": "no", + "name": "Apache-2.0", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "yes", + "source": "scancode", + "url": "https://spdx.org/licenses/Apache-2.0.html" + }, + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/Apache-2.0.txt", + "copyleft": "no", + "name": "Apache-2.0", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "yes", + "source": "license_file", + "url": "https://spdx.org/licenses/Apache-2.0.html" + } + ], + "lines": "all", + "matched": "100%", + "oss_lines": "all", + "purl": [ + "pkg:github/genesysgo/shadow-nft-standard", + "pkg:npm/%40genesysgo/shadow-nft-generated-client" + ], + "release_date": "2023-06-22", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + }, + "source_hash": "3d3c9e5ba9c3b7230e267d3668c87bf5", + "status": "pending", + "url": "https://github.com/GenesysGo/shadow-nft-standard", + "url_hash": "a1dd3910a91fd28177f6b9e7f3cc4ce0", + "url_stats": {}, + "vendor": "GenesysGo", + "version": "genesysgo/shadow-nft-generated-client@1.0.1" + } + ], + "ui/tooltip.tsx": [ + { + "component": "neosync", + "file": "frontend/apps/web/components/ui/tooltip.tsx", + "file_hash": "7a29e885608ffef8126cdb146cc1230c", + "file_url": "https://api.osskb.org/file_contents/7a29e885608ffef8126cdb146cc1230c", + "id": "snippet", + "latest": "0.4.43", + "licenses": [ + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/MIT.txt", + "copyleft": "no", + "name": "MIT", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "no", + "source": "component_declared", + "url": "https://spdx.org/licenses/MIT.html" + } + ], + "lines": "7-31", + "matched": "77%", + "oss_lines": "8-32", + "purl": [ + "pkg:github/nucleuscloud/neosync", + "pkg:npm/%40neosync/sdk" + ], + "release_date": "2024-04-05", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + }, + "source_hash": "16cf1107731ec6790618b1b9353eb666", + "status": "pending", + "url": "https://github.com/nucleuscloud/neosync", + "url_hash": "e789be53897cc78aaf9dc26a99f9ede0", + "url_stats": {}, + "vendor": "nucleuscloud", + "version": "0.4.5" + } + ], + "ui/use-toast.ts": [ + { + "component": "cloudcore", + "file": "app/frontend/src/components/ui/use-toast.ts", + "file_hash": "5683b5e03f0d09083eb43f9069676b35", + "file_url": "https://api.osskb.org/file_contents/5683b5e03f0d09083eb43f9069676b35", + "id": "file", + "latest": "0.0.0", + "licenses": [ + { + "checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/MIT.txt", + "copyleft": "no", + "name": "MIT", + "osadl_updated": "2024-09-09T09:25:00+0000", + "patent_hints": "no", + "source": "license_file", + "url": "https://spdx.org/licenses/MIT.html" + } + ], + "lines": "all", + "matched": "100%", + "oss_lines": "all", + "purl": [ + "pkg:github/clarkmcc/cloudcore" + ], + "release_date": "2023-11-23", + "server": { + "kb_version": { + "daily": "24.09.20", + "monthly": "24.08" + }, + "version": "5.4.8" + }, + "source_hash": "5683b5e03f0d09083eb43f9069676b35", + "status": "pending", + "url": "https://github.com/clarkmcc/cloudcore", + "url_hash": "134a2693e2d3c32e055785a0cc5296dc", + "url_stats": {}, + "vendor": "clarkmcc", + "version": "0.0.0" + } + ] +}