Skip to content

Commit

Permalink
added compatibility for vis-2
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jul 7, 2024
1 parent 36b50ce commit 6b430ba
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 19 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,13 @@ Here's a simple example with a circle in an SVG:
In this case, if the SVG takes the color of parent element.
E.g., if it was used in a menu and the menu is red, the circle would be red.

## Developement and Debugging
## Development and Debugging

In order to make adjustments to the vis-2 editor itself, to search for errors and to debug, the following steps must be carried out.

1. fork the iobroker/iobroker.vis-2 repository into your own account via user interface of github
1. fork the iobroker/iobroker.vis-2 repository into your own account via user interface of GitHub

2. clone the repository into a directory. copy the url from your github repository. the command looks like
2. clone the repository into a directory. copy the url from your GitHub repository. the command looks like

```
git clone https://github.com/<your profile name>/ioBroker.vis-2.git
Expand Down Expand Up @@ -294,7 +294,7 @@ npm run start
### **WORK IN PROGRESS**
-->
## Changelog
### 2.10.0 (2024-07-07)
### **WORK IN PROGRESS**
* (bluefox) Removed incompatible package for styles
* (bluefox) All widgets must be updated

Expand Down
13 changes: 0 additions & 13 deletions packages/iobroker.vis-2/io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@
"name": "vis-2",
"version": "2.10.0",
"news": {
"2.10.0": {
"en": "Removed incompatible package for styles\nAll widgets must be updated",
"de": "Unverträgliches Paket für Styles entfernt\nAlle Widgets müssen aktualisiert werden",
"ru": "Удаленный несовместимый пакет для стилей\nВсе виджеты должны быть обновлены",
"pt": "Pacote incompatível removido para estilos\nTodos os widgets devem ser atualizados",
"nl": "Incompatibel pakket voor stijlen verwijderd\nAlle widgets moeten bijgewerkt worden",
"fr": "Enlever le paquet incompatible pour les styles\nTous les widgets doivent être actualisés",
"it": "Pacchetto incompatibile rimosso per stili\nTutti i widget devono essere aggiornati",
"es": "Paquete incompatible eliminado para estilos\nTodos los widgets deben ser actualizados",
"pl": "Usunięty niekompatybilny pakiet stylów\nWszystkie widżety muszą być aktualizowane",
"uk": "Видалено несумісний пакет для стилів\nВсі віджети повинні бути оновлені",
"zh-cn": "删除样式不兼容的软件包\n所有部件都必须更新"
},
"2.9.64": {
"en": "Added possibility to clear a text field by button",
"de": "Möglichkeit hinzugefügt, ein Textfeld per Knopf zu löschen",
Expand Down
2 changes: 1 addition & 1 deletion packages/iobroker.vis-2/src/src/Vis/visEngine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ class VisEngine extends React.Component<VisEngineProps, VisEngineState> {
.then(() => cb && cb())
.catch(error => cb && cb(error));
},
sendTo: (instance, command, data, cb) => {
sendTo: (instance: string, command: string, data: any, cb?: (result: Record<string, any>) => void) => {
this.props.socket.sendTo(instance, command, data)
.then(result => cb && cb(result))
.catch(error => cb && cb(error));
Expand Down
2 changes: 1 addition & 1 deletion packages/iobroker.vis-2/src/src/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "2.9.64"
"version": "2.10.0"
}
2 changes: 2 additions & 0 deletions packages/types-vis-2/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,8 @@ export interface VisLegacy {
getUserGroups: () => Record<string, ioBroker.GroupObject>;
detectBounce: (el: any, isUp?: boolean) => boolean;
isFloatComma?: boolean;
subscribe: (IDs: string[], cb: () => void) => void;
unsubscribe: (IDs: string[], cb: () => void) => void;
}

export interface MaterialIconSelectorProps {
Expand Down

0 comments on commit 6b430ba

Please sign in to comment.