diff --git a/src/main/api/project.ts b/src/main/api/project.ts index b454744..d56afd3 100644 --- a/src/main/api/project.ts +++ b/src/main/api/project.ts @@ -2,6 +2,7 @@ /* eslint-disable no-console */ import fs from 'fs'; import path from 'path'; +import { defaultToolObj } from '../util'; export const PROJECT_DIR = path.join(__dirname, '../../../projects'); @@ -37,6 +38,12 @@ export function createJsonFile(name: string, domain: string) { const obj = { name, domain, + subFinder: defaultToolObj(), + liveDomains: defaultToolObj(), + screenWin: defaultToolObj(), + archive: defaultToolObj(), + waybackurls_js: defaultToolObj(), + waybackurls_parameter: defaultToolObj(), }; const stringifyObj = JSON.stringify(obj); try { diff --git a/src/main/util.ts b/src/main/util.ts index af35cc8..35b8011 100644 --- a/src/main/util.ts +++ b/src/main/util.ts @@ -49,3 +49,6 @@ export function createDirIfNotExist(outputDir: string, dirname: string) { console.error(err); } } +export function defaultToolObj(): { run: boolean; resulCount: number } { + return { run: false, resulCount: 0 }; +}