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
45 changes: 38 additions & 7 deletions examples/basic-server-preact/src/global.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,49 @@
:root {
color-scheme: light dark;
}

* {
box-sizing: border-box;
}

html, body {
font-family: system-ui, -apple-system, sans-serif;
font-size: 1rem;
font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji');
font-size: var(--font-text-md-size, 1rem);
font-weight: var(--font-weight-normal, 400);
line-height: var(--font-text-md-line-height, 1.5);
color: var(--color-text-primary, light-dark(#1f2937, #f3f4f6));
}

h1 {
font-size: var(--font-heading-3xl-size, 2.25rem);
line-height: var(--font-heading-3xl-line-height, 1.1);
}
h2 {
font-size: var(--font-heading-2xl-size, 1.875rem);
line-height: var(--font-heading-2xl-line-height, 1.2);
}
h3 {
font-size: var(--font-heading-xl-size, 1.5rem);
line-height: var(--font-heading-xl-line-height, 1.25);
}
h4 {
font-size: var(--font-heading-lg-size, 1.25rem);
line-height: var(--font-heading-lg-line-height, 1.3);
}
h5 {
font-size: var(--font-heading-md-size, 1rem);
line-height: var(--font-heading-md-line-height, 1.4);
}
h6 {
font-size: var(--font-heading-sm-size, 0.875rem);
line-height: var(--font-heading-sm-line-height, 1.4);
}

code {
code, pre, kbd {
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
font-size: 1em;
}

/* Server time fills remaining width for consistent E2E screenshot masking */
#server-time {
flex: 1;
min-width: 0;
b, strong {
font-weight: var(--font-weight-bold, 700);
}
6 changes: 6 additions & 0 deletions examples/basic-server-preact/src/mcp-app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,9 @@
font-style: normal;
}
}

/* Server time fills remaining width for consistent E2E screenshot masking */
.serverTime {
flex: 1;
min-width: 0;
}
2 changes: 1 addition & 1 deletion examples/basic-server-preact/src/mcp-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function GetTimeAppInner({ app, toolResult, hostContext }: GetTimeAppInnerProps)

<div className={styles.action}>
<p>
<strong>Server Time:</strong> <code id="server-time">{serverTime}</code>
<strong>Server Time:</strong> <code className={styles.serverTime}>{serverTime}</code>
</p>
<button onClick={handleGetTime}>Get Server Time</button>
</div>
Expand Down
45 changes: 38 additions & 7 deletions examples/basic-server-react/src/global.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,49 @@
:root {
color-scheme: light dark;
}

* {
box-sizing: border-box;
}

html, body {
font-family: system-ui, -apple-system, sans-serif;
font-size: 1rem;
font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji');
font-size: var(--font-text-md-size, 1rem);
font-weight: var(--font-weight-normal, 400);
line-height: var(--font-text-md-line-height, 1.5);
color: var(--color-text-primary, light-dark(#1f2937, #f3f4f6));
}

h1 {
font-size: var(--font-heading-3xl-size, 2.25rem);
line-height: var(--font-heading-3xl-line-height, 1.1);
}
h2 {
font-size: var(--font-heading-2xl-size, 1.875rem);
line-height: var(--font-heading-2xl-line-height, 1.2);
}
h3 {
font-size: var(--font-heading-xl-size, 1.5rem);
line-height: var(--font-heading-xl-line-height, 1.25);
}
h4 {
font-size: var(--font-heading-lg-size, 1.25rem);
line-height: var(--font-heading-lg-line-height, 1.3);
}
h5 {
font-size: var(--font-heading-md-size, 1rem);
line-height: var(--font-heading-md-line-height, 1.4);
}
h6 {
font-size: var(--font-heading-sm-size, 0.875rem);
line-height: var(--font-heading-sm-line-height, 1.4);
}

code {
code, pre, kbd {
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
font-size: 1em;
}

/* Server time fills remaining width for consistent E2E screenshot masking */
#server-time {
flex: 1;
min-width: 0;
b, strong {
font-weight: var(--font-weight-bold, 700);
}
6 changes: 6 additions & 0 deletions examples/basic-server-react/src/mcp-app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,9 @@
font-style: normal;
}
}

/* Server time fills remaining width for consistent E2E screenshot masking */
.serverTime {
flex: 1;
min-width: 0;
}
2 changes: 1 addition & 1 deletion examples/basic-server-react/src/mcp-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function GetTimeAppInner({ app, toolResult, hostContext }: GetTimeAppInnerProps)

<div className={styles.action}>
<p>
<strong>Server Time:</strong> <code id="server-time">{serverTime}</code>
<strong>Server Time:</strong> <code className={styles.serverTime}>{serverTime}</code>
</p>
<button onClick={handleGetTime}>Get Server Time</button>
</div>
Expand Down
45 changes: 38 additions & 7 deletions examples/basic-server-solid/src/global.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,49 @@
:root {
color-scheme: light dark;
}

* {
box-sizing: border-box;
}

html, body {
font-family: system-ui, -apple-system, sans-serif;
font-size: 1rem;
font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji');
font-size: var(--font-text-md-size, 1rem);
font-weight: var(--font-weight-normal, 400);
line-height: var(--font-text-md-line-height, 1.5);
color: var(--color-text-primary, light-dark(#1f2937, #f3f4f6));
}

h1 {
font-size: var(--font-heading-3xl-size, 2.25rem);
line-height: var(--font-heading-3xl-line-height, 1.1);
}
h2 {
font-size: var(--font-heading-2xl-size, 1.875rem);
line-height: var(--font-heading-2xl-line-height, 1.2);
}
h3 {
font-size: var(--font-heading-xl-size, 1.5rem);
line-height: var(--font-heading-xl-line-height, 1.25);
}
h4 {
font-size: var(--font-heading-lg-size, 1.25rem);
line-height: var(--font-heading-lg-line-height, 1.3);
}
h5 {
font-size: var(--font-heading-md-size, 1rem);
line-height: var(--font-heading-md-line-height, 1.4);
}
h6 {
font-size: var(--font-heading-sm-size, 0.875rem);
line-height: var(--font-heading-sm-line-height, 1.4);
}

code {
code, pre, kbd {
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
font-size: 1em;
}

/* Server time fills remaining width for consistent E2E screenshot masking */
#server-time {
flex: 1;
min-width: 0;
b, strong {
font-weight: var(--font-weight-bold, 700);
}
6 changes: 6 additions & 0 deletions examples/basic-server-solid/src/mcp-app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,9 @@
font-style: normal;
}
}

/* Server time fills remaining width for consistent E2E screenshot masking */
.serverTime {
flex: 1;
min-width: 0;
}
2 changes: 1 addition & 1 deletion examples/basic-server-solid/src/mcp-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function GetTimeAppInner(props: GetTimeAppInnerProps) {

<div class={styles.action}>
<p>
<strong>Server Time:</strong> <code id="server-time">{serverTime()}</code>
<strong>Server Time:</strong> <code class={styles.serverTime}>{serverTime()}</code>
</p>
<button onClick={handleGetTime}>Get Server Time</button>
</div>
Expand Down
4 changes: 2 additions & 2 deletions examples/basic-server-svelte/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async function handleOpenLink() {
<p class="notice">Watch activity in the DevTools console!</p>

<div class="action">
<p><strong>Server Time:</strong> <code id="server-time">{serverTime}</code></p>
<p><strong>Server Time:</strong> <code class="server-time">{serverTime}</code></p>
<button onclick={handleGetTime}>Get Server Time</button>
</div>

Expand Down Expand Up @@ -205,7 +205,7 @@ async function handleOpenLink() {
}

/* Server time fills remaining width for consistent E2E screenshot masking */
:global(#server-time) {
.server-time {
flex: 1;
min-width: 0;
}
Expand Down
43 changes: 40 additions & 3 deletions examples/basic-server-svelte/src/global.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,49 @@
:root {
color-scheme: light dark;
}

* {
box-sizing: border-box;
}

html, body {
font-family: system-ui, -apple-system, sans-serif;
font-size: 1rem;
font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji');
font-size: var(--font-text-md-size, 1rem);
font-weight: var(--font-weight-normal, 400);
line-height: var(--font-text-md-line-height, 1.5);
color: var(--color-text-primary, light-dark(#1f2937, #f3f4f6));
}

code {
h1 {
font-size: var(--font-heading-3xl-size, 2.25rem);
line-height: var(--font-heading-3xl-line-height, 1.1);
}
h2 {
font-size: var(--font-heading-2xl-size, 1.875rem);
line-height: var(--font-heading-2xl-line-height, 1.2);
}
h3 {
font-size: var(--font-heading-xl-size, 1.5rem);
line-height: var(--font-heading-xl-line-height, 1.25);
}
h4 {
font-size: var(--font-heading-lg-size, 1.25rem);
line-height: var(--font-heading-lg-line-height, 1.3);
}
h5 {
font-size: var(--font-heading-md-size, 1rem);
line-height: var(--font-heading-md-line-height, 1.4);
}
h6 {
font-size: var(--font-heading-sm-size, 0.875rem);
line-height: var(--font-heading-sm-line-height, 1.4);
}

code, pre, kbd {
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
font-size: 1em;
}

b, strong {
font-weight: var(--font-weight-bold, 700);
}
45 changes: 38 additions & 7 deletions examples/basic-server-vanillajs/src/global.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,49 @@
:root {
color-scheme: light dark;
}

* {
box-sizing: border-box;
}

html, body {
font-family: system-ui, -apple-system, sans-serif;
font-size: 1rem;
font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji');
font-size: var(--font-text-md-size, 1rem);
font-weight: var(--font-weight-normal, 400);
line-height: var(--font-text-md-line-height, 1.5);
color: var(--color-text-primary, light-dark(#1f2937, #f3f4f6));
}

h1 {
font-size: var(--font-heading-3xl-size, 2.25rem);
line-height: var(--font-heading-3xl-line-height, 1.1);
}
h2 {
font-size: var(--font-heading-2xl-size, 1.875rem);
line-height: var(--font-heading-2xl-line-height, 1.2);
}
h3 {
font-size: var(--font-heading-xl-size, 1.5rem);
line-height: var(--font-heading-xl-line-height, 1.25);
}
h4 {
font-size: var(--font-heading-lg-size, 1.25rem);
line-height: var(--font-heading-lg-line-height, 1.3);
}
h5 {
font-size: var(--font-heading-md-size, 1rem);
line-height: var(--font-heading-md-line-height, 1.4);
}
h6 {
font-size: var(--font-heading-sm-size, 0.875rem);
line-height: var(--font-heading-sm-line-height, 1.4);
}

code {
code, pre, kbd {
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
font-size: 1em;
}

/* Server time fills remaining width for consistent E2E screenshot masking */
#server-time {
flex: 1;
min-width: 0;
b, strong {
font-weight: var(--font-weight-bold, 700);
}
6 changes: 6 additions & 0 deletions examples/basic-server-vanillajs/src/mcp-app.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,9 @@
font-style: normal;
}
}

/* Server time fills remaining width for consistent E2E screenshot masking */
#server-time {
flex: 1;
min-width: 0;
}
4 changes: 2 additions & 2 deletions examples/basic-server-vue/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async function handleOpenLink() {
<p class="notice">Watch activity in the DevTools console!</p>

<div class="action">
<p><strong>Server Time:</strong> <code id="server-time">{{ serverTime }}</code></p>
<p><strong>Server Time:</strong> <code class="server-time">{{ serverTime }}</code></p>
<button @click="handleGetTime">Get Server Time</button>
</div>

Expand Down Expand Up @@ -213,7 +213,7 @@ async function handleOpenLink() {
}

/* Server time fills remaining width for consistent E2E screenshot masking */
:deep(#server-time) {
.server-time {
flex: 1;
min-width: 0;
}
Expand Down
Loading
Loading