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: add shared resources directory with html for scan summary panel #761

Merged
merged 3 commits into from
Feb 6, 2025
Merged
Changes from 1 commit
Commits
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
Next Next commit
feat: intiial commit of shared html for scan summary panel
andrewrobinsonhodges-snyk committed Jan 21, 2025
commit 2b8f8b8c4583dc2e3edbb30656d7540a771d0ce4
44 changes: 44 additions & 0 deletions shared_ide_resources/ui/html/ScanSummaryInit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html>
<head>
<style>
:root { font-size:10px; }
p { font-size:1.3rem; margin: .8rem 0; }
hr { margin: 2rem 0; }
body { background-color:#212121; color: #ddd; font-family: sans-serif; }
.snx-loader { display:inline-block; width: 12px; height: 12px; border: 2px solid rgba(125,125,125,.65); border-bottom-color: transparent; border-radius: 50%; margin-right:.8rem; animation: spin 1s linear infinite;
}
.size-s { width: 12px; height: 12px; border-width:2px }
.size-m { width: 16px; height: 16px; border-width:3px; }
.size-l { width: 24px; height: 24px; border-width:4px; }

@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}

.snx-h1 { font-size: 2rem; font-weight: 600; margin: .8rem 0; }
.snx-h2 { font-size: 1.6rem; font-weight:400; margin: .4rem 0; }

.snx-status { display:flex; align-items:center; padding: .4rem 1.2rem; background-color: rgba(255,255,255,.1); border-radius: 1rem; }
.is-dimmed { opacity:.75 }

.snx-header { display: flex; gap:1.6rem; }
.snx-message { display: flex; align-items: center }
.snx-highlight { display:inline-block; cursor:pointer; padding:0 .4rem; text-decoration: underline; font-weight:600 }
strong.snx-highlight { text-decoration: none; cursor: unset; }
</style>
</head>
<body>

<div class="snx-header">
<h1 class="snx-title snx-h1">Snyk Security is loading...</h1>
</div>
<div class="snx-summary">
<div class="snx-status">
<span class="snx-loader size-s"></span>
<p class="snx-message">Waiting for the Snyk CLI to be downloaded and the Language Server to be initialized. </p>
</div>
</div>
</body>
</html>