Skip to content

Commit 913b652

Browse files
committed
format code
1 parent 60ded29 commit 913b652

4 files changed

Lines changed: 34 additions & 23 deletions

File tree

internal/repository/audit/audit.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ import (
1616
)
1717

1818
type auditRow struct {
19-
ID string `db:"id"`
20-
ProjectID *string `db:"project_id"`
21-
UserID *string `db:"user_id"`
22-
Action string `db:"action"`
23-
EntityType string `db:"entity_type"`
24-
EntityID *string `db:"entity_id"`
25-
Summary string `db:"summary"`
19+
ID string `db:"id"`
20+
ProjectID *string `db:"project_id"`
21+
UserID *string `db:"user_id"`
22+
Action string `db:"action"`
23+
EntityType string `db:"entity_type"`
24+
EntityID *string `db:"entity_id"`
25+
Summary string `db:"summary"`
2626
Details *json.RawMessage `db:"details"`
27-
IP *string `db:"ip"`
28-
UserAgent *string `db:"user_agent"`
29-
CreatedAt time.Time `db:"created_at"`
30-
UserFirstName *string `db:"user_first_name"`
31-
UserLastName *string `db:"user_last_name"`
32-
UserEmail *string `db:"user_email"`
27+
IP *string `db:"ip"`
28+
UserAgent *string `db:"user_agent"`
29+
CreatedAt time.Time `db:"created_at"`
30+
UserFirstName *string `db:"user_first_name"`
31+
UserLastName *string `db:"user_last_name"`
32+
UserEmail *string `db:"user_email"`
3333
}
3434

3535
func scanAuditRow(r auditRow) domainaudit.Entry {

packages/observer-web/index.html

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,26 @@
66
<meta name="color-scheme" content="dark light" />
77
<title>Observer</title>
88
<style>
9-
html { background-color: #fbfcfd; }
10-
@media (prefers-color-scheme: dark) { html:not([data-theme]) { background-color: #111113; } }
11-
html[data-theme="dark"] { background-color: #111113; }
12-
html[data-theme="dark-hc"] { background-color: #0b0c0e; }
13-
html[data-theme="light"] { background-color: #fbfcfd; }
14-
html[data-theme="light-hc"] { background-color: #edf0f5; }
9+
html {
10+
background-color: #fbfcfd;
11+
}
12+
@media (prefers-color-scheme: dark) {
13+
html:not([data-theme]) {
14+
background-color: #111113;
15+
}
16+
}
17+
html[data-theme="dark"] {
18+
background-color: #111113;
19+
}
20+
html[data-theme="dark-hc"] {
21+
background-color: #0b0c0e;
22+
}
23+
html[data-theme="light"] {
24+
background-color: #fbfcfd;
25+
}
26+
html[data-theme="light-hc"] {
27+
background-color: #edf0f5;
28+
}
1529
</style>
1630
</head>
1731
<body>

packages/observer-web/src/routes/_app/admin/reference/offices.lazy.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,7 @@ function OfficeFormDialog({
196196
onSelect={(place) => setPlaceId(place.id)}
197197
placeholder={t("admin.reference.offices.placeId")}
198198
/>
199-
{selectedPlaceName && (
200-
<p className="mt-1 text-xs text-fg-secondary">{selectedPlaceName}</p>
201-
)}
199+
{selectedPlaceName && <p className="mt-1 text-xs text-fg-secondary">{selectedPlaceName}</p>}
202200
</Field.Root>
203201
</FormDialog>
204202
);

packages/observer-web/src/routes/_app/projects/$projectId/tags/index.lazy.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ function TagsPage() {
268268
</span>
269269
</div>
270270
</Field.Root>
271-
272271
</FormDialog>
273272

274273
<ConfirmDialog

0 commit comments

Comments
 (0)