Skip to content

Commit

Permalink
Corrected build CI
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Dec 8, 2024
1 parent 8808e77 commit fe7ff6c
Show file tree
Hide file tree
Showing 10 changed files with 108 additions and 130 deletions.
198 changes: 94 additions & 104 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions packages/adapter-react-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@
"dependencies": {
"@emotion/react": "^11.13.5",
"@emotion/styled": "^11.13.5",
"@iobroker/js-controller-common": "^7.0.4",
"@iobroker/js-controller-common-db": "^7.0.4",
"@iobroker/js-controller-common": "^7.0.5",
"@iobroker/js-controller-common-db": "^7.0.5",
"@iobroker/socket-client": "^3.1.3",
"@iobroker/types": "^7.0.4",
"@mui/icons-material": "^6.1.9",
"@mui/material": "^6.1.9",
"@iobroker/types": "^7.0.5",
"@mui/icons-material": "^6.1.10",
"@mui/material": "^6.1.10",
"@sentry/browser": "^8.42.0",
"cronstrue": "^2.52.0",
"react-color": "^2.19.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dependencies": {
"@iobroker/adapter-core": "^3.2.3",
"@iobroker/i18n": "^0.3.1",
"@iobroker/socket-classes": "^1.6.1",
"@iobroker/socket-classes": "^1.6.2",
"@iobroker/webserver": "^1.0.6",
"@iobroker/ws": "^2.0.0",
"@iobroker/ws-server": "4.1.0",
Expand Down
12 changes: 3 additions & 9 deletions packages/admin/src-admin/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2411,13 +2411,9 @@ class App extends Router<AppProps, AppState> {
if (this.state.user && this.props.width !== 'xs' && this.props.width !== 'sm') {
return (
<div>
{
// @ts-expect-error fixed in js-controller 7
this.state.systemConfig.common.siteName ? (
// @ts-expect-error fixed in js-controller 7
<div style={styles.siteName}>{this.state.systemConfig.common.siteName}</div>
) : null
}
{this.state.systemConfig.common.siteName ? (
<div style={styles.siteName}>{this.state.systemConfig.common.siteName}</div>
) : null}

<Box
component="div"
Expand Down Expand Up @@ -2460,9 +2456,7 @@ class App extends Router<AppProps, AppState> {
</div>
);
}
// @ts-expect-error fixed in js-controller 7
if (this.props.width !== 'xs' && this.props.width !== 'sm' && this.state.systemConfig.common.siteName) {
// @ts-expect-error fixed in js-controller 7
return <div style={styles.siteName}>{this.state.systemConfig.common.siteName}</div>;
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ class ObjectChart extends Component<ObjectChartProps, ObjectChartState> {
from: false,
ack: false,
q: false,
addID: false,
addId: false,
aggregate: 'none',
})
.then((values: { val: ioBroker.StateValue; ts: number }[]) => {
Expand Down Expand Up @@ -565,7 +565,7 @@ class ObjectChart extends Component<ObjectChartProps, ObjectChartState> {
from: false,
ack: false,
q: false,
addID: false,
addId: false,
aggregate: 'none',
returnNewestEntries: true,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ class ObjectHistoryData extends Component<ObjectHistoryDataProps, ObjectHistoryD
from: true,
ack: true,
q: true,
addID: false,
addId: false,
aggregate: 'none',
returnNewestEntries: true,
})
Expand Down Expand Up @@ -633,7 +633,7 @@ class ObjectHistoryData extends Component<ObjectHistoryDataProps, ObjectHistoryD
from: false,
ack: false,
q: false,
addID: false,
addId: false,
aggregate: 'none',
})
.then((values: ioBroker.GetHistoryResult) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ import {

import { Close as CloseIcon } from '@mui/icons-material';

import { Marker } from 'leaflet';
import type { DragEndEvent, LatLngTuple, Map } from 'leaflet';
import { Marker, type DragEndEvent, type LatLngTuple, type Map } from 'leaflet';

import { DialogConfirm, withWidth, I18n, type Translate } from '@iobroker/adapter-react-v5';
import { type AdminGuiConfig } from '@/types';
Expand Down Expand Up @@ -656,15 +655,13 @@ class MainSettingsDialog extends BaseSystemSettingsDialog<Props, State> {
variant="standard"
id="siteName"
label={this.props.t('Site name')}
// @ts-expect-error Fixed in js-controller 7
value={this.props.data.common.siteName || ''}
onChange={e => this.doChange('siteName', e.target.value)}
helperText={this.props.t(
"This name will be shown in admin's header. Just to identify the whole installation",
)}
slotProps={{
input: {
// @ts-expect-error Fixed in js-controller 7
endAdornment: this.props.data.common.siteName ? (
<InputAdornment position="end">
<IconButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ class RepositoriesDialog extends BaseSystemSettingsDialog<RepositoriesDialogProp
<span>
<Checkbox
disabled
// @ts-expect-error will be fixed in js-controller 7
checked={this.props.repoInfo[item.title]?.stable}
indeterminate={!this.props.repoInfo[item.title]}
/>
Expand Down
1 change: 0 additions & 1 deletion packages/admin/src/lib/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@ class Web {
`system.adapter.${adapterName}`,
);

// @ts-expect-error fixed in js-controller 7.x
if (res?.common.adminUI?.config === 'json') {
try {
const ajv = new Ajv({
Expand Down
1 change: 0 additions & 1 deletion packages/admin/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1949,7 +1949,6 @@ class Admin extends Adapter {
);
this.changedPasswords.push(found);

// @ts-expect-error types defined in js-controller 7
await this.registerNotification('admin', 'wellKnownPassword', I18n.translate('User: %s', found.login), {
contextData: {
admin: {
Expand Down

0 comments on commit fe7ff6c

Please sign in to comment.