Skip to content

Commit 25ca2f1

Browse files
Typescript (#1807)
* Formatting * Move to eslint-config Replace icon for astro-events * Move to eslint-config Replace icon for astro-events * Types * Remove old processing of ZIP files * Remove old processing of ZIP files * Working on typescript * Working on typescript * Working on typescript * Working on typescript * Working on typescript * Backend could be compiled * Added codicon font back * Convert React to TypeScript * Convert React to TypeScript * Convert React to TypeScript * Working on typescript * Convert React to TypeScript * Working on TS * Rules are working * Blockly works * Blockly works with multiline and colour blocks * Blockly works with multiline and colour blocks * Working on debug functionality * Merge master into this branch * Fixing build * Fixing build * Fixing build * Remove email rules * Updated packages * Removed request from deps * Fixing build * Added prettier for scripts * Fixing formatTimeDiff * Fixing formatTimeDiff * Comment * Fixing tests * Fixing build * Fixing tests * Fixing tests * Fixing tests * build * build
1 parent 8856eb5 commit 25ca2f1

File tree

193 files changed

+46719
-13581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+46719
-13581
lines changed
Lines changed: 65 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,75 @@
11
# v0.1
22
name: Bug report
3-
title: "[Bug]: "
4-
description: "Create a bug report to help improve this ioBroker adapter"
3+
title: '[Bug]: '
4+
description: 'Create a bug report to help improve this ioBroker adapter'
55
body:
6-
# general information
7-
- type: markdown
8-
attributes:
9-
value: >
10-
**Thank you for wanting to report a bug in this adapter!**
6+
# general information
7+
- type: markdown
8+
attributes:
9+
value: >
10+
**Thank you for wanting to report a bug in this adapter!**
1111
12-
If this is the first time you are doing this, please take a few moments to read
13-
through the [README](https://github.com/ioBroker/ioBroker.javascript/blob/master/README.md).
12+
If this is the first time you are doing this, please take a few moments to read
13+
through the [README](https://github.com/ioBroker/ioBroker.javascript/blob/master/README.md).
1414
15-
You are about to report a bug in **JavaScript Adapter**. Do not proceed if your issue
16-
occurs with ioBroker core, any other adapters, unofficial or outdated
17-
adapter or NodeJS versions.
15+
You are about to report a bug in **JavaScript Adapter**. Do not proceed if your issue
16+
occurs with ioBroker core, any other adapters, unofficial or outdated
17+
adapter or NodeJS versions.
1818
19-
Do also not seek support here ("I need help with ...", "I have a
20-
question ...", "Can someone walk me through ..."), that belongs into the
21-
[ioBroker forum at forum.iobroker.net](https://forum.iobroker.net/).
19+
Do also not seek support here ("I need help with ...", "I have a
20+
question ...", "Can someone walk me through ..."), that belongs into the
21+
[ioBroker forum at forum.iobroker.net](https://forum.iobroker.net/).
2222
23-
Thank you for your collaboration!
24-
- type: checkboxes
25-
attributes:
26-
label: I'm sure that
27-
options:
28-
- label: This issue is still present in the **current beta version** of this adapter
23+
Thank you for your collaboration!
24+
- type: checkboxes
25+
attributes:
26+
label: I'm sure that
27+
options:
28+
- label: This issue is still present in the **current beta version** of this adapter
29+
required: true
30+
- label: There is no other (open) issue with the same topic (use the search!)
31+
required: true
32+
- label: This issue is not described in the adapter documentation / FAQ (read the docs!)
33+
required: true
34+
# adapter specific input fields
35+
- type: input
36+
attributes:
37+
label: Script type
38+
description: Blockly, Rules, JavaScript, TypeScript, ...
39+
validations:
2940
required: true
30-
- label: There is no other (open) issue with the same topic (use the search!)
41+
# general questions
42+
- type: textarea
43+
attributes:
44+
label: The problem
45+
description: >-
46+
Describe the issue you are experiencing here. Tell us what you were trying to do
47+
step by step, and what happened that you did not expect.
48+
49+
Provide a clear and concise description of what the problem is and include as many
50+
details as possible.
51+
validations:
3152
required: true
32-
- label: This issue is not described in the adapter documentation / FAQ (read the docs!)
53+
- type: textarea
54+
attributes:
55+
label: iobroker.current.log (in debug mode!)
56+
description: >-
57+
Share the log file of this adapter in debug mode
58+
- type: input
59+
attributes:
60+
label: Version of nodejs
61+
description: Can be found in the host section of ioBroker admin
62+
validations:
63+
required: true
64+
- type: input
65+
attributes:
66+
label: Version of ioBroker js-controller
67+
description: Can be found in the host section of ioBroker admin
68+
validations:
69+
required: true
70+
- type: input
71+
attributes:
72+
label: Version of adapter
73+
description: Can be found in the adapters tab of ioBroker admin
74+
validations:
3375
required: true
34-
# adapter specific input fields
35-
- type: input
36-
attributes:
37-
label: Script type
38-
description: Blockly, Rules, JavaScript, TypeScript, ...
39-
validations:
40-
required: true
41-
# general questions
42-
- type: textarea
43-
attributes:
44-
label: The problem
45-
description: >-
46-
Describe the issue you are experiencing here. Tell us what you were trying to do
47-
step by step, and what happened that you did not expect.
48-
49-
Provide a clear and concise description of what the problem is and include as many
50-
details as possible.
51-
validations:
52-
required: true
53-
- type: textarea
54-
attributes:
55-
label: iobroker.current.log (in debug mode!)
56-
description: >-
57-
Share the log file of this adapter in debug mode
58-
- type: input
59-
attributes:
60-
label: Version of nodejs
61-
description: Can be found in the host section of ioBroker admin
62-
validations:
63-
required: true
64-
- type: input
65-
attributes:
66-
label: Version of ioBroker js-controller
67-
description: Can be found in the host section of ioBroker admin
68-
validations:
69-
required: true
70-
- type: input
71-
attributes:
72-
label: Version of adapter
73-
description: Can be found in the adapters tab of ioBroker admin
74-
validations:
75-
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: Have questions or need support?
4-
url: https://forum.iobroker.net/category/6/skripten-logik
5-
about: Please get in touch on the ioBroker Community Forum!
3+
- name: Have questions or need support?
4+
url: https://forum.iobroker.net/category/6/skripten-logik
5+
about: Please get in touch on the ioBroker Community Forum!

.github/auto-merge.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
- match:
44
# Only merge patches for production dependencies
55
dependency_type: production
6-
update_type: "semver:patch"
6+
update_type: 'semver:patch'
77
- match:
88
# Except for security fixes, here we allow minor patches
99
dependency_type: production
10-
update_type: "security:minor"
10+
update_type: 'security:minor'
1111
- match:
1212
# and development dependencies can have a minor update, too
1313
dependency_type: development
14-
update_type: "semver:minor"
15-
14+
update_type: 'semver:minor'
1615
# The syntax is based on the legacy dependabot v1 automerged_updates syntax, see:
17-
# https://dependabot.com/docs/config-file/#automerged_updates
16+
# https://dependabot.com/docs/config-file/#automerged_updates

.github/codeql/codeql-config.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
name: "Code scanning CodeQL config"
1+
name: 'Code scanning CodeQL config'
22

33
paths:
4-
- src
5-
- lib
6-
- main.js
4+
- src
5+
- lib
6+
- main.js
77

88
paths-ignore:
9-
- src/node_modules
10-
- src/public/vs
11-
- src/public/google-blockly
12-
- src/public/plugins
13-
- src/build
14-
- admin
15-
- test
16-
- detection
17-
- docs
18-
9+
- src/node_modules
10+
- src/public/vs
11+
- src/public/google-blockly
12+
- src/public/plugins
13+
- src/build
14+
- admin
15+
- test
16+
- detection
17+
- docs
1918
#query-filters:
2019
# - exclude:
21-
# id: js/html-constructed-from-input
20+
# id: js/html-constructed-from-input

.github/dependabot.yml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
version: 2
22
updates:
3-
- package-ecosystem: github-actions
4-
directory: "/"
5-
schedule:
6-
interval: monthly
7-
time: "04:00"
8-
timezone: Europe/Berlin
3+
- package-ecosystem: github-actions
4+
directory: '/'
5+
schedule:
6+
interval: monthly
7+
time: '04:00'
8+
timezone: Europe/Berlin
99

10-
- package-ecosystem: npm
11-
directory: "/"
12-
schedule:
13-
interval: monthly
14-
time: "04:00"
15-
timezone: Europe/Berlin
16-
open-pull-requests-limit: 5
17-
versioning-strategy: increase
18-
ignore:
19-
# Typescript should not be updated automatically, except patch updates
20-
# it does not follow semver and minor updates are usually breaking
21-
- dependency-name: "typescript"
22-
update-types: ["version-update:semver-minor", "version-update:semver-major"]
23-
# @types/node should always match the minimum major version we support,
24-
# so only apply patch and minor updates automatically
25-
- dependency-name: "@types/node"
26-
update-types: ["version-update:semver-major"]
10+
- package-ecosystem: npm
11+
directory: '/'
12+
schedule:
13+
interval: monthly
14+
time: '04:00'
15+
timezone: Europe/Berlin
16+
open-pull-requests-limit: 5
17+
versioning-strategy: increase
18+
ignore:
19+
# Typescript should not be updated automatically, except patch updates
20+
# it does not follow semver and minor updates are usually breaking
21+
- dependency-name: 'typescript'
22+
update-types: ['version-update:semver-minor', 'version-update:semver-major']
23+
# @types/node should always match the minimum major version we support,
24+
# so only apply patch and minor updates automatically
25+
- dependency-name: '@types/node'
26+
update-types: ['version-update:semver-major']
2727

28-
- package-ecosystem: npm
29-
directory: "/src"
30-
schedule:
31-
interval: monthly
32-
time: "04:00"
33-
timezone: Europe/Berlin
34-
open-pull-requests-limit: 5
35-
versioning-strategy: increase
28+
- package-ecosystem: npm
29+
directory: '/src'
30+
schedule:
31+
interval: monthly
32+
time: '04:00'
33+
timezone: Europe/Berlin
34+
open-pull-requests-limit: 5
35+
versioning-strategy: increase
3636

37-
- package-ecosystem: npm
38-
directory: "/src-admin"
39-
schedule:
40-
interval: monthly
41-
time: "04:00"
42-
timezone: Europe/Berlin
43-
open-pull-requests-limit: 5
44-
versioning-strategy: increase
37+
- package-ecosystem: npm
38+
directory: '/src-admin'
39+
schedule:
40+
interval: monthly
41+
time: '04:00'
42+
timezone: Europe/Berlin
43+
open-pull-requests-limit: 5
44+
versioning-strategy: increase

.github/stale.yml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ onlyLabels: []
1212

1313
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
1414
exemptLabels:
15-
- enhancement
16-
- security
17-
- 'maintainer approved'
18-
- bug
15+
- enhancement
16+
- security
17+
- 'maintainer approved'
18+
- bug
1919

2020
# Set to true to ignore issues in a project (defaults to false)
2121
exemptProjects: true
@@ -31,42 +31,41 @@ staleLabel: wontfix
3131

3232
# Comment to post when marking as stale. Set to `false` to disable
3333
markComment: >
34-
This issue has been automatically marked as stale because it has not had
35-
recent activity. It will be closed if no further activity occurs within the next 7 days.
36-
Please check if the issue is still relevant in the most current version of the adapter
37-
and tell us. Also check that all relevant details, logs and reproduction steps
38-
are included and update them if needed.
39-
Thank you for your contributions.
40-
41-
Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab.
42-
Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden.
43-
Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist,
44-
und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte
45-
enthalten sind bzw. aktualisiert diese.
46-
Vielen Dank für Eure Unterstützung.
34+
This issue has been automatically marked as stale because it has not had
35+
recent activity. It will be closed if no further activity occurs within the next 7 days.
36+
Please check if the issue is still relevant in the most current version of the adapter
37+
and tell us. Also check that all relevant details, logs and reproduction steps
38+
are included and update them if needed.
39+
Thank you for your contributions.
40+
41+
Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab.
42+
Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden.
43+
Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist,
44+
und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte
45+
enthalten sind bzw. aktualisiert diese.
46+
Vielen Dank für Eure Unterstützung.
4747
4848
# Comment to post when removing the stale label.
4949
# unmarkComment: >
5050
# Your comment here.
5151

5252
# Comment to post when closing a stale Issue or Pull Request.
5353
closeComment: >
54-
This issue has been automatically closed because of inactivity. Please open a new
55-
issue if still relevant and make sure to include all relevant details, logs and
56-
reproduction steps.
57-
Thank you for your contributions.
54+
This issue has been automatically closed because of inactivity. Please open a new
55+
issue if still relevant and make sure to include all relevant details, logs and
56+
reproduction steps.
57+
Thank you for your contributions.
5858
59-
Dieses Problem wurde aufgrund von Inaktivität automatisch geschlossen. Bitte öffnet ein
60-
neues Issue, falls dies noch relevant ist und stellt sicher das alle relevanten Details,
61-
Logs und Reproduktionsschritte enthalten sind.
62-
Vielen Dank für Eure Unterstützung.
59+
Dieses Problem wurde aufgrund von Inaktivität automatisch geschlossen. Bitte öffnet ein
60+
neues Issue, falls dies noch relevant ist und stellt sicher das alle relevanten Details,
61+
Logs und Reproduktionsschritte enthalten sind.
62+
Vielen Dank für Eure Unterstützung.
6363
6464
# Limit the number of actions per hour, from 1-30. Default is 30
6565
limitPerRun: 30
6666

6767
# Limit to only `issues` or `pulls`
6868
only: issues
69-
7069
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
7170
# pulls:
7271
# daysUntilStale: 30

0 commit comments

Comments
 (0)