Skip to content

Commit

Permalink
Add webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
farisd16 committed Nov 24, 2024
1 parent 136c927 commit f912447
Show file tree
Hide file tree
Showing 10 changed files with 7,280 additions and 9,814 deletions.
32 changes: 16 additions & 16 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$ts-webpack-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
7,478 changes: 2,917 additions & 4,561 deletions editor/package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@types/vscode-webview": "^1.57.5",
"@vscode/codicons": "^0.0.35",
"@vscode/webview-ui-toolkit": "^1.4.0",
"fast-glob": "^3.3.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import { ApollonEditor, UMLModel } from "@ls1intum/apollon";
import React, { useEffect, useRef, useContext } from "react";
import styled from "styled-components";

import { ApollonEditorContext } from "./ApollonEditorContext";
import useStore from "../../store";

const ApollonContainer = styled.div`
display: flex;
flex-direction: column;
overflow: hidden;
background-color: var(--apollon-background);
`;

export const ApollonEditorComponent: React.FC = () => {
const containerRef = useRef<HTMLDivElement>(null);
const editorRef = useRef<ApollonEditor | null>(null);
Expand Down Expand Up @@ -43,5 +51,5 @@ export const ApollonEditorComponent: React.FC = () => {
initializeEditor();
}, [createNewEditor]);

return <div className="apollon-container" ref={containerRef} />;
return <ApollonContainer ref={containerRef} />;
};
6,892 changes: 2,615 additions & 4,277 deletions menu/package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"@types/vscode-webview": "^1.57.5",
"@vscode/codicons": "^0.0.35",
"@vscode/webview-ui-toolkit": "^1.4.0",
"fast-glob": "^3.3.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
Expand Down
Loading

0 comments on commit f912447

Please sign in to comment.