Skip to content

Commit

Permalink
feat: add code view
Browse files Browse the repository at this point in the history
  • Loading branch information
l1xnan committed Mar 29, 2024
1 parent 726e8c6 commit a4e6a81
Show file tree
Hide file tree
Showing 13 changed files with 206 additions and 164 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@mui/icons-material": "^5.15.1",
"@mui/lab": "5.0.0-alpha.157",
"@mui/material": "^5.15.14",
"@mui/x-tree-view": "7.0.0",
"@mui/x-tree-view": "^7.1.0",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-context-menu": "^2.1.5",
Expand Down Expand Up @@ -94,8 +94,8 @@
"@types/node": "^20.11.5",
"@types/react": "^18.2.60",
"@types/react-dom": "^18.2.19",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react-swc": "^3.6.0",
"autoprefixer": "^10.4.16",
Expand Down
116 changes: 62 additions & 54 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/tables/CanvasTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export const CanvasTable = React.memo(function CanvasTable({
},
hover: {
// disableHover: true,
highlightMode: 'row',
highlightMode: 'cell',
// disableHeaderHover: true,
},
keyboardOptions: {
Expand Down
6 changes: 3 additions & 3 deletions src/components/views/SchemaView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function DatabaseSchemaView({
};

useEffect(() => {
if (currentTab?.id == context.id) {
if (currentTab == context.id) {
handleQuery();
}
}, []);
Expand Down Expand Up @@ -125,7 +125,7 @@ export function ColumnSchemaView({ context }: { context: TableContextType }) {
};

useEffect(() => {
if (currentTab?.id == context.id) {
if (currentTab == context.id) {
handleQuery();
}
}, []);
Expand Down Expand Up @@ -206,7 +206,7 @@ export function SearchView({ context }: { context: TableContextType }) {
};

useEffect(() => {
if (currentTab?.id == context.id) {
if (currentTab == context.id) {
handleQuery();
}
}, []);
Expand Down
Loading

0 comments on commit a4e6a81

Please # to comment.