Skip to content

Commit 28ed6af

Browse files
9glendacn1t
andauthored
initial impl of fixing a lot of bugs (#551)
* initial impl of fixing a lot of bugs * cleaned up * build.sh * fixed age bug TODO: fix undefined bug * Fix search bar display bug * Remove translation * Removed c-container, added templates for dropdowns * Remove unnecessary functions * Maybe this fixes the github warning * Delete build.sh --------- Co-authored-by: Nite <[email protected]>
1 parent 385b790 commit 28ed6af

File tree

13 files changed

+543
-1214
lines changed

13 files changed

+543
-1214
lines changed

api/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ func ServeApi(config ApiConfig) {
7777
config.SetupWebServer()
7878
}
7979
config.ServeTempMail()
80-
config.GinRouter.GET("/api/", Handler(GetDataBase, config)) // return entire database
80+
config.GinRouter.GET("/api/", Handler(GetDataBase, config))
81+
config.GinRouter.GET("/api/db", Handler(GetDataBase, config)) // return entire database
8182
config.GinRouter.GET("/api/deep/github/:username", Handler(GithubInfoDeepRequest, config)) // deep investigation of github account // FIXME
8283
config.GinRouter.GET("/api/search/google/:query", Handler(GoogleRequest, config)) // get results from google
8384
config.GinRouter.GET("/api/search/whois/:query", Handler(WhoisRequest, config)) // get whois of domain
@@ -319,7 +320,6 @@ func WhoisRequest(config ApiConfig, c *gin.Context) {
319320
c.IndentedJSON(http.StatusOK, Whois(c.Param("query"), config))
320321
}
321322

322-
323323
func ScanAccounts(config ApiConfig, username string) services.ServiceCheckResults {
324324
user := services.User{
325325
Username: username,

api/types.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,31 @@ import (
1515

1616
// main data set
1717
type Person struct {
18-
ID string `json:"id"`
19-
Name string `json:"name"`
18+
ID string `json:"id" ts_transform:"__VALUE__ || ''"`
19+
Name string `json:"name" ts_transform:"__VALUE__ || ''"`
2020
Gender gender.Gender `json:"gender"`
2121
Ethnicity ethnicity.Ethnicity `json:"ethnicity"`
2222
Pictures Pictures `json:"pictures"`
23-
Maidenname string `json:"maidenname"`
24-
Age Age `json:"age"` // has to be a float64 becuase of json Unmarshal
25-
Birthday string `json:"bday"`
26-
Address string `json:"address"`
23+
Maidenname string `json:"maidenname" ts_transform:"__VALUE__ || ''"`
24+
Age Age `json:"age" ts_transform:"__VALUE__ || 0` // has to be a float64 becuase of json Unmarshal
25+
Birthday string `json:"bday" ts_transform:"__VALUE__ || ''"`
26+
Address string `json:"address" ts_transform:"__VALUE__ || ''"`
2727
Phone PhoneNumbers `json:"phone"`
2828
Ips ip.Ips `json:"ips"`
2929
Civilstatus civilstatus.CivilStatus `json:"civilstatus"`
30-
Kids string `json:"kids"`
30+
Kids string `json:"kids" ts_transform:"__VALUE__ || ''"`
3131
Hobbies hobby.Hobbies `json:"hobbies"`
3232
Email EmailsType `json:"email"`
33-
Occupation string `json:"occupation"`
34-
Prevoccupation string `json:"prevoccupation"`
35-
Education string `json:"education"`
36-
Military string `json:"military"`
33+
Occupation string `json:"occupation" ts_transform:"__VALUE__ || ''"`
34+
Prevoccupation string `json:"prevoccupation" ts_transform:"__VALUE__ || ''"`
35+
Education string `json:"education" ts_transform:"__VALUE__ || ''"`
36+
Military string `json:"military" ts_transform:"__VALUE__ || ''"`
3737
Religion religion.Religion `json:"religion"`
38-
Pets string `json:"pets"`
38+
Pets string `json:"pets" ts_transform:"__VALUE__ || ''"`
3939
Clubs club.Clubs `json:"clubs"`
40-
Legal string `json:"legal"`
41-
Political string `json:"political"`
42-
Notes string `json:"notes"`
40+
Legal string `json:"legal" ts_transform:"__VALUE__ || ''"`
41+
Political string `json:"political" ts_transform:"__VALUE__ || ''"`
42+
Notes string `json:"notes" ts_transform:"__VALUE__ || ''"`
4343
Relations Relation `json:"relations"` // FIXME
4444
Sources sources.Sources `json:"sources"`
4545
Accounts Accounts `json:"accounts"`

web/css/style.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ html {
3838
.gender-select,
3939
.ethnicity-select,
4040
.religion-select,
41-
.civilstatus-select {
41+
.civilstatus-select,
42+
.dropdown-select {
4243
position: relative;
4344
font-family: Arial;
4445
margin-top: 0.5rem;
@@ -48,7 +49,8 @@ html {
4849
.gender-select select,
4950
.ethnicity-select select,
5051
.religion-select select,
51-
.civilstatus-select select {
52+
.civilstatus-select select,
53+
.dropdown-select select {
5254
display: none;
5355
/*hide original SELECT element:*/
5456
}

web/guide.html

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
<script type="module" src="./dist/ts/framework.js" defer></script>
2222
<script type="module" src="./dist/ts/guide.js" defer></script>
2323

24-
<script src="./dist/ts/translate.js"></script>
25-
2624
<script type="text/javascript" defer>
2725
// Check local storage for theme setting
2826

@@ -31,7 +29,7 @@
3129
}
3230
</script>
3331
</head>
34-
<body onload="onLoadTranslate()">
32+
<body>
3533
<div class="dd-nav-bar-top"></div>
3634
<div class="dd-nav-bar">
3735
<div class="country-select">
@@ -53,7 +51,7 @@
5351
</label>
5452
</div>
5553

56-
<p class="desc-text" lng-tag="name">Name</p>
54+
<p class="desc-text">Name</p>
5755
</div>
5856

5957
<div class="form-option">
@@ -64,7 +62,7 @@
6462
</label>
6563
</div>
6664

67-
<p class="desc-text" lng-tag="address">Address</p>
65+
<p class="desc-text">Address</p>
6866
</div>
6967

7068
<div class="form-option">
@@ -75,7 +73,7 @@
7573
</label>
7674
</div>
7775

78-
<p class="desc-text" lng-tag="phone">Phone</p>
76+
<p class="desc-text">Phone</p>
7977
</div>
8078

8179
<div class="form-option">
@@ -86,7 +84,7 @@
8684
</label>
8785
</div>
8886

89-
<p class="desc-text" lng-tag="vin">VIN</p>
87+
<p class="desc-text">VIN</p>
9088
</div>
9189

9290
<div class="form-option">
@@ -97,7 +95,7 @@
9795
</label>
9896
</div>
9997

100-
<p class="desc-text" lng-tag="business">Business</p>
98+
<p class="desc-text">Business</p>
10199
</div>
102100

103101
<div class="form-option">
@@ -108,7 +106,7 @@
108106
</label>
109107
</div>
110108

111-
<p class="desc-text" lng-tag="ip">IP</p>
109+
<p class="desc-text">IP</p>
112110
</div>
113111

114112
<div class="form-option">
@@ -119,7 +117,7 @@
119117
</label>
120118
</div>
121119

122-
<p class="desc-text" lng-tag="username">Username</p>
120+
<p class="desc-text">Username</p>
123121
</div>
124122

125123
<div class="form-option">
@@ -130,7 +128,7 @@
130128
</label>
131129
</div>
132130

133-
<p class="desc-text" lng-tag="domain">Domain</p>
131+
<p class="desc-text">Domain</p>
134132
</div>
135133
</div>
136134
</div>

web/index.html

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323
<script src="./dist/ts/easteregg.js" defer></script>
2424

25-
<script src="./dist/ts/translate.js"></script>
26-
2725
<script type="text/javascript" defer>
2826
// Check local storage for theme setting
2927

@@ -33,36 +31,36 @@
3331
</script>
3432
</head>
3533

36-
<body onload="onLoadTranslate()">
34+
<body>
3735
<div class="hub-menu-div">
38-
<p class="hub-headline" lng-tag="choose_your_optimal_seekr_experience">Choose your optimal SEEKR experience</p>
36+
<p class="hub-headline">Choose your optimal SEEKR experience</p>
3937

4038
<div class="hub-choice">
4139
<div class="hub-desktop-div">
42-
<p class="hub-desktop-title" lng-tag="seekr_desktop">SEEKR Desktop</p>
40+
<p class="hub-desktop-title"">SEEKR Desktop</p>
4341

4442
<ul class="hub-desktop-ul">
45-
<li lng-tag="the_full_version_of_seekr">The full version of SEEKR</li>
46-
<li lng-tag="includes_many_tools_to_help_your_osint_investigation">Includes many tools to help your OSINT investigation</li>
47-
<li lng-tag="not_intended_for_mobile_devices">Not intended for mobile devices</li>
43+
<li>The full version of SEEKR</li>
44+
<li>Includes many tools to help your OSINT investigation</li>
45+
<li>Not intended for mobile devices</li>
4846
</ul>
4947

5048
<div class="hub-desktop-btn" onclick="window.location.href='/web/desktop.html';">
51-
<p class="not-selectable" lng-tag="use">Use</p>
49+
<p class="not-selectable">Use</p>
5250
</div>
5351
</div>
5452

5553
<div class="hub-lite-div">
56-
<p class="hub-lite-title" lng-tag="seekr_lite">SEEKR Lite</p>
54+
<p class="hub-lite-title">SEEKR Lite</p>
5755

5856
<ul class="hub-lite-ul">
59-
<li lng-tag="a_lightweight_version_of_seekr">A lightweight version of SEEKR</li>
60-
<li lng-tag="barebones_database_view">Barebones database view</li>
61-
<li lng-tag="works_on_mobile_devices">Works on mobile devices</li>
57+
<li>A lightweight version of SEEKR</li>
58+
<li>Barebones database view</li>
59+
<li>Works on mobile devices</li>
6260
</ul>
6361

6462
<div class="hub-lite-btn" onclick="window.location.href='/web/lite.html';">
65-
<p class="not-selectable" lng-tag="use">Use</p>
63+
<p class="not-selectable">Use</p>
6664
</div>
6765
</div>
6866
</div>

0 commit comments

Comments
 (0)