Skip to content

Commit

Permalink
Removed withStyles
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jul 7, 2024
1 parent 2e5bebe commit 688399b
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 113 deletions.
6 changes: 3 additions & 3 deletions admin/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "./static/css/main.83fa2641.css",
"main.js": "./static/js/main.eabb6a1b.js",
"main.js": "./static/js/main.1d9cdb29.js",
"static/media/day-night.jpg": "./static/media/day-night.d6f09cbf18746b70d451.jpg",
"static/media/Ground Floor.svg": "./static/media/Ground Floor.2b7c5c91db7f070935a2.svg",
"static/media/Second Floor.svg": "./static/media/Second Floor.a2d5ed32df336591c06b.svg",
Expand Down Expand Up @@ -124,10 +124,10 @@
"static/media/Outdoor Blinds.svg": "./static/media/Outdoor Blinds.37b85a9c060a4af48da9.svg",
"static/media/Upstairs.svg": "./static/media/Upstairs.441813e54e0daca0882d.svg",
"main.83fa2641.css.map": "./static/css/main.83fa2641.css.map",
"main.eabb6a1b.js.map": "./static/js/main.eabb6a1b.js.map"
"main.1d9cdb29.js.map": "./static/js/main.1d9cdb29.js.map"
},
"entrypoints": [
"static/css/main.83fa2641.css",
"static/js/main.eabb6a1b.js"
"static/js/main.1d9cdb29.js"
]
}
2 changes: 1 addition & 1 deletion admin/index_m.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="./manifest.json"/><script type="text/javascript" src="./../../lib/js/socket.io.js"></script><title>Scheduler</title><script defer="defer" src="./static/js/main.eabb6a1b.js"></script><link href="./static/css/main.83fa2641.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="./manifest.json"/><script type="text/javascript" src="./../../lib/js/socket.io.js"></script><title>Scheduler</title><script defer="defer" src="./static/js/main.1d9cdb29.js"></script><link href="./static/css/main.83fa2641.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
3 changes: 0 additions & 3 deletions admin/static/js/main.eabb6a1b.js

This file was deleted.

94 changes: 0 additions & 94 deletions admin/static/js/main.eabb6a1b.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion admin/static/js/main.eabb6a1b.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion src-widgets/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Box } from "@mui/material";
import { Box } from '@mui/material';

import WidgetDemoApp from '@iobroker/vis-2-widgets-react-dev/widgetDemoApp';
import { I18n } from '@iobroker/adapter-react-v5';
Expand Down
4 changes: 2 additions & 2 deletions src-widgets/src/Scheduler.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ class Scheduler extends Generic {
{width ? <IntervalsContainer
id={this.props.id}
onChange={this.onIntervals}
theme={this.props.theme} // ?? this.props.context.theme
theme={this.props.context.theme} // ?? this.props.context.theme
intervals={profile.intervals}
range={profile.intervalDuration}
type={profile.type}
Expand All @@ -417,7 +417,7 @@ class Scheduler extends Generic {
holiday={profile.holiday}
holidayVisible={!!this.state.object.native.holidayId}
onChange={this.onDow}
theme={this.props.theme} // ?? this.props.context.theme
theme={this.props.context.theme} // ?? this.props.context.theme
t={Scheduler.t}
/>}
</div>;
Expand Down
2 changes: 1 addition & 1 deletion src-widgets/src/components/Interval.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class Interval extends Component {
return this.props.minMax;
}

return minmax[this.props.type];
return minmax[this.props.type] || { min: 0, max: 100 };
}

getLabel = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/src/components/Interval.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class Interval extends Component {
return this.props.minMax;
}

return minmax[this.props.type];
return minmax[this.props.type] || { min: 0, max: 100 };
}

getLabel = () => {
Expand Down
2 changes: 1 addition & 1 deletion widgets/scheduler/customWidgets.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion widgets/scheduler/customWidgets.js.map

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

0 comments on commit 688399b

Please sign in to comment.