Skip to content

Commit e86ab0f

Browse files
committed
Merge branch 'main' of github.com:clidey/whodb into hk/feature/add-storage-unit-and-row
2 parents 2de5fe7 + 3e9a94a commit e86ab0f

File tree

10 files changed

+23
-56
lines changed

10 files changed

+23
-56
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
# WhoDB
2-
3-
Clidey Build: <img src="https://hello.clidey.com/api/flows/status?id=b32257fa-1415-4847-a0f3-e684f5f76608&secret=cd74dbd5-36ec-42f9-b4f0-12ce9fcc762b" alt="Clidey build status" height="20px" />
1+
# <img src="./docs/images/logo.png" width="30px" height="auto" /> WhoDB
42

53
### *"Making your database management disappear like magic!"*
4+
<p align="center"><img src="./docs/images/trailer.png" alt="Trailer" width="100%" height="auto" /></p>
65

76
## Description
87
Welcome to **WhoDB** – a powerful, lightweight (~20Mi), and user-friendly database management tool that combines the simplicity of Adminer with superior UX and performance. WhoDB is written in GoLang for optimal speed and efficiency and features interactive graphs for visualizing your entire database schema. Whether you're managing a small project or a complex enterprise system, WhoDB is designed to make your database administration tasks smoother and more intuitive.
@@ -104,11 +103,17 @@ A: While WhoDB is designed for lightweight and efficient database exploration, i
104103

105104
We welcome contributions from the community! Feel free to open issues or submit pull requests to help improve WhoDB.
106105

106+
## Infrastrucutre
107+
108+
The Deployment and CI/CD is completely managed by Clidey (a no-code DevOps platform). For more information, visit https://clidey.com
109+
110+
Clidey Build Status: &nbsp; <img src="https://hello.clidey.com/api/flows/status?id=b32257fa-1415-4847-a0f3-e684f5f76608&secret=cd74dbd5-36ec-42f9-b4f0-12ce9fcc762b" alt="Clidey build status" height="20px" />
107111

108112
## Contact
109113

110114
For any inquiries or support, please reach out to [support@clidey.com](mailto:support@clidey.com).
111115

116+
112117
<div style="width:100%;border-bottom:0.5px solid white;margin:50px 0px;"></div>
113118

114-
*WhoDB - Making your database management disappear like magic!*
119+
*WhoDB - Making your database management disappear like magic!*

core/src/plugins/mongodb/db.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ func DB(config *engine.PluginConfig) (*mongo.Client, error) {
1414
ctx := context.Background()
1515
port := common.GetRecordValueOrDefault(config.Credentials.Advanced, "Port", "27017")
1616
queryParams := common.GetRecordValueOrDefault(config.Credentials.Advanced, "URL Params", "")
17+
dnsEnabled := common.GetRecordValueOrDefault(config.Credentials.Advanced, "DNS Enabled", "false")
1718
var connectionString string
18-
// TODO: add TLS enabled logic to work instead of hard coded domains
19-
if config.Credentials.Hostname == "localhost" || config.Credentials.Hostname == "host.docker.internal" {
19+
if dnsEnabled == "false" {
2020
connectionString = fmt.Sprintf("mongodb://%s:%s@%s:%s/%s%s",
2121
config.Credentials.Username,
2222
config.Credentials.Password,

docs/images/logo.png

24.5 KB
Loading

docs/images/trailer.png

414 KB
Loading

frontend/public/images/logo.png

20.3 KB
Loading

frontend/public/images/logo.svg

Lines changed: 0 additions & 42 deletions
This file was deleted.

frontend/public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" href="%PUBLIC_URL%/images/logo.svg" />
5+
<link rel="icon" href="%PUBLIC_URL%/images/logo.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
88
<meta
99
name="description"
1010
content="WhoDB is the next-generation database explorer"
1111
/>
12-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/images/logo.svg" />
12+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/images/logo.png" />
1313
<!--
1414
manifest.json provides metadata used when your web app is installed on a
1515
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/

frontend/src/components/sidebar/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export const Sidebar: FC = () => {
305305
}
306306
}} animate={animate}>
307307
<div className="flex gap-2">
308-
<img src="https://clidey.com/logo.svg" alt="clidey logo" className="w-8 h-8" />
308+
<img src="/images/logo.png" alt="clidey logo" className="w-auto h-8" />
309309
<span className={classNames(BRAND_COLOR, "text-2xl")}>WhoDB</span>
310310
</div>
311311
</motion.div>

frontend/src/pages/auth/login.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const databaseTypeDropdownItems: IDropdownItem<Record<string, string>>[] = [
4545
id: "MongoDB",
4646
label: "MongoDB",
4747
icon: Icons.Logos.MongoDB,
48-
extra: {"Port": "27017", "URL Params": "?"},
48+
extra: {"Port": "27017", "URL Params": "?", "DNS Enabled": "false"},
4949
},
5050
{
5151
id: "Redis",
@@ -168,10 +168,13 @@ export const LoginPage: FC = () => {
168168
setUsername(url.username);
169169
setPassword(url.password);
170170
setDatabase(url.pathname.substring(1));
171-
setAdvancedForm({ "Port": url.port.length > 0 ? url.port : "80", "URL Params": `?${url.searchParams.toString()}` });
172-
if (url.port != null || url.searchParams.size !== 0) {
173-
setShowAdvanced(true);
171+
const advancedForm = { "Port": "27017", "URL Params": `?${url.searchParams.toString()}`, "DNS Enabled": "false" };
172+
if (url.port.length === 0) {
173+
advancedForm["Port"] = "";
174+
advancedForm["DNS Enabled"] = "true";
174175
}
176+
setAdvancedForm(advancedForm);
177+
setShowAdvanced(true);
175178
}, [databaseType.id]);
176179

177180
const fields = useMemo(() => {

frontend/src/pages/storage-unit/explore-storage-unit-where-condition.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export const ExploreStorageUnitWhereCondition: FC<IExploreStorageUnitWhereCondit
155155
<AnimatePresence mode="wait">
156156
{
157157
newFilter &&
158-
<motion.div className="flex gap-1 z-[5] py-2 px-4 absolute top-full mt-1 rounded-lg shadow-md border border-neutral-100 dark:border-white/5 dark:bg-white/20 dark:backdrop-blur-xl translate-y-full bg-white" initial={{
158+
<motion.div className="flex gap-1 z-[5] py-2 px-4 absolute top-full mt-1 rounded-lg shadow-md border border-neutral-100 dark:border-white/5 dark:bg-white/20 translate-y-full bg-white" initial={{
159159
y: -10,
160160
opacity: 0,
161161
}} animate={{
@@ -165,6 +165,7 @@ export const ExploreStorageUnitWhereCondition: FC<IExploreStorageUnitWhereCondit
165165
y: -10,
166166
opacity: 0,
167167
}}>
168+
<div className="hidden absolute inset-0 rounded-lg dark:flex dark:backdrop-blur-xl -z-[1]" />
168169
<Dropdown noItemsLabel="No fields found" className="min-w-[100px]" value={createDropdownItem(currentFilter.field)} items={fieldsDropdownItems} onChange={handleFieldSelect} />
169170
<Dropdown noItemsLabel="No operators found" className="min-w-20" value={createDropdownItem(currentFilter.operator)} items={validOperators} onChange={handleOperatorSelector} />
170171
<Input inputProps={{

0 commit comments

Comments
 (0)