@ledvance/ui-biz-bundle 1.1.122 → 1.1.124
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/package.json +1 -1
- package/src/hooks/DeviceDpStateHooks.ts +41 -60
- package/src/modules/flags/FlagEditPage.tsx +3 -3
- package/src/modules/flags/FlagPage.tsx +1 -1
- package/src/modules/history/HistoryPage.tsx +13 -3
- package/src/modules/mood/DynamicMoodEditorPage.tsx +5 -5
- package/src/modules/mood/FantasyMoodEditPage.tsx +3 -3
- package/src/modules/mood/MixMood/MixMoodEditPage.tsx +6 -6
- package/src/modules/mood/MixMood/MixMoodItem.tsx +2 -2
- package/src/modules/music/MusicDataBean.ts +4 -4
- package/src/modules/music/MusicPage.tsx +2 -2
- package/src/modules/timeSchedule/DeviceState.tsx +2 -2
- package/src/modules/timeSchedule/TimeScheduleEditpage.tsx +11 -11
- package/src/modules/timeSchedule/TimeSchedulePage.tsx +1 -1
- package/src/modules/timer/TimerPage.tsx +6 -4
- package/src/newModules/biorhythm/BiorhythmActions.ts +11 -11
- package/src/newModules/biorhythm/BiorhythmBean.ts +6 -6
- package/src/newModules/biorhythm/BiorhythmEditPage.tsx +3 -4
- package/src/newModules/biorhythm/BiorhythmPage.tsx +8 -9
- package/src/newModules/biorhythm/IconSelect.tsx +1 -1
- package/src/newModules/biorhythm/circular/ItemIcon.tsx +1 -1
- package/src/newModules/biorhythm/circular/Progress.tsx +2 -2
- package/src/newModules/biorhythm/circular/TimeCircular.tsx +4 -4
- package/src/newModules/biorhythm/iconListData.ts +26 -26
- package/src/newModules/childLock/ChildLockPage.tsx +1 -1
- package/src/newModules/diyScene/DiySceneEditorPage.tsx +4 -4
- package/src/newModules/diyScene/DiyScenePage.tsx +1 -1
- package/src/newModules/energyConsumption/EnergyConsumptionChart.tsx +2 -2
- package/src/newModules/energyConsumption/EnergyConsumptionDetail.tsx +3 -3
- package/src/newModules/energyConsumption/EnergyConsumptionPage.tsx +4 -4
- package/src/newModules/energyConsumption/component/DateSwitch.tsx +4 -4
- package/src/newModules/energyConsumption/component/EnergyModal.tsx +2 -2
- package/src/newModules/energyConsumption/component/Overview.tsx +4 -4
- package/src/newModules/fixedTime/FixedTimeDetailPage.tsx +3 -3
- package/src/newModules/fixedTime/FixedTimePage.tsx +2 -1
- package/src/newModules/mood/DynamicMoodEditorPage.tsx +3 -3
- package/src/newModules/mood/MixDynamicMoodEditor.tsx +6 -6
- package/src/newModules/mood/MoodItem.tsx +1 -1
- package/src/newModules/mood/MoodPage.tsx +1 -1
- package/src/newModules/randomTime/RandomTimeDetailPage.tsx +2 -2
- package/src/newModules/randomTime/RandomTimePage.tsx +2 -1
- package/src/newModules/sleepWakeUp/SleepWakeUpPage.tsx +15 -15
- package/src/newModules/timeSchedule/TimeScheduleDetailPage.tsx +2 -2
- package/src/modules/biorhythm/BiorhythmActions.d.ts +0 -8
- package/src/modules/biorhythm/BiorhythmActions.ts +0 -324
- package/src/modules/biorhythm/BiorhythmBean.d.ts +0 -58
- package/src/modules/biorhythm/BiorhythmBean.ts +0 -230
- package/src/modules/biorhythm/BiorhythmEditPage.d.ts +0 -14
- package/src/modules/biorhythm/BiorhythmEditPage.tsx +0 -324
- package/src/modules/biorhythm/BiorhythmPage.d.ts +0 -10
- package/src/modules/biorhythm/BiorhythmPage.tsx +0 -796
- package/src/modules/biorhythm/IconSelect.d.ts +0 -2
- package/src/modules/biorhythm/IconSelect.tsx +0 -82
- package/src/modules/biorhythm/Router.ts +0 -34
- package/src/modules/biorhythm/circular/ItemIcon.d.ts +0 -22
- package/src/modules/biorhythm/circular/ItemIcon.tsx +0 -173
- package/src/modules/biorhythm/circular/Progress.d.ts +0 -24
- package/src/modules/biorhythm/circular/Progress.tsx +0 -412
- package/src/modules/biorhythm/circular/TimeCircular.d.ts +0 -11
- package/src/modules/biorhythm/circular/TimeCircular.tsx +0 -70
- package/src/modules/biorhythm/circular/biorhythm_plantimer.png +0 -0
- package/src/modules/biorhythm/circular/rhythm_icon.png +0 -0
- package/src/modules/biorhythm/iconListData.d.ts +0 -7
- package/src/modules/biorhythm/iconListData.ts +0 -30
- package/src/modules/biorhythm/pIdList.d.ts +0 -2
- package/src/modules/biorhythm/pIdList.ts +0 -36
- package/src/modules/biorhythm/res/BiologicalRes.d.ts +0 -43
- package/src/modules/biorhythm/res/BiologicalRes.ts +0 -42
- package/src/modules/biorhythm/res/Biological_Rhythm.png +0 -0
- package/src/modules/biorhythm/res/Biological_Rhythm_12.png +0 -0
- package/src/modules/biorhythm/res/Biological_Rhythm_new.png +0 -0
- package/src/modules/biorhythm/res/Biological_Rhythm_new_12.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedAccountGroups.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedAccountGroups@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedAccountGroups@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedBuildingsHome.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBed.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBed@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBed@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherChair.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherChair@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherChair@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherCoffee.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherTv.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherTv@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedOtherTv@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@3x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@2x.png +0 -0
- package/src/modules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@3x.png +0 -0
- package/src/modules/fixedTime/FixedTimeActions.ts +0 -173
- package/src/modules/fixedTime/FixedTimeDetailPage.tsx +0 -373
- package/src/modules/fixedTime/FixedTimePage.tsx +0 -214
- package/src/modules/fixedTime/Router.ts +0 -26
- package/src/modules/music/res/app_music_ball@2x.png +0 -0
- package/src/modules/music/res/app_music_ball@3x.png +0 -0
- package/src/modules/music/res/app_music_game@2x.png +0 -0
- package/src/modules/music/res/app_music_game@3x.png +0 -0
- package/src/modules/music/res/app_music_music@2x.png +0 -0
- package/src/modules/music/res/app_music_music@3x.png +0 -0
- package/src/modules/music/res/app_music_romantic@2x.png +0 -0
- package/src/modules/music/res/app_music_romantic@3x.png +0 -0
- package/src/modules/music/res/iconsMaterialOutlinedArrowsNavCheck.png +0 -0
- package/src/modules/music/res/iconsMaterialOutlinedArrowsNavCheck@2x.png +0 -0
- package/src/modules/music/res/iconsMaterialOutlinedArrowsNavCheck@3x.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusic-dark.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusic-dark@2x.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusic-dark@3x.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusic.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusic@2x.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusic@3x.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusicDisabled.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusicDisabled@2x.png +0 -0
- package/src/modules/music/res/illustrationsFeaturesMusicDisabled@3x.png +0 -0
- package/src/modules/music/res/index.d.ts +0 -10
- package/src/modules/music/res/index.ts +0 -10
- package/src/modules/powerOnBehavior/PowerOnBehaviorActions.ts +0 -12
- package/src/modules/powerOnBehavior/PowerOnBehaviorPage.tsx +0 -173
- package/src/modules/powerOnBehavior/Router.ts +0 -16
- package/src/modules/randomTime/RandomTimeActions.ts +0 -160
- package/src/modules/randomTime/RandomTimeDetailPage.tsx +0 -338
- package/src/modules/randomTime/RandomTimePage.tsx +0 -215
- package/src/modules/randomTime/Router.ts +0 -25
- package/src/modules/randomTime/Summary.tsx +0 -123
- package/src/modules/sleepWakeup/DeviceState.d.ts +0 -9
- package/src/modules/sleepWakeup/DeviceState.tsx +0 -100
- package/src/modules/sleepWakeup/LdvScheduleItem.d.ts +0 -15
- package/src/modules/sleepWakeup/LdvScheduleItem.tsx +0 -176
- package/src/modules/sleepWakeup/Router.ts +0 -25
- package/src/modules/sleepWakeup/SleepWakeUpActions.d.ts +0 -2
- package/src/modules/sleepWakeup/SleepWakeUpActions.ts +0 -180
- package/src/modules/sleepWakeup/SleepWakeUpDetailPage.d.ts +0 -2
- package/src/modules/sleepWakeup/SleepWakeUpDetailPage.tsx +0 -617
- package/src/modules/sleepWakeup/SleepWakeUpPage.d.ts +0 -13
- package/src/modules/sleepWakeup/SleepWakeUpPage.tsx +0 -425
- package/src/modules/sleepWakeup/utils.d.ts +0 -44
- package/src/modules/sleepWakeup/utils.ts +0 -254
- package/src/newModules/biorhythm/circular/biorhythm_plantimer.png +0 -0
- package/src/newModules/biorhythm/circular/rhythm_icon.png +0 -0
- package/src/newModules/biorhythm/res/BiologicalRes.d.ts +0 -43
- package/src/newModules/biorhythm/res/BiologicalRes.ts +0 -42
- package/src/newModules/biorhythm/res/Biological_Rhythm.png +0 -0
- package/src/newModules/biorhythm/res/Biological_Rhythm_12.png +0 -0
- package/src/newModules/biorhythm/res/Biological_Rhythm_new.png +0 -0
- package/src/newModules/biorhythm/res/Biological_Rhythm_new_12.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@3x.png +0 -0
package/package.json
CHANGED
|
@@ -72,6 +72,27 @@ interface ConflictItem {
|
|
|
72
72
|
endTime: number
|
|
73
73
|
weeks: number[]
|
|
74
74
|
enable: boolean
|
|
75
|
+
channel?: number
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const processConflictItems = <T extends ConflictItem>(
|
|
79
|
+
items: T[],
|
|
80
|
+
conflictItem: ConflictItem,
|
|
81
|
+
transformItem?: (item: T) => ConflictItem
|
|
82
|
+
): { hasConflict: boolean; newItems: T[] } => {
|
|
83
|
+
let hasConflict = false
|
|
84
|
+
const newItems = items.map(item => {
|
|
85
|
+
if (!item.enable || (item.channel !== undefined && item.channel !== conflictItem.channel)) return item
|
|
86
|
+
|
|
87
|
+
const checkItem = transformItem ? transformItem(item) : item
|
|
88
|
+
if (isConflictTask(checkItem, conflictItem)) {
|
|
89
|
+
hasConflict = true
|
|
90
|
+
return { ...item, enable: false }
|
|
91
|
+
}
|
|
92
|
+
return item
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
return { hasConflict, newItems }
|
|
75
96
|
}
|
|
76
97
|
|
|
77
98
|
export const useConflictTask = (conflictDps: ConflictDps, isPlug?: boolean): [(v: ConflictItem) => boolean, () => void] => {
|
|
@@ -101,75 +122,35 @@ export const useConflictTask = (conflictDps: ConflictDps, isPlug?: boolean): [(v
|
|
|
101
122
|
}
|
|
102
123
|
}
|
|
103
124
|
if (conflictDps.fixedTimeDpCode && fixedTime.length){
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
conflict = true
|
|
108
|
-
return {
|
|
109
|
-
...item,
|
|
110
|
-
enable: false
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
return item
|
|
114
|
-
})
|
|
115
|
-
if (conflict){
|
|
116
|
-
newState[conflictDps.fixedTimeDpCode] = newFixedTime
|
|
125
|
+
const { hasConflict, newItems } = processConflictItems(fixedTime, conflictItem)
|
|
126
|
+
if (hasConflict) {
|
|
127
|
+
newState[conflictDps.fixedTimeDpCode] = newItems
|
|
117
128
|
}
|
|
118
129
|
}
|
|
119
130
|
if (conflictDps.randomTimeDpCode && randomTime.length){
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
conflict = true
|
|
124
|
-
return {
|
|
125
|
-
...item,
|
|
126
|
-
enable: false
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
return item
|
|
130
|
-
})
|
|
131
|
-
if (conflict){
|
|
132
|
-
newState[conflictDps.randomTimeDpCode] = newRandomTime
|
|
131
|
+
const { hasConflict, newItems } = processConflictItems(randomTime, conflictItem)
|
|
132
|
+
if (hasConflict) {
|
|
133
|
+
newState[conflictDps.randomTimeDpCode] = newItems
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
136
|
if (conflictDps.sleepDpCode && sleepPlan.length){
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
conflict = true
|
|
144
|
-
return {
|
|
145
|
-
...item,
|
|
146
|
-
enable: false
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
return item
|
|
150
|
-
})
|
|
151
|
-
if (conflict){
|
|
152
|
-
newState[conflictDps.sleepDpCode] = newSleepPlan
|
|
137
|
+
const { hasConflict, newItems } = processConflictItems(sleepPlan, conflictItem, (item) => ({
|
|
138
|
+
...item,
|
|
139
|
+
startTime: getStartTime(item),
|
|
140
|
+
endTime: getEndTime(item)
|
|
141
|
+
}))
|
|
142
|
+
if (hasConflict) {
|
|
143
|
+
newState[conflictDps.sleepDpCode] = newItems
|
|
153
144
|
}
|
|
154
145
|
}
|
|
155
146
|
if (conflictDps.wakeUpDpCode && wakeUpPlan.length){
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
conflict = true
|
|
164
|
-
return {
|
|
165
|
-
...item,
|
|
166
|
-
enable: false
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
return item
|
|
170
|
-
})
|
|
171
|
-
if (conflict){
|
|
172
|
-
newState[conflictDps.wakeUpDpCode] = newWakeUpPlan
|
|
147
|
+
const { hasConflict, newItems } = processConflictItems(wakeUpPlan, conflictItem, (item) => ({
|
|
148
|
+
...item,
|
|
149
|
+
startTime: getStartTime(item),
|
|
150
|
+
endTime: getEndTime(item)
|
|
151
|
+
}))
|
|
152
|
+
if (hasConflict) {
|
|
153
|
+
newState[conflictDps.wakeUpDpCode] = newItems
|
|
173
154
|
}
|
|
174
155
|
}
|
|
175
156
|
if (conflictDps.switchIngCode && switchInching.enable){
|
|
@@ -290,7 +290,7 @@ const FlagEditPage = (props: { theme?: ThemeType }) => {
|
|
|
290
290
|
}}>
|
|
291
291
|
<Image
|
|
292
292
|
style={[styles.adjustButton, { tintColor: state.colorPaintBucketSelected ? props.theme?.icon.primary : props.theme?.icon.normal }]}
|
|
293
|
-
source={res.ic_paint_bucket} />
|
|
293
|
+
source={{uri: res.ic_paint_bucket}} />
|
|
294
294
|
</TouchableOpacity>
|
|
295
295
|
<TouchableOpacity
|
|
296
296
|
onPress={() => {
|
|
@@ -298,7 +298,7 @@ const FlagEditPage = (props: { theme?: ThemeType }) => {
|
|
|
298
298
|
}}>
|
|
299
299
|
<Image
|
|
300
300
|
style={[styles.adjustButton, { tintColor: state.colorPaintBucketSelected ? props.theme?.icon.normal : props.theme?.icon.primary }]}
|
|
301
|
-
source={res.ic_colorize} />
|
|
301
|
+
source={{uri: res.ic_colorize}} />
|
|
302
302
|
</TouchableOpacity>
|
|
303
303
|
</View>
|
|
304
304
|
<FlatList
|
|
@@ -332,7 +332,7 @@ const FlagEditPage = (props: { theme?: ThemeType }) => {
|
|
|
332
332
|
tintColor: state.mood.colors.length < 3 ? props.theme?.icon.disable : props.theme?.icon.normal,
|
|
333
333
|
},
|
|
334
334
|
]}
|
|
335
|
-
source={res.ic_mood_del} />
|
|
335
|
+
source={{uri: res.ic_mood_del}} />
|
|
336
336
|
</TouchableOpacity>
|
|
337
337
|
</View>
|
|
338
338
|
)
|
|
@@ -219,7 +219,7 @@ const FlagPage = (props: { theme?: ThemeType }) => {
|
|
|
219
219
|
})
|
|
220
220
|
}}
|
|
221
221
|
>
|
|
222
|
-
<Image source={res.ic_refresh} style={{ width: cx(24), height: cx(24), tintColor: props.theme?.global.fontColor }} />
|
|
222
|
+
<Image source={{ uri: res.ic_refresh}} style={{ width: cx(24), height: cx(24), tintColor: props.theme?.global.fontColor }} />
|
|
223
223
|
</TouchableOpacity>
|
|
224
224
|
</View>
|
|
225
225
|
<FlatList
|
|
@@ -10,7 +10,7 @@ import { FlatList, Image, StyleSheet, Text, View } from 'react-native'
|
|
|
10
10
|
import Spacer from '@ledvance/base/src/components/Spacer'
|
|
11
11
|
import { isEmpty } from 'lodash'
|
|
12
12
|
import Tag from "@ledvance/base/src/components/Tag"
|
|
13
|
-
import {
|
|
13
|
+
import {exportCsvFile } from '@ledvance/base/src/utils/common'
|
|
14
14
|
import { useParams } from '@ledvance/base/src/hooks/Hooks'
|
|
15
15
|
import ThemeType from '@ledvance/base/src/config/themeType'
|
|
16
16
|
|
|
@@ -82,7 +82,17 @@ const SwitchHistoryPage = (props: { theme?: ThemeType }) => {
|
|
|
82
82
|
}, [state.onRefresh, state.filterTags])
|
|
83
83
|
|
|
84
84
|
const downFile = () => {
|
|
85
|
-
|
|
85
|
+
const headers = [I18n.getLang('date'), 'Time', 'Status', I18n.getLang('manual_search_button_socket')]
|
|
86
|
+
const values = state.data.reduce((acc, item) => {
|
|
87
|
+
const actions = item.actions.map(action => {
|
|
88
|
+
const name = tags ? tags[action.dpId] : action.dpId
|
|
89
|
+
return [action.date, action.time, action.action, name]
|
|
90
|
+
});
|
|
91
|
+
return acc.concat(actions);
|
|
92
|
+
}, [] as string[][]);
|
|
93
|
+
|
|
94
|
+
const functionName = 'history'
|
|
95
|
+
exportCsvFile(headers, values, functionName)
|
|
86
96
|
}
|
|
87
97
|
|
|
88
98
|
const styles = StyleSheet.create({
|
|
@@ -211,7 +221,7 @@ const SwitchHistoryPage = (props: { theme?: ThemeType }) => {
|
|
|
211
221
|
source={{ uri: res.ldv_timer_empty }} />
|
|
212
222
|
<Spacer height={cx(14)} />
|
|
213
223
|
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
214
|
-
<Image style={styles.listEmptyTextIcon} source={res.ic_info} />
|
|
224
|
+
<Image style={styles.listEmptyTextIcon} source={{ uri: res.ic_info}} />
|
|
215
225
|
<Spacer width={cx(4)} height={0} />
|
|
216
226
|
<Text style={styles.listEmptyText}>{I18n.getLang('history_overview_empty_information_text')}</Text>
|
|
217
227
|
</View>
|
|
@@ -135,7 +135,7 @@ const DynamicMoodEditorPage = () => {
|
|
|
135
135
|
)
|
|
136
136
|
console.log('设置修改后的场景结果', setSceneRes)
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
|
|
139
139
|
} else {
|
|
140
140
|
await setWorkMode(moduleParams.isOnlyRGBLamp ? COLOUR : WHITE)
|
|
141
141
|
console.log('Mood被清空,将work_mode设置成white')
|
|
@@ -245,7 +245,7 @@ const DynamicMoodEditorPage = () => {
|
|
|
245
245
|
}}>
|
|
246
246
|
<Image
|
|
247
247
|
style={[styles.adjustButton, {tintColor: state.paintBucketSelected ? '#f60' : '#666'}]}
|
|
248
|
-
source={res.ic_paint_bucket}/>
|
|
248
|
+
source={{uri: res.ic_paint_bucket}}/>
|
|
249
249
|
</TouchableOpacity>
|
|
250
250
|
<TouchableOpacity
|
|
251
251
|
onPress={() => {
|
|
@@ -253,7 +253,7 @@ const DynamicMoodEditorPage = () => {
|
|
|
253
253
|
}}>
|
|
254
254
|
<Image
|
|
255
255
|
style={[styles.adjustButton, {tintColor: state.paintBucketSelected ? '#666' : '#f60'}]}
|
|
256
|
-
source={res.ic_colorize}/>
|
|
256
|
+
source={{uri: res.ic_colorize}}/>
|
|
257
257
|
</TouchableOpacity>
|
|
258
258
|
</View>
|
|
259
259
|
<FlatList
|
|
@@ -286,7 +286,7 @@ const DynamicMoodEditorPage = () => {
|
|
|
286
286
|
tintColor: state.mood.nodes.length < 3 ? '#ccc' : '#666',
|
|
287
287
|
},
|
|
288
288
|
]}
|
|
289
|
-
source={res.ic_mood_del}/>
|
|
289
|
+
source={{uri: res.ic_mood_del}}/>
|
|
290
290
|
</TouchableOpacity>
|
|
291
291
|
</View>
|
|
292
292
|
)
|
|
@@ -559,4 +559,4 @@ export function createSelectPageData(transitionMode: SceneNodeTransitionMode, mo
|
|
|
559
559
|
selected: transitionMode === mode,
|
|
560
560
|
value: mode,
|
|
561
561
|
}
|
|
562
|
-
}
|
|
562
|
+
}
|
|
@@ -320,7 +320,7 @@ const FantasyMoodEditPage = () => {
|
|
|
320
320
|
}}>
|
|
321
321
|
<Image
|
|
322
322
|
style={[styles.adjustButton, { tintColor: state.paintBucketSelected ? '#f60' : '#666' }]}
|
|
323
|
-
source={res.ic_paint_bucket} />
|
|
323
|
+
source={{uri: res.ic_paint_bucket}} />
|
|
324
324
|
</TouchableOpacity>
|
|
325
325
|
<TouchableOpacity
|
|
326
326
|
onPress={() => {
|
|
@@ -328,7 +328,7 @@ const FantasyMoodEditPage = () => {
|
|
|
328
328
|
}}>
|
|
329
329
|
<Image
|
|
330
330
|
style={[styles.adjustButton, { tintColor: state.paintBucketSelected ? '#666' : '#f60' }]}
|
|
331
|
-
source={res.ic_colorize} />
|
|
331
|
+
source={{uri: res.ic_colorize}} />
|
|
332
332
|
</TouchableOpacity>
|
|
333
333
|
</View>
|
|
334
334
|
<FlatList
|
|
@@ -361,7 +361,7 @@ const FantasyMoodEditPage = () => {
|
|
|
361
361
|
tintColor: state.mood.nodes.length < 3 ? '#ccc' : '#666',
|
|
362
362
|
},
|
|
363
363
|
]}
|
|
364
|
-
source={res.ic_mood_del} />
|
|
364
|
+
source={{uri: res.ic_mood_del}} />
|
|
365
365
|
</TouchableOpacity>
|
|
366
366
|
</View>
|
|
367
367
|
)
|
|
@@ -261,7 +261,7 @@ const RgbcMoodEditPage = () => {
|
|
|
261
261
|
}}>
|
|
262
262
|
<Image
|
|
263
263
|
style={[styles.adjustButton, { tintColor: state.paintWhiteBucketSelected ? '#f60' : '#666' }]}
|
|
264
|
-
source={res.ic_paint_bucket} />
|
|
264
|
+
source={{uri: res.ic_paint_bucket}} />
|
|
265
265
|
</TouchableOpacity>
|
|
266
266
|
<TouchableOpacity
|
|
267
267
|
onPress={() => {
|
|
@@ -269,7 +269,7 @@ const RgbcMoodEditPage = () => {
|
|
|
269
269
|
}}>
|
|
270
270
|
<Image
|
|
271
271
|
style={[styles.adjustButton, { tintColor: state.paintWhiteBucketSelected ? '#666' : '#f60' }]}
|
|
272
|
-
source={res.ic_colorize} />
|
|
272
|
+
source={{uri: res.ic_colorize}} />
|
|
273
273
|
</TouchableOpacity>
|
|
274
274
|
</View>
|
|
275
275
|
<FlatList
|
|
@@ -302,7 +302,7 @@ const RgbcMoodEditPage = () => {
|
|
|
302
302
|
tintColor: state.mainLamp.nodes.length < 3 ? '#ccc' : '#666',
|
|
303
303
|
},
|
|
304
304
|
]}
|
|
305
|
-
source={res.ic_mood_del} />
|
|
305
|
+
source={{uri: res.ic_mood_del}} />
|
|
306
306
|
</TouchableOpacity>
|
|
307
307
|
</View>
|
|
308
308
|
)
|
|
@@ -457,7 +457,7 @@ const RgbcMoodEditPage = () => {
|
|
|
457
457
|
}}>
|
|
458
458
|
<Image
|
|
459
459
|
style={[styles.adjustButton, { tintColor: state.paintBucketSelected ? '#f60' : '#666' }]}
|
|
460
|
-
source={res.ic_paint_bucket} />
|
|
460
|
+
source={{uri: res.ic_paint_bucket}} />
|
|
461
461
|
</TouchableOpacity>
|
|
462
462
|
<TouchableOpacity
|
|
463
463
|
onPress={() => {
|
|
@@ -465,7 +465,7 @@ const RgbcMoodEditPage = () => {
|
|
|
465
465
|
}}>
|
|
466
466
|
<Image
|
|
467
467
|
style={[styles.adjustButton, { tintColor: state.paintBucketSelected ? '#666' : '#f60' }]}
|
|
468
|
-
source={res.ic_colorize} />
|
|
468
|
+
source={{uri: res.ic_colorize}} />
|
|
469
469
|
</TouchableOpacity>
|
|
470
470
|
</View>
|
|
471
471
|
<FlatList
|
|
@@ -498,7 +498,7 @@ const RgbcMoodEditPage = () => {
|
|
|
498
498
|
tintColor: state.secondlyLamp.nodes.length < 3 ? '#ccc' : '#666',
|
|
499
499
|
},
|
|
500
500
|
]}
|
|
501
|
-
source={res.ic_mood_del} />
|
|
501
|
+
source={{ uri: res.ic_mood_del}} />
|
|
502
502
|
</TouchableOpacity>
|
|
503
503
|
</View>
|
|
504
504
|
)
|
|
@@ -26,7 +26,7 @@ const MixMoodItem = (props: MixMoodItemProps) => {
|
|
|
26
26
|
const isStaticMood = useMemo(() => {
|
|
27
27
|
return mixMood.secondlyLamp.nodes?.length === 0
|
|
28
28
|
}, [mixMood])
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
return (
|
|
31
31
|
<Card style={[styles.card, props.style]} onPress={props.onPress}>
|
|
32
32
|
<View>
|
|
@@ -73,7 +73,7 @@ export function MixMoodColorsLine(props: { mixSubLight: MixMainLampInfo, colorLi
|
|
|
73
73
|
colors={lightColors} />
|
|
74
74
|
<Spacer height={0} width={cx(7)} />
|
|
75
75
|
<View style={styles.gradientItemIconView}>
|
|
76
|
-
<Image style={styles.gradientItemIcon} source={res.light_on} />
|
|
76
|
+
<Image style={styles.gradientItemIcon} source={{ uri: res.light_on}} />
|
|
77
77
|
</View>
|
|
78
78
|
<Spacer height={0} width={cx(16)} />
|
|
79
79
|
</View>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Strings from '@ledvance/base/src/i18n'
|
|
2
|
-
import res from '
|
|
2
|
+
import res from '@ledvance/base/src/res'
|
|
3
3
|
|
|
4
4
|
export interface AppleMusicColorAreaType {
|
|
5
5
|
area: number[];
|
|
@@ -110,9 +110,9 @@ export const musicDefalutDatasource = [
|
|
|
110
110
|
]
|
|
111
111
|
|
|
112
112
|
export type DreamMusicDataType = {
|
|
113
|
-
id: number
|
|
114
|
-
mode: number
|
|
115
|
-
title: string
|
|
113
|
+
id: number
|
|
114
|
+
mode: number
|
|
115
|
+
title: string
|
|
116
116
|
value: string
|
|
117
117
|
}
|
|
118
118
|
|
|
@@ -4,7 +4,7 @@ import { useRoute, useNavigation } from '@react-navigation/core'
|
|
|
4
4
|
import Page from '@ledvance/base/src/components/Page'
|
|
5
5
|
import { useDeviceId, useDeviceInfo, useDps } from '@ledvance/base/src/models/modules/NativePropsSlice'
|
|
6
6
|
import Strings from '@ledvance/base/src/i18n'
|
|
7
|
-
import
|
|
7
|
+
import res from '@ledvance/base/src/res'
|
|
8
8
|
import { useEnable, useWorkMode, useMixRgbcw, useMixScene, useMusicData, useDreamMusic, DreamLightMicMusicData, getRemoteDreamMusic, DreamLightMicMusicUIState, saveRemoteDreamMusic } from './MusicPageActions'
|
|
9
9
|
import { useReactive, useUpdateEffect } from 'ahooks'
|
|
10
10
|
import { NativeApi } from '@ledvance/base/src/api/native'
|
|
@@ -311,7 +311,7 @@ const MusicPage = (props: { theme?: ThemeType }) => {
|
|
|
311
311
|
<View style={{ alignItems: 'center', marginVertical: cx(38) }}>
|
|
312
312
|
<Image
|
|
313
313
|
style={{ width: cx(200), height: cx(204) }}
|
|
314
|
-
source={state.musicEnable ? (props.theme?.type === 'light' ?
|
|
314
|
+
source={{ uri: state.musicEnable ? (props.theme?.type === 'light' ? res.app_music_center_on_light : res.app_music_center_on_dark) : res.app_music_center_off}}
|
|
315
315
|
resizeMode="contain"
|
|
316
316
|
/>
|
|
317
317
|
</View>
|
|
@@ -65,7 +65,7 @@ const DeviceState = (props: DeviceStateProps) => {
|
|
|
65
65
|
{
|
|
66
66
|
showErrorText() ?
|
|
67
67
|
<View style={{ flexDirection: 'row', marginTop: cx(10) }}>
|
|
68
|
-
<Image style={{ width: cx(16), height: cx(16), tintColor: '#FF9500' }} source={res.ic_warning_amber}/>
|
|
68
|
+
<Image style={{ width: cx(16), height: cx(16), tintColor: '#FF9500' }} source={{uri: res.ic_warning_amber}}/>
|
|
69
69
|
<Text style={{
|
|
70
70
|
color: '#FF9500',
|
|
71
71
|
marginLeft: cx(5),
|
|
@@ -92,4 +92,4 @@ const DeviceState = (props: DeviceStateProps) => {
|
|
|
92
92
|
)
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
export default DeviceState
|
|
95
|
+
export default DeviceState
|
|
@@ -114,7 +114,7 @@ const TimeScheduleEditPage = () => {
|
|
|
114
114
|
}
|
|
115
115
|
state.isManual = lightData.isManual
|
|
116
116
|
state.actionScene = lightData.actionScene
|
|
117
|
-
|
|
117
|
+
|
|
118
118
|
return
|
|
119
119
|
}
|
|
120
120
|
|
|
@@ -184,7 +184,7 @@ const TimeScheduleEditPage = () => {
|
|
|
184
184
|
const manualCheck = () => {
|
|
185
185
|
return state.isManual && state.selectedSkill.length
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
|
|
188
188
|
// 只支持风扇灯跟普通灯
|
|
189
189
|
const sceneCheck = () => {
|
|
190
190
|
if(props.isCeilingLight){
|
|
@@ -192,7 +192,7 @@ const TimeScheduleEditPage = () => {
|
|
|
192
192
|
}
|
|
193
193
|
return !state.isManual && state.skillList.length === 0 && state.actionScene && (state?.actionScene?.nodes || state?.actionScene?.value)
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
|
|
196
196
|
const saveEnable = () => {
|
|
197
197
|
return !state.loading
|
|
198
198
|
&& state.name.length && state.name.length <= 32
|
|
@@ -425,7 +425,7 @@ const TimeScheduleEditPage = () => {
|
|
|
425
425
|
{item.label}
|
|
426
426
|
</Text>
|
|
427
427
|
{showClearIcon() && <TouchableOpacity onPress={() => handelSkill('lower', item)}>
|
|
428
|
-
<Image style={{ width: cx(16), height: cx(16), marginRight: cx(5) }} source={res.ic_arrows_nav_clear}/>
|
|
428
|
+
<Image style={{ width: cx(16), height: cx(16), marginRight: cx(5) }} source={{uri: res.ic_arrows_nav_clear}}/>
|
|
429
429
|
</TouchableOpacity>}
|
|
430
430
|
</View>
|
|
431
431
|
)
|
|
@@ -528,7 +528,7 @@ const TimeScheduleEditPage = () => {
|
|
|
528
528
|
<TouchableOpacity style={styles.skillListItem} key={item.dpId + 'skill'}
|
|
529
529
|
onPress={() => handelSkill('add', item)}>
|
|
530
530
|
<Text style={{ color: '#000' }}>{item.label}</Text>
|
|
531
|
-
<Image style={{ width: cx(16), height: cx(16) }} source={res.device_panel_timer_add}/>
|
|
531
|
+
<Image style={{ width: cx(16), height: cx(16) }} source={{uri: res.device_panel_timer_add}}/>
|
|
532
532
|
</TouchableOpacity>
|
|
533
533
|
)
|
|
534
534
|
})}
|
|
@@ -564,12 +564,12 @@ const TimeScheduleEditPage = () => {
|
|
|
564
564
|
isSupportTemperature={props.isSupportTemperature}
|
|
565
565
|
isSupportMood={props.isSupportMood}
|
|
566
566
|
isStringLight={props.isStringLight}
|
|
567
|
-
isStripLight={props.isStripLight}
|
|
567
|
+
isStripLight={props.isStripLight}
|
|
568
568
|
fantasyFeatureId={props.fantasyFeatureId}
|
|
569
569
|
isCeilingLight={props.isCeilingLight}
|
|
570
570
|
/>
|
|
571
571
|
{!hasSelected() && <View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
572
|
-
<Image style={{ width: cx(16), height: cx(16), tintColor: '#FF9500' }} source={res.ic_warning_amber}/>
|
|
572
|
+
<Image style={{ width: cx(16), height: cx(16), tintColor: '#FF9500' }} source={{uri: res.ic_warning_amber}}/>
|
|
573
573
|
<Text style={{
|
|
574
574
|
color: '#FF9500',
|
|
575
575
|
marginLeft: cx(5),
|
|
@@ -591,7 +591,7 @@ const TimeScheduleEditPage = () => {
|
|
|
591
591
|
<View style={styles.summaryContainer}>
|
|
592
592
|
<View style={styles.summaryLeft}>
|
|
593
593
|
<Image
|
|
594
|
-
source={res.summary_icon1}
|
|
594
|
+
source={{uri: res.summary_icon1}}
|
|
595
595
|
resizeMode="contain"
|
|
596
596
|
style={styles.summaryImg}
|
|
597
597
|
/>
|
|
@@ -606,7 +606,7 @@ const TimeScheduleEditPage = () => {
|
|
|
606
606
|
<View style={styles.summaryContainer}>
|
|
607
607
|
<View style={styles.summaryLeft}>
|
|
608
608
|
<Image
|
|
609
|
-
source={res.summary_icon2}
|
|
609
|
+
source={{uri: res.summary_icon2}}
|
|
610
610
|
resizeMode="contain"
|
|
611
611
|
style={styles.summaryImg}
|
|
612
612
|
/>
|
|
@@ -621,7 +621,7 @@ const TimeScheduleEditPage = () => {
|
|
|
621
621
|
<View style={[styles.summaryContainer, { alignItems: 'flex-start' }]}>
|
|
622
622
|
<View style={styles.summaryLeft}>
|
|
623
623
|
<Image
|
|
624
|
-
source={res.summary_icon3}
|
|
624
|
+
source={{uri: res.summary_icon3}}
|
|
625
625
|
resizeMode="contain"
|
|
626
626
|
style={styles.summaryImg}
|
|
627
627
|
/>
|
|
@@ -763,4 +763,4 @@ const styles = StyleSheet.create({
|
|
|
763
763
|
},
|
|
764
764
|
})
|
|
765
765
|
|
|
766
|
-
export default TimeScheduleEditPage
|
|
766
|
+
export default TimeScheduleEditPage
|
|
@@ -234,7 +234,7 @@ const TimeSchedulePage = () => {
|
|
|
234
234
|
}}>{I18n.getLang('timeschedule_overview_description_text')}</Text>
|
|
235
235
|
<Spacer height={cx(10)}/>
|
|
236
236
|
{showMaxNumTip() && <View style={{marginHorizontal: cx(24), flexDirection: 'row', alignItems: 'center'}}>
|
|
237
|
-
<Image style={{ width: cx(16), height: cx(16), tintColor: '#ff9500' }} source={res.ic_warning_amber} />
|
|
237
|
+
<Image style={{ width: cx(16), height: cx(16), tintColor: '#ff9500' }} source={{uri: res.ic_warning_amber}} />
|
|
238
238
|
<Text>{I18n.getLang('motion_detection_time_schedule_notifications_warning_text')}</Text>
|
|
239
239
|
</View>}
|
|
240
240
|
{showTags() && <View style={styles.categoryList}>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useEffect } from "react";
|
|
2
|
-
import { View, Text, ScrollView, TouchableOpacity, StyleSheet,
|
|
2
|
+
import { View, Text, ScrollView, TouchableOpacity, StyleSheet, Image } from "react-native"
|
|
3
3
|
import { useNavigation } from '@react-navigation/native'
|
|
4
4
|
import { RouteProp, useRoute } from '@react-navigation/core'
|
|
5
5
|
import { useReactive, useUpdateEffect } from "ahooks";
|
|
@@ -139,7 +139,9 @@ const TimerPage = (props: {theme?: ThemeType}) => {
|
|
|
139
139
|
alignItems: 'center',
|
|
140
140
|
backgroundColor: props.theme?.global.background,
|
|
141
141
|
marginBottom: cx(8)
|
|
142
|
-
}}
|
|
142
|
+
}}
|
|
143
|
+
key={item.dpId}
|
|
144
|
+
>
|
|
143
145
|
<Text
|
|
144
146
|
style={{
|
|
145
147
|
color: props.theme?.global.fontColor,
|
|
@@ -151,7 +153,7 @@ const TimerPage = (props: {theme?: ThemeType}) => {
|
|
|
151
153
|
{item.label}
|
|
152
154
|
</Text>
|
|
153
155
|
{progress.length > 1 && <TouchableOpacity onPress={() => handelTimer(item, false)}>
|
|
154
|
-
<Image style={{ width: cx(16), height: cx(16), marginRight: cx(5), tintColor: props.theme?.global.fontColor, }} source={res.ic_arrows_nav_clear} />
|
|
156
|
+
<Image style={{ width: cx(16), height: cx(16), marginRight: cx(5), tintColor: props.theme?.global.fontColor, }} source={{ uri: res.ic_arrows_nav_clear}} />
|
|
155
157
|
</TouchableOpacity>}
|
|
156
158
|
</View>
|
|
157
159
|
);
|
|
@@ -259,7 +261,7 @@ const TimerPage = (props: {theme?: ThemeType}) => {
|
|
|
259
261
|
return (
|
|
260
262
|
<TouchableOpacity style={styles.skillListItem} key={skill.dpId} onPress={() => handelTimer(skill, true)}>
|
|
261
263
|
<Text style={{ color: props.theme?.global.fontColor }}>{skill.label}</Text>
|
|
262
|
-
<Image style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor }} source={res.device_panel_timer_add} />
|
|
264
|
+
<Image style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor }} source={{uri: res.device_panel_timer_add}} />
|
|
263
265
|
</TouchableOpacity>
|
|
264
266
|
)
|
|
265
267
|
})}
|
|
@@ -16,7 +16,7 @@ import { useDeviceId, useDp } from '@ledvance/base/src/models/modules/NativeProp
|
|
|
16
16
|
import { getFeature, NativeApi, putFeature } from '@ledvance/base/src/api/native'
|
|
17
17
|
import { hex2Int, spliceByStep } from '@ledvance/base/src/utils/common'
|
|
18
18
|
import I18n from '@ledvance/base/src/i18n'
|
|
19
|
-
import
|
|
19
|
+
import res from '@ledvance/base/src/res'
|
|
20
20
|
import dayjs from 'dayjs'
|
|
21
21
|
import { to16 } from '@tuya/tuya-panel-lamp-sdk/lib/utils'
|
|
22
22
|
import { useUpdateEffect } from 'ahooks'
|
|
@@ -146,7 +146,7 @@ export const useRhythmSuspend = (dp: string): [boolean, () => void, (v: string |
|
|
|
146
146
|
}
|
|
147
147
|
const res = await putSuspendTime(time)
|
|
148
148
|
setSuspendTime(time)
|
|
149
|
-
return res
|
|
149
|
+
return res
|
|
150
150
|
}, [suspendTime, biorhythm.enable])
|
|
151
151
|
|
|
152
152
|
return [suspendTime === currentTime, getSuspendTime, setRhythSuspend]
|
|
@@ -268,47 +268,47 @@ function getNodeIconByIndex(index: number): NodeIcon {
|
|
|
268
268
|
switch (index) {
|
|
269
269
|
case 0:
|
|
270
270
|
return {
|
|
271
|
-
icon:
|
|
271
|
+
icon: res.rhythm_icon1,
|
|
272
272
|
iconId: 1
|
|
273
273
|
}
|
|
274
274
|
case 1:
|
|
275
275
|
return {
|
|
276
|
-
icon:
|
|
276
|
+
icon: res.rhythm_icon2,
|
|
277
277
|
iconId: 2
|
|
278
278
|
}
|
|
279
279
|
case 2:
|
|
280
280
|
return {
|
|
281
|
-
icon:
|
|
281
|
+
icon: res.rhythm_icon3,
|
|
282
282
|
iconId: 9
|
|
283
283
|
}
|
|
284
284
|
case 3:
|
|
285
285
|
return {
|
|
286
|
-
icon:
|
|
286
|
+
icon: res.rhythm_icon4,
|
|
287
287
|
iconId: 3
|
|
288
288
|
}
|
|
289
289
|
case 4:
|
|
290
290
|
return {
|
|
291
|
-
icon:
|
|
291
|
+
icon: res.rhythm_icon12,
|
|
292
292
|
iconId: 5
|
|
293
293
|
}
|
|
294
294
|
case 5:
|
|
295
295
|
return {
|
|
296
|
-
icon:
|
|
296
|
+
icon: res.rhythm_icon1,
|
|
297
297
|
iconId: 1
|
|
298
298
|
}
|
|
299
299
|
case 6:
|
|
300
300
|
return {
|
|
301
|
-
icon:
|
|
301
|
+
icon: res.rhythm_icon2,
|
|
302
302
|
iconId: 2
|
|
303
303
|
}
|
|
304
304
|
case 7:
|
|
305
305
|
return {
|
|
306
|
-
icon:
|
|
306
|
+
icon: res.rhythm_icon3,
|
|
307
307
|
iconId: 9
|
|
308
308
|
}
|
|
309
309
|
default:
|
|
310
310
|
return {
|
|
311
|
-
icon:
|
|
311
|
+
icon: res.rhythm_icon1,
|
|
312
312
|
iconId: 1
|
|
313
313
|
}
|
|
314
314
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import I18n from '@ledvance/base/src/i18n'
|
|
2
|
-
import
|
|
2
|
+
import res from '@ledvance/base/src/res'
|
|
3
3
|
|
|
4
4
|
export enum BiorhythmGradientType {
|
|
5
5
|
// 全程渐变
|
|
@@ -58,11 +58,11 @@ export function colorTempPercent(colorTemp: number): number {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
export function getDefBiorhythmUIState(): BiorhythmBean {
|
|
61
|
-
const icon1 =
|
|
62
|
-
const icon12 =
|
|
63
|
-
const icon2 =
|
|
64
|
-
const icon3 =
|
|
65
|
-
const icon4 =
|
|
61
|
+
const icon1 = res.biorhythom_Icon1
|
|
62
|
+
const icon12 = res.biorhythom_Icon3
|
|
63
|
+
const icon2 = res.biorhythom_Icon5
|
|
64
|
+
const icon3 = res.biorhythom_Icon2
|
|
65
|
+
const icon4 = res.biorhythom_Icon9
|
|
66
66
|
return {
|
|
67
67
|
enable: false, // 生物节律默认为关
|
|
68
68
|
repeatPeriod: getDefRepeatPeriod(),
|