diff --git a/.env.development b/.env.development index 1227bc1..3743930 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1,3 @@ -VITE_API_FETCH_URL=http://localhost:5000 -VITE_API_POST_URL=http://localhost:5000/ApplicationState \ No newline at end of file + +VITE_API_FETCH_URL=https://pc-003.techform-dom.local/SmartMenuiserieTemplate/Service.svc/GetSVGLayoutConfiguration +VITE_API_POST_URL=https://pc-003.techform-dom.local/SmartMenuiserieTemplate/Service.svc/ApplicationState \ No newline at end of file diff --git a/.env.production b/.env.production index 8b00be3..3743930 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,3 @@ -VITE_API_FETCH_URL=https://localhost/SmartMenuiserieTemplate/Service.svc/GetSVGLayoutConfiguration -VITE_API_POST_URL=https://localhost/SmartMenuiserieTemplate/Service.svc/ApplicationState \ No newline at end of file +VITE_API_FETCH_URL=https://pc-003.techform-dom.local/SmartMenuiserieTemplate/Service.svc/GetSVGLayoutConfiguration +VITE_API_POST_URL=https://pc-003.techform-dom.local/SmartMenuiserieTemplate/Service.svc/ApplicationState \ No newline at end of file diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json new file mode 100644 index 0000000..52e1b9b --- /dev/null +++ b/.vs/VSWorkspaceState.json @@ -0,0 +1,21 @@ +{ + "ExpandedNodes": [ + "", + "\\node_modules\\caniuse-lite", + "\\node_modules\\caniuse-lite\\data", + "\\node_modules\\eslint", + "\\node_modules\\eslint\\lib", + "\\node_modules\\eslint\\lib\\cli-engine", + "\\node_modules\\eslint\\lib\\cli-engine\\formatters", + "\\node_modules\\tailwindcss", + "\\node_modules\\tailwindcss\\peers", + "\\node_modules\\tailwindcss\\src", + "\\node_modules\\tailwindcss\\src\\lib", + "\\src", + "\\src\\Components", + "\\src\\Components\\Symbols", + "\\test-server" + ], + "SelectedNode": "\\src\\Components\\Symbols\\Symbols.tsx", + "PreviewInSolutionExplorer": false +} \ No newline at end of file diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite new file mode 100644 index 0000000..8f3ec3b Binary files /dev/null and b/.vs/slnx.sqlite differ diff --git a/package-lock.json b/package-lock.json index b7e9f41..07cb2c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,10 +9,13 @@ "version": "0.0.0", "dependencies": { "@heroicons/react": "^1.0.6", + "interweave": "^13.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-svg-pan-zoom": "^3.11.0", - "react-window": "^1.8.7" + "react-window": "^1.8.7", + "sweetalert2": "^11.4.28", + "sweetalert2-react-content": "^5.0.3" }, "devDependencies": { "@testing-library/dom": "^8.16.1", @@ -2452,6 +2455,11 @@ "node": ">=6" } }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, "node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", @@ -3633,6 +3641,21 @@ "node": ">= 0.4" } }, + "node_modules/interweave": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/interweave/-/interweave-13.0.0.tgz", + "integrity": "sha512-Mckwj+ix/VtrZu1bRBIIohwrsXj12ZTvJCoYUMZlJmgtvIaQCj0i77eSZ63ckbA1TsPrz2VOvLW9/kTgm5d+mw==", + "dependencies": { + "escape-html": "^1.0.3" + }, + "funding": { + "type": "ko-fi", + "url": "https://ko-fi.com/milesjohnson" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/is-bigint": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", @@ -5456,6 +5479,25 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/sweetalert2": { + "version": "11.4.32", + "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.4.32.tgz", + "integrity": "sha512-fcXWPzWjqYoLqlfPLL4GHpZDZr4Lm7opkaADKAD1LDM4KHJ5ZHN/8/Les5HWP7+yl+0mrqHHkbsSxjXdvDHHlg==", + "funding": { + "type": "individual", + "url": "https://sweetalert2.github.io/#donations" + } + }, + "node_modules/sweetalert2-react-content": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/sweetalert2-react-content/-/sweetalert2-react-content-5.0.3.tgz", + "integrity": "sha512-DQXblZn0LHTvmaZquNQncZIE3Ljox85sAKKbXjYlDyFejyOibHwprAVvtQQpAUG3bgvyDUeAOE/BDFcVx6KUow==", + "peerDependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0", + "sweetalert2": "^11.0.0" + } + }, "node_modules/symbol-tree": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", @@ -7708,6 +7750,11 @@ "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", "dev": true }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", @@ -8569,6 +8616,14 @@ "side-channel": "^1.0.4" } }, + "interweave": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/interweave/-/interweave-13.0.0.tgz", + "integrity": "sha512-Mckwj+ix/VtrZu1bRBIIohwrsXj12ZTvJCoYUMZlJmgtvIaQCj0i77eSZ63ckbA1TsPrz2VOvLW9/kTgm5d+mw==", + "requires": { + "escape-html": "^1.0.3" + } + }, "is-bigint": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", @@ -9849,6 +9904,17 @@ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true }, + "sweetalert2": { + "version": "11.4.32", + "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.4.32.tgz", + "integrity": "sha512-fcXWPzWjqYoLqlfPLL4GHpZDZr4Lm7opkaADKAD1LDM4KHJ5ZHN/8/Les5HWP7+yl+0mrqHHkbsSxjXdvDHHlg==" + }, + "sweetalert2-react-content": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/sweetalert2-react-content/-/sweetalert2-react-content-5.0.3.tgz", + "integrity": "sha512-DQXblZn0LHTvmaZquNQncZIE3Ljox85sAKKbXjYlDyFejyOibHwprAVvtQQpAUG3bgvyDUeAOE/BDFcVx6KUow==", + "requires": {} + }, "symbol-tree": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", diff --git a/src/Components/Sidebar/Sidebar.tsx b/src/Components/Sidebar/Sidebar.tsx index c86ea93..62fe55c 100644 --- a/src/Components/Sidebar/Sidebar.tsx +++ b/src/Components/Sidebar/Sidebar.tsx @@ -23,7 +23,7 @@ export function Sidebar(props: ISidebarProps): JSX.Element { draggable={true} onDragStart={(event) => HandleDragStart(event)} > - {TruncateString(componentOption.Type, 5)} + {TruncateString(componentOption.Type, 25)} ); @@ -35,7 +35,7 @@ export function Sidebar(props: ISidebarProps): JSX.Element {