@limrun/ui 0.4.0-rc.8 → 0.4.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +230 -228
- package/package.json +1 -1
- package/src/assets/CHf0W2V8oUYM0sz1zN3AItWTl78EDajyAcUfQPYA5LRzxR69YBM334mnZAMo2PCKcIo=w480-h960-rw +0 -0
- package/src/assets/android_boot.gif +0 -0
- package/src/assets/android_boot.webp +0 -0
- package/src/components/remote-control.tsx +5 -2
- package/src/demo.tsx +2 -2
package/package.json
CHANGED
package/src/assets/CHf0W2V8oUYM0sz1zN3AItWTl78EDajyAcUfQPYA5LRzxR69YBM334mnZAMo2PCKcIo=w480-h960-rw
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -9,6 +9,7 @@ import pixelFrameImage from '../assets/pixel9_black.webp';
|
|
|
9
9
|
import pixelFrameImageLandscape from '../assets/pixel9_black_landscape.webp';
|
|
10
10
|
import iphoneFrameImageLandscape from '../assets/iphone16pro_black_landscape.webp';
|
|
11
11
|
import appleLogoSvg from '../assets/Apple_logo_white.svg';
|
|
12
|
+
import androidBootImage from '../assets/android_boot.webp';
|
|
12
13
|
import {
|
|
13
14
|
createTouchControlMessage,
|
|
14
15
|
createInjectKeycodeMessage,
|
|
@@ -98,13 +99,15 @@ const deviceConfig = {
|
|
|
98
99
|
frameWidthMultiplier: 1.0841,
|
|
99
100
|
videoBorderRadiusMultiplier: 0.15,
|
|
100
101
|
loadingLogo: appleLogoSvg,
|
|
102
|
+
loadingLogoSize: '20%',
|
|
101
103
|
},
|
|
102
104
|
android: {
|
|
103
105
|
frameImage: pixelFrameImage,
|
|
104
106
|
frameImageLandscape: pixelFrameImageLandscape,
|
|
105
107
|
frameWidthMultiplier: 1.107,
|
|
106
108
|
videoBorderRadiusMultiplier: 0.13,
|
|
107
|
-
loadingLogo:
|
|
109
|
+
loadingLogo: androidBootImage,
|
|
110
|
+
loadingLogoSize: '40%',
|
|
108
111
|
},
|
|
109
112
|
};
|
|
110
113
|
|
|
@@ -962,7 +965,7 @@ export const RemoteControl = forwardRef<RemoteControlHandle, RemoteControlProps>
|
|
|
962
965
|
backgroundImage: `url("${config.loadingLogo}")`,
|
|
963
966
|
backgroundRepeat: 'no-repeat',
|
|
964
967
|
backgroundPosition: 'center',
|
|
965
|
-
backgroundSize:
|
|
968
|
+
backgroundSize: config.loadingLogoSize,
|
|
966
969
|
}
|
|
967
970
|
: {}
|
|
968
971
|
}
|
package/src/demo.tsx
CHANGED
|
@@ -3,8 +3,8 @@ import { createRoot } from 'react-dom/client';
|
|
|
3
3
|
import { RemoteControl, RemoteControlHandle } from './components/remote-control';
|
|
4
4
|
|
|
5
5
|
function Demo() {
|
|
6
|
-
const [url, setUrl] = useState('wss://eu-hel1-5-staging.limrun.dev/v1/
|
|
7
|
-
const [token, setToken] = useState('
|
|
6
|
+
const [url, setUrl] = useState('wss://eu-hel1-5-staging.limrun.dev/v1/android_eustg_01kd887q1vedb9nt1xkp0s1nan/endpointWebSocket');
|
|
7
|
+
const [token, setToken] = useState('lim_6ffd2b5de18c6dcc59e047b7b8d923024fb45d59c802ca5d');
|
|
8
8
|
const [platform, setPlatform] = useState<'ios' | 'android'>('ios');
|
|
9
9
|
const [isConnected, setIsConnected] = useState(false);
|
|
10
10
|
const [key, setKey] = useState(0);
|