Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/demo-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
# Generate vercel.json with rewrites to proxy HTTP backends through
# the Vercel deployment, avoiding mixed HTTP/HTTPS content errors.
eval "$(grep '^BACKEND_' ".vercel/.env.preview.local")"
printf '{"installCommand":"echo skipped","outputDirectory":"dist","rewrites":[{"source":"/api/rpc/:path*","destination":"%s/rpc/:path*"},{"source":"/api/indexer/:path*","destination":"%s/:path*"},{"source":"/api/prover/:path*","destination":"%s/:path*"}]}\n' \
"$BACKEND_RPC_URL" "$BACKEND_INDEXER_URL" "$BACKEND_PROVER_URL" > vercel.json
printf '{"installCommand":"echo skipped","outputDirectory":"dist","rewrites":[{"source":"/api/rpc/:path*","destination":"%s/rpc/:path*"},{"source":"/api/indexer/:path*","destination":"%s/:path*"},{"source":"/api/prover/:path*","destination":"%s/:path*"},{"source":"/api/gateway/:path*","destination":"%s/:path*"}]}\n' \
"$BACKEND_RPC_URL" "$BACKEND_INDEXER_URL" "$BACKEND_PROVER_URL" "$BACKEND_GATEWAY_URL" > vercel.json

npx vercel build
env:
Expand Down
275 changes: 267 additions & 8 deletions demo/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,98 @@ h3 {
margin: 0 auto;
}

.pool-selector,
.pool-selector-grid {
display: grid;
grid-template-columns: auto 1fr;
gap: 6px 8px;
align-items: center;
margin-top: 12px;
margin-bottom: 12px;
padding: 12px 12px 8px;
background: #161b22;
border: 1px solid #30363d;
border-radius: 4px;
}

.pool-selector-label {
color: #8b949e;
white-space: nowrap;
}

.pool-selector-value {
display: flex;
align-items: center;
gap: 8px;
}

.pool-selector-value code {
color: #c9d1d9;
font-size: 13px;
padding-left: 12px;
}

.pool-selector-value input {
width: 540px;
}

.pool-selector-value > button {
font-size: 11px;
padding: 2px 8px;
}

.copy-button {
background: #21262d;
border-color: #30363d;
color: #8b949e;
}

.copy-button:hover:not(:disabled) {
background: #30363d;
}

.account-selector {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
padding: 8px;
padding: 8px 12px;
background: #161b22;
border: 1px solid #30363d;
border-radius: 4px;
}

.account-tabs {
display: flex;
gap: 4px;
}

.account-tab {
background: #21262d;
border: 1px solid #30363d;
border-radius: 4px;
padding: 4px 12px;
color: #8b949e;
cursor: pointer;
font-size: 13px;
}

.account-tab.active {
background: #238636;
border-color: #2ea043;
color: #fff;
}

.account-tab:hover:not(.active) {
background: #30363d;
}

.account-tab-address {
font-size: 11px;
margin-left: 4px;
color: inherit;
opacity: 0.7;
}

select {
background: #0d1117;
color: #c9d1d9;
Expand All @@ -56,12 +136,6 @@ select {
font-size: 13px;
}

.add-account-form {
display: flex;
gap: 4px;
flex-wrap: wrap;
}

.main-layout {
display: grid;
grid-template-columns: 1fr 300px;
Expand Down Expand Up @@ -147,6 +221,9 @@ input[type="number"] {

.action-form button {
margin-top: 4px;
font-size: 12px;
padding: 3px 9px;
margin-left: 6px;
}

.status-bar {
Expand Down Expand Up @@ -189,8 +266,11 @@ input[type="number"] {
.subtitle code {
color: #c9d1d9;
font-size: 11px;
cursor: default;
word-break: break-all;
}


.chip {
display: inline-block;
background: #30363d;
Expand All @@ -211,3 +291,182 @@ input[type="number"] {
background: #3d1a1a;
color: #f85149;
}

.view-toggle {
display: flex;
gap: 4px;
margin-bottom: 12px;
}

.view-toggle button {
flex: 1;
background: #21262d;
border-color: #30363d;
color: #8b949e;
}

.view-toggle button.active {
background: #238636;
border-color: #2ea043;
color: #fff;
}

.builder-checkbox {
display: flex;
align-items: center;
gap: 6px;
align-self: flex-start;
padding: 4px 0;
}

.builder-checkbox input[type="checkbox"] {
width: auto;
margin: 0;
}

.builder-add {
display: flex;
flex-direction: column;
gap: 4px;
margin-bottom: 12px;
padding-bottom: 12px;
border-bottom: 1px solid #21262d;
}

.builder-add select,
.builder-add input {
width: 100%;
}

.builder-operation {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 0;
border-bottom: 1px solid #21262d;
font-size: 12px;
}

.builder-operation span:nth-child(2) {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.builder-operation .remove-button {
background: #3d1a1a;
border-color: #f85149;
color: #f85149;
padding: 1px 6px;
font-size: 11px;
min-width: auto;
}

.balances,
.notes-section,
.channels-section {
margin-top: 16px;
}

.notes-section h3 {
margin-bottom: 12px;
}

.channel-card {
background: #161b22;
border: 1px solid #30363d;
border-radius: 6px;
padding: 12px 16px;
margin-bottom: 8px;
}

.channel-card:last-child {
margin-bottom: 0;
}

.channel-card-header {
font-size: 12px;
margin-bottom: 8px;
padding-bottom: 8px;
border-bottom: 1px solid #21262d;
line-height: 1.6;
}

.channel-card-label {
color: #8b949e;
}

.channel-card-value {
color: #c9d1d9;
}

.channel-card-sep {
color: #30363d;
margin: 0 6px;
}

.pagination {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
margin-top: 8px;
}

.pagination span {
color: #8b949e;
font-size: 12px;
}

.pagination button {
font-size: 11px;
padding: 2px 8px;
}

.service-health-bar {
display: inline-flex;
align-items: center;
gap: 12px;
margin-left: 8px;
}

.health-indicator {
display: flex;
align-items: center;
gap: 5px;
}

.health-dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}

.health-label {
color: #c9d1d9;
}

.health-detail {
color: #8b949e;
font-size: 11px;
}

.app-footer {
text-align: center;
color: #8b949e;
font-size: 12px;
padding: 24px 0 12px;
border-top: 1px solid #30363d;
margin-top: 24px;
}

.app-footer a {
color: #58a6ff;
text-decoration: none;
}

.app-footer a:hover {
text-decoration: underline;
}
Loading