Skip to content

Commit

Permalink
Fixing CI pipeline (#2866)
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox authored Dec 12, 2024
1 parent 69beec4 commit c224c86
Show file tree
Hide file tree
Showing 18 changed files with 371 additions and 290 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ The icons may not be reused in other projects without the proper flaticon licens
<!--
### **WORK IN PROGRESS**
-->
### 7.4.6 (2024-12-11)
### **WORK IN PROGRESS**

- (@GermanBluefox) Corrected the rendering of custom JSON config components
- (@GermanBluefox) Corrected the news dialog for multi-line messages
Expand Down
593 changes: 351 additions & 242 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"@alcalzone/release-script-plugin-iobroker": "^3.7.2",
"@alcalzone/release-script-plugin-license": "^3.7.0",
"@alcalzone/release-script-plugin-lerna": "^3.7.0",
"@iobroker/types": "^7.0.6",
"@iobroker/dm-utils": "^0.6.11",
"lerna": "^8.1.9"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-react-v5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ If you want to create the configuration page with ReactJS:
- Change `name` from `src` to `ADAPTERNAME-admin` (Of course replace `ADAPTERNAME` with yours)
- Add to devDependencies:
```json
"@iobroker/adapter-react-v5": "^7.4.5",
"@iobroker/adapter-react-v5": "^7.4.6",
```
Versions can be higher.
So your `src/package.json` should look like:
Expand All @@ -24,7 +24,7 @@ If you want to create the configuration page with ReactJS:
"version": "0.1.0",
"private": true,
"dependencies": {
"@iobroker/adapter-react-v5": "^7.4.5",
"@iobroker/adapter-react-v5": "^7.4.6",
"@iobroker/build-tools": "^1.0.0",
"babel-eslint": "^10.1.0",
"react-scripts": "^5.0.1"
Expand Down
8 changes: 4 additions & 4 deletions packages/adapter-react-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
"dependencies": {
"@emotion/react": "^11.13.5",
"@emotion/styled": "^11.13.5",
"@iobroker/js-controller-common": "^6.0.11",
"@iobroker/js-controller-common-db": "^6.0.11",
"@iobroker/socket-client": "^3.1.3",
"@iobroker/types": "^6.0.11",
"@iobroker/js-controller-common": "^7.0.6",
"@iobroker/js-controller-common-db": "^7.0.6",
"@iobroker/socket-client": "^4.0.0",
"@iobroker/types": "^7.0.6",
"@mui/icons-material": "^6.1.9",
"@mui/material": "^6.1.9",
"@sentry/browser": "^8.43.0",
Expand Down
1 change: 0 additions & 1 deletion packages/adapter-react-v5/src/Components/ObjectBrowser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5576,7 +5576,6 @@ export class ObjectBrowserClass extends Component<ObjectBrowserProps, ObjectBrow
from: false,
ack: false,
q: false,
// @ts-expect-error fixed in js-controller 7
addId: false,
aggregate: 'minmax',
})
Expand Down
7 changes: 3 additions & 4 deletions packages/adapter-react-v5/src/LegacyConnection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1674,7 +1674,6 @@ export class LegacyConnection {
obj._id = newId as ioBroker.ObjectIDs.Group;
if (newName !== undefined) {
obj.common = obj.common || ({} as ioBroker.GroupCommon);
// @ts-expect-error fixed in js-controller 7
obj.common.name = newName;
}

Expand Down Expand Up @@ -2848,7 +2847,7 @@ export class LegacyConnection {
getHistoryEx(
id: string,
options: ioBroker.GetHistoryOptions,
): Promise<{ values: ioBroker.GetHistoryResult; sessionId: string; stepIgnore: number }> {
): Promise<{ values: ioBroker.GetHistoryResult; sessionId: string; step: number }> {
if (!this.connected) {
return Promise.reject(new Error(NOT_CONNECTED));
}
Expand All @@ -2858,8 +2857,8 @@ export class LegacyConnection {
'getHistory',
id,
options,
(err: string | null, values: ioBroker.GetHistoryResult, stepIgnore: number, sessionId: string) =>
err ? reject(new Error(err)) : resolve({ values, sessionId, stepIgnore }),
(err: string | null, values: ioBroker.GetHistoryResult, step: number, sessionId: string) =>
err ? reject(new Error(err)) : resolve({ values, sessionId, step }),
);
});
}
Expand Down
13 changes: 0 additions & 13 deletions packages/admin/io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,6 @@
"connectionType": "local",
"dataSource": "push",
"news": {
"7.4.6": {
"en": "Corrected the rendering of custom JSON config components\nCorrected the news dialog for multi-line messages",
"de": "Korrektur des Renderns von benutzerdefinierten JSON config Komponenten\nKorrektur des Nachrichtendialogs für Multi-Line-Nachrichten",
"ru": "Исправлено отображение пользовательских компонентов конфигурации JSON\nИсправлен диалог новостей для многолинейных сообщений",
"pt": "Corrigido a renderização de componentes de configuração JSON personalizados\nCorrigido o diálogo de notícias para mensagens multilinhas",
"nl": "De weergave van aangepaste JSON config componenten gecorrigeerd\nHet dialoogvenster Nieuws voor meerregelige berichten corrigeren",
"fr": "Correction du rendu des composants de configuration JSON personnalisés\nCorrection de la boîte de dialogue de nouvelles pour les messages multilignes",
"it": "Corretto il rendering dei componenti di configurazione JSON personalizzati\nCorretto la finestra di dialogo delle notizie per i messaggi multi-linea",
"es": "Corregido el renderizado de componentes de configuración personalizados JSON\nCorregido el diálogo de noticias para mensajes multilínea",
"pl": "Poprawiono renderowanie niestandardowych komponentów konfiguracyjnych JSON\nPoprawiono okno dialogowe wiadomości dla wiadomości wieloliniowych",
"uk": "Виправлено відображення компонентів користувацького налаштування JSON\nВиправлено діалогове вікно новин для багатоканальних повідомлень",
"zh-cn": "纠正自定义 JSON 配置组件的渲染\n更正多行消息的新闻对话框"
},
"7.4.4": {
"en": "Showed value in object edit dialog",
"de": "Gezeigter Wert im Objekt bearbeiten Dialog",
Expand Down
4 changes: 2 additions & 2 deletions packages/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"setup"
],
"dependencies": {
"@iobroker/adapter-core": "^3.2.2",
"@iobroker/adapter-core": "^3.2.3",
"@iobroker/i18n": "^0.3.1",
"@iobroker/socket-classes": "^1.6.2",
"@iobroker/webserver": "^1.0.6",
Expand All @@ -43,7 +43,7 @@
"semver": "^7.6.3"
},
"devDependencies": {
"@iobroker/build-tools": "^2.0.11",
"@iobroker/build-tools": "^2.0.12",
"@iobroker/dm-gui-components": "file:../dm-gui-components",
"@iobroker/json-config": "file:../jsonConfig",
"@iobroker/legacy-testing": "^2.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/admin/src-admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@foxriver76/iob-component-lib": "^0.1.6",
"@honkhonk/vite-plugin-svgr": "^1.1.0",
"@iobroker/admin-component-easy-access": "^1.0.11",
"@iobroker/dm-utils": "^0.6.9",
"@iobroker/dm-utils": "^0.6.11",
"@iobroker/socket-client": "^3.1.3",
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@react-leaflet/core": "^2.1.0",
Expand Down Expand Up @@ -104,4 +104,4 @@
]
],
"version": "7.4.5"
}
}
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,6 @@ class ObjectChart extends Component<ObjectChartProps, ObjectChartState> {
from: false,
ack: false,
q: false,
// @ts-expect-error fixed in js-controller 7
addId: false,
aggregate: 'none',
})
Expand Down Expand Up @@ -566,7 +565,6 @@ class ObjectChart extends Component<ObjectChartProps, ObjectChartState> {
from: false,
ack: false,
q: false,
// @ts-expect-error fixed in js-controller 7
addId: false,
aggregate: 'none',
returnNewestEntries: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,6 @@ class ObjectHistoryData extends Component<ObjectHistoryDataProps, ObjectHistoryD
from: true,
ack: true,
q: true,
// @ts-expect-error fixed in js-controller 7
addId: false,
aggregate: 'none',
returnNewestEntries: true,
Expand Down Expand Up @@ -634,7 +633,6 @@ class ObjectHistoryData extends Component<ObjectHistoryDataProps, ObjectHistoryD
from: false,
ack: false,
q: false,
// @ts-expect-error fixed in js-controller 7
addId: false,
aggregate: 'none',
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -655,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 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
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
2 changes: 1 addition & 1 deletion packages/dm-gui-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
},
"devDependencies": {
"@craco/craco": "^7.1.0",
"@iobroker/dm-utils": "^0.6.9"
"@iobroker/dm-utils": "^0.6.11"
}
}

0 comments on commit c224c86

Please sign in to comment.