@iobroker/adapter-react-v5 2.1.5 → 2.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/adapter-react-v5",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "React classes to develop admin interfaces for ioBroker with react.",
5
5
  "author": {
6
6
  "name": "bluefox",
@@ -26,17 +26,19 @@
26
26
  "homepage": "https://github.com/ioBroker/adapter-react-v5#readme",
27
27
  "devDependencies": {},
28
28
  "dependencies": {
29
- "@sentry/browser": "^6.19.1",
30
- "@sentry/integrations": "^6.19.1",
31
29
  "@emotion/react": "^11.8.2",
32
30
  "@emotion/styled": "^11.8.1",
33
31
  "@mui/icons-material": "^5.5.1",
34
32
  "@mui/material": "^5.5.2",
35
33
  "@mui/styles": "^5.5.1",
34
+ "@sentry/browser": "^6.19.1",
35
+ "@sentry/integrations": "^6.19.1",
36
+ "@types/iobroker": "^4.0.1",
36
37
  "react-color": "^2.19.3",
37
38
  "react-colorful": "^5.5.1",
38
39
  "react-dropzone": "^12.0.4",
40
+ "react-icons": "^4.3.1",
39
41
  "react-inlinesvg": "^2.3.0",
40
- "@types/iobroker": "^4.0.1"
42
+ "react-text-mask": "^5.4.3"
41
43
  }
42
44
  }
package/gulpfile.js DELETED
@@ -1,113 +0,0 @@
1
- /**
2
- * Copyright 2018-2109 bluefox <dogafox@gmail.com>
3
- *
4
- * MIT License
5
- *
6
- **/
7
- 'use strict';
8
-
9
- const gulp = require('gulp');
10
- const fs = require('fs');
11
-
12
- const dir = __dirname + '/src/i18n/';
13
- gulp.task('i18n=>flat', done => {
14
- const files = fs.readdirSync(dir).filter(name => name.match(/\.json$/));
15
- const index = {};
16
- const langs = [];
17
- files.forEach(file => {
18
- const lang = file.replace(/\.json$/, '');
19
- langs.push(lang);
20
- const text = require(dir + file);
21
-
22
- for (const id in text) {
23
- if (text.hasOwnProperty(id)) {
24
- index[id] = index[id] || {};
25
- index[id][lang] = text[id] === undefined ? id : text[id];
26
- }
27
- }
28
- });
29
-
30
- const keys = Object.keys(index);
31
- keys.sort();
32
-
33
- if (!fs.existsSync(dir + '/flat/')) {
34
- fs.mkdirSync(dir + '/flat/');
35
- }
36
-
37
- langs.forEach(lang => {
38
- const words = [];
39
- keys.forEach(key => {
40
- words.push(index[key][lang]);
41
- });
42
- fs.writeFileSync(dir + '/flat/' + lang + '.txt', words.join('\n'));
43
- });
44
- fs.writeFileSync(dir + '/flat/index.txt', keys.join('\n'));
45
- done();
46
- });
47
-
48
- gulp.task('flat=>i18n', done => {
49
- if (!fs.existsSync(dir + '/flat/')) {
50
- console.error(dir + '/flat/ directory not found');
51
- return done();
52
- }
53
- const keys = fs.readFileSync(dir + '/flat/index.txt').toString().split(/[\r\n]/);
54
- while (!keys[keys.length - 1]) keys.splice(keys.length - 1, 1);
55
-
56
- const files = fs.readdirSync(dir + '/flat/').filter(name => name.match(/\.txt$/) && name !== 'index.txt');
57
- const index = {};
58
- const langs = [];
59
- files.forEach(file => {
60
- const lang = file.replace(/\.txt$/, '');
61
- langs.push(lang);
62
- const lines = fs.readFileSync(dir + '/flat/' + file).toString().split(/[\r\n]/);
63
- lines.forEach((word, i) => {
64
- index[keys[i]] = index[keys[i]] || {};
65
- index[keys[i]][lang] = word;
66
- });
67
- });
68
- langs.forEach(lang => {
69
- const words = {};
70
- keys.forEach((key, line) => {
71
- if (!index[key]) {
72
- console.log('No word ' + key + ', ' + lang + ', line: ' + line);
73
- }
74
- words[key] = index[key][lang];
75
- });
76
- fs.writeFileSync(dir + '/' + lang + '.json', JSON.stringify(words, null, 2));
77
- });
78
- done();
79
- });
80
-
81
- gulp.task('build', done => {
82
- const { fork } = require('child_process');
83
-
84
- const child = fork(__dirname + '/node_modules/react-scripts/scripts/build.js', {
85
- cwd: __dirname
86
- });
87
- child.on('exit', (code, signal) => done());
88
- });
89
-
90
- gulp.task('clean', () => {
91
- const del = require('del');
92
- return del(['admin/*/**', 'admin/*', '!admin/actions.js', '!admin/alexalogo.png', '!admin/blockly.js', '!admin/iot.png']);
93
- });
94
-
95
- gulp.task('copy', () => {
96
- return gulp.src(['build/*/**', 'build/*'])
97
- .pipe(gulp.dest('../admin/'));
98
- });
99
-
100
- gulp.task('renameIndex', gulp.series('copy', done => {
101
- if (fs.existsSync(__dirname + '/../admin/index.html')) {
102
- fs.renameSync(__dirname + '/admin/index.html', __dirname + '/admin/index_m.html')
103
- }
104
- done();
105
- }));
106
-
107
- gulp.task('renameTab', gulp.series('copy', done => {
108
- if (fs.existsSync(__dirname + '/../admin/index.html')) {
109
- fs.renameSync(__dirname + '/../admin/index.html', __dirname + '/../admin/tab.html')
110
- }
111
- done();
112
- }));
113
-