Skip to content

Commit

Permalink
chore: release v1.1.2
Browse files Browse the repository at this point in the history
* (arteck) corr some errors
  • Loading branch information
arteck committed Jan 4, 2025
1 parent 7dcc4dd commit fc33529
Show file tree
Hide file tree
Showing 13 changed files with 6,240 additions and 10,326 deletions.
42 changes: 42 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"root": true,
"env": {
"es6": true,
"node": true,
"mocha": true
},
"extends": ["eslint:recommended"],
"plugins": [],
"rules": {
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"no-console": "off",
"no-unused-vars": [
"error",
{
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_"
}
],
"no-var": "error",
"no-trailing-spaces": "error",
"prefer-const": "error",
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"semi": ["error", "always"]
},
"parserOptions": {
"ecmaVersion": 2018
}
}
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package.json
package-lock.json
9 changes: 9 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
semi: true,
trailingComma: 'es5',
singleQuote: true,
printWidth: 120,
useTabs: false,
tabWidth: 4,
endOfLine: 'auto',
};
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014-2024 Arthur Rupp [email protected]
Copyright (c) 2014-2025 Arthur Rupp [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ Settings available:


## Changelog
### 1.1.2 (2025-01-04)
* (arteck) corr some errors

### 1.1.1 (2024-09-26)
* (arteck) corr cloud connection

Expand Down Expand Up @@ -65,7 +68,7 @@ Settings available:
## License
The MIT License (MIT)

Copyright (c) 2018-2024 Arthur Rupp [email protected]
Copyright (c) 2018-2025Arthur Rupp [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion admin/adapter-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function onChange(isChanged) {
}

function showMessage(message, title, icon) {
var $dialogMessage;
let $dialogMessage;
// noinspection JSJQueryEfficiency
$dialogMessage = $('#dialog-message');
if (!$dialogMessage.length) {
Expand Down
208 changes: 104 additions & 104 deletions admin/words.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,119 +2,119 @@
'use strict';

systemDictionary = {
"active": {
"en": "Active",
"de": "Aktiviert",
"ru": "Актив",
"pt": "Active",
"nl": "Active",
"fr": "Active",
"it": "Active",
"es": "Active",
"pl": "Active"
'active': {
'en': 'Active',
'de': 'Aktiviert',
'ru': 'Актив',
'pt': 'Active',
'nl': 'Active',
'fr': 'Active',
'it': 'Active',
'es': 'Active',
'pl': 'Active'
},
"addresses": {
"en": "addresses to monitoring",
"de": "Adresse für Monitoring",
"ru": "Список IP адресов для мониторинга",
"pt": "addresses to monitoring",
"nl": "addresses to monitoring",
"fr": "addresses to monitoring",
"it": "addresses to monitoring",
"es": "addresses to monitoring",
"pl": "addresses to monitoring"
'addresses': {
'en': 'addresses to monitoring',
'de': 'Adresse für Monitoring',
'ru': 'Список IP адресов для мониторинга',
'pt': 'addresses to monitoring',
'nl': 'addresses to monitoring',
'fr': 'addresses to monitoring',
'it': 'addresses to monitoring',
'es': 'addresses to monitoring',
'pl': 'addresses to monitoring'
},
"interval": {
"en": "Polling interval[sec]",
"de": "Abfrage Intervall[sec]",
"ru": "Интервал опроса в секундах:",
"pt": "Polling interval[sec]",
"nl": "Polling interval[sec]",
"fr": "Polling interval[sec]",
"it": "Polling interval[sec]",
"es": "Polling interval[sec]",
"pl": "Polling interval[sec]"
'interval': {
'en': 'Polling interval[sec]',
'de': 'Abfrage Intervall[sec]',
'ru': 'Интервал опроса в секундах:',
'pt': 'Polling interval[sec]',
'nl': 'Polling interval[sec]',
'fr': 'Polling interval[sec]',
'it': 'Polling interval[sec]',
'es': 'Polling interval[sec]',
'pl': 'Polling interval[sec]'
},
"Timeout": {
"en": "Timeout [ms]",
"de": "Timeout [ms]",
"ru": "Тайм-аут в мс",
"pt": "Tempo limite [ms]",
"nl": "Time-out [ms]",
"fr": "Délai d'attente [ms]",
"it": "Timeout [ms]",
"es": "Tiempo de espera [ms]",
"pl": "Limit czasu [ms]",
"zh-cn": "超时以毫秒为单位"
},
"ipaddress": {
"en": "IP Address",
"de": "IP Adresse",
"ru": "IP Адрес",
"pt": "IP Address",
"nl": "IP Address",
"fr": "IP Address",
"it": "IP Address",
"es": "IP Address",
"pl": "IP Address"
'Timeout': {
'en': 'Timeout [ms]',
'de': 'Timeout [ms]',
'ru': 'Тайм-аут в мс',
'pt': 'Tempo limite [ms]',
'nl': 'Time-out [ms]',
'fr': "Délai d'attente [ms]",
'it': 'Timeout [ms]',
'es': 'Tiempo de espera [ms]',
'pl': 'Limit czasu [ms]',
'zh-cn': '超时以毫秒为单位'
},
"ipcloud": {
"en": "blank when cloud checkbox is checked",
"de": "leer, wenn das Kontrollkästchen Cloud aktiviert ist",
"ru": "пусто, когда установлен флажок облака",
"pt": "em branco quando a caixa de seleção da nuvem é marcada",
"nl": "blanco als het selectievakje Cloud is aangevinkt",
"fr": "vide lorsque la case Cloud est cochée",
"it": "vuoto quando la casella di controllo cloud è selezionata",
"es": "en blanco cuando la casilla de verificación de la nube está marcada",
"pl": "puste, gdy pole wyboru w chmurze jest zaznaczone",
"zh-cn": "选中云复选框时为空白"
'ipaddress': {
'en': 'IP Address',
'de': 'IP Adresse',
'ru': 'IP Адрес',
'pt': 'IP Address',
'nl': 'IP Address',
'fr': 'IP Address',
'it': 'IP Address',
'es': 'IP Address',
'pl': 'IP Address'
},
"port": {
"en": "Port",
"de": "Port",
"ru": "Port",
"pt": "Port",
"nl": "Port",
"fr": "Port",
"it": "Port",
"es": "Port",
"pl": "Port"
'ipcloud': {
'en': 'blank when cloud checkbox is checked',
'de': 'leer, wenn das Kontrollkästchen Cloud aktiviert ist',
'ru': 'пусто, когда установлен флажок облака',
'pt': 'em branco quando a caixa de seleção da nuvem é marcada',
'nl': 'blanco als het selectievakje Cloud is aangevinkt',
'fr': 'vide lorsque la case Cloud est cochée',
'it': 'vuoto quando la casella di controllo cloud è selezionata',
'es': 'en blanco cuando la casilla de verificación de la nube está marcada',
'pl': 'puste, gdy pole wyboru w chmurze jest zaznaczone',
'zh-cn': '选中云复选框时为空白'
},
"psw": {
"en": "Password",
"de": "Password",
"ru": "Имя",
"pt": "Password",
"nl": "Password",
"fr": "Password",
"it": "Password",
"es": "Password",
"pl": "Password"
'port': {
'en': 'Port',
'de': 'Port',
'ru': 'Port',
'pt': 'Port',
'nl': 'Port',
'fr': 'Port',
'it': 'Port',
'es': 'Port',
'pl': 'Port'
},
'psw': {
'en': 'Password',
'de': 'Password',
'ru': 'Имя',
'pt': 'Password',
'nl': 'Password',
'fr': 'Password',
'it': 'Password',
'es': 'Password',
'pl': 'Password'
},

"user": {
"en": "user",
"de": "Nutzer",
"ru": "пользователь",
"pt": "do utilizador",
"nl": "gebruiker",
"fr": "utilisateur",
"it": "utente",
"es": "usuario",
"pl": "użytkownik",
"zh-cn": "用户"
'user': {
'en': 'user',
'de': 'Nutzer',
'ru': 'пользователь',
'pt': 'do utilizador',
'nl': 'gebruiker',
'fr': 'utilisateur',
'it': 'utente',
'es': 'usuario',
'pl': 'użytkownik',
'zh-cn': '用户'
},

"settings": {
"en": "Adapter settings",
"de": "Adapter-Einstellungen",
"ru": "Настройки драйвера",
"pt": "Adapter settings",
"nl": "Adapter settings",
"fr": "Adapter settings",
"it": "Adapter settings",
"es": "Adapter settings",
"pl": "Adapter settings"
'settings': {
'en': 'Adapter settings',
'de': 'Adapter-Einstellungen',
'ru': 'Настройки драйвера',
'pt': 'Adapter settings',
'nl': 'Adapter settings',
'fr': 'Adapter settings',
'it': 'Adapter settings',
'es': 'Adapter settings',
'pl': 'Adapter settings'
},
};
56 changes: 56 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
const globals = require('globals');
const js = require('@eslint/js');

const { FlatCompat } = require('@eslint/eslintrc');

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

module.exports = [
{
ignores: ['.dev-server/**'],
},
...compat.extends('eslint:recommended', 'plugin:prettier/recommended'),
{
languageOptions: {
globals: {
...globals.node,
...globals.mocha,
},

ecmaVersion: 2022,
sourceType: 'commonjs',

parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},

rules: {
indent: ['error', 4, { SwitchCase: 1 }],

'prettier/prettier': ['off', { endOfLine: 'auto' }],
'no-unused-vars': 'off',
'no-useless-escape': 'off',
'no-console': 'off',
'no-var': 'error',
'no-trailing-spaces': 'error',
'prefer-const': 'warn',
'no-case-declarations': 'warn',

quotes: [
'error',
'single',
{
avoidEscape: true,
allowTemplateLiterals: true,
},
],
},
},
];
Loading

0 comments on commit fc33529

Please sign in to comment.