-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f6d76b
commit ce498be
Showing
6 changed files
with
114 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 31 additions & 10 deletions
41
web/renderer/components/pageComponents/DatabasePage/ForRemotes/RemotesPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
web/renderer/components/pageComponents/DatabasePage/ForRemotes/Row.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { RemoteFragment } from "@gen/graphql-types"; | ||
|
||
type Props = { | ||
remote: RemoteFragment; | ||
}; | ||
|
||
export default function Row({ remote }: Props) { | ||
return ( | ||
<tr> | ||
<td>{remote.name}</td> | ||
<td>{remote.url}</td> | ||
<td> | ||
{remote.fetchSpecs.map((fs, i) => ( | ||
<span key={fs}> | ||
{fs} | ||
{i < remote.fetchSpecs.length - 1 ? ", " : ""} | ||
</span> | ||
))} | ||
</td> | ||
</tr> | ||
); | ||
} |
46 changes: 46 additions & 0 deletions
46
web/renderer/components/pageComponents/DatabasePage/ForRemotes/index.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.container { | ||
@apply mx-6; | ||
} | ||
|
||
.top { | ||
@apply flex justify-between pt-6; | ||
} | ||
|
||
.tableParent { | ||
@apply overflow-x-auto; | ||
} | ||
|
||
.table { | ||
@apply my-8 min-w-[55rem] w-full; | ||
|
||
tr { | ||
@apply border-b-[6px] border-stone-50 relative; | ||
} | ||
|
||
th { | ||
@apply font-semibold; | ||
} | ||
|
||
th, | ||
td { | ||
@apply pl-2 pr-4 py-2.5 text-left lg:pr-10; | ||
} | ||
|
||
td { | ||
@apply bg-white text-stone-500; | ||
} | ||
|
||
th:first-child, | ||
td:first-child { | ||
@apply xl:pl-20; | ||
} | ||
|
||
th:last-child, | ||
td:last-child { | ||
@apply xl:pr-32; | ||
} | ||
} | ||
|
||
.noRemotes { | ||
@apply text-center text-lg m-6; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters