@ledvance/group-ui-biz-bundle 1.0.112 → 1.0.114
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/modules/biorhythm/BiorhythmActions.ts +10 -10
- package/src/modules/biorhythm/BiorhythmBean.ts +7 -7
- package/src/modules/biorhythm/BiorhythmDetailPage.tsx +3 -4
- package/src/modules/biorhythm/BiorhythmPage.tsx +8 -9
- package/src/modules/biorhythm/IconSelect.tsx +1 -1
- package/src/modules/biorhythm/circular/Progress.tsx +2 -2
- package/src/modules/biorhythm/circular/TimeCircular.tsx +4 -4
- package/src/modules/biorhythm/iconListData.ts +26 -26
- package/src/modules/childLock/ChildLockPage.tsx +1 -1
- package/src/modules/diyScene/DiySceneEditorPage.tsx +4 -4
- package/src/modules/diyScene/DiyScenePage.tsx +1 -1
- package/src/modules/energyConsumption/EnergyConsumptionChart.tsx +6 -6
- package/src/modules/energyConsumption/EnergyConsumptionDetail.tsx +4 -4
- package/src/modules/energyConsumption/EnergyConsumptionPage.tsx +3 -3
- package/src/modules/energyConsumption/component/DateSwitch.tsx +3 -3
- package/src/modules/energyConsumption/component/EnergyModal.tsx +2 -2
- package/src/modules/energyConsumption/component/Overview.tsx +4 -4
- package/src/modules/fixedTimeForPlug/FixedTimeForPlugDetailPage.tsx +3 -3
- package/src/modules/fixedTimeForPlug/FixedTimeForPlugPage.tsx +3 -2
- package/src/modules/fixedTimeForPlug/Summary.tsx +3 -3
- package/src/modules/fixedTimingForLight/FixedTimingForLightDetailPage.tsx +3 -3
- package/src/modules/fixedTimingForLight/FixedTimingForLightPage.tsx +1 -1
- package/src/modules/fixedTimingForLight/Summary.tsx +3 -3
- package/src/modules/flags/FlagEditPage.tsx +3 -3
- package/src/modules/flags/FlagPage.tsx +1 -1
- package/src/modules/mood/DynamicMoodEditorPage.tsx +3 -3
- package/src/modules/mood_new/DynamicMoodEditorPage.tsx +3 -3
- package/src/modules/mood_new/MixDynamicMoodEditor.tsx +6 -6
- package/src/modules/mood_new/MoodItem.tsx +1 -1
- package/src/modules/mood_new/MoodPage.tsx +1 -1
- package/src/modules/music/MusicDataBean.ts +1 -1
- package/src/modules/music/MusicPage.tsx +2 -2
- package/src/modules/randomTimeForPlug/RandomTimeForPlugDetailPage.tsx +2 -2
- package/src/modules/randomTimeForPlug/RandomTimeForPlugPage.tsx +3 -2
- package/src/modules/randomTimeForPlug/Summary.tsx +3 -3
- package/src/modules/randomTimingForLight/RandomTimingForLightDetailPage.tsx +2 -2
- package/src/modules/randomTimingForLight/RandomTimingForLightPage.tsx +1 -1
- package/src/modules/randomTimingForLight/Summary.tsx +3 -3
- package/src/modules/sleepWakeUp/SleepWakeUpPage.tsx +2 -2
- package/src/modules/timeSchedule/TimeScheduleActions.ts +6 -28
- package/src/modules/timeSchedule/TimeScheduleDetailPage.tsx +2 -2
- package/src/modules/timeSchedule/components/Summary.tsx +3 -3
- package/src/modules/timer/TimerAction.ts +1 -1
- package/src/modules/timer/TimerPage.tsx +3 -3
- package/src/modules/biorhythm/circular/biorhythm_plantimer.png +0 -0
- package/src/modules/biorhythm/circular/rhythm_icon.png +0 -0
- 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/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/res/GroupBizRes.ts +0 -4
- package/src/res/materialiconsFilledCancel.png +0 -0
- package/src/res/materialiconsFilledCancel@2x.png +0 -0
- package/src/res/materialiconsFilledCancel@3x.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavAddBox.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavAddBox@2x.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavAddBox@3x.png +0 -0
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import { useFeatureHook} from '@ledvance/base/src/models/modules/NativePropsSlice'
|
|
10
10
|
import {hex2Int, spliceByStep} from '@ledvance/base/src/utils/common'
|
|
11
11
|
import I18n from '@ledvance/base/src/i18n'
|
|
12
|
-
import
|
|
12
|
+
import res from '@ledvance/base/src/res'
|
|
13
13
|
import { to16 } from '@tuya/tuya-panel-lamp-sdk/lib/utils'
|
|
14
14
|
import { useCallback } from 'react'
|
|
15
15
|
import { Result } from '@ledvance/base/src/models/modules/Result'
|
|
@@ -151,23 +151,23 @@ function getNodeNameByIndex(index: number): string {
|
|
|
151
151
|
function getNodeIconByIndex(index: number): string {
|
|
152
152
|
switch (index) {
|
|
153
153
|
case 0:
|
|
154
|
-
return
|
|
154
|
+
return res.rhythm_icon1
|
|
155
155
|
case 1:
|
|
156
|
-
return
|
|
156
|
+
return res.rhythm_icon2
|
|
157
157
|
case 2:
|
|
158
|
-
return
|
|
158
|
+
return res.rhythm_icon3
|
|
159
159
|
case 3:
|
|
160
|
-
return
|
|
160
|
+
return res.rhythm_icon4
|
|
161
161
|
case 4:
|
|
162
|
-
return
|
|
162
|
+
return res.rhythm_icon12
|
|
163
163
|
case 5:
|
|
164
|
-
return
|
|
164
|
+
return res.rhythm_icon1
|
|
165
165
|
case 6:
|
|
166
|
-
return
|
|
166
|
+
return res.rhythm_icon2
|
|
167
167
|
case 7:
|
|
168
|
-
return
|
|
168
|
+
return res.rhythm_icon3
|
|
169
169
|
default:
|
|
170
|
-
return
|
|
170
|
+
return res.rhythm_icon1
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
|
|
@@ -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(),
|
|
@@ -222,7 +222,7 @@ export interface RemoteBiorhythmBean {
|
|
|
222
222
|
interface RemoteBiorhythmPlan {
|
|
223
223
|
iconId: any;
|
|
224
224
|
name: string;
|
|
225
|
-
|
|
225
|
+
rhythmicon: string;
|
|
226
226
|
enable: boolean;
|
|
227
227
|
startTime: string;
|
|
228
228
|
sustain: number; // 持续时间涂鸦这边没有,直接用来存ID
|
|
@@ -7,7 +7,6 @@ import { colorTemperatureValue, Plan } from './BiorhythmBean'
|
|
|
7
7
|
import iconList from './iconListData'
|
|
8
8
|
import I18n from '@ledvance/base/src/i18n'
|
|
9
9
|
import TextField from '@ledvance/base/src/components/TextField'
|
|
10
|
-
import BiologicalRes from './res/BiologicalRes'
|
|
11
10
|
import { cctToColor } from '@ledvance/base/src/utils/cctUtils'
|
|
12
11
|
import ColorTempAdjustView from '@ledvance/base/src/components/ColorTempAdjustView'
|
|
13
12
|
import DeleteButton from '@ledvance/base/src/components/DeleteButton'
|
|
@@ -172,7 +171,7 @@ const BiorhythmEditPage = (props: { theme?: ThemeType }) => {
|
|
|
172
171
|
}}
|
|
173
172
|
/>
|
|
174
173
|
{minimumTipEnable() && <View style={{ flexDirection: 'row', marginVertical: cx(5) }}>
|
|
175
|
-
<Image style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor }} source={res.ic_info} />
|
|
174
|
+
<Image style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor }} source={{uri: res.ic_info}} />
|
|
176
175
|
<Text
|
|
177
176
|
style={{ color: props.theme?.global.fontColor, fontSize: cx(12) }}>{I18n.getLang('add_new_trigger_time_information_text')}</Text>
|
|
178
177
|
</View>}
|
|
@@ -197,9 +196,9 @@ const BiorhythmEditPage = (props: { theme?: ThemeType }) => {
|
|
|
197
196
|
style={{ flex: 1, flexDirection: 'row', justifyContent: 'flex-end', alignContent: 'center', alignItems: 'center' }}>
|
|
198
197
|
<Image
|
|
199
198
|
style={{ width: cx(24), height: cx(24), tintColor: props.theme?.global.fontColor }}
|
|
200
|
-
source={setImg()}
|
|
199
|
+
source={{uri: setImg()}}
|
|
201
200
|
/>
|
|
202
|
-
<Image style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor }} source={
|
|
201
|
+
<Image style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor }} source={{uri: res.biorhythom_select_right_icon}} />
|
|
203
202
|
</View>
|
|
204
203
|
</TouchableOpacity>
|
|
205
204
|
</View>
|
|
@@ -22,7 +22,6 @@ import {
|
|
|
22
22
|
import I18n from '@ledvance/base/src/i18n'
|
|
23
23
|
import res from '@ledvance/base/src/res'
|
|
24
24
|
import { ui_biz_routerKey } from '../../navigation/Routers'
|
|
25
|
-
import BiologicalRes from './res/BiologicalRes'
|
|
26
25
|
import { cctToColor } from '@ledvance/base/src/utils/cctUtils'
|
|
27
26
|
import { setDataSource } from '@ledvance/base/src/components/weekSelect'
|
|
28
27
|
import { BiorhythmEditPageParams } from './BiorhythmDetailPage'
|
|
@@ -143,19 +142,19 @@ const BiorhythmPage = (props: { theme?: ThemeType }) => {
|
|
|
143
142
|
switch (img) {
|
|
144
143
|
case 'rhythm_icon1':
|
|
145
144
|
case '31':
|
|
146
|
-
return { icon:
|
|
145
|
+
return { icon: res.biorhythom_icon1, iconId: 1 }
|
|
147
146
|
case 'rhythm_icon2':
|
|
148
147
|
case '33':
|
|
149
|
-
return { icon:
|
|
148
|
+
return { icon: res.biorhythom_icon5, iconId: 5 }
|
|
150
149
|
case 'rhythm_icon3':
|
|
151
150
|
case '35':
|
|
152
|
-
return { icon:
|
|
151
|
+
return { icon: res.biorhythom_icon2, iconId: 2 }
|
|
153
152
|
case 'rhythm_icon4':
|
|
154
153
|
case '32':
|
|
155
|
-
return { icon:
|
|
154
|
+
return { icon: res.biorhythom_icon9, iconId: 9 }
|
|
156
155
|
case 'rhythm_icon12':
|
|
157
156
|
case '39':
|
|
158
|
-
return { icon:
|
|
157
|
+
return { icon: res.biorhythom_icon3, iconId: 3 }
|
|
159
158
|
default:
|
|
160
159
|
return { icon: item?.icon, iconId: item?.id }
|
|
161
160
|
}
|
|
@@ -395,7 +394,7 @@ const BiorhythmPage = (props: { theme?: ThemeType }) => {
|
|
|
395
394
|
}}>
|
|
396
395
|
{state.planList.length === 8 && <View
|
|
397
396
|
style={{ marginVertical: cx(10), flexDirection: 'row', alignItems: 'center', width: width - cx(48) }}>
|
|
398
|
-
<Image style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.warning }} source={res.ic_warning_amber} />
|
|
397
|
+
<Image style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.warning }} source={{uri: res.ic_warning_amber}} />
|
|
399
398
|
<Text
|
|
400
399
|
style={{
|
|
401
400
|
flexWrap: 'wrap',
|
|
@@ -451,7 +450,7 @@ const BiorhythmPage = (props: { theme?: ThemeType }) => {
|
|
|
451
450
|
}
|
|
452
451
|
navigation.navigate(ui_biz_routerKey.group_ui_biz_biological_detail, editPageParams)
|
|
453
452
|
}}>
|
|
454
|
-
<Image source={
|
|
453
|
+
<Image source={{uri: res.biorhythom_add}} style={{ height: cx(24), width: cx(24), tintColor: props.theme?.icon.primary }} />
|
|
455
454
|
</TouchableOpacity>
|
|
456
455
|
</>
|
|
457
456
|
}
|
|
@@ -517,7 +516,7 @@ const BiorhythmPage = (props: { theme?: ThemeType }) => {
|
|
|
517
516
|
<View style={{ flex: 1, flexDirection: 'row', justifyContent: 'space-between', marginTop: cx(16) }}>
|
|
518
517
|
<View style={{ flexDirection: 'row', justifyContent: 'center', alignItems: 'center' }}>
|
|
519
518
|
<Image
|
|
520
|
-
source={setImg(item?.iconId) || type && { uri: item?.icon } || item?.icon}
|
|
519
|
+
source={{uri: setImg(item?.iconId)} || type && { uri: item?.icon } || item?.icon}
|
|
521
520
|
style={{
|
|
522
521
|
width: cx(24),
|
|
523
522
|
height: cx(24),
|
|
@@ -238,7 +238,7 @@ export default class Progress extends Component<any> {
|
|
|
238
238
|
key={item.id}
|
|
239
239
|
leftValeu={leftValeu}
|
|
240
240
|
topValue={topValue}
|
|
241
|
-
imageSource={setImg(item?.iconId) || type && { uri: item?.icon } || item?.icon}
|
|
241
|
+
imageSource={{uri: setImg(item?.iconId)} || type && { uri: item?.icon } || item?.icon}
|
|
242
242
|
circularRadius={newRadius}
|
|
243
243
|
onPanMoving={(_xValue, _yValue, angle) => {
|
|
244
244
|
|
|
@@ -369,4 +369,4 @@ const styles = StyleSheet.create({
|
|
|
369
369
|
width: 260,
|
|
370
370
|
borderRadius: 130,
|
|
371
371
|
},
|
|
372
|
-
})
|
|
372
|
+
})
|
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
|
2
2
|
import {Image, StyleSheet, View} from 'react-native'
|
|
3
3
|
import Progress from './Progress'
|
|
4
4
|
import {Plan} from '../BiorhythmBean'
|
|
5
|
-
import
|
|
5
|
+
import res from '@ledvance/base/src/res'
|
|
6
6
|
import { useCreation } from 'ahooks'
|
|
7
7
|
import { useSystemTimeFormate } from '@ledvance/base/src/models/modules/NativePropsSlice'
|
|
8
8
|
|
|
@@ -30,9 +30,9 @@ const TimeCircular = (
|
|
|
30
30
|
const enabledPlanList = planList.filter(plan => plan.enable)
|
|
31
31
|
const timeDialPic = useCreation(() =>{
|
|
32
32
|
if(is24Hour){
|
|
33
|
-
return replaceStatus ?
|
|
33
|
+
return replaceStatus ? res.ic_warning_amber_sun : res.ic_warning_amber_new
|
|
34
34
|
}else{
|
|
35
|
-
return replaceStatus ?
|
|
35
|
+
return replaceStatus ? res.ic_warning_amber_sun_12 : res.ic_warning_amber_new_12
|
|
36
36
|
}
|
|
37
37
|
}, [is24Hour, replaceStatus])
|
|
38
38
|
|
|
@@ -48,7 +48,7 @@ const TimeCircular = (
|
|
|
48
48
|
onPanMoved={(id: number, time: number) => {
|
|
49
49
|
onPanMoved && onPanMoved(id, time)
|
|
50
50
|
}}>
|
|
51
|
-
<Image source={timeDialPic} style={{width: 172, height: 172}}/>
|
|
51
|
+
<Image source={{uri: timeDialPic}} style={{width: 172, height: 172}}/>
|
|
52
52
|
</Progress>
|
|
53
53
|
</View>
|
|
54
54
|
)
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import
|
|
1
|
+
import res from '@ledvance/base/src/res'
|
|
2
2
|
|
|
3
3
|
const iconList = [
|
|
4
|
-
{id: 1, icon:
|
|
5
|
-
{id: 2, icon:
|
|
6
|
-
{id: 3, icon:
|
|
7
|
-
{id: 4, icon:
|
|
8
|
-
{id: 5, icon:
|
|
9
|
-
{id: 6, icon:
|
|
10
|
-
{id: 7, icon:
|
|
11
|
-
{id: 8, icon:
|
|
12
|
-
{id: 9, icon:
|
|
13
|
-
{id: 10, icon:
|
|
14
|
-
{id: 11, icon:
|
|
15
|
-
{id: 12, icon:
|
|
16
|
-
{id: 13, icon:
|
|
17
|
-
{id: 14, icon:
|
|
18
|
-
{id: 15, icon:
|
|
19
|
-
{id: 16, icon:
|
|
20
|
-
{id: 17, icon:
|
|
21
|
-
{id: 18, icon:
|
|
22
|
-
{id: 19, icon:
|
|
23
|
-
{id: 20, icon:
|
|
24
|
-
{id: 21, icon:
|
|
25
|
-
{id: 22, icon:
|
|
26
|
-
{id: 23, icon:
|
|
27
|
-
{id: 24, icon:
|
|
4
|
+
{id: 1, icon: res.biorhythom_icon1, selectStatus: false, disabled: false},
|
|
5
|
+
{id: 2, icon: res.biorhythom_icon2, selectStatus: false, disabled: false},
|
|
6
|
+
{id: 3, icon: res.biorhythom_icon3, selectStatus: false, disabled: false},
|
|
7
|
+
{id: 4, icon: res.biorhythom_icon4, selectStatus: false, disabled: false},
|
|
8
|
+
{id: 5, icon: res.biorhythom_icon5, selectStatus: false, disabled: false},
|
|
9
|
+
{id: 6, icon: res.biorhythom_icon6, selectStatus: false, disabled: false},
|
|
10
|
+
{id: 7, icon: res.biorhythom_icon7, selectStatus: false, disabled: false},
|
|
11
|
+
{id: 8, icon: res.biorhythom_icon8, selectStatus: false, disabled: false},
|
|
12
|
+
{id: 9, icon: res.biorhythom_icon9, selectStatus: false, disabled: false},
|
|
13
|
+
{id: 10, icon: res.biorhythom_icon10, selectStatus: false, disabled: false},
|
|
14
|
+
{id: 11, icon: res.biorhythom_icon11, selectStatus: false, disabled: false},
|
|
15
|
+
{id: 12, icon: res.biorhythom_icon12, selectStatus: false, disabled: false},
|
|
16
|
+
{id: 13, icon: res.biorhythom_icon13, selectStatus: false, disabled: false},
|
|
17
|
+
{id: 14, icon: res.biorhythom_icon14, selectStatus: false, disabled: false},
|
|
18
|
+
{id: 15, icon: res.biorhythom_icon15, selectStatus: false, disabled: false},
|
|
19
|
+
{id: 16, icon: res.biorhythom_icon16, selectStatus: false, disabled: false},
|
|
20
|
+
{id: 17, icon: res.biorhythom_icon17, selectStatus: false, disabled: false},
|
|
21
|
+
{id: 18, icon: res.biorhythom_icon18, selectStatus: false, disabled: false},
|
|
22
|
+
{id: 19, icon: res.biorhythom_icon19, selectStatus: false, disabled: false},
|
|
23
|
+
{id: 20, icon: res.biorhythom_icon20, selectStatus: false, disabled: false},
|
|
24
|
+
{id: 21, icon: res.biorhythom_icon21, selectStatus: false, disabled: false},
|
|
25
|
+
{id: 22, icon: res.biorhythom_icon22, selectStatus: false, disabled: false},
|
|
26
|
+
{id: 23, icon: res.biorhythom_icon23, selectStatus: false, disabled: false},
|
|
27
|
+
{id: 24, icon: res.biorhythom_icon24, selectStatus: false, disabled: false},
|
|
28
28
|
]
|
|
29
29
|
|
|
30
|
-
export default iconList
|
|
30
|
+
export default iconList
|
|
@@ -48,7 +48,7 @@ const ChildLockPage = (props: { theme?: ThemeType }) => {
|
|
|
48
48
|
headlineText={I18n.getLang('sockets_specific_settings_child_lock')}
|
|
49
49
|
loading={state.loading}>
|
|
50
50
|
<View style={styles.tipInfoContainer}>
|
|
51
|
-
<Image style={styles.image} source={res.ic_info} />
|
|
51
|
+
<Image style={styles.image} source={{uri: res.ic_info}} />
|
|
52
52
|
<Text style={{ color: props.theme?.global.fontColor }}>
|
|
53
53
|
{I18n.getLang('childlock_overview_description_text')}
|
|
54
54
|
</Text>
|
|
@@ -203,8 +203,8 @@ const DiySceneEditorPage = (props: { theme?: ThemeType }) => {
|
|
|
203
203
|
state.sceneInfo.type !== 'DIY' && <TouchableOpacity onPress={() => {
|
|
204
204
|
toggleLoveScene(state.sceneInfo.id)
|
|
205
205
|
}}>
|
|
206
|
-
{isLove ? <Image source={res.like} style={{width: cx(30), height: cx(26)}}/>
|
|
207
|
-
: <Image source={res.un_like}
|
|
206
|
+
{isLove ? <Image source={{uri: res.like}} style={{width: cx(30), height: cx(26)}}/>
|
|
207
|
+
: <Image source={{uri: res.un_like}}
|
|
208
208
|
style={{width: cx(30), height: cx(26), tintColor: props.theme?.global.fontColor}}/>}
|
|
209
209
|
</TouchableOpacity>
|
|
210
210
|
}
|
|
@@ -236,13 +236,13 @@ const DiySceneEditorPage = (props: { theme?: ThemeType }) => {
|
|
|
236
236
|
const color = {h: state.h, s: state.s * 10, v: state.v}
|
|
237
237
|
state.sceneInfo.nodes.push({top: color, bottom: color});
|
|
238
238
|
}}>
|
|
239
|
-
<Image source={res.ic_plus} style={{tintColor: props.theme?.icon.primary}} />
|
|
239
|
+
<Image source={{uri: res.ic_plus}} style={{tintColor: props.theme?.icon.primary}} />
|
|
240
240
|
</TouchableOpacity>}
|
|
241
241
|
{ state.sceneInfo.nodes.length > 2 && <TouchableOpacity onPress={() => {
|
|
242
242
|
state.sceneInfo.nodes.splice(state.currentNode, 1)
|
|
243
243
|
state.currentNode = state.currentNode === state.sceneInfo.nodes.length ? 0 : state.currentNode
|
|
244
244
|
}}>
|
|
245
|
-
<Image source={res.ic_mood_del} style={{marginLeft: cx(5),tintColor: props.theme?.icon.primary}} />
|
|
245
|
+
<Image source={{uri: res.ic_mood_del}} style={{marginLeft: cx(5),tintColor: props.theme?.icon.primary}} />
|
|
246
246
|
</TouchableOpacity>}
|
|
247
247
|
</View>
|
|
248
248
|
<View style={styles.nodeList}>
|
|
@@ -240,7 +240,7 @@ const DiyScenePage = (props: { theme?: ThemeType }) => {
|
|
|
240
240
|
})
|
|
241
241
|
}}
|
|
242
242
|
>
|
|
243
|
-
<Image source={res.ic_refresh} style={{ width: cx(24), height: cx(24), tintColor: props.theme?.global.fontColor }} />
|
|
243
|
+
<Image source={{uri: res.ic_refresh}} style={{ width: cx(24), height: cx(24), tintColor: props.theme?.global.fontColor }} />
|
|
244
244
|
</TouchableOpacity>
|
|
245
245
|
<Spacer height={cx(10)} />
|
|
246
246
|
{state.originScenes.length >= MAX_MOOD_COUNT && (
|
|
@@ -12,12 +12,12 @@ import InfoText from "@ledvance/base/src/components/InfoText";
|
|
|
12
12
|
import ThemeType from '@ledvance/base/src/config/themeType'
|
|
13
13
|
import { overDays } from "@ledvance/base/src/utils/index";
|
|
14
14
|
import dayjs from "dayjs";
|
|
15
|
-
import { DateType } from "
|
|
15
|
+
import { DateType } from "./co2Data";
|
|
16
16
|
import { useReactive, useUpdateEffect } from "ahooks";
|
|
17
|
-
import DateTypeItem from "
|
|
18
|
-
import DateSelectedItem from "
|
|
19
|
-
import NewBarChart from "
|
|
20
|
-
import { exportEnergyCsv, getElectricity } from "
|
|
17
|
+
import DateTypeItem from "./component/DateTypeItem";
|
|
18
|
+
import DateSelectedItem from "./component/DateSelectedItem";
|
|
19
|
+
import NewBarChart from "./component/NewBarChart";
|
|
20
|
+
import { exportEnergyCsv, getElectricity } from "./EnergyConsumptionActions";
|
|
21
21
|
import DateSwitch from "./component/DateSwitch";
|
|
22
22
|
|
|
23
23
|
const { convertX: cx } = Utils.RatioUtils
|
|
@@ -171,7 +171,7 @@ const EnergyConsumptionChart = (props: { theme?: ThemeType }) => {
|
|
|
171
171
|
}}>
|
|
172
172
|
<Image
|
|
173
173
|
style={styles.downloadIcon}
|
|
174
|
-
source={state.chartData?.length ? res.download_icon : undefined} />
|
|
174
|
+
source={{ uri: state.chartData?.length ? res.download_icon : undefined}} />
|
|
175
175
|
</TouchableOpacity>
|
|
176
176
|
</View>
|
|
177
177
|
}
|
|
@@ -243,7 +243,7 @@ const EnergyConsumptionDetail = (props: { theme?: ThemeType }) => {
|
|
|
243
243
|
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
244
244
|
<View style={styles.priceBg}>
|
|
245
245
|
<Image
|
|
246
|
-
source={res.energy_consumption_cash}
|
|
246
|
+
source={{ uri: res.energy_consumption_cash}}
|
|
247
247
|
resizeMode="contain"
|
|
248
248
|
style={{ height: cx(20), width: cx(20), tintColor: props.theme?.button.primary }}
|
|
249
249
|
/>
|
|
@@ -258,9 +258,9 @@ const EnergyConsumptionDetail = (props: { theme?: ThemeType }) => {
|
|
|
258
258
|
}}
|
|
259
259
|
>
|
|
260
260
|
<Image
|
|
261
|
-
source={res.
|
|
261
|
+
source={{ uri: res.co2_icon}}
|
|
262
262
|
resizeMode="contain"
|
|
263
|
-
style={{ height: cx(20), width: cx(20), tintColor: props.theme?.button.
|
|
263
|
+
style={{ height: cx(20), width: cx(20), tintColor: props.theme?.button.primary }}
|
|
264
264
|
/>
|
|
265
265
|
</TouchableOpacity>
|
|
266
266
|
</View>
|
|
@@ -273,7 +273,7 @@ const EnergyConsumptionDetail = (props: { theme?: ThemeType }) => {
|
|
|
273
273
|
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
274
274
|
<View style={styles.priceBg}>
|
|
275
275
|
<Image
|
|
276
|
-
source={res.energy_consumption_cash}
|
|
276
|
+
source={{ uri: res.energy_consumption_cash}}
|
|
277
277
|
resizeMode="contain"
|
|
278
278
|
style={{ height: cx(20), width: cx(20), tintColor: props.theme?.button.primary }}
|
|
279
279
|
/>
|
|
@@ -384,7 +384,7 @@ const EnergyConsumptionPage = (props: { theme?: ThemeType }) => {
|
|
|
384
384
|
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
385
385
|
<View style={styles.priceBg}>
|
|
386
386
|
<Image
|
|
387
|
-
source={res.energy_consumption_cash}
|
|
387
|
+
source={{ uri: res.energy_consumption_cash}}
|
|
388
388
|
resizeMode="contain"
|
|
389
389
|
style={{
|
|
390
390
|
height: cx(20),
|
|
@@ -407,7 +407,7 @@ const EnergyConsumptionPage = (props: { theme?: ThemeType }) => {
|
|
|
407
407
|
}}
|
|
408
408
|
>
|
|
409
409
|
<Image
|
|
410
|
-
source={res.
|
|
410
|
+
source={{ uri: res.co2_icon}}
|
|
411
411
|
resizeMode="contain"
|
|
412
412
|
style={{
|
|
413
413
|
height: cx(20),
|
|
@@ -429,7 +429,7 @@ const EnergyConsumptionPage = (props: { theme?: ThemeType }) => {
|
|
|
429
429
|
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
430
430
|
<View style={styles.priceBg}>
|
|
431
431
|
<Image
|
|
432
|
-
source={res.energy_consumption_cash}
|
|
432
|
+
source={{ uri: res.energy_consumption_cash}}
|
|
433
433
|
resizeMode="contain"
|
|
434
434
|
style={{ height: cx(20), width: cx(20), tintColor: props.theme?.button.primary }}
|
|
435
435
|
/>
|
|
@@ -84,7 +84,7 @@ export default withTheme(function DateSwitch(props: DateSwitchProps) {
|
|
|
84
84
|
changeDate(false);
|
|
85
85
|
}}>
|
|
86
86
|
<Image
|
|
87
|
-
source={res.arrow_left}
|
|
87
|
+
source={{ uri: res.arrow_left}}
|
|
88
88
|
style={{tintColor: state.disableArrowLeft ? theme?.global.disabledFontColor : theme?.global.brand}}
|
|
89
89
|
height={cx(36)}
|
|
90
90
|
width={cx(36)}/>
|
|
@@ -102,10 +102,10 @@ export default withTheme(function DateSwitch(props: DateSwitchProps) {
|
|
|
102
102
|
changeDate(true);
|
|
103
103
|
}}>
|
|
104
104
|
<Image
|
|
105
|
-
source={res.arrow_right}
|
|
105
|
+
source={{ uri: res.arrow_right}}
|
|
106
106
|
style={{tintColor: state.disableArrowRight ? theme?.global.disabledFontColor : theme?.global.brand}}
|
|
107
107
|
height={cx(36)}
|
|
108
108
|
width={cx(36)}/>
|
|
109
109
|
</TouchableOpacity>
|
|
110
110
|
</View>)
|
|
111
|
-
})
|
|
111
|
+
})
|
|
@@ -204,7 +204,7 @@ const EnergyModal = (props: EnergyModalProps) => {
|
|
|
204
204
|
<Text style={{ fontSize: cx(16), color: props.theme?.global.fontColor }}>{item}</Text>
|
|
205
205
|
{props.energyData && props.energyData.unit === item && <Image
|
|
206
206
|
style={{ width: cx(16), height: cx(16) }}
|
|
207
|
-
source={res.app_music_check}
|
|
207
|
+
source={{uri: res.app_music_check}}
|
|
208
208
|
resizeMode="contain"
|
|
209
209
|
/>}
|
|
210
210
|
</View>
|
|
@@ -271,7 +271,7 @@ const EnergyModal = (props: EnergyModalProps) => {
|
|
|
271
271
|
<Text style={{ fontSize: cx(16), color: props.theme?.global.fontColor }}>{item}</Text>
|
|
272
272
|
{energyData && energyData.unit === item && <Image
|
|
273
273
|
style={{ width: cx(16), height: cx(16) }}
|
|
274
|
-
source={res.app_music_check}
|
|
274
|
+
source={{uri: res.app_music_check}}
|
|
275
275
|
resizeMode="contain"
|
|
276
276
|
/>}
|
|
277
277
|
</View>
|
|
@@ -57,7 +57,7 @@ const OverView = (props: OverViewProps) => {
|
|
|
57
57
|
}}
|
|
58
58
|
>
|
|
59
59
|
<Image
|
|
60
|
-
source={res.energy_consumption_chart}
|
|
60
|
+
source={{ uri: res.energy_consumption_chart}}
|
|
61
61
|
style={{ width: cx(16), height: cx(16), marginLeft: cx(8) }}
|
|
62
62
|
/>
|
|
63
63
|
</TouchableOpacity>}
|
|
@@ -80,7 +80,7 @@ const OverView = (props: OverViewProps) => {
|
|
|
80
80
|
<Text style={[styles.overviewItemText, { color: props.theme?.global.secondFontColor }]}> kWh</Text>
|
|
81
81
|
</View>
|
|
82
82
|
<Image
|
|
83
|
-
source={res.energy_consumption_right}
|
|
83
|
+
source={{ uri: res.energy_consumption_right}}
|
|
84
84
|
style={{ width: cx(16), height: cx(16), marginLeft: cx(8), tintColor: props.theme?.global.secondFontColor }}
|
|
85
85
|
/>
|
|
86
86
|
</View>
|
|
@@ -95,10 +95,10 @@ const OverView = (props: OverViewProps) => {
|
|
|
95
95
|
<View style={styles.listEmptyContainer}>
|
|
96
96
|
<Image
|
|
97
97
|
style={styles.listEmptyImage}
|
|
98
|
-
source={res.energy_consumption_empty} />
|
|
98
|
+
source={{ uri: res.energy_consumption_empty}} />
|
|
99
99
|
<Spacer height={cx(10)} />
|
|
100
100
|
<View style={{ flexDirection: 'row', alignItems: 'center', marginBottom: cx(25) }}>
|
|
101
|
-
<Image style={styles.listEmptyTextIcon} source={res.
|
|
101
|
+
<Image style={styles.listEmptyTextIcon} source={{uri: res.co2_icon}} />
|
|
102
102
|
<Spacer width={cx(4)} height={0} />
|
|
103
103
|
<Text style={styles.listEmptyText}>
|
|
104
104
|
{
|
|
@@ -243,7 +243,7 @@ const FixedTimeForPlugDetailPage = (props: { theme?: ThemeType }) => {
|
|
|
243
243
|
state.item.channel = undefined
|
|
244
244
|
}}
|
|
245
245
|
style={{paddingHorizontal: cx(5)}}>
|
|
246
|
-
<Image style={{width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor}} source={res.ic_arrows_nav_clear}/>
|
|
246
|
+
<Image style={{width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor}} source={{uri: res.ic_arrows_nav_clear}}/>
|
|
247
247
|
</TouchableOpacity>}
|
|
248
248
|
</View>
|
|
249
249
|
}
|
|
@@ -261,7 +261,7 @@ const FixedTimeForPlugDetailPage = (props: { theme?: ThemeType }) => {
|
|
|
261
261
|
}}
|
|
262
262
|
>
|
|
263
263
|
<Text style={{color: props.theme?.global.fontColor}}>{item}</Text>
|
|
264
|
-
<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}}/>
|
|
265
265
|
</TouchableOpacity>
|
|
266
266
|
)
|
|
267
267
|
})}
|
|
@@ -270,7 +270,7 @@ const FixedTimeForPlugDetailPage = (props: { theme?: ThemeType }) => {
|
|
|
270
270
|
<View style={styles.cardContainer}>
|
|
271
271
|
<Text style={styles.itemTitle}>{I18n.getLang('timeschedule_add_schedule_subheadline4_text')}</Text>
|
|
272
272
|
{!isTimeEffective && <View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
273
|
-
<Image style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.warning }} source={res.ic_warning_amber} />
|
|
273
|
+
<Image style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.warning }} source={{uri: res.ic_warning_amber}} />
|
|
274
274
|
<Text style={{ fontSize: cx(12), color: props.theme?.global.warning }}>{I18n.getLang('addTimeCycle_warning_text')}</Text>
|
|
275
275
|
</View>}
|
|
276
276
|
<View >
|
|
@@ -60,7 +60,8 @@ const FixedTimeForPlugPage = (props: { theme?: ThemeType}) => {
|
|
|
60
60
|
let itselfConflict = false
|
|
61
61
|
cloneList.forEach((item, idx) => {
|
|
62
62
|
const itself = mode === 'add' ? (idx === cloneList.length - 1) : fixedTime.index === item.index
|
|
63
|
-
|
|
63
|
+
const isSameChannel = item.channel !== undefined ? item.channel === fixedTime.channel : true
|
|
64
|
+
if (!itself && item.enable && isSameChannel && isConflictTask(item, fixedTime)) {
|
|
64
65
|
itselfConflict = true
|
|
65
66
|
item.enable = false
|
|
66
67
|
}
|
|
@@ -124,7 +125,7 @@ const FixedTimeForPlugPage = (props: { theme?: ThemeType}) => {
|
|
|
124
125
|
<Text style={styles.execTip}>{I18n.getLang('timeschedule_overview_description_text')}</Text>
|
|
125
126
|
<Spacer height={cx(10)}/>
|
|
126
127
|
{isMaxNum && <View style={{marginHorizontal: cx(24), flexDirection: 'row'}}>
|
|
127
|
-
<Image style={styles.maxImg} source={res.ic_warning_amber}/>
|
|
128
|
+
<Image style={styles.maxImg} source={{uri: res.ic_warning_amber}}/>
|
|
128
129
|
<Text style={styles.maxTip}>{I18n.getLang('randomtimecycle_warning_max_number_text')}</Text>
|
|
129
130
|
</View>}
|
|
130
131
|
<FlatList
|
|
@@ -74,7 +74,7 @@ const Summary = (props: SummaryProps) => {
|
|
|
74
74
|
<View style={styles.summaryContainer}>
|
|
75
75
|
<View style={styles.summaryLeft}>
|
|
76
76
|
<Image
|
|
77
|
-
source={res.summary_icon1}
|
|
77
|
+
source={{ uri: res.summary_icon1}}
|
|
78
78
|
resizeMode="contain"
|
|
79
79
|
style={styles.summaryImg}
|
|
80
80
|
/>
|
|
@@ -91,7 +91,7 @@ const Summary = (props: SummaryProps) => {
|
|
|
91
91
|
<View style={styles.summaryContainer}>
|
|
92
92
|
<View style={styles.summaryLeft}>
|
|
93
93
|
<Image
|
|
94
|
-
source={res.summary_icon2}
|
|
94
|
+
source={{ uri: res.summary_icon2}}
|
|
95
95
|
resizeMode="contain"
|
|
96
96
|
style={styles.summaryImg}
|
|
97
97
|
/>
|
|
@@ -108,7 +108,7 @@ const Summary = (props: SummaryProps) => {
|
|
|
108
108
|
{!props.hideActions && <View style={[styles.summaryContainer, { alignItems: 'flex-start' }]}>
|
|
109
109
|
<View style={styles.summaryLeft}>
|
|
110
110
|
<Image
|
|
111
|
-
source={res.summary_icon3}
|
|
111
|
+
source={{ uri: res.summary_icon3}}
|
|
112
112
|
resizeMode="contain"
|
|
113
113
|
style={styles.summaryImg}
|
|
114
114
|
/>
|
|
@@ -276,7 +276,7 @@ const FixedTimingForLightDetailPage = (props: { theme?: ThemeType }) => {
|
|
|
276
276
|
state.item.channel = undefined
|
|
277
277
|
}}
|
|
278
278
|
style={{paddingHorizontal: cx(5)}}>
|
|
279
|
-
<Image style={{width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor}} source={res.ic_arrows_nav_clear}/>
|
|
279
|
+
<Image style={{width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor}} source={{uri: res.ic_arrows_nav_clear}}/>
|
|
280
280
|
</TouchableOpacity>}
|
|
281
281
|
</View>
|
|
282
282
|
}
|
|
@@ -294,7 +294,7 @@ const FixedTimingForLightDetailPage = (props: { theme?: ThemeType }) => {
|
|
|
294
294
|
}}
|
|
295
295
|
>
|
|
296
296
|
<Text style={{color: props.theme?.global.fontColor}}>{item}</Text>
|
|
297
|
-
<Image style={{width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor}} source={res.device_panel_timer_add}/>
|
|
297
|
+
<Image style={{width: cx(16), height: cx(16), tintColor: props.theme?.global.fontColor}} source={{uri: res.device_panel_timer_add}}/>
|
|
298
298
|
</TouchableOpacity>
|
|
299
299
|
)
|
|
300
300
|
})}
|
|
@@ -352,7 +352,7 @@ const FixedTimingForLightDetailPage = (props: { theme?: ThemeType }) => {
|
|
|
352
352
|
<View style={styles.cardContainer}>
|
|
353
353
|
<Text style={styles.itemTitle}>{I18n.getLang('timeschedule_add_schedule_subheadline4_text')}</Text>
|
|
354
354
|
{!isTimeEffective && <View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
355
|
-
<Image style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.warning }} source={res.ic_warning_amber} />
|
|
355
|
+
<Image style={{ width: cx(16), height: cx(16), tintColor: props.theme?.global.warning }} source={{uri: res.ic_warning_amber}} />
|
|
356
356
|
<Text style={{ fontSize: cx(12), color: props.theme?.global.warning }}>{I18n.getLang('addTimeCycle_warning_text')}</Text>
|
|
357
357
|
</View>}
|
|
358
358
|
<View >
|
|
@@ -129,7 +129,7 @@ const FixedTimeForLightPage = (props: { theme?: ThemeType}) => {
|
|
|
129
129
|
<Text style={styles.execTip}>{I18n.getLang('timeschedule_overview_description_text')}</Text>
|
|
130
130
|
<Spacer height={cx(10)}/>
|
|
131
131
|
{isMaxNum && <View style={{marginHorizontal: cx(24), flexDirection: 'row'}}>
|
|
132
|
-
<Image style={styles.maxImg} source={res.ic_warning_amber}/>
|
|
132
|
+
<Image style={styles.maxImg} source={{uri: res.ic_warning_amber}}/>
|
|
133
133
|
<Text style={styles.maxTip}>{I18n.getLang('fixedtimecycle_warning_max_number_text')}</Text>
|
|
134
134
|
</View>}
|
|
135
135
|
<FlatList
|