Skip to content

Commit

Permalink
Merge branch 'master' into weblate-adapters-admin
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox authored Apr 18, 2024
2 parents 79e3155 + 45b9a08 commit 3cc1293
Show file tree
Hide file tree
Showing 24 changed files with 813 additions and 588 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG_OLD.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
## 6.12.1 (2023-10-29)
* (foxriver76) optimzied the notificaiton popup (auto-extend first entry per category, respect line breaks, respect severity for icons)
* (theimo1221) #2178 Stabilize onObjectChange handling during creation of new objects in WebUi, to directly show new element.
## 6.12.1 (2023-10-29)
* (foxriver76) optimzied the notificaiton popup (auto-extend first entry per category, respect line breaks, respect severity for icons)
* (theimo1221) #2178 Stabilize onObjectChange handling during creation of new objects in WebUi, to directly show new element.

## 6.15.2 (2024-03-07)
* (foxriver76) fixed cron dialog

## 6.12.1 (2023-10-29)
* (foxriver76) optimzied the notificaiton popup (auto-extend first entry per category, respect line breaks, respect severity for icons)
* (theimo1221) #2178 Stabilize onObjectChange handling during creation of new objects in WebUi, to directly show new element.

## 6.15.1 (2024-03-04)
* (foxriver76) fixed problem with saving array values in custom config
* (foxriver76) fixed issue on deleting objects
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ The icons may not be reused in other projects without the proper flaticon licens
### **WORK IN PROGRESS**
-->
## Changelog
### **WORK IN PROGRESS**
### 6.17.5 (2024-04-18)
* (bluefox) Extend the table JSON Config with the encryption possibility
* (bluefox) Do not read historical data if instance is not active

### 6.17.3 (2024-04-11)
* (foxriver76) fixed npm adapter installation
Expand All @@ -105,9 +106,6 @@ The icons may not be reused in other projects without the proper flaticon licens
* (foxriver76) added a new tab to the installation wizard which recommends common adapters
* (bluefox) applied newest adapter-react-v5 changes and types

### 6.15.2 (2024-03-07)
* (foxriver76) fixed cron dialog

## License
The MIT License (MIT)

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "6.17.3",
"version": "6.17.5",
"packages": [
"packages/*"
],
Expand Down
28 changes: 14 additions & 14 deletions packages/admin/io-package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"common": {
"name": "admin",
"version": "6.17.3",
"version": "6.17.5",
"titleLang": {
"en": "Admin",
"de": "Admin",
Expand All @@ -18,6 +18,19 @@
"connectionType": "local",
"dataSource": "push",
"news": {
"6.17.5": {
"en": "Extend the table JSON Config with the encryption possibility\nDo not read historical data if instance is not active",
"de": "Erweitern Sie die Tabelle JSON Config mit der Verschlüsselungsmöglichkeit\nLesen Sie historische Daten nicht, wenn Instanz nicht aktiv ist",
"ru": "Расширение таблицы JSON Config с возможностью шифрования\nНе читайте исторические данные, если экземпляр не активен",
"pt": "Estenda a tabela JSON Config com a possibilidade de criptografia\nNão leia dados históricos se a instância não estiver ativa",
"nl": "De tabel JSON instellen uitbreiden met de versleutelingsmogelijkheid\nNiet lezen van historische gegevens als instantie niet actief is",
"fr": "Étendre la table JSON Config avec la possibilité de chiffrement\nNe pas lire les données historiques si l'instance n'est pas active",
"it": "Estendere il tavolo JSON Config con la possibilità di crittografia\nNon leggere i dati storici se l'istanza non è attiva",
"es": "Extender la tabla JSON Config con la posibilidad de cifrado\nNo lea datos históricos si la instancia no es activa",
"pl": "Rozszerzenie tabeli JSON Config z możliwością szyfrowania\nNie należy odczytywać danych historycznych, jeśli instancja nie jest aktywna",
"uk": "Розширення таблиці JSON Config з можливістю шифрування\nНе прочитайте історичні дані, якщо не активна",
"zh-cn": "扩展表 JSON 配置到加密可能性\n如果实例不活动, 不读取历史数据"
},
"6.17.3": {
"en": "fixed npm adapter installation",
"de": "installation von npm adapter",
Expand Down Expand Up @@ -95,19 +108,6 @@
"pl": "stały problem z zapisaniem wartości tablicy w niestandardowym konfiguratorze\nstałe wydanie na usuwaniu obiektów\ndokonać UI aktualizacji kontrolera i admin więcej verbose",
"uk": "виправлена проблема з збереженням значень масиву в налаштуванні\nвиправлено проблему видалення об'єктів\nзробіть оновлення UI контролера та адміністратора більш дієслово",
"zh-cn": "在自定义配置中保存数组值的固定问题\n删除对象的固定问题\n使控制器的 UI 更新和操作更加动词化"
},
"6.15.0": {
"en": "harmonized the links to adapter documentation (and fallback to english if no explicit doc for sys language provided)\nadded possibility to delete whole adapter from instance tab if only one instance left\nnew dialog for notifications introduced for non-system notifications (system notifications are still on hosts tab)\nthe new `licenseInformation` icon now changes color correctly with the theme",
"de": "die links zu adapterdokumentation (und rückfall auf englisch, wenn kein expliziter punkt für sys-sprache zur verfügung gestellt)\nhinzufügen der möglichkeit, den gesamten adapter von der registerkarte zu löschen, wenn nur eine instanz links\nneuer dialog für meldungen, die für nicht-system-benachrichtigungen eingeführt werden (system-benachrichtigungen sind noch auf hosts-tab)\ndas neue `licenseInformation`-Symbol ändert nun die Farbe korrekt mit dem Thema",
"ru": "гармонизирует ссылки на документацию адаптера (и возвращается на английский, если отсутствует явный док для языка sys)\nвозможность удаления всего адаптера из вкладки примера, если только один экземпляр остался\nновый диалог для уведомлений, введенных для несистемных уведомлений (системные уведомления все еще на вкладке хостов)\nновый значок «LicenseInformation» теперь правильно меняет цвет с темой",
"pt": "harmonizou os links para a documentação do adaptador (e a recaída ao inglês se nenhum documento explícito para a linguagem do sys fornecido)\npossibilidade adicionada de excluir o adaptador inteiro da aba da instância se apenas uma instância deixada\nnova caixa de diálogo para notificações introduzidas para notificações não-sistema (as notificações do sistema ainda estão na guia hosts)\no novo ícone `licenseInformation` agora muda a cor corretamente com o tema",
"nl": "geharmoniseerde links naar de documentatie van de adapter (en terugval naar het engels als er geen expliciete doc voor de gegeven sys taal)\ntoegevoegd mogelijkheid om hele adapter uit instantie tabblad te verwijderen als er nog maar één instantie over is\nnieuw dialoogvenster voor meldingen ingevoerd voor notificaties buiten het systeem (systeemmeldingen zijn nog steeds op het tabblad hosts)\nhet nieuwe ",
"fr": "harmonisation des liens vers la documentation de l'adaptateur (et retour à l'anglais si aucun doc explicite pour la langue de sys fourni)\npossibilité ajoutée de supprimer l'adaptateur entier de l'onglet instance si une seule instance reste\nnouvelle boîte de dialogue pour les notifications introduites pour les notifications non système (les notifications système sont toujours sur l'onglet hôte)\nla nouvelle icône `licenseInformation` change maintenant la couleur correctement avec le thème",
"it": "armonizzato i collegamenti alla documentazione dell'adattatore (e il ripiegamento all'inglese, se non un documento esplicito per la lingua sys fornito)\npossibilità aggiunta di eliminare l'intero adattatore dalla scheda di istanza se rimane solo un'istanza\nnuova finestra di dialogo per le notifiche introdotte per le notifiche non-sistema (le notifiche di sistema sono ancora sulla scheda host)\nla nuova icona `licenseInformation` ora cambia colore correttamente con il tema",
"es": "armoniza los enlaces a la documentación del adaptador (y retroceder al inglés si no hay un doc explícito para el lenguaje de sís)\nadicional posibilidad de eliminar el adaptador entero de la pestaña de instancia si sólo una instancia izquierda\nnuevo diálogo para las notificaciones introducidas para notificaciones no sistema (las notificaciones del sistema siguen en la pestaña hosts)\nel nuevo icono 'licenseInformation' ahora cambia de color correctamente con el tema",
"pl": "harmonizacja linków do dokumentacji adaptera (i powrót do angielskiego, jeśli nie ma wyraźnego doc dla języka sys)\ndodana możliwość usunięcia całego adaptera z zakładki instance, jeśli została tylko jedna instancja\nnowe okno dialogowe dla powiadomień wprowadzonych dla powiadomień niesystemowych (powiadomienia systemowe są nadal w zakładce hosts)\nnowa ikona 'licenseInformation' zmienia kolor poprawnie z motywem",
"uk": "гармонізовані посилання на документацію адаптера (і впадок в англійську, якщо немає явного довідка для наданої мови)\nдодано можливість видалити весь адаптер з вкладки екземпляра, якщо тільки один екземпляр залишив\nновий діалог для повідомлень, введених для сповіщення про несистему (системні сповіщення все ще на вкладці hosts)\n`licenseInformation````````````````````````````````________=================================================================================================================================================================================================================",
"zh-cn": "协调适配文件的链接(如果未为sys语言提供明确的文件,则回落到英文)\n如果仅剩一个实例, 则添加从实例标签中删除整个适配符的可能性\n为非系统通知引入的通知新对话框(系统通知仍在主机标签上)\n新的“ 许可证信息” 图标现在按照主题正确改变颜色"
}
},
"desc": {
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "iobroker.admin",
"description": "The adapter opens a webserver for the ioBroker admin UI.",
"version": "6.17.3",
"version": "6.17.5",
"contributors": [
"bluefox <[email protected]>",
"apollon77",
Expand Down
77 changes: 38 additions & 39 deletions packages/admin/src/package.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,41 @@
{
"name": "src-rx",
"private": true,
"homepage": ".",
"scripts": {
"start": "set DANGEROUSLY_DISABLE_HOST_CHECK=true&& craco start",
"old-start": "react-scripts start",
"lint": "eslint --fix --ext .js,.jsx,.tsx src",
"build": "craco build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"check-ts": "tsc --noEmit --checkJS false",
"tsc": "tsc --project tsconfig.build.json"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not op_mini all"
"name": "src-rx",
"private": true,
"homepage": ".",
"scripts": {
"start": "set DANGEROUSLY_DISABLE_HOST_CHECK=true&& craco start",
"old-start": "react-scripts start",
"lint": "eslint --fix --ext .js,.jsx,.tsx src",
"build": "craco build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"check-ts": "tsc --noEmit --checkJS false",
"tsc": "tsc --project tsconfig.build.json"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not op_mini all"
],
"dependencies": {
"@iobroker/json-config": "file:../../jsonConfig"
},
"proxy": "http://127.0.0.1:8081",
"plugins": [
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
"dependencies": {
"@iobroker/json-config": "file:../../jsonConfig"
},
"proxy": "http://127.0.0.1:8081",
"plugins": [
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
]
],
"version": "6.17.3"
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
]
]
}
1 change: 1 addition & 0 deletions packages/admin/src/src/components/Enums/EnumEditDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ function EnumEditDialog(props: EnumEditDialogProps) {
icon={ColorLensIcon}
className={props.classes.colorPicker}
classes={props.classes}
t={props.t}
/>
</Grid>
</Grid>
Expand Down
10 changes: 5 additions & 5 deletions packages/admin/src/src/components/Enums/EnumsMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,13 @@ interface EnumsListState {
}

class EnumsList extends Component<EnumsListProps, EnumsListState> {
private cachedIcons: Record<string, string>;
private readonly cachedIcons: Record<string, string>;

private fastUpdate: boolean;

private refFilter: React.RefObject<HTMLInputElement>;
private readonly refFilter: React.RefObject<HTMLInputElement>;

private refClearButton: React.RefObject<HTMLButtonElement>;
private readonly refClearButton: React.RefObject<HTMLButtonElement>;

private updateTimeout: ReturnType<typeof setTimeout> | null = null;

Expand Down Expand Up @@ -336,7 +336,7 @@ class EnumsList extends Component<EnumsListProps, EnumsListState> {

async componentDidMount() {
await this.updateData();
this.props.socket.subscribeObject('enum.*', this.onObjectChange);
await this.props.socket.subscribeObject('enum.*', this.onObjectChange);
}

componentWillUnmount() {
Expand All @@ -345,7 +345,7 @@ class EnumsList extends Component<EnumsListProps, EnumsListState> {
this.updateTimeout = null;
}

onObjectChange = (id: string, obj: ioBroker.EnumObject) => {
onObjectChange = (id: string, obj: ioBroker.EnumObject) => {
let changed;

if (this.state.enums && id.startsWith('enum.')) {
Expand Down
2 changes: 2 additions & 0 deletions packages/admin/src/src/components/IOFields/Fields.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const IOColorPicker = props => {
return <div style={{ width: '100%' }}>
{IconCustom ? <IconCustom className={props.previewClassName || props.classes.formIcon} /> : null}
<ColorPicker
t={props.t}
style={{ width: IconCustom ? 'calc(100% - 45px)' : '100%', display: 'inline-block', verticalAlign: 'top' }}
name={props.t(props.label)}
onChange={props.onChange}
Expand All @@ -67,5 +68,6 @@ IOColorPicker.propTypes = {
onChange: PropTypes.func,
icon: PropTypes.object,
className: PropTypes.string,
t: PropTypes.func.isRequired,
};
export { IOColorPicker };
Loading

0 comments on commit 3cc1293

Please sign in to comment.