Skip to content

Commit 8f19825

Browse files
authored
Merge pull request #95 from jeedom/beta
toStable
2 parents a90db05 + c6fb242 commit 8f19825

File tree

123 files changed

+145
-28241
lines changed

Some content is hidden

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

123 files changed

+145
-28241
lines changed

.github/dependabot.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# depandabot to update your package.json or requirements.txt - remove useless sections
2+
# check all configuration options :
3+
# https://docs.github.com/fr/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
4+
# also works with private repository
5+
# https://docs.github.com/fr/code-security/dependabot/working-with-dependabot/configuring-access-to-private-registries-for-dependabot
6+
version: 2
7+
updates:
8+
# Maintain python pip dependencies in your 'requirement.txt' file
9+
- package-ecosystem: "pip"
10+
directory: "/resources"
11+
target-branch: "beta"
12+
schedule:
13+
interval: weekly
14+
15+
# Maintain NodeJS dependencies in 'package.json'
16+
- package-ecosystem: npm
17+
directory: "/resources/"
18+
schedule:
19+
interval: weekly
20+
open-pull-requests-limit: 10
21+
versioning-strategy: increase
22+
target-branch: "beta"
23+
24+
# Maintain any github-actions workflow
25+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
26+
- package-ecosystem: "github-actions"
27+
directory: "/"
28+
schedule:
29+
interval: "monthly"
30+
target-branch: "beta"

.github/pull_request_template.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!-- Provide a general summary of your changes in the title above. -->
2+
3+
<!--
4+
Please target the `beta` branch when submitting your pull request, unless your change **only** applies to Jeedom 4.x.
5+
-->
6+
7+
## Description
8+
<!--
9+
What do you want to achieve with this PR? Why did you write this code? What problem does this PR solve?
10+
Describe your changes in detail and, if relevant, explain which choices you have made and why.
11+
-->
12+
13+
14+
### Suggested changelog entry
15+
<!-- Please provide a short description of the change for the changelog. -->
16+
17+
18+
### Related issues/external references
19+
20+
Fixes #
21+
22+
23+
## Types of changes
24+
<!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
25+
- [ ] Bug fix _(non-breaking change which fixes)_
26+
- [ ] New feature _(non-breaking change which adds functionality)_
27+
- [ ] Breaking change _(fix or feature that would cause existing functionality to change)_
28+
- [ ] This change is only breaking for integrators, not for external standards or end-users.
29+
- [ ] Documentation improvement
30+
31+
32+
## PR checklist
33+
<!-- Go over all the following points, and put an `x` in all the boxes that apply. -->
34+
- [ ] I have checked there is no other PR open for the same change.
35+
- [ ] I have read the [Contribution Guidelines](https://doc.jeedom.com/fr_FR/contribute/).
36+
- [ ] I grant the project the right to include and distribute the code under the GNU.
37+
- [ ] I have added tests to cover my changes.
38+
- [ ] I have verified that the code complies with the projects coding standards.
39+
- [ ] [Required for new sniffs] I have added MD documentation for the sniff.
40+
41+
<!--
42+
============================================================================================
43+
Please make sure your pull request passes all continuous integration checks!
44+
45+
PRs which are failing their CI checks will likely be ignored by the maintainers.
46+
47+
PRs using atomic, descriptive commits are hugely appreciated as it will make
48+
reviewing your changes easier for the maintainers.
49+
============================================================================================
50+
-->

.github/workflows/prettier.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on:
2+
# Create branch > prettier / this workflows create commit on branch prettier.
3+
push:
4+
branches:
5+
- prettier
6+
pull_request:
7+
branches:
8+
- prettier
9+
10+
name : 'Prettier Plugin Jeedom'
11+
12+
jobs:
13+
prettier:
14+
uses: jeedom/workflows/.github/workflows/prettier.yml@main

.github/workflows/work.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
on:
2+
# Workflows check plugin Jeedom
3+
push:
4+
branches:
5+
- beta
6+
pull_request:
7+
branches:
8+
- beta
9+
- master
10+
11+
name : 'Full Workflows Plugin Jeedom'
12+
13+
jobs:
14+
plugin:
15+
uses: jeedom/workflows/.github/workflows/plugin.yml@main

composer.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
{
2-
"name": "jeedom/plugin-script",
3-
"description": "Plugin script for Jeedom",
42
"require": {
53
"electrolinux/phpquery": "0.9.*"
6-
},
7-
"authors": [
8-
{
9-
"name": "Loic",
10-
"email": "loic@jeedom.com"
11-
}
12-
]
13-
}
4+
}
5+
}

composer.lock

Lines changed: 0 additions & 58 deletions
This file was deleted.

core/class/script.class.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818

1919
/* * ***************************Includes********************************* */
2020
require_once dirname(__FILE__) . '/../../../../core/php/core.inc.php';
21-
require_once dirname(__FILE__) . '/../../vendor/autoload.php';
21+
if(file_exists(dirname(__FILE__) . '/../../vendor/autoload.php')){
22+
require_once dirname(__FILE__) . '/../../vendor/autoload.php';
23+
}
2224

2325
class script extends eqLogic {
2426

@@ -120,7 +122,11 @@ public function postSave() {
120122
if ($this->getLogicalId() == 'refresh' || $this->getEqlogic()->getIsEnable() != 1) {
121123
return;
122124
}
123-
$this->refreshInfo();
125+
try {
126+
$this->refreshInfo();
127+
} catch (\Throwable $th) {
128+
log::add('script','error',$th->getMessage());
129+
}
124130
}
125131

126132
private function replaceTags($request) {

desktop/php/script.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
foreach ($eqLogics as $eqLogic) {
4949
$opacity = ($eqLogic->getIsEnable()) ? '' : 'disableCard';
5050
echo '<div class="eqLogicDisplayCard cursor ' . $opacity . '" data-eqLogic_id="' . $eqLogic->getId() . '">';
51-
echo '<img src="' . $plugin->getPathImgIcon() . '">';
51+
echo '<img src="' . $eqLogic->getImage() . '"/>';
5252
echo '<br>';
5353
echo '<span class="name">' . $eqLogic->getHumanName(true, true) . '</span>';
5454
echo '<span class="hiddenAsCard displayTableRight hidden">';

docs/de_DE/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
>
55
>Zur Erinnerung: Wenn keine Informationen zum Update vorhanden sind, bedeutet dies, dass es sich nur um die Aktualisierung von Dokumentation, Übersetzung oder Text handelt
66
7+
- Unterstützung für benutzerdefinierte Gerätebilder (Jeedom 4.5)
8+
79
# 01.07.2024
810

911
- Bug-Fix

docs/en_US/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
>
55
>As a reminder if there is no information on the update, it means that it only concerns the updating of documentation, translation or text
66
7+
- Support for custom equipment images (Jeedom 4.5)
8+
79
# 01/07/2024
810

911
- Bug fix

0 commit comments

Comments
 (0)