Skip to content

Commit

Permalink
Release 0.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
hisorange committed Nov 28, 2021
1 parent 6d7775c commit c6c8217
Show file tree
Hide file tree
Showing 7 changed files with 303 additions and 310 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- REST functionality tested and fixed
- Authentication with header and access key query param tested
- Fixed the dagre import in the live build

### Version 0.0.9

Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"ajv": "^8.6.3",
"axios": "^0.24.0",
"bcrypt": "^5.0.1",
"cache-manager": "^3.4.4",
"chalk": "^4.1.2",
"dagre": "^0.8.5",
"dayjs": "^1.10.7",
Expand All @@ -69,7 +68,6 @@
"lodash.merge": "^4.6.2",
"lodash.startcase": "^4.4.0",
"lodash.upperfirst": "^4.3.1",
"lru-cache": "^6.0.0",
"mariadb": "^2.5.5",
"moleculer": "^0.14.18",
"mysql": "^2.18.1",
Expand Down Expand Up @@ -137,6 +135,7 @@
"grapesjs-react": "^4.0.1-alpha",
"jest": "^27.0.6",
"less": "^4.1.2",
"lru-cache": "^6.0.0",
"middie": "^5.3.0",
"openapi-types": "^9.1.0",
"postcss": "^8.3.9",
Expand All @@ -160,4 +159,4 @@
"vite": "^2.6.10",
"vite-react-jsx": "^1.1.2"
}
}
}
11 changes: 5 additions & 6 deletions src/modules/admin/layout/NavSide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
HomeOutlined,
LayoutOutlined,
PartitionOutlined,
PieChartOutlined,
UnorderedListOutlined,
UserOutlined,
} from '@ant-design/icons';
Expand Down Expand Up @@ -42,11 +41,11 @@ const menuItems: IMenuItem[] = [
to: ADMIN_BASE_URL + '/content',
label: 'Content',
},
{
icon: <PieChartOutlined />,
to: '/analytics',
label: 'Analytics',
},
// {
// icon: <PieChartOutlined />,
// to: ADMIN_BASE_URL + '/analytics',
// label: 'Analytics',
// },
{
icon: <LayoutOutlined />,
to: ADMIN_BASE_URL + '/page',
Expand Down
1 change: 1 addition & 0 deletions src/modules/analytics/interface/query.interface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export interface IQuery {}
2 changes: 1 addition & 1 deletion src/modules/database/component/list.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function DatabaseListComponent() {
<Tooltip title="Edit Connection Details" placement="leftBottom">
<Button
icon={<EditOutlined />}
className="rounded-md mr-1 hover:text-green-500 hover:border-green-500"
className="rounded-md mr-1 hover:text-green-500 hover:border-green-500 hidden"
></Button>
</Tooltip>
</Link>
Expand Down
6 changes: 3 additions & 3 deletions src/modules/schema/util/layout-organizer.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { graphlib, layout } from 'dagre';
import dagre from 'dagre/dist/dagre.js';
import { Elements, isNode, Position } from 'react-flow-renderer';

export const createLayouOrganizer = (
nodeWidth: number = 120,
nodeHeight: number = 164,
) => {
const planner = new graphlib.Graph();
const planner = new dagre.graphlib.Graph();
planner.setDefaultEdgeLabel(() => ({}));

return (elements: Elements, direction = 'RL'): Elements => {
Expand All @@ -20,7 +20,7 @@ export const createLayouOrganizer = (
}
});

layout(planner);
dagre.layout(planner);

return elements.map(el => {
if (isNode(el)) {
Expand Down
Loading

0 comments on commit c6c8217

Please sign in to comment.