Skip to content

SVIP GUI v1.10 alpha Pre-Release #213

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

Merged
merged 363 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
363 commits
Select commit Hold shift + click to select a range
5d84fd8
adding download report button
maxstein16 Aug 7, 2023
03f25bc
Fixed sbom names not just saying "sbom" in file list
jwj7297 Aug 9, 2023
8156b0e
Fixed all alias methods
jwj7297 Aug 9, 2023
b3b371b
Compare fixed route call with alias
jwj7297 Aug 9, 2023
d72069c
adding spinner component
maxstein16 Aug 7, 2023
0a466c0
spinner added to upload
maxstein16 Aug 7, 2023
cef7855
fixed spinner on upload
maxstein16 Aug 8, 2023
73bbff0
added button to download with functional method
Marrufof Aug 8, 2023
3bfd693
moving button and changing function
Marrufof Aug 9, 2023
18a732a
removed generate from the downloadVex
Marrufof Aug 9, 2023
91f7af8
changing the component conflicts accordion headers to message instead…
maxstein16 Aug 11, 2023
1a780a3
display folder selection and create temp zip
jwj7297 Aug 2, 2023
34000ad
install zip-a-folder
jwj7297 Aug 2, 2023
f9f806c
call zip electron function in angular
jwj7297 Aug 2, 2023
ee4bc81
return zipped data from directory
jwj7297 Aug 3, 2023
df21ee4
Call generate modal and ipc
jwj7297 Aug 3, 2023
f86739d
display folder selection and create temp zip
jwj7297 Aug 2, 2023
6be92b3
call zip electron function in angular
jwj7297 Aug 2, 2023
2c55725
Call generate modal and ipc
jwj7297 Aug 3, 2023
9ae8ebb
fix depend install
jwj7297 Aug 11, 2023
953f6f0
directory popup first for project
jwj7297 Aug 11, 2023
e3de6f3
seperated zipping and directory selection
jwj7297 Aug 14, 2023
4681a31
zip directory electron
jwj7297 Aug 14, 2023
faa206b
made zip file blob
jwj7297 Aug 14, 2023
f9dbb1b
display folder selection and create temp zip
jwj7297 Aug 2, 2023
b89fe1c
install zip-a-folder
jwj7297 Aug 2, 2023
137a1a4
call zip electron function in angular
jwj7297 Aug 2, 2023
ef470a2
return zipped data from directory
jwj7297 Aug 3, 2023
341485e
Call generate modal and ipc
jwj7297 Aug 3, 2023
faa9c9d
Remove backend for now
jwj7297 Aug 7, 2023
16b4354
display folder selection and create temp zip
jwj7297 Aug 2, 2023
dc97f3d
Generate Modal
jwj7297 Aug 3, 2023
568f372
return zipped data from directory
jwj7297 Aug 3, 2023
b0a50be
Remove backend for now
jwj7297 Aug 7, 2023
2215e14
reimport spinner
jwj7297 Aug 11, 2023
1590efb
fix depend install
jwj7297 Aug 11, 2023
f285bcc
directory popup first for project
jwj7297 Aug 11, 2023
5029d2c
fixed rebase issues
jwj7297 Aug 24, 2023
837eb92
OSI Generation request succeed
jwj7297 Aug 28, 2023
e5dbb5a
install zip-a-folder
jwj7297 Aug 2, 2023
367d127
fixed function zip import
jwj7297 Aug 2, 2023
c4b5a67
Generate Modal
jwj7297 Aug 3, 2023
3134f99
Call generate modal and ipc
jwj7297 Aug 3, 2023
f75d961
Remove backend for now
jwj7297 Aug 7, 2023
1f2be2c
display folder selection and create temp zip
jwj7297 Aug 2, 2023
6c50ac2
call zip electron function in angular
jwj7297 Aug 2, 2023
0162de1
Call generate modal and ipc
jwj7297 Aug 3, 2023
ee64e9d
reimport spinner
jwj7297 Aug 11, 2023
0a4c0d0
fix depend install
jwj7297 Aug 11, 2023
f1018bb
directory popup first for project
jwj7297 Aug 11, 2023
c6be5e0
seperated zipping and directory selection
jwj7297 Aug 14, 2023
042cfbb
zip directory electron
jwj7297 Aug 14, 2023
c2a4c4d
made zip file blob
jwj7297 Aug 14, 2023
eaef298
display folder selection and create temp zip
jwj7297 Aug 2, 2023
939d721
install zip-a-folder
jwj7297 Aug 2, 2023
cc93770
Generate Modal
jwj7297 Aug 3, 2023
8374da2
return zipped data from directory
jwj7297 Aug 3, 2023
1c6745f
display folder selection and create temp zip
jwj7297 Aug 2, 2023
f38fda6
Generate Modal
jwj7297 Aug 3, 2023
3e041a7
Remove backend for now
jwj7297 Aug 7, 2023
d9a0fdb
reimport spinner
jwj7297 Aug 11, 2023
446b2a3
fix depend install
jwj7297 Aug 11, 2023
56e0946
directory popup first for project
jwj7297 Aug 11, 2023
6c042d7
fixed rebase issues
jwj7297 Aug 24, 2023
7ebcde2
tool selection for osi done
jwj7297 Aug 24, 2023
5a7fe87
OSI Generation request succeed
jwj7297 Aug 28, 2023
fd58b3f
changed to fit content
Marrufof Aug 2, 2023
3a22a4f
fixed window size for file container
Marrufof Aug 3, 2023
6cb3803
changing css for background to be transparent
maxstein16 Aug 3, 2023
e9dab06
adding download service
maxstein16 Aug 4, 2023
de5d6bd
download metrics function
maxstein16 Aug 7, 2023
befac8d
adding download report button
maxstein16 Aug 7, 2023
7a8af8c
Fixed sbom names not just saying "sbom" in file list
jwj7297 Aug 9, 2023
f2b9b79
fixed zip download
jwj7297 Aug 9, 2023
24139db
Fixed all alias methods
jwj7297 Aug 9, 2023
ab16beb
Compare fixed route call with alias
jwj7297 Aug 9, 2023
1cb69f0
put download as zip in service file
jwj7297 Aug 9, 2023
b35f27b
adding spinner component
maxstein16 Aug 7, 2023
8fd149c
spinner added to metrics
maxstein16 Aug 7, 2023
524552e
spinner added to upload
maxstein16 Aug 7, 2023
d5e58f5
spinner added to vex
maxstein16 Aug 7, 2023
f729ce7
removing oninit and constructor
maxstein16 Aug 7, 2023
ae2d234
centering loading on vex
maxstein16 Aug 7, 2023
3dbb586
fixed spinner on upload
maxstein16 Aug 8, 2023
9e890ff
adding fixed variables to metrics and vex
maxstein16 Aug 8, 2023
bdd638e
added button to download with functional method
Marrufof Aug 8, 2023
1e5f612
moving button and changing function
Marrufof Aug 9, 2023
bd7becb
removed generate from the downloadVex
Marrufof Aug 9, 2023
d5fc42d
Changed button text
Marrufof Aug 9, 2023
1325094
changing button placement
Marrufof Aug 9, 2023
d6fe2e1
adding repair modal
maxstein16 Aug 9, 2023
0307200
adding button to failed tests in metrics
maxstein16 Aug 9, 2023
f3bfe31
adding error message to modal
maxstein16 Aug 10, 2023
81cfcf4
css for repair button
maxstein16 Aug 10, 2023
76276c6
adding repair modal
maxstein16 Aug 9, 2023
d0e7dd4
adding button to failed tests in metrics
maxstein16 Aug 9, 2023
387c712
spinner needed to be added
maxstein16 Aug 11, 2023
d286abc
changing the component conflicts accordion headers to message instead…
maxstein16 Aug 11, 2023
f46d0a6
removing comment from dropdown content
maxstein16 Aug 11, 2023
1785fe8
moving app-viewer to compare
maxstein16 Aug 14, 2023
9f8f915
display folder selection and create temp zip
jwj7297 Aug 2, 2023
3a21b04
install zip-a-folder
jwj7297 Aug 2, 2023
1d1f326
call zip electron function in angular
jwj7297 Aug 2, 2023
cb210ac
fixed function zip import
jwj7297 Aug 2, 2023
b1ab62c
Generate Modal
jwj7297 Aug 3, 2023
00661a2
return zipped data from directory
jwj7297 Aug 3, 2023
3a4653d
Call generate modal and ipc
jwj7297 Aug 3, 2023
d85cbb1
Remove backend for now
jwj7297 Aug 7, 2023
0a75515
display folder selection and create temp zip
jwj7297 Aug 2, 2023
55a36ec
call zip electron function in angular
jwj7297 Aug 2, 2023
d640341
Call generate modal and ipc
jwj7297 Aug 3, 2023
1914d4e
reimport spinner
jwj7297 Aug 11, 2023
ba7237f
fix depend install
jwj7297 Aug 11, 2023
35ce804
get osi tools
jwj7297 Aug 11, 2023
917a859
directory popup first for project
jwj7297 Aug 11, 2023
5ae72f7
seperated zipping and directory selection
jwj7297 Aug 14, 2023
c2682e1
made modal bigger
jwj7297 Aug 14, 2023
2b33092
zip directory electron
jwj7297 Aug 14, 2023
535886c
made zip file blob
jwj7297 Aug 14, 2023
b6c149c
display folder selection and create temp zip
jwj7297 Aug 2, 2023
5f53c2d
call zip electron function in angular
jwj7297 Aug 2, 2023
0ce72b1
Generate Modal
jwj7297 Aug 3, 2023
7d57aed
Call generate modal and ipc
jwj7297 Aug 3, 2023
7704b57
Remove backend for now
jwj7297 Aug 7, 2023
2d20bd1
display folder selection and create temp zip
jwj7297 Aug 2, 2023
e37ff8a
call zip electron function in angular
jwj7297 Aug 2, 2023
70e55ce
Generate Modal
jwj7297 Aug 3, 2023
1476040
return zipped data from directory
jwj7297 Aug 3, 2023
10a4dc9
Call generate modal and ipc
jwj7297 Aug 3, 2023
10ec055
Remove backend for now
jwj7297 Aug 7, 2023
668e575
directory popup first for project
jwj7297 Aug 11, 2023
92f7198
fixed rebase issues
jwj7297 Aug 24, 2023
3123228
allow overflow of content on modal
jwj7297 Aug 24, 2023
0ee265d
tool selection for osi done
jwj7297 Aug 24, 2023
48412da
OSI Generation request succeed
jwj7297 Aug 28, 2023
cb4e90b
changed to fit content
Marrufof Aug 2, 2023
d669adf
fixed window size for file container
Marrufof Aug 3, 2023
4de0349
adding download report button
maxstein16 Aug 7, 2023
9165a7f
Fixed sbom names not just saying "sbom" in file list
jwj7297 Aug 9, 2023
7bf5d87
Fixed all alias methods
jwj7297 Aug 9, 2023
d9e345c
Compare fixed route call with alias
jwj7297 Aug 9, 2023
38cab87
adding spinner component
maxstein16 Aug 7, 2023
ae71794
spinner added to upload
maxstein16 Aug 7, 2023
accb64c
fixed spinner on upload
maxstein16 Aug 8, 2023
9423e9a
added button to download with functional method
Marrufof Aug 8, 2023
a25207d
moving button and changing function
Marrufof Aug 9, 2023
8eb9e47
removed generate from the downloadVex
Marrufof Aug 9, 2023
7c4614b
adding repair modal
maxstein16 Aug 9, 2023
8645a08
adding repair modal
maxstein16 Aug 9, 2023
36c5afb
changing the component conflicts accordion headers to message instead…
maxstein16 Aug 11, 2023
36688dc
removing comment from dropdown content
maxstein16 Aug 11, 2023
242c77e
moving app-viewer to compare
maxstein16 Aug 14, 2023
254c7cd
display folder selection and create temp zip
jwj7297 Aug 2, 2023
2ef13a5
install zip-a-folder
jwj7297 Aug 2, 2023
4a3e78b
call zip electron function in angular
jwj7297 Aug 2, 2023
043bbed
return zipped data from directory
jwj7297 Aug 3, 2023
8cc77d7
Call generate modal and ipc
jwj7297 Aug 3, 2023
168e28d
display folder selection and create temp zip
jwj7297 Aug 2, 2023
1be691b
call zip electron function in angular
jwj7297 Aug 2, 2023
c1286ba
Call generate modal and ipc
jwj7297 Aug 3, 2023
23bc495
reimport spinner
jwj7297 Aug 11, 2023
06ba0cf
fix depend install
jwj7297 Aug 11, 2023
1329253
directory popup first for project
jwj7297 Aug 11, 2023
c2f0a70
seperated zipping and directory selection
jwj7297 Aug 14, 2023
5fc5bce
zip directory electron
jwj7297 Aug 14, 2023
48285e8
made zip file blob
jwj7297 Aug 14, 2023
3856291
display folder selection and create temp zip
jwj7297 Aug 2, 2023
e6eb4f4
install zip-a-folder
jwj7297 Aug 2, 2023
ba53130
call zip electron function in angular
jwj7297 Aug 2, 2023
fa7b3bc
return zipped data from directory
jwj7297 Aug 3, 2023
5438320
Call generate modal and ipc
jwj7297 Aug 3, 2023
53e0a02
Remove backend for now
jwj7297 Aug 7, 2023
73e2746
display folder selection and create temp zip
jwj7297 Aug 2, 2023
6c1f21a
Generate Modal
jwj7297 Aug 3, 2023
f491f8a
return zipped data from directory
jwj7297 Aug 3, 2023
2a33af8
Remove backend for now
jwj7297 Aug 7, 2023
fb9305c
reimport spinner
jwj7297 Aug 11, 2023
207300b
fix depend install
jwj7297 Aug 11, 2023
db531cf
directory popup first for project
jwj7297 Aug 11, 2023
a6358e4
fixed rebase issues
jwj7297 Aug 24, 2023
6ae2673
OSI Generation request succeed
jwj7297 Aug 28, 2023
3136a79
display folder selection and create temp zip
jwj7297 Aug 2, 2023
6d35c3a
install zip-a-folder
jwj7297 Aug 2, 2023
e1c0f2b
call zip electron function in angular
jwj7297 Aug 2, 2023
f8d245d
fixed function zip import
jwj7297 Aug 2, 2023
09db717
Generate Modal
jwj7297 Aug 3, 2023
120d658
return zipped data from directory
jwj7297 Aug 3, 2023
98da0e7
Call generate modal and ipc
jwj7297 Aug 3, 2023
a2b74d4
Remove backend for now
jwj7297 Aug 7, 2023
312fc5c
display folder selection and create temp zip
jwj7297 Aug 2, 2023
2a2990c
call zip electron function in angular
jwj7297 Aug 2, 2023
3e14453
Call generate modal and ipc
jwj7297 Aug 3, 2023
0bf8455
reimport spinner
jwj7297 Aug 11, 2023
dcda416
fix depend install
jwj7297 Aug 11, 2023
cf9a918
get osi tools
jwj7297 Aug 11, 2023
3e26896
directory popup first for project
jwj7297 Aug 11, 2023
499acaa
seperated zipping and directory selection
jwj7297 Aug 14, 2023
790e82b
zip directory electron
jwj7297 Aug 14, 2023
ed0d834
made zip file blob
jwj7297 Aug 14, 2023
e899bc6
display folder selection and create temp zip
jwj7297 Aug 2, 2023
d110e1e
install zip-a-folder
jwj7297 Aug 2, 2023
669a036
call zip electron function in angular
jwj7297 Aug 2, 2023
3c92963
fixed function zip import
jwj7297 Aug 2, 2023
a9b0cc8
Generate Modal
jwj7297 Aug 3, 2023
7fe68fe
return zipped data from directory
jwj7297 Aug 3, 2023
13d19d1
Call generate modal and ipc
jwj7297 Aug 3, 2023
909c175
Remove backend for now
jwj7297 Aug 7, 2023
50011e7
display folder selection and create temp zip
jwj7297 Aug 2, 2023
46adacc
call zip electron function in angular
jwj7297 Aug 2, 2023
efcf548
fixed function zip import
jwj7297 Aug 2, 2023
122407b
Generate Modal
jwj7297 Aug 3, 2023
f64bfca
return zipped data from directory
jwj7297 Aug 3, 2023
701876e
Call generate modal and ipc
jwj7297 Aug 3, 2023
5378e82
Remove backend for now
jwj7297 Aug 7, 2023
0ffc77b
reimport spinner
jwj7297 Aug 11, 2023
0bb0705
fix depend install
jwj7297 Aug 11, 2023
95d3649
get osi tools
jwj7297 Aug 11, 2023
3187698
directory popup first for project
jwj7297 Aug 11, 2023
c441a1e
fixed rebase issues
jwj7297 Aug 24, 2023
63ce993
tool selection for osi done
jwj7297 Aug 24, 2023
39ccdd9
OSI Generation request succeed
jwj7297 Aug 28, 2023
87553a3
fixed rebase issues
jwj7297 Aug 31, 2023
3f5a345
fixed zip merge issues
jwj7297 Sep 18, 2023
71f219f
Shows generated SBOM in list, reworked generation status popups
jwj7297 Sep 18, 2023
2c931b4
Store SBOM array by id rather than path for duplicates
jwj7297 Sep 18, 2023
4f6bf4c
deleted vscode folder
jwj7297 Sep 18, 2023
6971079
removed temp.zip
jwj7297 Sep 18, 2023
96ad7c7
removed frontend folder
jwj7297 Sep 19, 2023
6074f2c
Revert "removed frontend folder"
jwj7297 Sep 19, 2023
fc99f00
fix git ignore
jwj7297 Sep 19, 2023
d20f357
Refactor filestructure to remove 'frontend/' folder (#208)
Hooobot Sep 18, 2023
56ec96c
Previous scaling changes
jwj7297 Sep 21, 2023
d7b2ced
package lock
jwj7297 Sep 21, 2023
1f001e7
Fixed viewer header shrink
jwj7297 Sep 21, 2023
4a991af
Fixed compare accordian not full width
jwj7297 Sep 21, 2023
70dd938
format always lines up, title lines up
jwj7297 Sep 21, 2023
0eaf1e4
rework sizing structure
jwj7297 Sep 22, 2023
c4fe02b
Can collapse file list on lower width
jwj7297 Sep 25, 2023
6694497
Update changelog.md
jwj7297 Sep 28, 2023
ac1be12
update readme
dlg1206 Oct 1, 2023
a766a0e
Fixed missing files and imports
jwj7297 Oct 5, 2023
bf8f1e9
Removed unneeded API calls
jwj7297 Oct 6, 2023
a12a725
added ignore temp.zip
jwj7297 Oct 6, 2023
f4bf164
Fixed features not working
jwj7297 Oct 6, 2023
66a923a
Merge pull request #214 from SoftwareDesignLab/dev-rebaseProblems
dlg1206 Oct 10, 2023
8bb6835
Fixed scrolllbar overflow modal
jwj7297 Oct 16, 2023
d24cbbf
Convert fixes
jwj7297 Oct 16, 2023
8190a1d
Fixed vex network call
jwj7297 Oct 16, 2023
f3a60b7
removed svip as convert option
jwj7297 Oct 18, 2023
e73164e
Merge pull request #217 from SoftwareDesignLab/dev-octReleaseFixes
dlg1206 Oct 18, 2023
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
File renamed without changes.
46 changes: 46 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,47 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# Compiled output
/dist
/tmp
/out-tsc
/bazel-out

# Node
/node_modules
npm-debug.log
yarn-error.log

# IDEs and editors
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# Miscellaneous
/.angular/cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
testem.log
/typings

# System files
.DS_Store
Thumbs.db

/.vscode/
/builds/

temp.zip
File renamed without changes.
32 changes: 32 additions & 0 deletions frontend/app.js → app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const { app, BrowserWindow, ipcMain, dialog } = require("electron");
const fs = require("fs");
const url = require("url");
const path = require("path");
const { zip } = require("zip-a-folder");

let mainWindow;

Expand Down Expand Up @@ -50,6 +51,37 @@ ipcMain.handle("selectFiles", async () => {
return files.filePaths;
});

ipcMain.handle("getZipFromFolder", async () => {
return new Promise(async(resolve, reject) => {
let folder = await dialog.showOpenDialog(mainWindow, {
properties: ["openDirectory"],
});

if(folder.filePaths.length === 1) {
let zipPath = folder.filePaths[0];
let tempPath = path.join(__dirname, "temp.zip");

zipPaths = [zipPath, tempPath];

return resolve(true);
}

return reject(false);
})
});

ipcMain.handle("zipDirectory", async() => {
return new Promise(async(resolve, reject) => {
try {
await zip(zipPaths[0], zipPaths[1]);
const fileData = await fs.promises.readFile(zipPaths[1]);
return resolve(fileData);
} catch(error) {
return reject(error);
}
})
})

ipcMain.handle("getFileData", async (event, ...args) => {
let data = fs.readFileSync(args[0], "utf8");
return data;
Expand Down
13 changes: 13 additions & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Frontend

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.2.0.

## Common Issues
- Run `npm ci` prior to building or running the app, otherwise you will be met with errors

## Development server

- Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files. If file uploading is needed, please refer to `Run App`.

## Run App
- Run `npm start` to launch electron app. This will not automatically reload and will need to be re-launched when code is updated.
20 changes: 19 additions & 1 deletion frontend/changelog.md → doc/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v1.1.0] - (9/28/23)
### Added
- Can download `vex` and `metrics` reports
- `Generate` SBOMS with both `OSI` and `Parsers`
- `Filter` added to metrics
- Can close opened menus on the right
- Loading spinners added as indicators

### Changed
- Corrected `Schema` header in file upload to `Format`
- Fixed various scaling issues with all display resolutions
- Removed `/frontend` folder and put `src` in root directory
- Accordions now automatically close when a sibling is opened

### Known Issues
- Repair Button doesn't do anything currently on metrics
- Generation modal may get stuck open on errors

## [v1.0.0] - (7/31/23)
### Added
- `Uploading` SBOMS
Expand All @@ -28,4 +46,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `Sidepanel`: Sidepanel may have information pop off the screen or not fully close
- `Comparison`: Information goes off screen and cannot be scrolled to
- `Navbar`: There is no indication of buttons being disabled
- `Vulnerabilities`: Vulnerabilities button is not shown to be disabled
- `Vulnerabilities`: Vulnerabilities button is not shown to be disabled
45 changes: 0 additions & 45 deletions frontend/.gitignore

This file was deleted.

34 changes: 0 additions & 34 deletions frontend/src/app/features/comparison/comparison.component.html

This file was deleted.

37 changes: 0 additions & 37 deletions frontend/src/app/features/comparison/comparison.component.ts

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions frontend/src/app/shared/components/menu/menu.component.html

This file was deleted.

Loading