Skip to content

Commit

Permalink
Update operation id for playground links (#110)
Browse files Browse the repository at this point in the history
Signed-off-by: Nik Nasr <[email protected]>
  • Loading branch information
nikrooz authored Nov 15, 2024
1 parent 059607d commit 546d2ad
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 59 deletions.
6 changes: 5 additions & 1 deletion apps/web-ui/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ import {
} from '@restate/features/overview-route';

export const links: LinksFunction = () => [
{
rel: 'preconnect',
href: 'https://rsms.me/',
},
{ rel: 'stylesheet', href: styles },
{ rel: 'stylesheet', href: '/ui/inter.css' },
{ rel: 'stylesheet', href: 'https://rsms.me/inter/inter.css' },
{
rel: 'apple-touch-icon',
href: '/ui/apple-touch-icon.png',
Expand Down
57 changes: 0 additions & 57 deletions apps/web-ui/public/inter.css

This file was deleted.

2 changes: 1 addition & 1 deletion libs/features/overview-route/src/lib/ServicePlayground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function ServicePlaygroundTrigger({

navigate({
search: searchParamsClone.toString(),
hash: handler ? `/operations/${service}-${handler}` : undefined,
hash: handler ? `/operations/${handler}` : undefined,
});
}}
variant={variant}
Expand Down
2 changes: 2 additions & 0 deletions libs/features/overview-route/src/lib/StopLight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { lazy } from 'react';

if (typeof window !== 'undefined') {
(window as any).Prism = Prism;
import('@stoplight/elements');
import('@stoplight/json-schema-viewer');
}

export const API = lazy(() =>
Expand Down

0 comments on commit 546d2ad

Please sign in to comment.