Skip to content

Commit

Permalink
feat: develop mxGraph container (#186)
Browse files Browse the repository at this point in the history
* feat: develop mxGraph container

* build: add yarnrc

* chore: improve type definition

* fix: improve tsc

* feat: support to set port for vertex

* test: improve test cases

* fix: improve mxgraph export

* test: remove unsaved reference

* ci: improve actions/cache's key

* test: improve test cases

* test: improve test cases

* fix: fix prototype changed in update terminal point

* test: update test snapshots
  • Loading branch information
mortalYoung committed Aug 15, 2022
1 parent 109a025 commit 9793910
Show file tree
Hide file tree
Showing 13 changed files with 5,164 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: actions/cache@v2
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-temp-dir/yarn.lock') }}
key: node_modules-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-temp-dir/yarn.lock') }}

- name: install
if: steps.node_modules_cache_id.outputs.cache-hit != 'true'
Expand All @@ -65,7 +65,7 @@ jobs:
uses: actions/cache@v2
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-temp-dir/yarn.lock') }}
key: node_modules-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-temp-dir/yarn.lock') }}

- name: Run Check Types
run: yarn check-types
Expand All @@ -88,7 +88,7 @@ jobs:
uses: actions/cache@v2
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-temp-dir/yarn.lock') }}
key: node_modules-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-temp-dir/yarn.lock') }}

- name: Run Unit Test
run: yarn test
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sass_binary_site "https://npm.taobao.org/mirrors/node-sass/"
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"@storybook/theming": "^5.1.10",
"@testing-library/jest-dom": "^5.11.0",
"@testing-library/react": "^10.4.4",
"@typed-mxgraph/typed-mxgraph": "^1.0.7",
"@types/classnames": "^2.2.10",
"@types/enzyme": "^3.10.5",
"@types/history": "^4.7.0",
Expand Down Expand Up @@ -164,6 +165,7 @@
"highlight.js": "^10.5.0",
"lodash": "^4.17.15",
"moment": "^2.22.2",
"mxgraph": "^4.2.2",
"react-router": "3.0.4",
"react-syntax-highlighter": "^15.4.3",
"showdown": "^1.9.0"
Expand Down
1 change: 1 addition & 0 deletions src/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export { default as MarkdownRender } from './markdownRender';
export { default as ModalWithForm } from './modalWithForm';
export { default as MulSelectDropdown } from './mulSelectDropdown';
export { default as MultiSearchInput } from './multiSearchInput';
export { default as MxGraphContainer } from './mxGraph';
export { default as NotFound } from './notFound';
export { default as ProgressBar } from './progressBar';
export { default as RenderFormItem } from './renderFormItem';
Expand Down
Loading

0 comments on commit 9793910

Please sign in to comment.