Skip to content

Commit ed255d7

Browse files
authored
Merge pull request #170 from SoftwareDesignLab/dev
V1.0.0
2 parents f48347a + abf3652 commit ed255d7

File tree

113 files changed

+6752
-2955
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+6752
-2955
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

frontend/README.md

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,12 @@
22

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

5-
## Development server
6-
7-
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.
8-
9-
## Code scaffolding
10-
11-
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12-
13-
## Build
5+
## Common Issues
6+
- Run `npm ci` prior to building or running the app, otherwise you will be met with errors
147

15-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
16-
17-
## Running unit tests
18-
19-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20-
21-
## Running end-to-end tests
22-
23-
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
8+
## Development server
249

25-
## Further help
10+
- 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`.
2611

27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
12+
## Run App
13+
- Run `npm start` to launch electron app. This will not automatically reload and will need to be re-launched when code is updated.

frontend/angular.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,8 @@
9595
}
9696
}
9797
}
98+
},
99+
"cli": {
100+
"analytics": "0812ed0f-7fe3-4ead-911a-474b02068946"
98101
}
99102
}

frontend/app.js

Lines changed: 44 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,56 @@
1-
const {app, BrowserWindow} = require('electron')
1+
const { app, BrowserWindow, ipcMain, dialog } = require("electron");
2+
const fs = require("fs");
23
const url = require("url");
34
const path = require("path");
45

56
let mainWindow;
67

7-
function createWindow () {
8-
mainWindow = new BrowserWindow({
9-
width: 800,
10-
height: 600,
11-
webPreferences: {
12-
nodeIntegration: true
13-
}
14-
})
8+
function createWindow() {
9+
mainWindow = new BrowserWindow({
10+
minWidth: 800,
11+
minHeight: 600,
12+
show: false,
13+
webPreferences: {
14+
nodeIntegration: true,
15+
contextIsolation: false,
16+
},
17+
});
1518

16-
mainWindow.loadURL(
17-
url.format({
18-
pathname: path.join(__dirname, `/dist/frontend/index.html`),
19-
protocol: "file:",
20-
slashes: true
21-
})
22-
);
19+
mainWindow.maximize();
20+
mainWindow.show();
2321

24-
mainWindow.on('closed', function () {
25-
mainWindow = null
22+
mainWindow.loadURL(
23+
url.format({
24+
pathname: path.join(__dirname, `/dist/frontend/index.html`),
25+
protocol: "file:",
26+
slashes: true,
2627
})
28+
);
29+
30+
mainWindow.on("closed", function () {
31+
mainWindow = null;
32+
});
2733
}
2834

29-
app.on('ready', createWindow)
35+
app.on("ready", createWindow);
36+
37+
app.on("window-all-closed", function () {
38+
if (process.platform !== "darwin") app.quit();
39+
});
40+
41+
app.on("activate", function () {
42+
if (mainWindow === null) createWindow();
43+
});
44+
45+
ipcMain.handle("selectFiles", async () => {
46+
let files = await dialog.showOpenDialog(mainWindow, {
47+
properties: ["openFile", "multiSelections"],
48+
});
3049

31-
app.on('window-all-closed', function () {
32-
if (process.platform !== 'darwin')
33-
app.quit()
34-
})
50+
return files.filePaths;
51+
});
3552

36-
app.on('activate', function () {
37-
if (mainWindow === null)
38-
createWindow()
39-
})
53+
ipcMain.handle("getFileData", async (event, ...args) => {
54+
let data = fs.readFileSync(args[0], "utf8");
55+
return data;
56+
});

frontend/changelog.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [v1.0.0] - (7/31/23)
9+
### Added
10+
- `Uploading` SBOMS
11+
- `Viewing` SBOMS (Pretty and Raw View)
12+
- `Convert` SBOM to new schema and document format
13+
- `Run Quality` Assurance tests on SBOMs
14+
- `Compare` multiple SBOMS
15+
- `Merge` multiple SBOMs together
16+
- `Download` download SBOMs
17+
18+
### Known Issues
19+
- `Main View`: responsiveness issues for viewer, scrollbar goes off page
20+
- `Main Window`: app is not vertically responsive
21+
22+
## [v0.0.0] - (5/22/23)
23+
### Added
24+
- `New Gui`: Created GUI Skeleton now utilizing Angular Bootstrap instead of Material Angular
25+
- `Plugfest`: Merged Plugfest capabilities into SVIP
26+
27+
### Known Issues
28+
- `Sidepanel`: Sidepanel may have information pop off the screen or not fully close
29+
- `Comparison`: Information goes off screen and cannot be scrolled to
30+
- `Navbar`: There is no indication of buttons being disabled
31+
- `Vulnerabilities`: Vulnerabilities button is not shown to be disabled

0 commit comments

Comments
 (0)