-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreplace_ui.js
More file actions
49 lines (47 loc) · 1.46 KB
/
replace_ui.js
File metadata and controls
49 lines (47 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
const fs = require('fs');
let code = fs.readFileSync('frontend/src/pages/Wizard.jsx', 'utf-8');
const searchString = ` return {
companyName: "",
industry: "",
entityType: "",
foundedYear: "",
stage: "",
revenue: "",
teamSize: "",
socialCategory: "General",
msmeStatus: "",
dpiit: false,
womenLed: false,
firstGen: false,
exServicemen: false,
pwd: false,
operationScope: "Regional",
hqState: "",
locationType: "Urban (Tier 1/2)",
exportFocused: false,
fundPurpose: [],
challenge: ""
};`;
const replaceString = ` return {
companyName: "Digimantra",
industry: "Software / IT Services",
entityType: "Private Limited",
foundedYear: "2019",
stage: "Growth",
revenue: "5 Crore to 50 Crore INR",
teamSize: "21-50",
socialCategory: "General",
msmeStatus: "Udyam Registered",
dpiit: true,
womenLed: false,
firstGen: true,
exServicemen: false,
pwd: false,
operationScope: "National",
hqState: "Maharashtra",
locationType: "Urban (Tier 1/2)",
exportFocused: false,
fundPurpose: ["Product Development", "Marketing & Growth"],
challenge: "Need funds to scale AI tools"
};`;
fs.writeFileSync('frontend/src/pages/Wizard.jsx', code.replace(searchString, replaceString));