Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0sh3ll committed Jul 3, 2024
1 parent 1817ca6 commit f2474fe
Show file tree
Hide file tree
Showing 22 changed files with 36 additions and 43 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<br>

<p>
Asterisk is a threat modeling tool tailored towards agile software development. It provides a clean and easy to use model editor which is loosely inspired by <a href="https://github.com/OWASP/threat-dragon">OWASP Threat Dragon</a> (as it also makes use of the <a href="https://github.com/antvis/X6">antvis X6</a> library). Besides the model editor, Asterisk allows you to structure your threat modeling projects into products, product increments, and models to conveniently keep track of any changes throughout application development. In the near future, it is planned to implement a "diff view" feature to highlight model changes between different increments. More coming soon...
nexTM is a threat modeling tool tailored towards agile software development. It provides a clean and easy to use model editor which is loosely inspired by <a href="https://github.com/OWASP/threat-dragon">OWASP Threat Dragon</a> (as it also makes use of the <a href="https://github.com/antvis/X6">antvis X6</a> library). Besides the model editor, Asterisk allows you to structure your threat modeling projects into products, product increments, and models to conveniently keep track of any changes throughout application development. In the near future, it is planned to implement a "diff view" feature to highlight model changes between different increments. More coming soon...

This project uses the <a href="https://github.com/electron-react-boilerplate/electron-react-boilerplate">Electron React Boilerplate.</a>
</p>
Expand All @@ -12,7 +12,6 @@ This project uses the <a href="https://github.com/electron-react-boilerplate/ele
[![Build Status][github-actions-status]][github-actions-url]
[![Github Tag][github-tag-image]][github-tag-url]
[![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.gg/Fjy3vfgy5q)

[![OpenCollective](https://opencollective.com/electron-react-boilerplate-594/backers/badge.svg)](#backers)
[![OpenCollective](https://opencollective.com/electron-react-boilerplate-594/sponsors/badge.svg)](#sponsors)
[![StackOverflow][stackoverflow-img]][stackoverflow-url]
Expand All @@ -25,7 +24,7 @@ Clone the repo and install dependencies:

```bash
git clone <TODO>
cd asterisk
cd nextm
npm install
```

Expand Down Expand Up @@ -54,8 +53,8 @@ npm run package
```

## Maintainers
- [tac0sh3ll](https://github.com/tac0sh3ll)
- [dkrohmer](https://github.com/dkrohmer)

## License
AGPL v3.0 © [Asterisk](https://github.com/tac0sh3ll/Asterisk)
AGPL v3.0 © [nexTM](https://github.com/dkrohmer/nextm)

Binary file modified assets/icon.icns
Binary file not shown.
Binary file modified assets/icon.ico
Binary file not shown.
Binary file modified assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/1024x1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 10 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,21 @@
"hot",
"reload"
],
"homepage": "https://github.com/electron-react-boilerplate/electron-react-boilerplate#readme",
"homepage": "",
"bugs": {
"url": "https://github.com/electron-react-boilerplate/electron-react-boilerplate/issues"
"url": ""
},
"repository": {
"type": "git",
"url": "git+https://github.com/electron-react-boilerplate/electron-react-boilerplate.git"
"url": "git+https://github.com/dkrohmer/nextm"
},
"license": "MIT",
"license": "AGPL v3.0",
"author": {
"name": "Electron React Boilerplate Maintainers",
"email": "[email protected]",
"url": "https://electron-react-boilerplate.js.org"
"name": "Daniel Krohmer",
"email": "",
"url": "http://github.com/dkrohmer"
},
"contributors": [
{
"name": "Amila Welihinda",
"email": "[email protected]",
"url": "https://github.com/amilajack"
}
],
"contributors": [],
"main": "./src/main/main.ts",
"scripts": {
"build": "concurrently \"npm run build:main\" \"npm run build:renderer\"",
Expand Down Expand Up @@ -202,8 +196,8 @@
"webpack-merge": "^5.10.0"
},
"build": {
"productName": "Asterisk",
"appId": "org.erb.Asterisk",
"productName": "nexTM",
"appId": "org.erb.nextm",
"asar": true,
"asarUnpack": "**\\*.{node,dll}",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions release/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main/controllers/ProductController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Product } from '../models/Product';
import { Responsible } from '../models/Responsible';

// Configure electron-log to write to the root directory
log.transports.file.resolvePath = () => path.join(__dirname, '..', 'logs', 'asterisk-main.log');
log.transports.file.resolvePath = () => path.join(__dirname, '..', 'logs', 'nextm-main.log');

log.transports.file.level = 'debug';
log.info('App starting...');
Expand Down
16 changes: 8 additions & 8 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ let modelController: ModelController;
let versionController: VersionController;

const configPath: string = (process.env.NODE_ENV === 'development')
? 'asterisk.conf'
: path.resolve(app.getPath('userData'), 'asterisk.conf');
? 'nextm.conf'
: path.resolve(app.getPath('userData'), 'nextm.conf');

const getDefaultDbPath = () => {
const dbPath = (process.env.NODE_ENV === 'development')
? 'asterisk.db'
: path.resolve(app.getPath('userData'), 'asterisk.db');
? 'nextm.db'
: path.resolve(app.getPath('userData'), 'nextm.db');
return dbPath;
}

Expand Down Expand Up @@ -282,7 +282,7 @@ const createWindow = async () => {

while (true) {
try {
const filename = `asterisk${count >= 2 ? count : ''}.db`;
const filename = `nextm${count >= 2 ? count : ''}.db`;
dbPath = path.join(input, filename);

if (fs.existsSync(dbPath)) {
Expand Down Expand Up @@ -324,8 +324,8 @@ const createWindow = async () => {
// Check if the file exists
if (input === 'default') {
dbPath = (process.env.NODE_ENV === 'development')
? 'asterisk.db'
: path.resolve(app.getPath('userData'), 'asterisk.db');
? 'nextm.db'
: path.resolve(app.getPath('userData'), 'nextm.db');
} else if (fs.existsSync(input)) {
dbPath = input;
} else {
Expand Down Expand Up @@ -460,7 +460,7 @@ app
setConfig('databasePath', dbPath)
}

// const databasePath = path.join(__dirname, '..', 'asterisk.db');
// const databasePath = path.join(__dirname, '..', 'nextm.db');
await initializeDataSource(dbPath); // Initialize the data source
initializeControllers();

Expand Down
8 changes: 4 additions & 4 deletions src/renderer/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Footer: React.FC = () => (
<Container textAlign='center'>
<Grid centered stackable>
<Grid.Column width={3} textAlign='center'>
<a href="https://github.com/tac0sh3ll/Asterisk" target="_blank" rel="noopener noreferrer" style={{...flexStyle}}>
<a href="https://github.com/dkrohmer/nextm" target="_blank" rel="noopener noreferrer" style={{...flexStyle}}>
<Icon name='github' size='large' />
<List.Item as='h5' content='Contribute' style={{ margin: 0 }} />
</a>
Expand All @@ -45,10 +45,10 @@ const Footer: React.FC = () => (

<List horizontal inverted={true} divided size='small'>
<List.Item>
Asterisk v0.1.0
nextm v0.1.0
</List.Item>
<List.Item as='a' href='https://github.com/tac0sh3ll' target="_blank" rel="noopener noreferrer" style={{textStyle}}>
© 2024. tac0sh3ll
<List.Item as='a' href='https://github.com/dkrohmer' target="_blank" rel="noopener noreferrer" style={{textStyle}}>
© 2024. Daniel Krohmer
</List.Item>
<List.Item as='a' href='https://www.gnu.org/licenses/agpl-3.0.txt' target="_blank" rel="noopener noreferrer" style={{textStyle}}>
AGPL v3.0
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/ToastManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ export const ToastManager: React.FC = () => {
}
}, [toastVisible, toastPromise, toastLoadingMessage, toastSuccessMessage, toastErrorMessage, dispatch]);

return <Toaster position="top-center" toastOptions={{ style: { marginTop: '120px' } }} />;
return <Toaster position="top-center" toastOptions={{ style: { marginTop: '100px' } }} />;
};
2 changes: 1 addition & 1 deletion src/renderer/components/TopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const TopBar: React.FC = () => {
<img
src={logo}
alt="Logo"
style={{ margin: '10px', width: '150px', padding: '0px' }}
style={{ margin: '10px', width: '120px', padding: '0px' }}
/>
</Menu.Header>
<Menu.Menu position='right'>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
http-equiv="Content-Security-Policy"
content="script-src 'self' 'unsafe-inline'"
/>
<title>Asterisk</title>
<title>nexTM</title>
</head>
<body>
<div id="root"></div>
Expand Down

0 comments on commit f2474fe

Please sign in to comment.