mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-19 06:01:21 +00:00
chore: sync workspace changes
This commit is contained in:
parent
30d3aca1ee
commit
f92ecd9b9a
38 changed files with 4829 additions and 1219 deletions
1
frontend/AGENTS.md
Symbolic link
1
frontend/AGENTS.md
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
CLAUDE.md
|
||||
150
frontend/CLAUDE.md
Normal file
150
frontend/CLAUDE.md
Normal file
|
|
@ -0,0 +1,150 @@
|
|||
## Frontend Style Guide
|
||||
|
||||
Examples should follow these design conventions:
|
||||
|
||||
**Color Palette (Dark Theme)**
|
||||
- Primary accent: `#ff4f00` (orange) for interactive elements and highlights
|
||||
- Background: `#000000` (main), `#1c1c1e` (cards/containers)
|
||||
- Borders: `#2c2c2e`
|
||||
- Input backgrounds: `#2c2c2e` with border `#3a3a3c`
|
||||
- Text: `#ffffff` (primary), `#8e8e93` (secondary/muted)
|
||||
- Success: `#30d158` (green)
|
||||
- Warning: `#ff4f00` (orange)
|
||||
- Danger: `#ff3b30` (red)
|
||||
- Purple: `#bf5af2` (for special states like rollback)
|
||||
|
||||
**Typography**
|
||||
- UI: System fonts (`-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif`)
|
||||
- Code: `ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace`
|
||||
- Sizes: 14-16px body, 12-13px labels, large numbers 48-72px
|
||||
|
||||
**Sizing & Spacing**
|
||||
- Border radius: 8px (cards/containers/buttons), 6px (inputs/badges)
|
||||
- Section padding: 20-24px
|
||||
- Gap between items: 12px
|
||||
- Transitions: 200ms ease for all interactive states
|
||||
|
||||
**Button Styles**
|
||||
- Padding: 12px 20px
|
||||
- Border: none
|
||||
- Border radius: 8px
|
||||
- Font size: 14px, weight 600
|
||||
- Hover: none (no hover state)
|
||||
- Disabled: 50% opacity, `cursor: not-allowed`
|
||||
|
||||
**CSS Approach**
|
||||
- Plain CSS in `<style>` tag within index.html (no preprocessors or Tailwind)
|
||||
- Class-based selectors with state modifiers (`.active`, `.complete`, `.running`)
|
||||
- Focus states use primary accent color (`#ff4f00`) for borders with subtle box-shadow
|
||||
|
||||
**Spacing System**
|
||||
- Base unit: 4px
|
||||
- Scale: 4px, 8px, 12px, 16px, 20px, 24px, 32px, 48px
|
||||
- Component internal padding: 12-16px
|
||||
- Section/card padding: 20px
|
||||
- Card header padding: 16px 20px
|
||||
- Gap between related items: 8-12px
|
||||
- Gap between sections: 24-32px
|
||||
- Margin between major blocks: 32px
|
||||
|
||||
**Iconography**
|
||||
- Icon library: [Lucide](https://lucide.dev/) (React: `lucide-react`)
|
||||
- Standard sizes: 16px (inline/small), 20px (buttons/UI), 24px (standalone/headers)
|
||||
- Icon color: inherit from parent text color, or use `currentColor`
|
||||
- Icon-only buttons must include `aria-label` for accessibility
|
||||
- Stroke width: 2px (default), 1.5px for smaller icons
|
||||
|
||||
**Component Patterns**
|
||||
|
||||
*Buttons*
|
||||
- Primary: `#ff4f00` background, white text
|
||||
- Secondary: `#2c2c2e` background, white text
|
||||
- Ghost: transparent background, `#ff4f00` text
|
||||
- Danger: `#ff3b30` background, white text
|
||||
- Success: `#30d158` background, white text
|
||||
- Disabled: 50% opacity, `cursor: not-allowed`
|
||||
|
||||
*Form Inputs*
|
||||
- Background: `#2c2c2e`
|
||||
- Border: 1px solid `#3a3a3c`
|
||||
- Border radius: 8px
|
||||
- Padding: 12px 16px
|
||||
- Focus: border-color `#ff4f00`, box-shadow `0 0 0 3px rgba(255, 79, 0, 0.2)`
|
||||
- Placeholder text: `#6e6e73`
|
||||
|
||||
*Cards/Containers*
|
||||
- Background: `#1c1c1e`
|
||||
- Border: 1px solid `#2c2c2e`
|
||||
- Border radius: 8px
|
||||
- Padding: 20px
|
||||
- Box shadow: `0 1px 3px rgba(0, 0, 0, 0.3)`
|
||||
- Header style (when applicable):
|
||||
- Background: `#2c2c2e`
|
||||
- Padding: 16px 20px
|
||||
- Font size: 18px, weight 600
|
||||
- Border bottom: 1px solid `#2c2c2e`
|
||||
- Border radius: 8px 8px 0 0 (top corners only)
|
||||
- Negative margin to align with card edges: `-20px -20px 20px -20px`
|
||||
|
||||
*Modals/Overlays*
|
||||
- Backdrop: `rgba(0, 0, 0, 0.75)`
|
||||
- Modal background: `#1c1c1e`
|
||||
- Border radius: 8px
|
||||
- Max-width: 480px (small), 640px (medium), 800px (large)
|
||||
- Padding: 24px
|
||||
- Close button: top-right, 8px from edges
|
||||
|
||||
*Lists*
|
||||
- Item padding: 12px 16px
|
||||
- Dividers: 1px solid `#2c2c2e`
|
||||
- Hover background: `#2c2c2e`
|
||||
- Selected/active background: `rgba(255, 79, 0, 0.15)`
|
||||
|
||||
*Badges/Tags*
|
||||
- Padding: 4px 8px
|
||||
- Border radius: 6px
|
||||
- Font size: 12px
|
||||
- Font weight: 500
|
||||
|
||||
*Tabs*
|
||||
- Container: `border-bottom: 1px solid #2c2c2e`, flex-wrap for overflow
|
||||
- Tab: `padding: 12px 16px`, no background, `border-radius: 0`
|
||||
- Tab border: `border-bottom: 2px solid transparent`, `margin-bottom: -1px`
|
||||
- Tab text: `#8e8e93` (muted), font-weight 600, font-size 14px
|
||||
- Active tab: `color: #ffffff`, `border-bottom-color: #ff4f00`
|
||||
- Hover: none (no hover state)
|
||||
- Transition: `color 200ms ease, border-color 200ms ease`
|
||||
|
||||
**UI States**
|
||||
|
||||
*Loading States*
|
||||
- Spinner: 20px for inline, 32px for page-level
|
||||
- Skeleton placeholders: `#2c2c2e` background with subtle pulse animation
|
||||
- Loading text: "Loading..." in muted color
|
||||
- Button loading: show spinner, disable interaction, keep button width stable
|
||||
|
||||
*Empty States*
|
||||
- Center content vertically and horizontally
|
||||
- Icon: 48px, muted color (`#6e6e73`)
|
||||
- Heading: 18px, primary text color
|
||||
- Description: 14px, muted color
|
||||
- Optional action button below description
|
||||
|
||||
*Error States*
|
||||
- Inline errors: `#ff3b30` text below input, 12px font size
|
||||
- Error banners: `#ff3b30` left border (4px), `rgba(255, 59, 48, 0.1)` background
|
||||
- Form validation: highlight input border in `#ff3b30`
|
||||
- Error icon: Lucide `AlertCircle` or `XCircle`
|
||||
|
||||
*Disabled States*
|
||||
- Opacity: 50%
|
||||
- Cursor: `not-allowed`
|
||||
- No hover/focus effects
|
||||
- Preserve layout (don't collapse or hide)
|
||||
|
||||
*Success States*
|
||||
- Color: `#30d158`
|
||||
- Icon: Lucide `CheckCircle` or `Check`
|
||||
- Toast/banner: `rgba(48, 209, 88, 0.1)` background with green left border
|
||||
|
||||
|
||||
565
frontend/packages/web/index.html
Normal file
565
frontend/packages/web/index.html
Normal file
|
|
@ -0,0 +1,565 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Sandbox Daemon Console</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
--bg: #000000;
|
||||
--surface: #1c1c1e;
|
||||
--surface-2: #2c2c2e;
|
||||
--border: #2c2c2e;
|
||||
--input-bg: #2c2c2e;
|
||||
--input-border: #3a3a3c;
|
||||
--text: #ffffff;
|
||||
--muted: #8e8e93;
|
||||
--accent: #ff4f00;
|
||||
--success: #30d158;
|
||||
--warning: #ff4f00;
|
||||
--danger: #ff3b30;
|
||||
--purple: #bf5af2;
|
||||
--shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
||||
--radius: 8px;
|
||||
--radius-sm: 6px;
|
||||
--transition: 200ms ease;
|
||||
--space-1: 4px;
|
||||
--space-2: 8px;
|
||||
--space-3: 12px;
|
||||
--space-4: 16px;
|
||||
--space-5: 20px;
|
||||
--space-6: 24px;
|
||||
--space-7: 32px;
|
||||
--space-8: 48px;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background:
|
||||
radial-gradient(circle at top right, rgba(255, 79, 0, 0.12), transparent 45%),
|
||||
radial-gradient(circle at 20% 30%, rgba(191, 90, 242, 0.08), transparent 40%),
|
||||
linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 60%);
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
#root {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.app {
|
||||
min-height: 100vh;
|
||||
padding: var(--space-7) var(--space-7) var(--space-8);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-7);
|
||||
}
|
||||
|
||||
.app-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.4px;
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
box-shadow: 0 0 18px rgba(255, 79, 0, 0.4);
|
||||
}
|
||||
|
||||
.status-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
padding: 6px 10px;
|
||||
border-radius: 999px;
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.status-pill.success {
|
||||
color: var(--success);
|
||||
border-color: rgba(48, 209, 88, 0.4);
|
||||
}
|
||||
|
||||
.status-pill.warning {
|
||||
color: var(--warning);
|
||||
border-color: rgba(255, 79, 0, 0.5);
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: currentColor;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
.panel {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: var(--space-6);
|
||||
box-shadow: var(--shadow);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.panel-header {
|
||||
background: var(--surface-2);
|
||||
margin: calc(var(--space-6) * -1) calc(var(--space-6) * -1) var(--space-4);
|
||||
padding: 16px 20px;
|
||||
border-radius: var(--radius) var(--radius) 0 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.panel-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.muted {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.mono {
|
||||
font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
|
||||
}
|
||||
|
||||
.label {
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
.field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.input,
|
||||
.textarea,
|
||||
.select {
|
||||
width: 100%;
|
||||
background: var(--input-bg);
|
||||
border: 1px solid var(--input-border);
|
||||
color: var(--text);
|
||||
border-radius: var(--radius);
|
||||
padding: 12px 16px;
|
||||
font-size: 14px;
|
||||
outline: none;
|
||||
transition: border-color var(--transition), box-shadow var(--transition);
|
||||
}
|
||||
|
||||
.textarea {
|
||||
min-height: 120px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.input:focus,
|
||||
.textarea:focus,
|
||||
.select:focus {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px rgba(255, 79, 0, 0.2);
|
||||
}
|
||||
|
||||
.input::placeholder,
|
||||
.textarea::placeholder {
|
||||
color: #6e6e73;
|
||||
}
|
||||
|
||||
.button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-2);
|
||||
padding: 12px 20px;
|
||||
border-radius: var(--radius);
|
||||
border: none;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: opacity var(--transition);
|
||||
background: var(--surface-2);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.button.primary {
|
||||
background: var(--accent);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.button.secondary {
|
||||
background: var(--surface-2);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.button.ghost {
|
||||
background: transparent;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.button.danger {
|
||||
background: var(--danger);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.button.success {
|
||||
background: var(--success);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.button:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.button-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.inline-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
padding: 4px 8px;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
background: rgba(255, 79, 0, 0.12);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.pill.success {
|
||||
background: rgba(48, 209, 88, 0.15);
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.pill.danger {
|
||||
background: rgba(255, 59, 48, 0.15);
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.pill.neutral {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.divider {
|
||||
height: 1px;
|
||||
width: 100%;
|
||||
background: var(--border);
|
||||
}
|
||||
|
||||
.card-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.card {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: var(--space-4);
|
||||
background: rgba(28, 28, 30, 0.6);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.card-meta {
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.code-block {
|
||||
background: #0b0b0c;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: var(--space-3);
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.event-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-3);
|
||||
max-height: 520px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.event-item {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: var(--space-3);
|
||||
background: rgba(28, 28, 30, 0.7);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.event-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.event-type {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.event-time {
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.log-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
max-height: 360px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.log-item {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
gap: var(--space-3);
|
||||
align-items: center;
|
||||
padding: var(--space-3);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(28, 28, 30, 0.7);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.log-method {
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.log-url {
|
||||
word-break: break-all;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.log-status {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.log-status.ok {
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.log-status.error {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.copy-button {
|
||||
background: transparent;
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 6px 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.banner {
|
||||
border-left: 4px solid var(--danger);
|
||||
background: rgba(255, 59, 48, 0.1);
|
||||
padding: var(--space-3);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--danger);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.success-banner {
|
||||
border-left: 4px solid var(--success);
|
||||
background: rgba(48, 209, 88, 0.1);
|
||||
padding: var(--space-3);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--success);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.spinner {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid rgba(255, 255, 255, 0.2);
|
||||
border-top: 2px solid var(--accent);
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes rise {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(12px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.reveal {
|
||||
animation: rise 0.6s ease both;
|
||||
}
|
||||
|
||||
.connect-screen {
|
||||
max-width: 980px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
.connect-hero {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-6);
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(28, 28, 30, 0.6);
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
font-size: 28px;
|
||||
font-weight: 600;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.hero-subtitle {
|
||||
color: var(--muted);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.callout {
|
||||
padding: var(--space-3);
|
||||
border-radius: var(--radius);
|
||||
border: 1px dashed rgba(255, 79, 0, 0.4);
|
||||
color: var(--accent);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.tag-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.grid {
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.grid {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.connect-screen {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.app {
|
||||
padding: var(--space-6);
|
||||
}
|
||||
|
||||
.panel-header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/main.tsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
24
frontend/packages/web/package.json
Normal file
24
frontend/packages/web/package.json
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"name": "@sandbox-daemon/web",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sandbox-daemon/typescript-sdk": "workspace:*",
|
||||
"@types/react": "^18.3.3",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"@vitejs/plugin-react": "^4.3.1",
|
||||
"typescript": "^5.7.3",
|
||||
"vite": "^5.4.7"
|
||||
},
|
||||
"dependencies": {
|
||||
"lucide-react": "^0.469.0",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1"
|
||||
}
|
||||
}
|
||||
1098
frontend/packages/web/src/App.tsx
Normal file
1098
frontend/packages/web/src/App.tsx
Normal file
File diff suppressed because it is too large
Load diff
9
frontend/packages/web/src/main.tsx
Normal file
9
frontend/packages/web/src/main.tsx
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import React from "react";
|
||||
import ReactDOM from "react-dom/client";
|
||||
import App from "./App";
|
||||
|
||||
ReactDOM.createRoot(document.getElementById("root")!).render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>
|
||||
);
|
||||
1
frontend/packages/web/src/vite-env.d.ts
vendored
Normal file
1
frontend/packages/web/src/vite-env.d.ts
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/// <reference types="vite/client" />
|
||||
17
frontend/packages/web/tsconfig.json
Normal file
17
frontend/packages/web/tsconfig.json
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"useDefineForClassFields": true,
|
||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||||
"module": "ESNext",
|
||||
"skipLibCheck": true,
|
||||
"moduleResolution": "Bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"noEmit": true,
|
||||
"jsx": "react-jsx",
|
||||
"strict": true
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
10
frontend/packages/web/tsconfig.node.json
Normal file
10
frontend/packages/web/tsconfig.node.json
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"skipLibCheck": true,
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Bundler",
|
||||
"allowSyntheticDefaultImports": true
|
||||
},
|
||||
"include": ["vite.config.ts"]
|
||||
}
|
||||
9
frontend/packages/web/vite.config.ts
Normal file
9
frontend/packages/web/vite.config.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
port: 5173
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue