diff --git a/dist/client/bundle.js.LICENSE.txt b/dist/client/bundle.js.LICENSE.txt deleted file mode 100644 index caf78b7..0000000 --- a/dist/client/bundle.js.LICENSE.txt +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @license - * Copyright 2010-2023 Three.js Authors - * SPDX-License-Identifier: MIT - */ diff --git a/dist/client/index.html b/dist/client/index.html index 30d1f4b..176fa44 100644 --- a/dist/client/index.html +++ b/dist/client/index.html @@ -23,14 +23,14 @@
- +

diff --git a/src/client/client.ts b/src/client/client.ts index 5834e1d..2a258d8 100644 --- a/src/client/client.ts +++ b/src/client/client.ts @@ -3,6 +3,7 @@ import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'; import { add_align_button, add_option_3d, + fix_deploy_url, initChart, resetPidGraphs, showPidGraphs, @@ -26,6 +27,7 @@ const robotGroup = new Group(); const scene = new Scene(); const renderer = new WebGLRenderer({ antialias: true }); +fix_deploy_url(); add_option_3d(enable3D, robotGroup, renderer, scene); showPidGraphs(); @@ -120,3 +122,4 @@ function enable3D(): void { requestAnimationFrame(render); } +enable3D(); diff --git a/src/client/helper/dom.ts b/src/client/helper/dom.ts index c2350da..56fe33e 100644 --- a/src/client/helper/dom.ts +++ b/src/client/helper/dom.ts @@ -3,6 +3,14 @@ import { Socket } from 'socket.io-client'; import { Group, Scene, WebGLRenderer } from 'three'; import { SocketMessageType } from '../models/model'; +export function fix_deploy_url(): void { + const links = document.querySelectorAll('.menu a'); + for (const link of links) { + const param = link.getAttribute('data-params'); + link.href = `${location.protocol}//${location.host}${location.pathname}${param}`; + } +} + export function add_align_button(socket: Socket): void { const alignBtn = document.querySelector('#btn-align') as HTMLButtonElement; alignBtn.onclick = function () {