mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-23 18:41:24 -08:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
916bbb4759 | ||
|
|
2f9385c823 | ||
|
|
0c3e2fb3ed | ||
|
|
90e4fcff6b | ||
|
|
b997078274 |
No files matched your search
+1
-1
@@ -31,7 +31,7 @@
|
||||
"browser-fs-access": "^0.35.0",
|
||||
"classnames": "^2.5.1",
|
||||
"convert": "^5.12.0",
|
||||
"flatbuffers": "22.10.26",
|
||||
"flatbuffers": "workspace:*",
|
||||
"intl-pluralrules": "^2.0.1",
|
||||
"ip-num": "^1.5.1",
|
||||
"jotai": "^2.12.2",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Localized, useLocalization } from '@fluent/react';
|
||||
import { useEffect, useState } from 'react';
|
||||
import {
|
||||
RpcMessage,
|
||||
RecordBVHRequestT,
|
||||
RecordBVHStatusT,
|
||||
RpcMessage,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { BigButton } from './commons/BigButton';
|
||||
import { RecordIcon } from './commons/icon/RecordIcon';
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
LegTweaksTmpClearT,
|
||||
RpcMessage,
|
||||
SettingsRequestT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { Navbar } from './Navbar';
|
||||
import { TopBar } from './TopBar';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
NewSerialDeviceResponseT,
|
||||
RpcMessage,
|
||||
SerialDeviceT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useConfig } from '@/hooks/config';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { useWifiForm, WifiFormData } from '@/hooks/wifi-form';
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
RpcMessage,
|
||||
SkeletonConfigRequestT,
|
||||
SkeletonConfigResponseT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { Tooltip } from './commons/Tooltip';
|
||||
import { Vector3 } from 'three';
|
||||
import { RecordIcon } from './commons/icon/RecordIcon';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Typography } from './commons/Typography';
|
||||
import classNames from 'classnames';
|
||||
import { ResetType } from 'solarxr-protocol';
|
||||
import { ResetType } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import {
|
||||
BODY_PARTS_GROUPS,
|
||||
MountingResetGroup,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { ReactNode, useContext, useEffect, useState } from 'react';
|
||||
import { NavLink, useMatch } from 'react-router-dom';
|
||||
import { TrackerStatus } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import {
|
||||
RpcMessage,
|
||||
ServerInfosRequestT,
|
||||
ServerInfosResponseT,
|
||||
TrackerStatus,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { CloseIcon } from './commons/icon/CloseIcon';
|
||||
import { MaximiseIcon } from './commons/icon/MaximiseIcon';
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
RpcMessage,
|
||||
TrackingPauseStateResponseT,
|
||||
TrackingPauseStateRequestT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { BigButton } from './commons/BigButton';
|
||||
import { PlayIcon } from './commons/icon/PlayIcon';
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
AddUnknownDeviceRequestT,
|
||||
RpcMessage,
|
||||
UnknownDeviceHandshakeNotificationT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useDebouncedEffect } from '@/hooks/timeout';
|
||||
import { useAtom } from 'jotai';
|
||||
import { ignoredTrackersAtom } from '@/store/app-store';
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import classNames from 'classnames';
|
||||
import { useEffect, useMemo, useRef, useState } from 'react';
|
||||
import { BodyPart, TrackerDataT } from 'solarxr-protocol';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { TrackerDataT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/tracker';
|
||||
import { useTracker } from '@/hooks/tracker';
|
||||
import { PersonFrontIcon } from './PersonFrontIcon';
|
||||
import { FlatDeviceTracker } from '@/store/app-store';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import classNames from 'classnames';
|
||||
import { ReactNode, useEffect, useRef, useState } from 'react';
|
||||
import { BodyPart } from 'solarxr-protocol';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { PersonFrontIcon } from './PersonFrontIcon';
|
||||
import { useBreakpoint } from '@/hooks/breakpoint';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BodyPart } from 'solarxr-protocol';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { useLocaleConfig } from '@/i18n/config';
|
||||
import { AnkleIcon } from './icon/AnkleIcon';
|
||||
import { ChestIcon } from './icon/ChestIcon';
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import {
|
||||
DeviceDataT,
|
||||
TrackerDataT,
|
||||
TrackerStatus as TrackerStatusEnum,
|
||||
} from 'solarxr-protocol';
|
||||
import { DeviceDataT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/device-data';
|
||||
import { TrackerDataT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/tracker';
|
||||
import { TrackerStatus as TrackerStatusEnum } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { Typography } from './Typography';
|
||||
import classNames from 'classnames';
|
||||
import { DownloadIcon } from './icon/DownloadIcon';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BodyPart } from 'solarxr-protocol';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
|
||||
export const SIDES = [
|
||||
{
|
||||
|
||||
@@ -8,10 +8,8 @@ import {
|
||||
import { useLocalization } from '@fluent/react';
|
||||
import classNames from 'classnames';
|
||||
import { Control, Controller } from 'react-hook-form';
|
||||
import {
|
||||
FirmwareUpdateStatus,
|
||||
TrackerStatus as TrackerStatusEnum,
|
||||
} from 'solarxr-protocol';
|
||||
import { FirmwareUpdateStatus } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { TrackerStatus as TrackerStatusEnum } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { TrackerStatus } from '@/components/tracker/TrackerStatus';
|
||||
import { useMemo } from 'react';
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import { SelectSourceSetep } from './steps/SelectSourceStep';
|
||||
import { BoardDefaultsStep } from './steps/BoardDefaultsStep';
|
||||
import { BuildStep } from './steps/BuildStep';
|
||||
import { FlashingMethodStep } from './steps/FlashingMethodStep';
|
||||
import { FirmwareUpdateMethod } from 'solarxr-protocol';
|
||||
import { FirmwareUpdateMethod } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { FlashBtnStep } from './steps/FlashBtnStep';
|
||||
import { FlashingStep } from './steps/FlashingStep';
|
||||
|
||||
|
||||
@@ -7,16 +7,16 @@ import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { useEffect, useLayoutEffect, useState } from 'react';
|
||||
import { yupResolver } from '@hookform/resolvers/yup';
|
||||
|
||||
import { DeviceDataT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/device-data';
|
||||
import { TrackerStatus } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import {
|
||||
DeviceDataT,
|
||||
FirmwareUpdateMethod,
|
||||
NewSerialDeviceResponseT,
|
||||
RpcMessage,
|
||||
SerialDeviceT,
|
||||
SerialDevicesRequestT,
|
||||
SerialDevicesResponseT,
|
||||
TrackerStatus,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import { Input } from '@/components/commons/Input';
|
||||
import { Dropdown } from '@/components/commons/Dropdown';
|
||||
|
||||
@@ -8,14 +8,14 @@ import {
|
||||
} from '@/hooks/firmware-tool';
|
||||
import { useEffect, useMemo, useState } from 'react';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { DeviceIdTableT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import {
|
||||
DeviceIdTableT,
|
||||
FirmwareUpdateMethod,
|
||||
FirmwareUpdateStatus,
|
||||
FirmwareUpdateStatusResponseT,
|
||||
FirmwareUpdateStopQueuesRequestT,
|
||||
RpcMessage,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useOnboarding } from '@/hooks/onboarding';
|
||||
import { WarningBox } from '@/components/commons/TipBox';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
|
||||
@@ -2,17 +2,19 @@ import { Localized, ReactLocalization, useLocalization } from '@fluent/react';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { getTrackerName } from '@/hooks/tracker';
|
||||
import { ComponentProps, useEffect, useMemo, useRef, useState } from 'react';
|
||||
import { BoardType } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes/hardware-info';
|
||||
import { DeviceDataT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/device-data';
|
||||
import {
|
||||
BoardType,
|
||||
DeviceDataT,
|
||||
DeviceIdTableT,
|
||||
TrackerStatus,
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import {
|
||||
FirmwareUpdateMethod,
|
||||
FirmwareUpdateStatus,
|
||||
FirmwareUpdateStatusResponseT,
|
||||
FirmwareUpdateStopQueuesRequestT,
|
||||
RpcMessage,
|
||||
TrackerStatus,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import classNames from 'classnames';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import Markdown from 'react-markdown';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useLocalization } from '@fluent/react';
|
||||
import { NavLink, useNavigate } from 'react-router-dom';
|
||||
import { TrackerDataT } from 'solarxr-protocol';
|
||||
import { TrackerDataT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/tracker';
|
||||
import { useConfig } from '@/hooks/config';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { TrackerCard } from '@/components/tracker/TrackerCard';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Localized } from '@fluent/react';
|
||||
import { ResetType } from 'solarxr-protocol';
|
||||
import { ResetType } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import classNames from 'classnames';
|
||||
import { useReset, UseResetOptions } from '@/hooks/reset';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useCallback, useMemo } from 'react';
|
||||
import { BodyPart } from 'solarxr-protocol';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { AssignMode } from '@/hooks/config';
|
||||
import { BodyInteractions } from '@/components/commons/BodyInteractions';
|
||||
import { TrackerPartCard } from '@/components/tracker/TrackerPartCard';
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
TrackingChecklistStepId,
|
||||
WifiProvisioningStatus,
|
||||
WifiProvisioningStatusResponseT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useOnboarding } from '@/hooks/onboarding';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { ArrowLink } from '@/components/commons/ArrowLink';
|
||||
|
||||
@@ -3,15 +3,15 @@ import { useOnboarding } from '@/hooks/onboarding';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { useState, useMemo, useEffect } from 'react';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import {
|
||||
BodyPart,
|
||||
ResetResponseT,
|
||||
ResetStatus,
|
||||
ResetType,
|
||||
RpcMessage,
|
||||
SettingsRequestT,
|
||||
SettingsResponseT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { BodyDisplay } from '@/components/commons/BodyDisplay';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import classNames from 'classnames';
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
SkeletonConfigRequestT,
|
||||
SkeletonConfigResponseT,
|
||||
SkeletonResetAllRequestT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useOnboarding } from '@/hooks/onboarding';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { BodyProportions } from './BodyProportions';
|
||||
|
||||
@@ -5,20 +5,22 @@ import { useAtomValue } from 'jotai';
|
||||
import { serverGuardsAtom } from '@/store/app-store';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { useEffect, useState } from 'react';
|
||||
import {
|
||||
ModelSettingsT,
|
||||
SkeletonHeightT,
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc/settings';
|
||||
import {
|
||||
CancelUserHeightCalibrationT,
|
||||
ChangeSettingsRequestT,
|
||||
ModelSettingsT,
|
||||
ResetType,
|
||||
RpcMessage,
|
||||
SkeletonConfigRequestT,
|
||||
SkeletonConfigResponseT,
|
||||
SkeletonHeightT,
|
||||
SkeletonResetAllRequestT,
|
||||
StartUserHeightCalibrationT,
|
||||
UserHeightCalibrationStatus,
|
||||
UserHeightRecordingStatusResponseT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { HeightSelectionInput } from './HeightInput';
|
||||
import { Tooltip } from '@/components/commons/Tooltip';
|
||||
import classNames from 'classnames';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ResetType } from 'solarxr-protocol';
|
||||
import { ResetType } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { ResetButton } from '@/components/home/ResetButton';
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import { ReactNode, useCallback, useMemo, useState } from 'react';
|
||||
import { AssignTrackerRequestT, BodyPart, RpcMessage } from 'solarxr-protocol';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import {
|
||||
AssignTrackerRequestT,
|
||||
RpcMessage,
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useOnboarding } from '@/hooks/onboarding';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import {
|
||||
|
||||
@@ -7,7 +7,7 @@ import { FootIcon } from '@/components/commons/icon/FootIcon';
|
||||
import { rotationToQuatMap, similarQuaternions } from '@/maths/quaternion';
|
||||
import { Quaternion } from 'three';
|
||||
import { SlimeUpIcon } from '@/components/commons/icon/SlimeUpIcon';
|
||||
import { BodyPart } from 'solarxr-protocol';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { PawIcon } from '@/components/commons/icon/PawIcon';
|
||||
import { useLocaleConfig } from '@/i18n/config';
|
||||
import { FingersIcon } from '@/components/commons/icon/FingersIcon';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ResetType } from 'solarxr-protocol';
|
||||
import { ResetType } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { ResetButton } from '@/components/home/ResetButton';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ResetType } from 'solarxr-protocol';
|
||||
import { ResetType } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { ResetButton } from '@/components/home/ResetButton';
|
||||
|
||||
@@ -6,7 +6,10 @@ import {
|
||||
SittingRelaxedPoseStep,
|
||||
StandingRelaxedPoseStep,
|
||||
} from './stay-aligned-steps/RelaxedPoseSteps';
|
||||
import { EnableStayAlignedRequestT, RpcMessage } from 'solarxr-protocol';
|
||||
import {
|
||||
EnableStayAlignedRequestT,
|
||||
RpcMessage,
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { RPCPacketType, useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { useEffect, useRef } from 'react';
|
||||
import VerticalStepper from '@/components/commons/VerticalStepper';
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import { Typography } from '@/components/commons/Typography';
|
||||
import { VerticalStepComponentProps } from '@/components/commons/VerticalStepper';
|
||||
import { ResetButton } from '@/components/home/ResetButton';
|
||||
import { Localized } from '@fluent/react';
|
||||
import { ResetType } from 'solarxr-protocol';
|
||||
import { ResetType } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
|
||||
export function PreparationStep({
|
||||
nextStep,
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import {
|
||||
ResetRelaxedPoseButton,
|
||||
} from '@/components/stay-aligned/RelaxedPose';
|
||||
import { useLocalization } from '@fluent/react';
|
||||
import { StayAlignedRelaxedPose } from 'solarxr-protocol';
|
||||
import { StayAlignedRelaxedPose } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { enableStayAligned } from '@/components/onboarding/pages/stay-aligned/StayAlignedSetup';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { VerticalStepComponentProps } from '@/components/commons/VerticalStepper';
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { useState } from 'react';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { ResetType } from 'solarxr-protocol';
|
||||
import { ResetType } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { ResetButton } from '@/components/home/ResetButton';
|
||||
import { useBreakpoint } from '@/hooks/breakpoint';
|
||||
import { VerticalStepComponentProps } from '@/components/commons/VerticalStepper';
|
||||
|
||||
@@ -3,17 +3,19 @@ import classNames from 'classnames';
|
||||
import { useMemo, useState, useEffect } from 'react';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import {
|
||||
AssignTrackerRequestT,
|
||||
BodyPart,
|
||||
QuatT,
|
||||
RpcMessage,
|
||||
TrackerIdT,
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { QuatT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes/math';
|
||||
import {
|
||||
AssignTrackerRequestT,
|
||||
RpcMessage,
|
||||
SettingsRequestT,
|
||||
SettingsResponseT,
|
||||
TapDetectionSettingsT,
|
||||
ChangeSettingsRequestT,
|
||||
TapDetectionSetupNotificationT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useChokerWarning } from '@/hooks/choker-warning';
|
||||
import { useOnboarding } from '@/hooks/onboarding';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import classNames from 'classnames';
|
||||
import ReactModal from 'react-modal';
|
||||
import { BodyPart } from 'solarxr-protocol';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import { TipBox } from '@/components/commons/TipBox';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
|
||||
@@ -12,7 +12,10 @@ import { SettingsResetModal } from '@/components/settings/SettingsResetModal';
|
||||
import { error } from '@/utils/logging';
|
||||
import { defaultConfig as defaultGUIConfig, useConfig } from '@/hooks/config';
|
||||
import { defaultValues as defaultDevConfig } from '@/components/widgets/DeveloperModeWidget';
|
||||
import { RpcMessage, SettingsResetRequestT } from 'solarxr-protocol';
|
||||
import {
|
||||
RpcMessage,
|
||||
SettingsResetRequestT,
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { invoke } from '@tauri-apps/api/core';
|
||||
|
||||
|
||||
@@ -1,21 +1,23 @@
|
||||
import { Localized, useLocalization } from '@fluent/react';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { DefaultValues, useForm } from 'react-hook-form';
|
||||
import { FilteringType } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import {
|
||||
ChangeSettingsRequestT,
|
||||
FilteringSettingsT,
|
||||
FilteringType,
|
||||
LegTweaksSettingsT,
|
||||
ModelRatiosT,
|
||||
ModelSettingsT,
|
||||
ModelTogglesT,
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc/settings';
|
||||
import {
|
||||
ChangeSettingsRequestT,
|
||||
FilteringSettingsT,
|
||||
RpcMessage,
|
||||
SettingsRequestT,
|
||||
SettingsResponseT,
|
||||
SteamVRTrackersSettingT,
|
||||
TapDetectionSettingsT,
|
||||
HIDSettingsT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useConfig } from '@/hooks/config';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { useLocaleConfig } from '@/i18n/config';
|
||||
|
||||
@@ -15,7 +15,7 @@ import { useLocalization } from '@fluent/react';
|
||||
import classNames from 'classnames';
|
||||
import { ReactNode, useEffect } from 'react';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { TrackingChecklistStepId } from 'solarxr-protocol';
|
||||
import { TrackingChecklistStepId } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import * as Sentry from '@sentry/react';
|
||||
|
||||
type StepsForm = { steps: Record<TrackingChecklistStepId, boolean> };
|
||||
|
||||
@@ -5,13 +5,15 @@ import { Localized, useLocalization } from '@fluent/react';
|
||||
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import {
|
||||
ChangeMagToggleRequestT,
|
||||
DeviceIdT,
|
||||
TrackerIdT,
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import {
|
||||
ChangeMagToggleRequestT,
|
||||
MagToggleRequestT,
|
||||
MagToggleResponseT,
|
||||
RpcMessage,
|
||||
TrackerIdT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
interface MagnetometerToggleForm {
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
RpcMessage,
|
||||
SettingsRequestT,
|
||||
SettingsResponseT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { CheckBox } from '@/components/commons/Checkbox';
|
||||
import { RouterIcon } from '@/components/commons/icon/RouterIcon';
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
SerialUpdateResponseT,
|
||||
SerialTrackerGetWifiScanRequestT,
|
||||
SerialTrackerCustomCommandRequestT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import { Dropdown } from '@/components/commons/Dropdown';
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
SettingsResponseT,
|
||||
OSCSettingsT,
|
||||
VMCOSCSettingsT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { CheckBox } from '@/components/commons/Checkbox';
|
||||
import { FileInput } from '@/components/commons/FileInput';
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
SettingsRequestT,
|
||||
SettingsResponseT,
|
||||
VRCOSCSettingsT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { CheckBox } from '@/components/commons/Checkbox';
|
||||
import { VRCIcon } from '@/components/commons/icon/VRCIcon';
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
} from '@/components/stay-aligned/RelaxedPose';
|
||||
import { useLocalization } from '@fluent/react';
|
||||
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
||||
import { StayAlignedRelaxedPose } from 'solarxr-protocol';
|
||||
import { StayAlignedRelaxedPose } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
|
||||
function StaAlignedPoseModal({
|
||||
open,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Control } from 'react-hook-form';
|
||||
import { StayAlignedSettingsT } from 'solarxr-protocol';
|
||||
import { StayAlignedSettingsT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { SettingsForm } from '@/components/settings/pages/GeneralSettings';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import { CheckBox } from '@/components/commons/Checkbox';
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
DetectStayAlignedRelaxedPoseRequestT,
|
||||
RpcMessage,
|
||||
StayAlignedRelaxedPose,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
import { MouseEventHandler } from 'react';
|
||||
import { Button, ButtonProps } from '@/components/commons/Button';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { useLocaleConfig } from '@/i18n/config';
|
||||
import { TrackerDataT } from 'solarxr-protocol';
|
||||
import { TrackerDataT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/tracker';
|
||||
|
||||
export function StayAlignedInfo({
|
||||
color,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import classNames from 'classnames';
|
||||
import ReactModal from 'react-modal';
|
||||
import { BodyPart } from 'solarxr-protocol';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { BodyAssignment } from '@/components/onboarding/BodyAssignment';
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import { useConfig } from '@/hooks/config';
|
||||
import { MouseEventHandler } from 'react';
|
||||
import {
|
||||
DeviceDataT,
|
||||
TrackerDataT,
|
||||
TrackerStatus as TrackerStatusEnum,
|
||||
TrackingChecklistStepT,
|
||||
} from 'solarxr-protocol';
|
||||
import { DeviceDataT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/device-data';
|
||||
import { TrackerDataT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/tracker';
|
||||
import { TrackerStatus as TrackerStatusEnum } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { TrackingChecklistStepT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { TrackerBattery } from './TrackerBattery';
|
||||
import { TrackerWifi } from './TrackerWifi';
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import classNames from 'classnames';
|
||||
import { MouseEventHandler, useEffect, useMemo, useState } from 'react';
|
||||
import { BodyPart, TrackerDataT } from 'solarxr-protocol';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { TrackerDataT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/tracker';
|
||||
import { useTracker } from '@/hooks/tracker';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { useLocalization } from '@fluent/react';
|
||||
|
||||
@@ -5,15 +5,19 @@ import { useEffect, useMemo, useState } from 'react';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { useParams } from 'react-router-dom';
|
||||
import {
|
||||
AssignTrackerRequestT,
|
||||
BoardType,
|
||||
BodyPart,
|
||||
ForgetDeviceRequestT,
|
||||
ImuType,
|
||||
MagnetometerStatus,
|
||||
RpcMessage,
|
||||
TrackerDataType,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes/hardware-info';
|
||||
import {
|
||||
BodyPart,
|
||||
MagnetometerStatus,
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import {
|
||||
AssignTrackerRequestT,
|
||||
ForgetDeviceRequestT,
|
||||
RpcMessage,
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useDebouncedEffect } from '@/hooks/timeout';
|
||||
import { useTrackerFromId } from '@/hooks/tracker';
|
||||
import { useWebsocketAPI } from '@/hooks/websocket-api';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import classNames from 'classnames';
|
||||
import { useMemo } from 'react';
|
||||
import { TrackerStatus as TrackerStatusEnum } from 'solarxr-protocol';
|
||||
import { TrackerStatus as TrackerStatusEnum } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { useLocalization } from '@fluent/react';
|
||||
|
||||
|
||||
@@ -16,10 +16,10 @@ import { WarningIcon } from '@/components/commons/icon/WarningIcon';
|
||||
import { FirmwareIcon } from '@/components/commons/FirmwareIcon';
|
||||
import {
|
||||
BodyPart,
|
||||
TrackerDataT,
|
||||
TrackerStatus as TrackerStatusEnum,
|
||||
TrackingChecklistStepT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { TrackerDataT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/tracker';
|
||||
import { TrackingChecklistStepT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import {
|
||||
highlightedTrackers,
|
||||
trackingchecklistIdtoLabel,
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
ResetType,
|
||||
TrackingChecklistPublicNetworksT,
|
||||
TrackingChecklistStepId,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { ReactNode, useEffect, useMemo, useState } from 'react';
|
||||
import { openUrl } from '@tauri-apps/plugin-opener';
|
||||
import { CheckIcon } from '@/components/commons/icon/CheckIcon';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useEffect, useMemo, useState } from 'react';
|
||||
import { TrackerDataT } from 'solarxr-protocol';
|
||||
import { TrackerDataT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/tracker';
|
||||
import { useTracker } from '@/hooks/tracker';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { formatVector3 } from '@/utils/formatting';
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
import { useLocalization } from '@fluent/react';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { KeyValuesT, MessageT, Payload, Topic } from 'solarxr-protocol';
|
||||
import {
|
||||
KeyValuesT,
|
||||
MessageT,
|
||||
Payload,
|
||||
Topic,
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/pub-sub';
|
||||
import {
|
||||
OVERLAY_DISPLAY_SETTINGS_TOPIC,
|
||||
PayloadData,
|
||||
|
||||
@@ -7,7 +7,8 @@ import {
|
||||
BasedSkeletonHelper,
|
||||
} from '@/utils/skeletonHelper';
|
||||
import * as THREE from 'three';
|
||||
import { BodyPart, BoneT } from 'solarxr-protocol';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { BoneT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed';
|
||||
import { QuaternionFromQuatT, isIdentity } from '@/maths/quaternion';
|
||||
import classNames from 'classnames';
|
||||
import { useLocalization } from '@fluent/react';
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import { createContext, useContext, useEffect, useLayoutEffect, useState } from 'react';
|
||||
import { DataFeedMessage, DataFeedUpdateT, StartDataFeedT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed';
|
||||
import {
|
||||
DataFeedMessage,
|
||||
DataFeedUpdateT,
|
||||
ResetResponseT,
|
||||
RpcMessage,
|
||||
StartDataFeedT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { handleResetSounds } from '@/sounds/sounds';
|
||||
import { useConfig } from './config';
|
||||
import { useBonesDataFeedConfig, useDataFeedConfig } from './datafeed-config';
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
RpcMessage,
|
||||
SkeletonBone,
|
||||
SkeletonPartT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useWebsocketAPI } from './websocket-api';
|
||||
import { useLocalization } from '@fluent/react';
|
||||
import { log } from '@/utils/logging';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BodyPart } from 'solarxr-protocol';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
|
||||
export const ALL_BODY_PARTS = [
|
||||
BodyPart.NONE,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useLocalization } from '@fluent/react';
|
||||
import { isTauri } from '@tauri-apps/api/core';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { RecordBVHRequestT, RecordBVHStatusT, RpcMessage } from 'solarxr-protocol';
|
||||
import { RecordBVHRequestT, RecordBVHStatusT, RpcMessage } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useWebsocketAPI } from './websocket-api';
|
||||
import { useConfig } from './config';
|
||||
import { save } from '@tauri-apps/plugin-dialog';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useState } from 'react';
|
||||
import { BodyPart } from 'solarxr-protocol';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
|
||||
/**
|
||||
* I dedicate this hook to @uriel ;)
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import { DataFeedConfigT, DeviceDataMaskT, TrackerDataMaskT } from 'solarxr-protocol';
|
||||
import { DataFeedConfigT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed';
|
||||
import { DeviceDataMaskT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/device-data';
|
||||
import { TrackerDataMaskT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/tracker';
|
||||
import { useConfig } from './config';
|
||||
|
||||
export function useDataFeedConfig() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createContext, useContext, useMemo, useState } from 'react';
|
||||
import { DeviceIdT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import {
|
||||
DeviceIdT,
|
||||
FirmwarePartT,
|
||||
FirmwareUpdateMethod,
|
||||
FirmwareUpdateRequestT,
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
OTAFirmwareUpdateT,
|
||||
SerialDevicePortT,
|
||||
SerialFirmwareUpdateT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { OnboardingContext } from './onboarding';
|
||||
import {
|
||||
BoardDefaults,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { BoardType, DeviceDataT } from 'solarxr-protocol';
|
||||
import { BoardType } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes/hardware-info';
|
||||
import { DeviceDataT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/device-data';
|
||||
import { fetch as tauriFetch } from '@tauri-apps/plugin-http';
|
||||
import { cacheWrap } from './cache';
|
||||
import semver from 'semver';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createContext, useContext, useEffect, useMemo, useState } from 'react';
|
||||
import { useWebsocketAPI } from './websocket-api';
|
||||
import { RpcMessage, SettingsRequestT, SettingsResponseT } from 'solarxr-protocol';
|
||||
import { RpcMessage, SettingsRequestT, SettingsResponseT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { MIN_HEIGHT } from './manual-proportions';
|
||||
|
||||
export interface HeightContext {
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
RpcMessage,
|
||||
SkeletonConfigRequestT,
|
||||
ChangeSkeletonConfigRequestT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useWebsocketAPI } from './websocket-api';
|
||||
import { useEffect, useMemo, useState } from 'react';
|
||||
import { useConfig } from './config';
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
SetPauseTrackingRequestT,
|
||||
TrackingPauseStateRequestT,
|
||||
TrackingPauseStateResponseT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { restartAndPlay, trackingPauseSound, trackingPlaySound } from '@/sounds/sounds';
|
||||
import { useConfig } from './config';
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
TopicHandleT,
|
||||
TopicIdT,
|
||||
TopicMappingT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/pub-sub';
|
||||
import { useWebsocketAPI } from './websocket-api';
|
||||
|
||||
export type PayloadData = MessageT['payload'];
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
RpcMessage,
|
||||
SettingsResetRequestT,
|
||||
SettingsResponseT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useWebsocketAPI } from './websocket-api';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { useEffect, useMemo, useRef, useState } from 'react';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import {
|
||||
BodyPart,
|
||||
ResetRequestT,
|
||||
ResetResponseT,
|
||||
ResetStatus,
|
||||
ResetType,
|
||||
RpcMessage,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { useWebsocketAPI } from './websocket-api';
|
||||
import { useAtomValue } from 'jotai';
|
||||
import { assignedTrackersAtom, serverGuardsAtom } from '@/store/app-store';
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { useEffect, useMemo, useRef, useState } from 'react';
|
||||
import { BodyPart, TrackerDataT, TrackerInfoT } from 'solarxr-protocol';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { TrackerDataT, TrackerInfoT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/tracker';
|
||||
import { QuaternionFromQuatT, QuaternionToEulerDegrees } from '@/maths/quaternion';
|
||||
import { ReactLocalization, useLocalization } from '@fluent/react';
|
||||
import { useDataFeedConfig } from './datafeed-config';
|
||||
|
||||
@@ -6,8 +6,8 @@ import {
|
||||
TrackingChecklistStepVisibility,
|
||||
IgnoreTrackingChecklistStepRequestT,
|
||||
RpcMessage,
|
||||
TrackerIdT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import { TrackerIdT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { useWebsocketAPI } from './websocket-api';
|
||||
import { createContext, useContext, useEffect, useMemo, useState } from 'react';
|
||||
import * as Sentry from '@sentry/react';
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
VRCConfigStateRequestT,
|
||||
VRCSpineMode,
|
||||
VRCTrackerModel,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
|
||||
type NonNull<T> = {
|
||||
[P in keyof T]: NonNullable<T[P]>;
|
||||
|
||||
@@ -1,15 +1,21 @@
|
||||
import { createContext, useContext, useEffect, useRef, useState } from 'react';
|
||||
|
||||
import {
|
||||
DataFeedMessage,
|
||||
DataFeedMessageHeaderT,
|
||||
MessageBundle,
|
||||
MessageBundleT,
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol';
|
||||
import {
|
||||
DataFeedMessage,
|
||||
DataFeedMessageHeaderT,
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed';
|
||||
import {
|
||||
PubSubHeaderT,
|
||||
PubSubUnion,
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/pub-sub';
|
||||
import {
|
||||
RpcMessage,
|
||||
RpcMessageHeaderT,
|
||||
} from 'solarxr-protocol';
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
|
||||
import { Builder, ByteBuffer } from 'flatbuffers';
|
||||
import { useInterval, useTimeout } from './timeout';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Euler, Quaternion } from 'three';
|
||||
import { QuatT } from 'solarxr-protocol';
|
||||
import { QuatT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes/math';
|
||||
|
||||
export const rotationToQuatMap = {
|
||||
FRONT: new Quaternion(0, 1, 0, 0),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Vec3fT } from 'solarxr-protocol';
|
||||
import { Vec3fT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes/math';
|
||||
import { Vector3 } from 'three';
|
||||
|
||||
export type Vector3Object = { x: number; y: number; z: number };
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { ResetResponseT, ResetStatus, ResetType } from 'solarxr-protocol';
|
||||
import {
|
||||
ResetResponseT,
|
||||
ResetStatus,
|
||||
ResetType,
|
||||
} from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/rpc';
|
||||
import Xylophone, { ValidNote } from './xylophone';
|
||||
|
||||
const tones: ValidNote[][] = [
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
import { atom } from 'jotai';
|
||||
import {
|
||||
BodyPart,
|
||||
BoneT,
|
||||
DataFeedUpdateT,
|
||||
DeviceDataT,
|
||||
TrackerDataT,
|
||||
TrackerStatus,
|
||||
} from 'solarxr-protocol';
|
||||
import { BodyPart, TrackerStatus } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { BoneT, DataFeedUpdateT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed';
|
||||
import { DeviceDataT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/device-data';
|
||||
import { TrackerDataT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/tracker';
|
||||
import { selectAtom } from 'jotai/utils';
|
||||
import { isEqual } from '@react-hookz/deep-equal';
|
||||
import { FEET_BODY_PARTS, FINGER_BODY_PARTS } from '@/hooks/body-parts';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BodyPart } from 'solarxr-protocol';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
|
||||
export const bodypartToString = (id: BodyPart) => BodyPart[id].replace(/_/g, ' ');
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
useLocation,
|
||||
useNavigationType,
|
||||
} from 'react-router-dom';
|
||||
import { DeviceDataT } from 'solarxr-protocol';
|
||||
import { DeviceDataT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed/device-data';
|
||||
|
||||
export function getSentryOrCompute(enabled = false, uuid: string) {
|
||||
Sentry.setUser({ id: uuid });
|
||||
|
||||
@@ -2,7 +2,8 @@ import { Bone, Color, Matrix4, Object3D, Vector2, Vector3 } from 'three';
|
||||
import { LineSegments2 } from 'three/examples/jsm/lines/LineSegments2';
|
||||
import { LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';
|
||||
import { LineSegmentsGeometry } from 'three/examples/jsm/lines/LineSegmentsGeometry.js';
|
||||
import { BodyPart, BoneT } from 'solarxr-protocol';
|
||||
import { BodyPart } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/datatypes';
|
||||
import { BoneT } from 'solarxr-protocol/protocol/typescript/dist/solarxr-protocol/data-feed';
|
||||
import { Vector3FromVec3fT } from '@/maths/vector3';
|
||||
import { QuaternionFromQuatT } from '@/maths/quaternion';
|
||||
|
||||
|
||||
+2
-1
@@ -5,6 +5,7 @@
|
||||
"packageManager": "[email protected]",
|
||||
"workspaces": [
|
||||
"solarxr-protocol",
|
||||
"solarxr-protocol/lib/flatbuffers",
|
||||
"gui"
|
||||
],
|
||||
"scripts": {
|
||||
@@ -12,7 +13,7 @@
|
||||
"tauri": "cd gui && pnpm run tauri",
|
||||
"skipbundler": "cd gui && pnpm run skipbundler",
|
||||
"build": "pnpm run tauri build",
|
||||
"update-solarxr": "cd solarxr-protocol && pnpm run build",
|
||||
"update-solarxr": "cd solarxr-protocol && pnpm i",
|
||||
"prepare": "husky && pnpm run update-solarxr",
|
||||
"preinstall": "npx only-allow pnpm"
|
||||
},
|
||||
|
||||
Generated
+492
-12
@@ -99,8 +99,8 @@ importers:
|
||||
specifier: ^5.12.0
|
||||
version: 5.13.1
|
||||
flatbuffers:
|
||||
specifier: 22.10.26
|
||||
version: 22.10.26
|
||||
specifier: workspace:*
|
||||
version: link:../solarxr-protocol/lib/flatbuffers
|
||||
intl-pluralrules:
|
||||
specifier: ^2.0.1
|
||||
version: 2.0.1
|
||||
@@ -148,7 +148,7 @@ importers:
|
||||
version: 7.6.3
|
||||
solarxr-protocol:
|
||||
specifier: file:../solarxr-protocol
|
||||
version: link:../solarxr-protocol
|
||||
version: file:solarxr-protocol
|
||||
three:
|
||||
specifier: ^0.163.0
|
||||
version: 0.163.0
|
||||
@@ -277,15 +277,42 @@ importers:
|
||||
solarxr-protocol:
|
||||
dependencies:
|
||||
flatbuffers:
|
||||
specifier: ^22.10.26
|
||||
version: 22.10.26
|
||||
specifier: workspace:*
|
||||
version: link:lib/flatbuffers
|
||||
devDependencies:
|
||||
'@mgit-at/typescript-flatbuffers-codegen':
|
||||
specifier: ^0.1.3
|
||||
version: 0.1.3
|
||||
typescript:
|
||||
specifier: 4.8.4
|
||||
version: 4.8.4
|
||||
specifier: ^5.6.3
|
||||
version: 5.7.3
|
||||
|
||||
solarxr-protocol/lib/flatbuffers:
|
||||
devDependencies:
|
||||
'@eslint/js':
|
||||
specifier: ^9.29.0
|
||||
version: 9.39.1
|
||||
'@types/node':
|
||||
specifier: ^24.0.3
|
||||
version: 24.10.0
|
||||
'@typescript-eslint/eslint-plugin':
|
||||
specifier: ^8.34.1
|
||||
version: 8.48.1(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])
|
||||
'@typescript-eslint/parser':
|
||||
specifier: ^8.34.1
|
||||
version: 8.48.1([email protected]([email protected]))([email protected])
|
||||
esbuild:
|
||||
specifier: ^0.25.5
|
||||
version: 0.25.12
|
||||
eslint:
|
||||
specifier: ^9.29.0
|
||||
version: 9.39.1([email protected])
|
||||
typescript:
|
||||
specifier: 5.8.3
|
||||
version: 5.8.3
|
||||
typescript-eslint:
|
||||
specifier: ^8.34.1
|
||||
version: 8.46.4([email protected]([email protected]))([email protected])
|
||||
|
||||
packages:
|
||||
|
||||
@@ -511,138 +538,294 @@ packages:
|
||||
cpu: [ppc64]
|
||||
os: [aix]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [ppc64]
|
||||
os: [aix]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [arm64]
|
||||
os: [android]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [arm64]
|
||||
os: [android]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [arm]
|
||||
os: [android]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [arm]
|
||||
os: [android]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [x64]
|
||||
os: [android]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [x64]
|
||||
os: [android]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [x64]
|
||||
os: [darwin]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [x64]
|
||||
os: [darwin]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [arm64]
|
||||
os: [freebsd]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [arm64]
|
||||
os: [freebsd]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [x64]
|
||||
os: [freebsd]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [x64]
|
||||
os: [freebsd]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [arm]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [arm]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [ia32]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [ia32]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [loong64]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [loong64]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [mips64el]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [mips64el]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [ppc64]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [ppc64]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [riscv64]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [riscv64]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [s390x]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [s390x]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [arm64]
|
||||
os: [netbsd]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [x64]
|
||||
os: [netbsd]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [x64]
|
||||
os: [netbsd]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [arm64]
|
||||
os: [openbsd]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [x64]
|
||||
os: [openbsd]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [x64]
|
||||
os: [openbsd]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [arm64]
|
||||
os: [openharmony]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [x64]
|
||||
os: [sunos]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [x64]
|
||||
os: [sunos]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [arm64]
|
||||
os: [win32]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [arm64]
|
||||
os: [win32]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [ia32]
|
||||
os: [win32]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [ia32]
|
||||
os: [win32]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==}
|
||||
engines: {node: '>=12'}
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==}
|
||||
engines: {node: '>=18'}
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
|
||||
'@eslint-community/[email protected]':
|
||||
resolution: {integrity: sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==}
|
||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||
@@ -2311,6 +2494,11 @@ packages:
|
||||
engines: {node: '>=12'}
|
||||
hasBin: true
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==}
|
||||
engines: {node: '>=18'}
|
||||
hasBin: true
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==}
|
||||
engines: {node: '>=6'}
|
||||
@@ -2527,9 +2715,6 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-c7CZADjRcl6j0PlvFy0ZqXQ67qSEZfrVPynmnL+2zPc+NtMvrF8Y0QceMo7QqnSPc7+uWjUIAbvCQ5WIKlMVdQ==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-sdO3emf/BlLfOogW6KwHuXg16APR/E86jNacDXfSInPzt8SSEzxlHcqDekfM/IJ1CGC5bvDksfNufNhS8h1FRA==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==}
|
||||
|
||||
@@ -4124,6 +4309,9 @@ packages:
|
||||
resolution: {integrity: sha512-bSiSngZ/jWeX93BqeIAbImyTbEihizcwNjFoRUIY/T1wWQsfsm2Vw1agPKylXvQTU7iASGdHhyqRlqQzfz+Htg==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
solarxr-protocol@file:solarxr-protocol:
|
||||
resolution: {directory: solarxr-protocol, type: directory}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
@@ -4464,6 +4652,11 @@ packages:
|
||||
engines: {node: '>=14.17'}
|
||||
hasBin: true
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==}
|
||||
engines: {node: '>=14.17'}
|
||||
hasBin: true
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==}
|
||||
|
||||
@@ -5066,72 +5259,150 @@ snapshots:
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@esbuild/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@eslint-community/[email protected]([email protected]([email protected]))':
|
||||
dependencies:
|
||||
eslint: 9.39.1([email protected])
|
||||
@@ -5960,6 +6231,23 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@eslint-community/regexpp': 4.10.1
|
||||
'@typescript-eslint/parser': 8.46.4([email protected]([email protected]))([email protected])
|
||||
'@typescript-eslint/scope-manager': 8.46.4
|
||||
'@typescript-eslint/type-utils': 8.46.4([email protected]([email protected]))([email protected])
|
||||
'@typescript-eslint/utils': 8.46.4([email protected]([email protected]))([email protected])
|
||||
'@typescript-eslint/visitor-keys': 8.46.4
|
||||
eslint: 9.39.1([email protected])
|
||||
graphemer: 1.4.0
|
||||
ignore: 7.0.5
|
||||
natural-compare: 1.4.0
|
||||
ts-api-utils: 2.1.0([email protected])
|
||||
typescript: 5.8.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@eslint-community/regexpp': 4.12.2
|
||||
@@ -5977,6 +6265,23 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@eslint-community/regexpp': 4.12.2
|
||||
'@typescript-eslint/parser': 8.48.1([email protected]([email protected]))([email protected])
|
||||
'@typescript-eslint/scope-manager': 8.48.1
|
||||
'@typescript-eslint/type-utils': 8.48.1([email protected]([email protected]))([email protected])
|
||||
'@typescript-eslint/utils': 8.48.1([email protected]([email protected]))([email protected])
|
||||
'@typescript-eslint/visitor-keys': 8.48.1
|
||||
eslint: 9.39.1([email protected])
|
||||
graphemer: 1.4.0
|
||||
ignore: 7.0.5
|
||||
natural-compare: 1.4.0
|
||||
ts-api-utils: 2.1.0([email protected])
|
||||
typescript: 5.8.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected]([email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@typescript-eslint/scope-manager': 8.46.4
|
||||
@@ -5989,6 +6294,18 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected]([email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@typescript-eslint/scope-manager': 8.46.4
|
||||
'@typescript-eslint/types': 8.46.4
|
||||
'@typescript-eslint/typescript-estree': 8.46.4([email protected])
|
||||
'@typescript-eslint/visitor-keys': 8.46.4
|
||||
debug: 4.3.7
|
||||
eslint: 9.39.1([email protected])
|
||||
typescript: 5.8.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected]([email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@typescript-eslint/scope-manager': 8.48.1
|
||||
@@ -6001,6 +6318,18 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected]([email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@typescript-eslint/scope-manager': 8.48.1
|
||||
'@typescript-eslint/types': 8.48.1
|
||||
'@typescript-eslint/typescript-estree': 8.48.1([email protected])
|
||||
'@typescript-eslint/visitor-keys': 8.48.1
|
||||
debug: 4.4.3
|
||||
eslint: 9.39.1([email protected])
|
||||
typescript: 5.8.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected])':
|
||||
dependencies:
|
||||
'@typescript-eslint/tsconfig-utils': 8.46.4([email protected])
|
||||
@@ -6010,6 +6339,15 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected])':
|
||||
dependencies:
|
||||
'@typescript-eslint/tsconfig-utils': 8.46.4([email protected])
|
||||
'@typescript-eslint/types': 8.46.4
|
||||
debug: 4.3.7
|
||||
typescript: 5.8.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected])':
|
||||
dependencies:
|
||||
'@typescript-eslint/tsconfig-utils': 8.48.1([email protected])
|
||||
@@ -6019,6 +6357,15 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected])':
|
||||
dependencies:
|
||||
'@typescript-eslint/tsconfig-utils': 8.48.1([email protected])
|
||||
'@typescript-eslint/types': 8.48.1
|
||||
debug: 4.4.3
|
||||
typescript: 5.8.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]':
|
||||
dependencies:
|
||||
'@typescript-eslint/types': 8.46.4
|
||||
@@ -6033,10 +6380,18 @@ snapshots:
|
||||
dependencies:
|
||||
typescript: 5.6.3
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected])':
|
||||
dependencies:
|
||||
typescript: 5.8.3
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected])':
|
||||
dependencies:
|
||||
typescript: 5.6.3
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected])':
|
||||
dependencies:
|
||||
typescript: 5.8.3
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected]([email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@typescript-eslint/types': 8.46.4
|
||||
@@ -6049,6 +6404,18 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected]([email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@typescript-eslint/types': 8.46.4
|
||||
'@typescript-eslint/typescript-estree': 8.46.4([email protected])
|
||||
'@typescript-eslint/utils': 8.46.4([email protected]([email protected]))([email protected])
|
||||
debug: 4.3.7
|
||||
eslint: 9.39.1([email protected])
|
||||
ts-api-utils: 2.1.0([email protected])
|
||||
typescript: 5.8.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected]([email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@typescript-eslint/types': 8.48.1
|
||||
@@ -6061,6 +6428,18 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected]([email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@typescript-eslint/types': 8.48.1
|
||||
'@typescript-eslint/typescript-estree': 8.48.1([email protected])
|
||||
'@typescript-eslint/utils': 8.48.1([email protected]([email protected]))([email protected])
|
||||
debug: 4.4.3
|
||||
eslint: 9.39.1([email protected])
|
||||
ts-api-utils: 2.1.0([email protected])
|
||||
typescript: 5.8.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]': {}
|
||||
|
||||
'@typescript-eslint/[email protected]': {}
|
||||
@@ -6081,6 +6460,22 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected])':
|
||||
dependencies:
|
||||
'@typescript-eslint/project-service': 8.46.4([email protected])
|
||||
'@typescript-eslint/tsconfig-utils': 8.46.4([email protected])
|
||||
'@typescript-eslint/types': 8.46.4
|
||||
'@typescript-eslint/visitor-keys': 8.46.4
|
||||
debug: 4.3.7
|
||||
fast-glob: 3.3.2
|
||||
is-glob: 4.0.3
|
||||
minimatch: 9.0.4
|
||||
semver: 7.6.3
|
||||
ts-api-utils: 2.1.0([email protected])
|
||||
typescript: 5.8.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected])':
|
||||
dependencies:
|
||||
'@typescript-eslint/project-service': 8.48.1([email protected])
|
||||
@@ -6096,6 +6491,21 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected])':
|
||||
dependencies:
|
||||
'@typescript-eslint/project-service': 8.48.1([email protected])
|
||||
'@typescript-eslint/tsconfig-utils': 8.48.1([email protected])
|
||||
'@typescript-eslint/types': 8.48.1
|
||||
'@typescript-eslint/visitor-keys': 8.48.1
|
||||
debug: 4.4.3
|
||||
minimatch: 9.0.4
|
||||
semver: 7.7.3
|
||||
tinyglobby: 0.2.15
|
||||
ts-api-utils: 2.1.0([email protected])
|
||||
typescript: 5.8.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected]([email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@eslint-community/eslint-utils': 4.9.0([email protected]([email protected]))
|
||||
@@ -6107,6 +6517,17 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected]([email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@eslint-community/eslint-utils': 4.9.0([email protected]([email protected]))
|
||||
'@typescript-eslint/scope-manager': 8.46.4
|
||||
'@typescript-eslint/types': 8.46.4
|
||||
'@typescript-eslint/typescript-estree': 8.46.4([email protected])
|
||||
eslint: 9.39.1([email protected])
|
||||
typescript: 5.8.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected]([email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@eslint-community/eslint-utils': 4.9.0([email protected]([email protected]))
|
||||
@@ -6118,6 +6539,17 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]([email protected]([email protected]))([email protected])':
|
||||
dependencies:
|
||||
'@eslint-community/eslint-utils': 4.9.0([email protected]([email protected]))
|
||||
'@typescript-eslint/scope-manager': 8.48.1
|
||||
'@typescript-eslint/types': 8.48.1
|
||||
'@typescript-eslint/typescript-estree': 8.48.1([email protected])
|
||||
eslint: 9.39.1([email protected])
|
||||
typescript: 5.8.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/[email protected]':
|
||||
dependencies:
|
||||
'@typescript-eslint/types': 8.46.4
|
||||
@@ -7017,6 +7449,35 @@ snapshots:
|
||||
'@esbuild/win32-ia32': 0.21.5
|
||||
'@esbuild/win32-x64': 0.21.5
|
||||
|
||||
[email protected]:
|
||||
optionalDependencies:
|
||||
'@esbuild/aix-ppc64': 0.25.12
|
||||
'@esbuild/android-arm': 0.25.12
|
||||
'@esbuild/android-arm64': 0.25.12
|
||||
'@esbuild/android-x64': 0.25.12
|
||||
'@esbuild/darwin-arm64': 0.25.12
|
||||
'@esbuild/darwin-x64': 0.25.12
|
||||
'@esbuild/freebsd-arm64': 0.25.12
|
||||
'@esbuild/freebsd-x64': 0.25.12
|
||||
'@esbuild/linux-arm': 0.25.12
|
||||
'@esbuild/linux-arm64': 0.25.12
|
||||
'@esbuild/linux-ia32': 0.25.12
|
||||
'@esbuild/linux-loong64': 0.25.12
|
||||
'@esbuild/linux-mips64el': 0.25.12
|
||||
'@esbuild/linux-ppc64': 0.25.12
|
||||
'@esbuild/linux-riscv64': 0.25.12
|
||||
'@esbuild/linux-s390x': 0.25.12
|
||||
'@esbuild/linux-x64': 0.25.12
|
||||
'@esbuild/netbsd-arm64': 0.25.12
|
||||
'@esbuild/netbsd-x64': 0.25.12
|
||||
'@esbuild/openbsd-arm64': 0.25.12
|
||||
'@esbuild/openbsd-x64': 0.25.12
|
||||
'@esbuild/openharmony-arm64': 0.25.12
|
||||
'@esbuild/sunos-x64': 0.25.12
|
||||
'@esbuild/win32-arm64': 0.25.12
|
||||
'@esbuild/win32-ia32': 0.25.12
|
||||
'@esbuild/win32-x64': 0.25.12
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
@@ -7305,8 +7766,6 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]:
|
||||
@@ -9175,6 +9634,10 @@ snapshots:
|
||||
ansi-styles: 6.2.1
|
||||
is-fullwidth-code-point: 5.0.0
|
||||
|
||||
solarxr-protocol@file:solarxr-protocol:
|
||||
dependencies:
|
||||
flatbuffers: link:solarxr-protocol/lib/flatbuffers
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
@@ -9474,6 +9937,10 @@ snapshots:
|
||||
dependencies:
|
||||
typescript: 5.6.3
|
||||
|
||||
[email protected]([email protected]):
|
||||
dependencies:
|
||||
typescript: 5.8.3
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]([email protected]):
|
||||
@@ -9607,6 +10074,17 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
[email protected]([email protected]([email protected]))([email protected]):
|
||||
dependencies:
|
||||
'@typescript-eslint/eslint-plugin': 8.46.4(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])
|
||||
'@typescript-eslint/parser': 8.46.4([email protected]([email protected]))([email protected])
|
||||
'@typescript-eslint/typescript-estree': 8.46.4([email protected])
|
||||
'@typescript-eslint/utils': 8.46.4([email protected]([email protected]))([email protected])
|
||||
eslint: 9.39.1([email protected])
|
||||
typescript: 5.8.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
@@ -9615,6 +10093,8 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
call-bind: 1.0.7
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
packages:
|
||||
- "solarxr-protocol/lib/flatbuffers"
|
||||
- "solarxr-protocol"
|
||||
- "gui"
|
||||
- "!solarxr-protocol/lib/flatbuffers/**"
|
||||
@@ -57,12 +57,20 @@ allprojects {
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
create("flatbuffersJava") {
|
||||
java.srcDir("../../solarxr-protocol/lib/flatbuffers/java/src/main/java")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":solarxr-protocol"))
|
||||
|
||||
// This dependency is used internally,
|
||||
// and not exposed to consumers on their own compile classpath.
|
||||
implementation("com.google.flatbuffers:flatbuffers-java:22.10.26")
|
||||
//implementation("com.google.flatbuffers:flatbuffers-java:25.12.19")
|
||||
implementation(sourceSets.getByName("flatbuffersJava").output)
|
||||
|
||||
implementation("commons-cli:commons-cli:1.8.0")
|
||||
implementation("com.fasterxml.jackson.core:jackson-databind:2.15.1")
|
||||
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.15.1")
|
||||
|
||||
@@ -26,7 +26,6 @@ import dev.slimevr.serial.SerialHandler
|
||||
import dev.slimevr.serial.SerialHandlerStub
|
||||
import dev.slimevr.setup.HandshakeHandler
|
||||
import dev.slimevr.setup.TapSetupHandler
|
||||
import dev.slimevr.status.StatusSystem
|
||||
import dev.slimevr.tracking.processor.HumanPoseManager
|
||||
import dev.slimevr.tracking.processor.skeleton.HumanSkeleton
|
||||
import dev.slimevr.tracking.trackers.*
|
||||
@@ -38,7 +37,7 @@ import io.eiren.util.ann.ThreadSafe
|
||||
import io.eiren.util.ann.ThreadSecure
|
||||
import io.eiren.util.collections.FastList
|
||||
import io.eiren.util.logging.LogManager
|
||||
import solarxr_protocol.datatypes.TrackerIdT
|
||||
import solarxr_protocol.datatypes.TrackerId
|
||||
import solarxr_protocol.rpc.ResetType
|
||||
import java.util.*
|
||||
import java.util.concurrent.LinkedBlockingQueue
|
||||
@@ -113,9 +112,6 @@ class VRServer @JvmOverloads constructor(
|
||||
@JvmField
|
||||
val resetHandler: ResetHandler
|
||||
|
||||
@JvmField
|
||||
val statusSystem = StatusSystem()
|
||||
|
||||
@JvmField
|
||||
val handshakeHandler = HandshakeHandler()
|
||||
|
||||
@@ -307,15 +303,15 @@ class VRServer @JvmOverloads constructor(
|
||||
}
|
||||
}
|
||||
|
||||
fun resetTrackersFull(resetSourceName: String?, bodyParts: List<Int> = ArrayList()) {
|
||||
fun resetTrackersFull(resetSourceName: String?, bodyParts: List<UByte> = ArrayList()) {
|
||||
queueTask { humanPoseManager.resetTrackersFull(resetSourceName, bodyParts) }
|
||||
}
|
||||
|
||||
fun resetTrackersYaw(resetSourceName: String?, bodyParts: List<Int> = TrackerUtils.allBodyPartsButFingers) {
|
||||
fun resetTrackersYaw(resetSourceName: String?, bodyParts: List<UByte> = TrackerUtils.allBodyPartsButFingers) {
|
||||
queueTask { humanPoseManager.resetTrackersYaw(resetSourceName, bodyParts) }
|
||||
}
|
||||
|
||||
fun resetTrackersMounting(resetSourceName: String?, bodyParts: List<Int>? = null) {
|
||||
fun resetTrackersMounting(resetSourceName: String?, bodyParts: List<UByte>? = null) {
|
||||
queueTask { humanPoseManager.resetTrackersMounting(resetSourceName, bodyParts) }
|
||||
}
|
||||
|
||||
@@ -345,7 +341,7 @@ class VRServer @JvmOverloads constructor(
|
||||
}
|
||||
}
|
||||
|
||||
fun scheduleResetTrackersFull(resetSourceName: String?, delay: Long, bodyParts: List<Int> = ArrayList()) {
|
||||
fun scheduleResetTrackersFull(resetSourceName: String?, delay: Long, bodyParts: List<UByte> = ArrayList()) {
|
||||
resetTimer(
|
||||
resetTimerManager,
|
||||
delay,
|
||||
@@ -361,7 +357,7 @@ class VRServer @JvmOverloads constructor(
|
||||
)
|
||||
}
|
||||
|
||||
fun scheduleResetTrackersYaw(resetSourceName: String?, delay: Long, bodyParts: List<Int> = TrackerUtils.allBodyPartsButFingers) {
|
||||
fun scheduleResetTrackersYaw(resetSourceName: String?, delay: Long, bodyParts: List<UByte> = TrackerUtils.allBodyPartsButFingers) {
|
||||
resetTimer(
|
||||
resetTimerManager,
|
||||
delay,
|
||||
@@ -377,7 +373,7 @@ class VRServer @JvmOverloads constructor(
|
||||
)
|
||||
}
|
||||
|
||||
fun scheduleResetTrackersMounting(resetSourceName: String?, delay: Long, bodyParts: List<Int>? = null) {
|
||||
fun scheduleResetTrackersMounting(resetSourceName: String?, delay: Long, bodyParts: List<UByte>? = null) {
|
||||
resetTimer(
|
||||
resetTimerManager,
|
||||
delay,
|
||||
@@ -422,9 +418,9 @@ class VRServer @JvmOverloads constructor(
|
||||
val allTrackers: List<Tracker>
|
||||
get() = FastList(trackers)
|
||||
|
||||
fun getTrackerById(id: TrackerIdT): Tracker? {
|
||||
fun getTrackerById(id: TrackerId): Tracker? {
|
||||
for (tracker in trackers) {
|
||||
if (tracker.trackerNum != id.trackerNum) {
|
||||
if (tracker.trackerNum != id.trackerNum.toInt()) {
|
||||
continue
|
||||
}
|
||||
|
||||
@@ -432,7 +428,7 @@ class VRServer @JvmOverloads constructor(
|
||||
if (id.deviceId == null && tracker.device == null) {
|
||||
return tracker
|
||||
}
|
||||
if (tracker.device != null && id.deviceId != null && id.deviceId.id == tracker.device.id) {
|
||||
if (tracker.device != null && id.deviceId != null && id.deviceId!!.id.toInt() == tracker.device.id) {
|
||||
// This is a physical tracker, and both device id and the
|
||||
// tracker num match
|
||||
return tracker
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
package dev.slimevr.autobone
|
||||
|
||||
enum class AutoBoneProcessType(val id: Int) {
|
||||
NONE(0),
|
||||
RECORD(1),
|
||||
SAVE(2),
|
||||
PROCESS(3),
|
||||
enum class AutoBoneProcessType(val id: UByte) {
|
||||
NONE(0u),
|
||||
RECORD(1u),
|
||||
SAVE(2u),
|
||||
PROCESS(3u),
|
||||
;
|
||||
|
||||
companion object {
|
||||
fun getById(id: Int): AutoBoneProcessType? = byId[id]
|
||||
fun getById(id: UByte): AutoBoneProcessType? = byId[id]
|
||||
}
|
||||
}
|
||||
|
||||
private val byId = AutoBoneProcessType.values().associateBy { it.id }
|
||||
private val byId = AutoBoneProcessType.entries.associateBy { it.id }
|
||||
@@ -2,25 +2,25 @@ package dev.slimevr.config
|
||||
|
||||
import dev.slimevr.VRServer
|
||||
|
||||
enum class ArmsResetModes(val id: Int) {
|
||||
enum class ArmsResetModes(val id: UByte) {
|
||||
// Upper arm going back and forearm going forward
|
||||
BACK(0),
|
||||
BACK(0u),
|
||||
|
||||
// Arms going forward
|
||||
FORWARD(1),
|
||||
FORWARD(1u),
|
||||
|
||||
// Arms going up to the sides into a tpose
|
||||
TPOSE_UP(2),
|
||||
TPOSE_UP(2u),
|
||||
|
||||
// Arms going down to the sides from a tpose
|
||||
TPOSE_DOWN(3),
|
||||
TPOSE_DOWN(3u),
|
||||
;
|
||||
|
||||
companion object {
|
||||
val values = entries.toTypedArray()
|
||||
|
||||
@JvmStatic
|
||||
fun fromId(id: Int): ArmsResetModes? {
|
||||
fun fromId(id: UByte): ArmsResetModes? {
|
||||
for (filter in values) {
|
||||
if (filter.id == id) return filter
|
||||
}
|
||||
|
||||
@@ -2,10 +2,10 @@ package dev.slimevr.filtering
|
||||
|
||||
import java.util.*
|
||||
|
||||
enum class TrackerFilters(val id: Int, val configKey: String) {
|
||||
NONE(0, "none"),
|
||||
SMOOTHING(1, "smoothing"),
|
||||
PREDICTION(2, "prediction"),
|
||||
enum class TrackerFilters(val id: UByte, val configKey: String) {
|
||||
NONE(0u, "none"),
|
||||
SMOOTHING(1u, "smoothing"),
|
||||
PREDICTION(2u, "prediction"),
|
||||
;
|
||||
|
||||
companion object {
|
||||
@@ -21,7 +21,7 @@ enum class TrackerFilters(val id: Int, val configKey: String) {
|
||||
val values = values()
|
||||
|
||||
@JvmStatic
|
||||
fun fromId(id: Int): TrackerFilters? {
|
||||
fun fromId(id: UByte): TrackerFilters? {
|
||||
for (filter in values) {
|
||||
if (filter.id == id) return filter
|
||||
}
|
||||
|
||||
@@ -14,8 +14,10 @@ import dev.slimevr.tracking.trackers.TrackerStatusListener
|
||||
import dev.slimevr.tracking.trackers.udp.UDPDevice
|
||||
import io.eiren.util.logging.LogManager
|
||||
import kotlinx.coroutines.*
|
||||
import solarxr_protocol.rpc.FirmwarePartT
|
||||
import solarxr_protocol.rpc.FirmwareUpdateRequestT
|
||||
import solarxr_protocol.rpc.FirmwarePart
|
||||
import solarxr_protocol.rpc.FirmwareUpdateRequest
|
||||
import solarxr_protocol.rpc.OTAFirmwareUpdate
|
||||
import solarxr_protocol.rpc.SerialFirmwareUpdate
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.io.IOException
|
||||
import java.io.InputStream
|
||||
@@ -213,10 +215,10 @@ class FirmwareUpdateHandler(private val server: VRServer) :
|
||||
}
|
||||
|
||||
fun queueFirmwareUpdate(
|
||||
request: FirmwareUpdateRequestT,
|
||||
request: FirmwareUpdateRequest,
|
||||
deviceId: UpdateDeviceId<*>,
|
||||
) = mainScope.launch {
|
||||
val method = FirmwareUpdateMethod.getById(request.method.type) ?: error("Unknown method")
|
||||
val method = FirmwareUpdateMethod.getById(request.methodType) ?: error("Unknown method")
|
||||
|
||||
clearJob?.await()
|
||||
if (method == FirmwareUpdateMethod.OTA) {
|
||||
@@ -277,18 +279,20 @@ class FirmwareUpdateHandler(private val server: VRServer) :
|
||||
}
|
||||
}
|
||||
|
||||
private fun getFirmwareParts(request: FirmwareUpdateRequestT): ArrayList<FirmwarePartT> {
|
||||
val parts = ArrayList<FirmwarePartT>()
|
||||
val method = FirmwareUpdateMethod.getById(request.method.type) ?: error("Unknown method")
|
||||
private fun getFirmwareParts(request: FirmwareUpdateRequest): ArrayList<FirmwarePart> {
|
||||
val parts = ArrayList<FirmwarePart>()
|
||||
val method = FirmwareUpdateMethod.getById(request.methodType) ?: error("Unknown method")
|
||||
when (method) {
|
||||
FirmwareUpdateMethod.OTA -> {
|
||||
val updateReq = request.method.asOTAFirmwareUpdate()
|
||||
parts.add(updateReq.firmwarePart)
|
||||
val updateReq = request.method(OTAFirmwareUpdate()) as OTAFirmwareUpdate
|
||||
updateReq.firmwarePart?.let { parts.add(it) }
|
||||
}
|
||||
|
||||
FirmwareUpdateMethod.SERIAL -> {
|
||||
val updateReq = request.method.asSerialFirmwareUpdate()
|
||||
parts.addAll(updateReq.firmwarePart)
|
||||
val updateReq = request.method(SerialFirmwareUpdate()) as SerialFirmwareUpdate
|
||||
for (i in 0..updateReq.firmwarePartLength) {
|
||||
updateReq.firmwarePart(i)?.let { parts.add(it) }
|
||||
}
|
||||
}
|
||||
|
||||
FirmwareUpdateMethod.NONE -> error("Method should not be NONE")
|
||||
@@ -297,7 +301,7 @@ class FirmwareUpdateHandler(private val server: VRServer) :
|
||||
}
|
||||
|
||||
private suspend fun startFirmwareUpdateJob(
|
||||
request: FirmwareUpdateRequestT,
|
||||
request: FirmwareUpdateRequest,
|
||||
deviceId: UpdateDeviceId<*>,
|
||||
) = coroutineScope {
|
||||
onStatusChange(
|
||||
@@ -312,10 +316,10 @@ class FirmwareUpdateHandler(private val server: VRServer) :
|
||||
val firmwareParts = try {
|
||||
withTimeoutOrNull(30_000) {
|
||||
toDownloadParts.map {
|
||||
val firmware = downloadFirmware(it.url, it.digest)
|
||||
val firmware = downloadFirmware(it.url ?: error("missing url"), it.digest ?: error("missing digest"))
|
||||
DownloadedFirmwarePart(
|
||||
firmware,
|
||||
it.offset,
|
||||
it.offset.toLong(),
|
||||
)
|
||||
}.toTypedArray()
|
||||
}
|
||||
@@ -342,7 +346,7 @@ class FirmwareUpdateHandler(private val server: VRServer) :
|
||||
return@withTimeout
|
||||
}
|
||||
|
||||
val method = FirmwareUpdateMethod.getById(request.method.type) ?: error("Unknown method")
|
||||
val method = FirmwareUpdateMethod.getById(request.methodType) ?: error("Unknown method")
|
||||
when (method) {
|
||||
FirmwareUpdateMethod.NONE -> error("unsupported method")
|
||||
|
||||
@@ -363,7 +367,7 @@ class FirmwareUpdateHandler(private val server: VRServer) :
|
||||
}
|
||||
|
||||
FirmwareUpdateMethod.SERIAL -> {
|
||||
val req = request.method.asSerialFirmwareUpdate()
|
||||
val req = request.method(SerialFirmwareUpdate()) as SerialFirmwareUpdate
|
||||
if (deviceId.id !is String) {
|
||||
error("invalid state, the device id is not a string")
|
||||
}
|
||||
@@ -374,8 +378,8 @@ class FirmwareUpdateHandler(private val server: VRServer) :
|
||||
deviceId.id,
|
||||
),
|
||||
req.needManualReboot,
|
||||
req.ssid,
|
||||
req.password,
|
||||
req.ssid ?: error("missing ssid"),
|
||||
req.password ?: error("missing password"),
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -421,13 +425,14 @@ class FirmwareUpdateHandler(private val server: VRServer) :
|
||||
listeners.forEach { l -> l.onUpdateStatusChange(event) }
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalUnsignedTypes::class)
|
||||
private fun checkUpdateTimeout() {
|
||||
updatingDevicesStatus.forEach { (id, device) ->
|
||||
// if more than 30s between two events, consider the update as stuck
|
||||
// We do not timeout on the Downloading step as it has it own timeout
|
||||
// We do not timeout on the Done step as it is the end of the update process
|
||||
if (!device.status.isError() &&
|
||||
!intArrayOf(FirmwareUpdateStatus.DONE.id, FirmwareUpdateStatus.DOWNLOADING.id).contains(device.status.id) &&
|
||||
!ubyteArrayOf(FirmwareUpdateStatus.DONE.id, FirmwareUpdateStatus.DOWNLOADING.id).contains(device.status.id) &&
|
||||
System.currentTimeMillis() - device.time > 30 * 1000
|
||||
) {
|
||||
onStatusChange(
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package dev.slimevr.firmware
|
||||
|
||||
enum class FirmwareUpdateMethod(val id: Byte) {
|
||||
enum class FirmwareUpdateMethod(val id: UByte) {
|
||||
NONE(solarxr_protocol.rpc.FirmwareUpdateMethod.NONE),
|
||||
OTA(solarxr_protocol.rpc.FirmwareUpdateMethod.OTAFirmwareUpdate),
|
||||
SERIAL(solarxr_protocol.rpc.FirmwareUpdateMethod.SerialFirmwareUpdate),
|
||||
;
|
||||
|
||||
companion object {
|
||||
fun getById(id: Byte): FirmwareUpdateMethod? = byId[id]
|
||||
fun getById(id: UByte): FirmwareUpdateMethod? = byId[id]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package dev.slimevr.firmware
|
||||
|
||||
enum class FirmwareUpdateStatus(val id: Int) {
|
||||
enum class FirmwareUpdateStatus(val id: UByte) {
|
||||
DOWNLOADING(solarxr_protocol.rpc.FirmwareUpdateStatus.DOWNLOADING),
|
||||
AUTHENTICATING(solarxr_protocol.rpc.FirmwareUpdateStatus.AUTHENTICATING),
|
||||
UPLOADING(solarxr_protocol.rpc.FirmwareUpdateStatus.UPLOADING),
|
||||
@@ -22,7 +22,7 @@ enum class FirmwareUpdateStatus(val id: Int) {
|
||||
fun isError(): Boolean = id in ERROR_DEVICE_NOT_FOUND.id..ERROR_UNKNOWN.id
|
||||
|
||||
companion object {
|
||||
fun getById(id: Int): FirmwareUpdateStatus? = byId[id]
|
||||
fun getById(id: UByte): FirmwareUpdateStatus? = byId[id]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import dev.slimevr.tracking.trackers.TrackerUtils
|
||||
import java.util.concurrent.CopyOnWriteArrayList
|
||||
import kotlin.math.*
|
||||
|
||||
enum class VRCTrackerModel(val value: Int, val id: Int) {
|
||||
enum class VRCTrackerModel(val value: Int, val id: UByte) {
|
||||
UNKNOWN(-1, solarxr_protocol.rpc.VRCTrackerModel.UNKNOWN),
|
||||
SPHERE(0, solarxr_protocol.rpc.VRCTrackerModel.SPHERE),
|
||||
SYSTEM(1, solarxr_protocol.rpc.VRCTrackerModel.SYSTEM),
|
||||
@@ -22,7 +22,7 @@ enum class VRCTrackerModel(val value: Int, val id: Int) {
|
||||
}
|
||||
}
|
||||
|
||||
enum class VRCSpineMode(val value: Int, val id: Int) {
|
||||
enum class VRCSpineMode(val value: Int, val id: UByte) {
|
||||
UNKNOWN(-1, solarxr_protocol.rpc.VRCSpineMode.UNKNOWN),
|
||||
LOCK_HIP(0, solarxr_protocol.rpc.VRCSpineMode.LOCK_HIP),
|
||||
LOCK_HEAD(1, solarxr_protocol.rpc.VRCSpineMode.LOCK_HEAD),
|
||||
@@ -36,7 +36,7 @@ enum class VRCSpineMode(val value: Int, val id: Int) {
|
||||
}
|
||||
}
|
||||
|
||||
enum class VRCAvatarMeasurementType(val value: Int, val id: Int) {
|
||||
enum class VRCAvatarMeasurementType(val value: Int, val id: UByte) {
|
||||
UNKNOWN(-1, solarxr_protocol.rpc.VRCAvatarMeasurementType.UNKNOWN),
|
||||
ARM_SPAN(0, solarxr_protocol.rpc.VRCAvatarMeasurementType.ARM_SPAN),
|
||||
HEIGHT(1, solarxr_protocol.rpc.VRCAvatarMeasurementType.HEIGHT),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package dev.slimevr.protocol
|
||||
|
||||
import solarxr_protocol.data_feed.DataFeedConfigT
|
||||
import solarxr_protocol.data_feed.DataFeedConfig
|
||||
|
||||
class DataFeed(val config: DataFeedConfigT) {
|
||||
class DataFeed(val config: DataFeedConfig) {
|
||||
var timeLastSent: Long = System.currentTimeMillis()
|
||||
}
|
||||
@@ -17,19 +17,22 @@ class ProtocolAPI(val server: VRServer) {
|
||||
val messageBundle = MessageBundle.getRootAsMessageBundle(message)
|
||||
|
||||
try {
|
||||
for (index in 0..<messageBundle.dataFeedMsgsLength()) {
|
||||
val header = messageBundle.dataFeedMsgsVector().get(index)
|
||||
this.dataFeedHandler.onMessage(conn, header)
|
||||
for (index in 0..<messageBundle.dataFeedMsgsLength) {
|
||||
messageBundle.dataFeedMsgs(index)?.let {
|
||||
this.dataFeedHandler.onMessage(conn, it)
|
||||
}
|
||||
}
|
||||
|
||||
for (index in 0..<messageBundle.rpcMsgsLength()) {
|
||||
val header = messageBundle.rpcMsgsVector().get(index)
|
||||
this.rpcHandler.onMessage(conn, header)
|
||||
for (index in 0..<messageBundle.rpcMsgsLength) {
|
||||
messageBundle.rpcMsgs(index)?.let {
|
||||
this.rpcHandler.onMessage(conn, it)
|
||||
}
|
||||
}
|
||||
|
||||
for (index in 0..<messageBundle.pubSubMsgsLength()) {
|
||||
val header = messageBundle.pubSubMsgsVector().get(index)
|
||||
this.pubSubHandler.onMessage(conn, header)
|
||||
for (index in 0..<messageBundle.pubSubMsgsLength) {
|
||||
messageBundle.pubSubMsgs(index)?.let{
|
||||
this.pubSubHandler.onMessage(conn, it)
|
||||
}
|
||||
}
|
||||
} catch (e: AssertionError) {
|
||||
// Catch flatbuffer errors
|
||||
|
||||
@@ -14,7 +14,7 @@ abstract class ProtocolHandler<H> {
|
||||
|
||||
abstract fun messagesCount(): Int
|
||||
|
||||
fun registerPacketListener(packetType: Byte, consumer: BiConsumer<GenericConnection, H>) {
|
||||
fun registerPacketListener(packetType: UByte, consumer: BiConsumer<GenericConnection, H>) {
|
||||
val packetInt = packetType.toInt()
|
||||
if (handlers[packetInt] != null) {
|
||||
handlers[packetInt] = handlers[packetInt]!!.andThen(consumer)
|
||||
|
||||
@@ -15,11 +15,11 @@ import io.github.axisangles.ktmath.Quaternion
|
||||
import io.github.axisangles.ktmath.Vector3
|
||||
import solarxr_protocol.data_feed.DataFeedUpdate
|
||||
import solarxr_protocol.data_feed.device_data.DeviceData
|
||||
import solarxr_protocol.data_feed.device_data.DeviceDataMaskT
|
||||
import solarxr_protocol.data_feed.device_data.DeviceDataMask
|
||||
import solarxr_protocol.data_feed.stay_aligned.StayAlignedPose
|
||||
import solarxr_protocol.data_feed.stay_aligned.StayAlignedTracker
|
||||
import solarxr_protocol.data_feed.tracker.TrackerData
|
||||
import solarxr_protocol.data_feed.tracker.TrackerDataMaskT
|
||||
import solarxr_protocol.data_feed.tracker.TrackerDataMask
|
||||
import solarxr_protocol.data_feed.tracker.TrackerInfo
|
||||
import solarxr_protocol.datatypes.DeviceId
|
||||
import solarxr_protocol.datatypes.Ipv4Address
|
||||
@@ -67,11 +67,11 @@ fun createHardwareInfo(fbb: FlatBufferBuilder, device: Device): Int {
|
||||
Ipv4Address
|
||||
.createIpv4Address(
|
||||
fbb,
|
||||
ByteBuffer.wrap(address).getInt().toLong(),
|
||||
ByteBuffer.wrap(address).getInt().toUInt()
|
||||
),
|
||||
)
|
||||
|
||||
HardwareInfo.addNetworkProtocolVersion(fbb, device.protocolVersion)
|
||||
HardwareInfo.addNetworkProtocolVersion(fbb, device.protocolVersion.toUShort())
|
||||
}
|
||||
|
||||
// BRUH MOMENT
|
||||
@@ -86,11 +86,11 @@ fun createHardwareInfo(fbb: FlatBufferBuilder, device: Device): Int {
|
||||
fun createTrackerId(fbb: FlatBufferBuilder, tracker: Tracker): Int {
|
||||
TrackerId.startTrackerId(fbb)
|
||||
|
||||
TrackerId.addTrackerNum(fbb, tracker.trackerNum)
|
||||
TrackerId.addTrackerNum(fbb, tracker.trackerNum.toUByte())
|
||||
if (tracker.device != null) {
|
||||
TrackerId.addDeviceId(
|
||||
fbb,
|
||||
DeviceId.createDeviceId(fbb, tracker.device.id),
|
||||
DeviceId.createDeviceId(fbb, tracker.device.id.toUByte()),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -186,7 +186,7 @@ fun createTrackerTemperature(fbb: FlatBufferBuilder, tracker: Tracker): Int {
|
||||
|
||||
fun createTrackerData(
|
||||
fbb: FlatBufferBuilder,
|
||||
mask: TrackerDataMaskT,
|
||||
mask: TrackerDataMask,
|
||||
tracker: Tracker,
|
||||
): Int {
|
||||
val trackerInfosOffset = createTrackerInfos(fbb, mask.info, tracker)
|
||||
@@ -203,7 +203,7 @@ fun createTrackerData(
|
||||
TrackerData.addTrackerId(fbb, trackerIdOffset)
|
||||
|
||||
if (trackerInfosOffset != 0) TrackerData.addInfo(fbb, trackerInfosOffset)
|
||||
if (mask.status) TrackerData.addStatus(fbb, tracker.status.id + 1)
|
||||
if (mask.status) TrackerData.addStatus(fbb, (tracker.status.id + 1u).toUByte())
|
||||
if (mask.position && tracker.hasPosition) {
|
||||
TrackerData.addPosition(
|
||||
fbb,
|
||||
@@ -264,7 +264,7 @@ fun createTrackerData(
|
||||
}
|
||||
}
|
||||
if (mask.tps) {
|
||||
TrackerData.addTps(fbb, tracker.tps.toInt())
|
||||
TrackerData.addTps(fbb, tracker.tps.toUInt().toUShort())
|
||||
}
|
||||
if (mask.rawMagneticVector && tracker.magStatus == MagnetometerStatus.ENABLED) {
|
||||
TrackerData.addRawMagneticVector(
|
||||
@@ -281,7 +281,7 @@ fun createTrackerData(
|
||||
|
||||
fun createTrackersData(
|
||||
fbb: FlatBufferBuilder,
|
||||
mask: DeviceDataMaskT,
|
||||
mask: DeviceDataMask,
|
||||
device: Device,
|
||||
): Int {
|
||||
if (mask.trackerData == null) return 0
|
||||
@@ -292,7 +292,7 @@ fun createTrackersData(
|
||||
.trackers
|
||||
.forEach { (_: Int, value: Tracker) ->
|
||||
trackersOffsets
|
||||
.add(createTrackerData(fbb, mask.trackerData, value))
|
||||
.add(createTrackerData(fbb, mask.trackerData!!, value))
|
||||
}
|
||||
|
||||
DeviceData.startTrackersVector(fbb, trackersOffsets.size)
|
||||
@@ -309,8 +309,8 @@ fun createTrackersData(
|
||||
|
||||
fun createDeviceData(
|
||||
fbb: FlatBufferBuilder,
|
||||
id: Int,
|
||||
mask: DeviceDataMaskT,
|
||||
id: UByte,
|
||||
mask: DeviceDataMask,
|
||||
device: Device,
|
||||
): Int {
|
||||
if (!mask.deviceData) return 0
|
||||
@@ -332,10 +332,10 @@ fun createDeviceData(
|
||||
HardwareStatus.addBatteryVoltage(fbb, tracker.batteryVoltage!!)
|
||||
}
|
||||
if (tracker.batteryLevel != null) {
|
||||
HardwareStatus.addBatteryPctEstimate(fbb, tracker.batteryLevel!!.toInt())
|
||||
HardwareStatus.addBatteryPctEstimate(fbb, tracker.batteryLevel!!.toUInt().toUByte())
|
||||
}
|
||||
if (tracker.ping != null) {
|
||||
HardwareStatus.addPing(fbb, tracker.ping!!)
|
||||
HardwareStatus.addPing(fbb, tracker.ping!!.toUShort())
|
||||
}
|
||||
if (tracker.signalStrength != null) {
|
||||
HardwareStatus.addRssi(fbb, tracker.signalStrength!!.toShort())
|
||||
@@ -375,10 +375,10 @@ fun createDeviceData(
|
||||
|
||||
fun createSyntheticTrackersData(
|
||||
fbb: FlatBufferBuilder,
|
||||
trackerDataMaskT: TrackerDataMaskT?,
|
||||
trackerDataMask: TrackerDataMask?,
|
||||
trackers: MutableList<Tracker>,
|
||||
): Int {
|
||||
if (trackerDataMaskT == null) return 0
|
||||
if (trackerDataMask == null) return 0
|
||||
|
||||
val trackerOffsets: MutableList<Int> = ArrayList()
|
||||
|
||||
@@ -386,7 +386,7 @@ fun createSyntheticTrackersData(
|
||||
.forEach(
|
||||
Consumer { tracker: Tracker ->
|
||||
trackerOffsets
|
||||
.add(createTrackerData(fbb, trackerDataMaskT, tracker))
|
||||
.add(createTrackerData(fbb, trackerDataMask, tracker))
|
||||
},
|
||||
)
|
||||
|
||||
@@ -406,16 +406,16 @@ fun createSyntheticTrackersData(
|
||||
|
||||
fun createDevicesData(
|
||||
fbb: FlatBufferBuilder,
|
||||
deviceDataMaskT: DeviceDataMaskT?,
|
||||
deviceDataMask: DeviceDataMask?,
|
||||
devices: MutableList<Device>,
|
||||
): Int {
|
||||
if (deviceDataMaskT == null) return 0
|
||||
if (deviceDataMask == null) return 0
|
||||
|
||||
val devicesDataOffsets = IntArray(devices.size)
|
||||
for (i in devices.indices) {
|
||||
val device = devices[i]
|
||||
devicesDataOffsets[i] =
|
||||
createDeviceData(fbb, device.id, deviceDataMaskT, device)
|
||||
createDeviceData(fbb, device.id.toUByte(), deviceDataMask, device)
|
||||
}
|
||||
|
||||
return DataFeedUpdate.createDevicesVector(fbb, devicesDataOffsets)
|
||||
@@ -447,7 +447,7 @@ fun createBonesData(
|
||||
val headPosGOffset = Vec3f
|
||||
.createVec3f(fbb, headPosG.x, headPosG.y, headPosG.z)
|
||||
solarxr_protocol.data_feed.Bone.addHeadPositionG(fbb, headPosGOffset)
|
||||
solarxr_protocol.data_feed.Bone.addBodyPart(fbb, bi.boneType.bodyPart)
|
||||
solarxr_protocol.data_feed.Bone.addBodyPart(fbb, bi.boneType.bodyPart.toUByte())
|
||||
solarxr_protocol.data_feed.Bone.addBoneLength(fbb, length)
|
||||
|
||||
boneOffsets[i] = solarxr_protocol.data_feed.Bone.endBone(fbb)
|
||||
|
||||
Loaded 100 of 137 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user