chore: deploy styles

This commit is contained in:
2024-03-12 23:52:13 +01:00
parent 90341a5cfa
commit 74eea2f97b
6 changed files with 72 additions and 7 deletions
+22
View File
@@ -1,8 +1,30 @@
import { Value } from './Inspect.jsx'
// const GitRef = ({ type, value }) => {
// return type === 'default' ? (
// <div class="git-ref">default</div>
// ) : (
// <div class={'git-ref ' + type}>{value}</div>
// )
// }
// const BaseDeploy = ({ name, ...rest }) => <>
// <div class="name">{name}</div>
// <div class="url">
// <div class="material-symbols-outlined">commit</div>
// <div class="value">{url}</div>
// </div>
// <GitRef {...ref} />
// </>
export const Deploy = ({ deploy }) => {
return (
<div class="deploy">
<div class="name">{deploy.name}</div>
<div class="type">{deploy.type}</div>
<div class="type">{deploy.type}</div>
<div class="type">{deploy.type}</div>
<Value value={deploy} borderless />
</div>
)
+3 -1
View File
@@ -7,7 +7,9 @@ import { Mutex } from 'async-mutex'
import { debug } from './logger'
export const GitRef = z.union([
z.object({ type: z.literal('default') }),
z.object({
type: z.literal('default'),
}),
z.object({
type: z.union([z.literal('branch'), z.literal('branch'), z.literal('branch')]),
value: z.string(),
+7 -1
View File
@@ -297,9 +297,15 @@ form {
.deploy {
width: 100%;
border: 1px solid #ddd;
background: $accent-400;
padding: 1rem;
border-radius: 1rem;
display: grid;
// border: 1px solid #ddd;
// padding: 1rem;
// border-radius: 1rem;
}
//