-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: code editor * fix: lint * fix workspace, update lerna config * add commands * update workflows * update lint ignore * add run-install * fix run install * add recursive install * chore(release): publish - @gorules/[email protected] - @gorules/[email protected] - @gorules/[email protected] * update package * fix: editor * improve performance * refactor maxRows * fix styles * fix * chore(release): publish - @gorules/[email protected] - @gorules/[email protected] - @gorules/[email protected] * improve styles --------- Co-authored-by: Ivan Miletic <[email protected]>
- Loading branch information
1 parent
a9954ea
commit 2964e8e
Showing
131 changed files
with
12,992 additions
and
8,892 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
dist/ | ||
node_modules/ | ||
docs/ | ||
|
||
packages/jdm-editor/src/components/function/helpers/default-function.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v20.12.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Build artifacts | ||
dist/ | ||
node_modules/ | ||
docs/ | ||
|
||
pnpm-lock.yaml | ||
|
||
# Lezer auto generated packages | ||
packages/lezer-zen/src | ||
packages/lezer-zen-template/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ module.exports = { | |
], | ||
importOrderSeparation: true, | ||
importOrderSortSpecifiers: true, | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"version": "independent", | ||
"npmClient": "pnpm", | ||
"command": { | ||
"publish": { | ||
"conventionalCommits": true, | ||
"message": "chore(release): publish" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,120 +1,33 @@ | ||
{ | ||
"name": "@gorules/jdm-editor", | ||
"version": "1.2.1", | ||
"description": "", | ||
"author": "GoRules <[email protected]> (https://gorules.io)", | ||
"homepage": "https://github.com/gorules/jdm-editor", | ||
"license": "MIT", | ||
"keywords": [], | ||
"type": "module", | ||
"main": "dist/jdm-editor.umd.cjs", | ||
"module": "dist/jdm-editor.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist/", | ||
"package.json", | ||
"README.md", | ||
"LICENSE" | ||
], | ||
"packageManager": "[email protected]", | ||
"name": "@gorules/jdm-monorepo", | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"build": "vite build", | ||
"build:watch": "vite build --watch", | ||
"storybook": "storybook dev -p 9009", | ||
"build-storybook": "storybook build -o docs", | ||
"lint": "eslint 'src/**/*.ts?(x)'", | ||
"lerna": "lerna", | ||
"build": "lerna run build", | ||
"test": "lerna run test", | ||
"lint": "eslint --ext js,ts,jsx,tsx .", | ||
"lint:fix": "pnpm lint --fix", | ||
"prettier": "prettier --check 'src/**/*.{ts?(x),css}'", | ||
"prettier": "prettier --check .", | ||
"prettier:fix": "pnpm prettier --write", | ||
"format": "run-s lint prettier", | ||
"format:fix": "run-s lint:fix prettier:fix", | ||
"vite": "vite build" | ||
}, | ||
"resolutions": { | ||
"enhanced-resolve": "5.10.0" | ||
}, | ||
"dependencies": { | ||
"@ant-design/icons": "5.2.6", | ||
"@monaco-editor/react": "^4.6.0", | ||
"@tanstack/react-table": "8.11.7", | ||
"@tanstack/react-virtual": "3.2.0", | ||
"ace-builds": "^1.32.5", | ||
"antd": "5.13.3", | ||
"clsx": "2.1.0", | ||
"dnd-core": "^16.0.1", | ||
"exceljs": "^4.4.0", | ||
"fast-deep-equal": "^3.1.3", | ||
"immer": "10.0.3", | ||
"json5": "^2.2.3", | ||
"monaco-editor": "^0.45.0", | ||
"react-ace": "^10.1.0", | ||
"react-dnd": "^16.0.1", | ||
"react-dnd-html5-backend": "16.0.1", | ||
"react-json-tree": "^0.18.0", | ||
"reactflow": "11.10.3", | ||
"slugify": "1.6.6", | ||
"ts-pattern": "^5.0.6", | ||
"use-debounce": "^10.0.0", | ||
"uuid": "9.0.1", | ||
"zustand": "^4.5.0" | ||
"format:fix": "run-s lint:fix prettier:fix" | ||
}, | ||
"devDependencies": { | ||
"@storybook/addon-actions": "7.6.10", | ||
"@storybook/addon-docs": "7.6.10", | ||
"@storybook/addon-essentials": "7.6.10", | ||
"@storybook/addon-interactions": "7.6.10", | ||
"@storybook/addon-links": "7.6.10", | ||
"@storybook/addon-storysource": "^7.6.10", | ||
"@storybook/addons": "^7.6.10", | ||
"@storybook/react": "^7.6.10", | ||
"@storybook/react-vite": "^7.6.10", | ||
"@storybook/testing-library": "0.2.2", | ||
"@testing-library/jest-dom": "6.3.0", | ||
"@testing-library/react": "14.1.2", | ||
"@testing-library/react-hooks": "8.0.1", | ||
"@testing-library/user-event": "14.5.2", | ||
"@trivago/prettier-plugin-sort-imports": "4.3.0", | ||
"@types/big.js": "^6.2.2", | ||
"@types/lodash.debounce": "4.0.9", | ||
"@types/node": "20.11.10", | ||
"@types/papaparse": "5.3.14", | ||
"@types/react": "18.2.48", | ||
"@types/react-dom": "18.2.18", | ||
"@types/uuid": "9.0.8", | ||
"@typescript-eslint/eslint-plugin": "6.19.1", | ||
"@typescript-eslint/parser": "6.19.1", | ||
"cz-conventional-changelog": "3.3.0", | ||
"dayjs": "^1.11.10", | ||
"@swc/core": "^1.4.16", | ||
"@trivago/prettier-plugin-sort-imports": "^4.3.0", | ||
"@types/node": "^20.12.7", | ||
"@types/react": "^18.2.79", | ||
"@typescript-eslint/eslint-plugin": "^7.7.0", | ||
"@typescript-eslint/parser": "^7.7.0", | ||
"eslint": "8.56.0", | ||
"eslint-config-prettier": "9.1.0", | ||
"eslint-plugin-file-progress": "1.3.0", | ||
"eslint-plugin-react": "7.33.2", | ||
"eslint-plugin-react-hooks": "4.6.0", | ||
"npm-run-all": "4.1.5", | ||
"prettier": "3.2.4", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"sass": "^1.70.0", | ||
"storybook": "7.6.10", | ||
"storybook-dark-mode": "^3.0.3", | ||
"typescript": "5.3.3", | ||
"vite": "5.0.12", | ||
"vite-plugin-dts": "^3.7.2" | ||
}, | ||
"jest": { | ||
"collectCoverageFrom": [ | ||
"src/**", | ||
"!src/types.ts", | ||
"!src/index.ts", | ||
"!src/stories/**" | ||
], | ||
"coverageReporters": [ | ||
"lcov", | ||
"json-summary" | ||
] | ||
}, | ||
"peerDependencies": { | ||
"react": ">= 18", | ||
"react-dom": ">= 18" | ||
"eslint-plugin-file-progress": "^1.3.0", | ||
"eslint-plugin-react": "^7.34.1", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"lerna": "^8.1.2", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^3.2.5", | ||
"typescript": "^5.4.5" | ||
} | ||
} |
11 changes: 8 additions & 3 deletions
11
.storybook/main.js → packages/jdm-editor/.storybook/main.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
module.exports = { | ||
import { StorybookConfig } from '@storybook/react-vite'; | ||
|
||
const config: StorybookConfig = { | ||
stories: ['../src/**/*.stories.tsx'], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-interactions', | ||
'storybook-dark-mode', | ||
'@storybook/addon-storysource' | ||
'@storybook/addon-storysource', | ||
], | ||
framework: { | ||
name: '@storybook/react-vite', | ||
options: {}, | ||
}, | ||
} | ||
}; | ||
|
||
export default config; |
2 changes: 1 addition & 1 deletion
2
.storybook/manager-head.html → ...s/jdm-editor/.storybook/manager-head.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<script> | ||
document.title = 'JDM Editor' | ||
document.title = 'JDM Editor'; | ||
</script> | ||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { STORY_RENDERED } from '@storybook/core-events'; | ||
import { addons } from '@storybook/manager-api'; | ||
|
||
addons.register('TitleAddon', (api) => { | ||
api.on(STORY_RENDERED, () => { | ||
document.title = 'JDM Editor'; | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
#root { | ||
padding: 20px; | ||
} | ||
</style> | ||
</style> |
Oops, something went wrong.