Skip to content

Commit

Permalink
fix: rename intellij-webview
Browse files Browse the repository at this point in the history
  • Loading branch information
dineug committed Jan 19, 2024
1 parent cbb2172 commit cb359ca
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions erd-editor.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"path": "packages/erd-editor-vscode-bridge"
},
{
"name": "erd-editor-jetbrains-webview",
"path": "packages/erd-editor-jetbrains-webview"
"name": "erd-editor-intellij-webview",
"path": "packages/erd-editor-intellij-webview"
},
{
"name": "erd-editor-app",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@dineug/erd-editor-jetbrains-webview",
"name": "@dineug/erd-editor-intellij-webview",
"version": "0.1.0",
"private": true,
"description": "Entity-Relationship Diagram Editor jetbrains webview",
"description": "Entity-Relationship Diagram Editor intellij webview",
"author": "SeungHwan-Lee <[email protected]>",
"license": "MIT",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ const dispatch = (action: AnyAction) => {
import('@dineug/erd-editor-shiki-worker').then(({ getShikiService }) => {
setGetShikiServiceCallback(getShikiService);
});
setImportFileCallback(options => {
dispatch(vscodeImportFileAction(options));
});
// setImportFileCallback(options => {
// dispatch(vscodeImportFileAction(options));
// });
setExportFileCallback(async (blob, options) => {
const arrayBuffer = await blob.arrayBuffer();
dispatch(
Expand Down Expand Up @@ -75,7 +75,7 @@ bridge.on({
}
},
webviewInitialValue: ({ payload: { value } }) => {
// editor.addEventListener('change', handleChange);
editor.addEventListener('change', handleChange);
editor.addEventListener('changePresetTheme', handleChangePresetTheme);
editor.setInitialValue(value);
editor.enableThemeBuilder = true;
Expand All @@ -94,7 +94,7 @@ bridge.on({
payload.appearance === 'auto' ? getSystemTheme() : payload.appearance,
});
},
webviewReadonly: ({ payload }) => {
webviewUpdateReadonly: ({ payload }) => {
editor.readonly = payload;
},
});
Expand Down
2 changes: 1 addition & 1 deletion packages/erd-editor-vscode-bridge/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const BridgeActionType = {
webviewInitialValue: 'webviewInitialValue',
webviewUpdateTheme: 'webviewUpdateTheme',
webviewUpdateThemeLegacy: 'webviewUpdateThemeLegacy',
webviewUpdateReadonly: 'webviewReadonly',
webviewUpdateReadonly: 'webviewUpdateReadonly',
webviewReplication: 'webviewReplication',
} as const;
type BridgeActionType = ValuesType<typeof BridgeActionType>;
Expand Down
2 changes: 1 addition & 1 deletion packages/erd-editor-vscode-webview/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ bridge.on({
payload.appearance === 'auto' ? getSystemTheme() : payload.appearance,
});
},
webviewReadonly: ({ payload }) => {
webviewUpdateReadonly: ({ payload }) => {
editor.readonly = payload;
},
});
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

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

0 comments on commit cb359ca

Please sign in to comment.