Skip to content

Commit b528b56

Browse files
committed
new devtools ui
1 parent 9bc23e5 commit b528b56

File tree

87 files changed

+1430
-3553
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1430
-3553
lines changed

components/ProjectCard.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
interface ProjectCardProps {
2+
project: {
3+
// ... existing project props ...
4+
isOnline?: boolean; // Add this new prop
5+
};
6+
}
7+
8+
export function ProjectCard({ project }: ProjectCardProps) {
9+
return (
10+
<div className={`relative rounded-lg border p-4 ${!project.isOnline ? "opacity-60" : ""}`}>
11+
{project.isOnline && (
12+
<div className="absolute top-2 right-2">
13+
<span className="inline-flex items-center rounded-full bg-green-100 px-2.5 py-0.5 text-xs font-medium text-green-800">
14+
Online
15+
</span>
16+
</div>
17+
)}
18+
// ... existing card content ...
19+
</div>
20+
);
21+
}

examples/adjusted-react-app/project.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@
55
"projectType": "application",
66
"tags": [],
77
"targets": {
8+
"app-build": {
9+
"executor": "@nx/vite:build",
10+
"outputs": ["{options.outputPath}"],
11+
"defaultConfiguration": "production",
12+
"options": {
13+
"outputPath": "dist/examples/adjusted-react-app"
14+
},
15+
"configurations": {
16+
"development": {
17+
"mode": "development"
18+
},
19+
"production": {
20+
"mode": "production"
21+
}
22+
}
23+
},
824
"run": {
925
"executor": "@nx/vite:dev-server",
1026
"defaultConfiguration": "development",

examples/react-app/project.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@
55
"projectType": "application",
66
"tags": [],
77
"targets": {
8+
"app-build": {
9+
"executor": "@nx/vite:build",
10+
"outputs": ["{options.outputPath}"],
11+
"defaultConfiguration": "production",
12+
"options": {
13+
"outputPath": "dist/examples/adjusted-react-app"
14+
},
15+
"configurations": {
16+
"development": {
17+
"mode": "development"
18+
},
19+
"production": {
20+
"mode": "production"
21+
}
22+
}
23+
},
824
"run": {
925
"executor": "@nx/vite:dev-server",
1026
"defaultConfiguration": "development",

packages/devtools/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"@hyper-fetch/devtools-plugin": "*",
5656
"@hyper-fetch/react": "*",
5757
"@hyper-fetch/sockets": "*",
58+
"@radix-ui/react-accordion": "^1.2.3",
5859
"@radix-ui/react-avatar": "^1.1.3",
5960
"@radix-ui/react-checkbox": "^1.0.4",
6061
"@radix-ui/react-collapsible": "^1.1.3",
@@ -64,7 +65,7 @@
6465
"@radix-ui/react-icons": "^1.3.0",
6566
"@radix-ui/react-label": "^2.1.2",
6667
"@radix-ui/react-popover": "^1.0.7",
67-
"@radix-ui/react-select": "^2.0.0",
68+
"@radix-ui/react-select": "^2.1.6",
6869
"@radix-ui/react-separator": "^1.1.2",
6970
"@radix-ui/react-slot": "^1.1.2",
7071
"@radix-ui/react-switch": "^1.1.3",

packages/devtools/src/frontend/components/alert/alert.tsx

Lines changed: 0 additions & 72 deletions
This file was deleted.

packages/devtools/src/frontend/components/bar/bar.tsx

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,9 @@
1-
import { tokens } from "frontend/theme/tokens";
2-
import { createStyles } from "frontend/theme/use-styles.hook";
3-
4-
const styles = createStyles(({ isLight, css }) => {
5-
return {
6-
base: css`
7-
display: flex;
8-
flex-wrap: wrap;
9-
align-items: center;
10-
justify-content: space-between;
11-
gap: 5px;
12-
border-bottom: 1px solid ${isLight ? tokens.colors.light[400] : tokens.colors.dark[400]};
13-
background: ${isLight ? tokens.colors.light[100] : tokens.colors.dark[700]};
14-
padding: 4px;
15-
`,
16-
};
17-
});
18-
191
export const Bar = ({ children, className, ...props }: React.HTMLProps<HTMLDivElement>) => {
20-
const css = styles.useStyles();
21-
222
return (
23-
<div {...props} className={css.clsx(css.base, className)}>
3+
<div
4+
{...props}
5+
className={`flex flex-wrap items-center justify-between gap-[5px] border-b p-1 dark:border-dark-400 border-light-400 dark:bg-dark-700 bg-light-100 ${className || ""}`}
6+
>
247
{children}
258
</div>
269
);

packages/devtools/src/frontend/components/body/body.tsx

Lines changed: 0 additions & 21 deletions
This file was deleted.

packages/devtools/src/frontend/components/button/button.tsx

Lines changed: 0 additions & 158 deletions
This file was deleted.

0 commit comments

Comments
 (0)