@ledvance/base 1.3.36 → 1.3.38
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/localazy.json +9 -0
- package/package.json +1 -1
- package/src/api/native.ts +11 -1
- package/src/components/BallDirectionView.tsx +2 -2
- package/src/i18n/strings.ts +546 -303
- package/translateKey.txt +9 -0
package/localazy.json
CHANGED
|
@@ -340,6 +340,15 @@
|
|
|
340
340
|
"MATCH:consumption_data_price_per_kwh_currency_value2",
|
|
341
341
|
"MATCH:consumption_data_price_per_kwh_currency_value3",
|
|
342
342
|
"MATCH:consumption_data_price_per_kwh_currency_value4",
|
|
343
|
+
"MATCH:consumption_data_price_per_kwh_currency_value5",
|
|
344
|
+
"MATCH:consumption_data_price_per_kwh_currency_value6",
|
|
345
|
+
"MATCH:consumption_data_price_per_kwh_currency_value7",
|
|
346
|
+
"MATCH:consumption_data_price_per_kwh_currency_value8",
|
|
347
|
+
"MATCH:consumption_data_price_per_kwh_currency_value9",
|
|
348
|
+
"MATCH:consumption_data_price_per_kwh_currency_value10",
|
|
349
|
+
"MATCH:consumption_data_price_per_kwh_currency_value11",
|
|
350
|
+
"MATCH:consumption_data_price_per_kwh_currency_value12",
|
|
351
|
+
"MATCH:consumption_data_price_per_kwh_currency_value13",
|
|
343
352
|
"MATCH:add_fixedtimecycle_headline_text",
|
|
344
353
|
"MATCH:edit_fixedtimecycle_headline_text",
|
|
345
354
|
"MATCH:manage_user_unsaved_changes_dialog_headline",
|
package/package.json
CHANGED
package/src/api/native.ts
CHANGED
|
@@ -25,6 +25,7 @@ interface LDVDevicePanelManager {
|
|
|
25
25
|
getSystemTimeFormat: () => Promise<number>
|
|
26
26
|
getMicrophoneAccess: (res:any) => Promise<Result<any>>
|
|
27
27
|
firebaseEvent: (dimensions:Record<any, any>) => Promise<NativeResult<any>>
|
|
28
|
+
appEvent: (action: string, payload: Record<string, any>) => void
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
export enum UADeviceCategory {
|
|
@@ -61,7 +62,7 @@ export interface DeviceInfo {
|
|
|
61
62
|
deviceCategory: UADeviceCategory
|
|
62
63
|
roomName: string
|
|
63
64
|
status: number
|
|
64
|
-
dps: string
|
|
65
|
+
dps: string
|
|
65
66
|
tuyaDeviceId: string
|
|
66
67
|
}
|
|
67
68
|
|
|
@@ -179,6 +180,15 @@ export const putFeature: SetFeatureResultType = (
|
|
|
179
180
|
})
|
|
180
181
|
}
|
|
181
182
|
|
|
183
|
+
export const sendAppEvent = (action: string, payload?: Record<string, any>) => {
|
|
184
|
+
try {
|
|
185
|
+
console.log(action, payload)
|
|
186
|
+
devicePanel.appEvent(action, payload ?? {})
|
|
187
|
+
} catch (e) {
|
|
188
|
+
console.log('sendAppEvent', e)
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
182
192
|
type DeleteDeviceResultType = (deviceId: string, isReset: boolean) => Promise<NativeResult<any>>
|
|
183
193
|
|
|
184
194
|
const deleteDevice: DeleteDeviceResultType = (deviceId: string, isReset: boolean) => {
|
|
@@ -46,8 +46,8 @@ const BallDirectionView = (props: BallDirectionProps) => {
|
|
|
46
46
|
state.halfCircleTopColor = cctToColor(colorTemp, brightness);
|
|
47
47
|
state.halfCircleBottomColor = cctToColor(colorTemp, brightness);
|
|
48
48
|
} else {
|
|
49
|
-
state.halfCircleTopColor = '#
|
|
50
|
-
state.halfCircleBottomColor = '#
|
|
49
|
+
state.halfCircleTopColor = '#FEAC5B';
|
|
50
|
+
state.halfCircleBottomColor = '#FEAC5B';
|
|
51
51
|
}
|
|
52
52
|
}, [adjustType, paintMode, JSON.stringify(topColor), JSON.stringify(bottomColor), colorTemp, brightness]);
|
|
53
53
|
|