ing
This commit is contained in:
parent
2fc9680f81
commit
844e1cfb00
69
electron-builder.json
Normal file
69
electron-builder.json
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
{
|
||||||
|
"appId": "com.loafle.overflow.scanner",
|
||||||
|
"copyright": "LOAFLE",
|
||||||
|
"productName": "overFlow Network Scanner",
|
||||||
|
"files": "**/*",
|
||||||
|
"asar": true,
|
||||||
|
"compression": "normal",
|
||||||
|
"npmRebuild": false,
|
||||||
|
"npmSkipBuildFromSource": false,
|
||||||
|
"artifactName": "${productName}[${env.WAVES_CONFIGURATION}]-${version}-${os}.${ext}",
|
||||||
|
"directories": {
|
||||||
|
"buildResources": "electron/"
|
||||||
|
},
|
||||||
|
"linux": {
|
||||||
|
"category": "Utility",
|
||||||
|
"target": [
|
||||||
|
{
|
||||||
|
"target": "deb",
|
||||||
|
"arch": [
|
||||||
|
"x64",
|
||||||
|
"ia32"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"target": "zip",
|
||||||
|
"arch": [
|
||||||
|
"x64"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"executableName": "overFlow-Network-Scanner"
|
||||||
|
},
|
||||||
|
"mac": {
|
||||||
|
"category": "public.app-category.utilities",
|
||||||
|
"target": [
|
||||||
|
"dmg"
|
||||||
|
],
|
||||||
|
"icon": "electron/icons/icon.icns"
|
||||||
|
},
|
||||||
|
"win": {
|
||||||
|
"target": [
|
||||||
|
{
|
||||||
|
"target": "nsis",
|
||||||
|
"arch": [
|
||||||
|
"x64",
|
||||||
|
"ia32"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"target": "zip",
|
||||||
|
"arch": [
|
||||||
|
"x64"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"legalTrademarks": "overFlow",
|
||||||
|
"icon": "electron/icons/icon.ico"
|
||||||
|
},
|
||||||
|
"nsis": {
|
||||||
|
"artifactName": "overFlow-Network-Scanner[${env.WAVES_CONFIGURATION}]-setup-${version}.${ext}",
|
||||||
|
"include": "config/build/windows/nsis/installer.nsh",
|
||||||
|
"installerIcon": "electron/icons/icon.ico",
|
||||||
|
"uninstallerIcon": "electron/icons/icon.ico"
|
||||||
|
},
|
||||||
|
"dmg": {
|
||||||
|
"icon": null,
|
||||||
|
"background": "electron/icons/macos-installer-bg.tiff"
|
||||||
|
}
|
||||||
|
}
|
30
package.json
30
package.json
|
@ -16,36 +16,6 @@
|
||||||
"electron:builder:install-app-deps": "electron-builder install-app-deps"
|
"electron:builder:install-app-deps": "electron-builder install-app-deps"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"productName": "overFlow Network Scanner",
|
|
||||||
"build": {
|
|
||||||
"appId": "com.loafle.overflow.scanner",
|
|
||||||
"files": [
|
|
||||||
""
|
|
||||||
],
|
|
||||||
"win": {
|
|
||||||
"target": [
|
|
||||||
{
|
|
||||||
"target": "nsis",
|
|
||||||
"arch": [
|
|
||||||
"x64",
|
|
||||||
"ia32"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"icon": ".ico"
|
|
||||||
},
|
|
||||||
"nsis": {
|
|
||||||
"oneClick": false,
|
|
||||||
"perMachine": true,
|
|
||||||
"allowToChangeInstallationDirectory": true,
|
|
||||||
"language": 1042,
|
|
||||||
"include": "config/build/installer.nsh",
|
|
||||||
"shortcutName": ""
|
|
||||||
},
|
|
||||||
"directories": {
|
|
||||||
"output": "build/packages"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"electron-devtools-installer": "^2.2.4",
|
"electron-devtools-installer": "^2.2.4",
|
||||||
"rxjs": "^6.2.2",
|
"rxjs": "^6.2.2",
|
||||||
|
|
|
@ -200,7 +200,7 @@ export class HomePageComponent implements OnInit, OnDestroy {
|
||||||
const svg = d3.select(this.discoveryTargetRef.nativeElement);
|
const svg = d3.select(this.discoveryTargetRef.nativeElement);
|
||||||
|
|
||||||
this.zoomBehavior = d3.zoom()
|
this.zoomBehavior = d3.zoom()
|
||||||
.scaleExtent([0.5, 4])
|
.scaleExtent([0.2, 4])
|
||||||
.on('zoom', () => {
|
.on('zoom', () => {
|
||||||
const transform = d3.event.transform;
|
const transform = d3.event.transform;
|
||||||
svg.select('g').attr('transform', 'translate(' + transform.x + ',' + transform.y + ') scale(' + transform.k + ')');
|
svg.select('g').attr('transform', 'translate(' + transform.x + ',' + transform.y + ') scale(' + transform.k + ')');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user