diff --git a/client/package.json b/client/package.json index 5eb4dec..efde7d6 100644 --- a/client/package.json +++ b/client/package.json @@ -44,6 +44,7 @@ "node": "^21.6.2", "serve-handler": "^6.1.5", "socket.io-client": "^4.7.4", + "three": "^0.171.0", "toast": "^0.5.4", "vue": "^3.3.11", "vue-router": "^4.2.5", @@ -67,6 +68,7 @@ "@types/file-saver": "^2.0.7", "@types/jsdom": "^21.1.6", "@types/node": "^18.19.3", + "@types/three": "^0.171.0", "@vitejs/plugin-vue": "^4.5.2", "@vitejs/plugin-vue-jsx": "^3.1.0", "@vue/eslint-config-prettier": "^8.0.0", diff --git a/client/src/components/GCode3DLiveViewer.vue b/client/src/components/GCode3DLiveViewer.vue index 71d7f94..4653261 100644 --- a/client/src/components/GCode3DLiveViewer.vue +++ b/client/src/components/GCode3DLiveViewer.vue @@ -23,8 +23,6 @@ onMounted(async () => { const extrusionColor = getComputedStyle(document.documentElement).getPropertyValue('--primary-color').trim() || '#7561A9'; const offscreen: OffscreenCanvas = canvas.value.transferControlToOffscreen(); - console.debug(offscreen) - worker.postMessage({ type: 'init', payload: { diff --git a/client/src/model/gcodeWorker.ts b/client/src/model/gcodeWorker.ts index 6a1fcb4..e9a1010 100644 --- a/client/src/model/gcodeWorker.ts +++ b/client/src/model/gcodeWorker.ts @@ -5,8 +5,7 @@ const originalConsoleWarn = console.warn; // Utility to suppress warnings function withConsoleSuppression(fn: () => T): T { - console.warn = () => { - }; + console.warn = () => {}; const result = fn(); console.warn = originalConsoleWarn; return result; diff --git a/client/src/views/MainView.vue b/client/src/views/MainView.vue index 30a723c..35c6e12 100644 --- a/client/src/views/MainView.vue +++ b/client/src/views/MainView.vue @@ -5,6 +5,7 @@ import draggable from 'vuedraggable' import GCode3DImageViewer from '@/components/GCode3DImageViewer.vue' import GCodeThumbnail from '@/components/GCodeThumbnail.vue'; import GCode3DLiveViewer from '@/components/GCode3DLiveViewer.vue'; +import Gcode3DLiveRenderer from "@/components/Gcode3DLiveRenderer.vue"; import { useAssignIssue, useGetIssues, type Issue } from '@/model/issues'; import { jobTime, useAssignComment, useGetFile, useGetJobFile, useReleaseJob, useStartJob, type Job } from '@/model/jobs'; import { useRouter } from 'vue-router'; diff --git a/requirements.txt b/requirements.txt index 34bb578..ea13583 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,4 +18,4 @@ eventlet~=0.37.0 gunicorn~=23.0.0 websockets~=14.1 uuid~=1.30 -discord.py~=2.4.0 +discord.py~=2.4.0 \ No newline at end of file