Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# depandabot to update your package.json or requirements.txt - remove useless sections
# check all configuration options :
# https://docs.github.com/fr/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
# also works with private repository
# https://docs.github.com/fr/code-security/dependabot/working-with-dependabot/configuring-access-to-private-registries-for-dependabot
version: 2
updates:
# Maintain python pip dependencies in your 'requirement.txt' file
- package-ecosystem: "pip"
directory: "/resources"
target-branch: "beta"
schedule:
interval: weekly

# Maintain NodeJS dependencies in 'package.json'
- package-ecosystem: npm
directory: "/resources/"
schedule:
interval: weekly
open-pull-requests-limit: 10
versioning-strategy: increase
target-branch: "beta"

# Maintain any github-actions workflow
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
target-branch: "beta"
50 changes: 50 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!-- Provide a general summary of your changes in the title above. -->

<!--
Please target the `beta` branch when submitting your pull request, unless your change **only** applies to Jeedom 4.x.
-->

## Description
<!--
What do you want to achieve with this PR? Why did you write this code? What problem does this PR solve?
Describe your changes in detail and, if relevant, explain which choices you have made and why.
-->


### Suggested changelog entry
<!-- Please provide a short description of the change for the changelog. -->


### Related issues/external references

Fixes #


## Types of changes
<!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [ ] Bug fix _(non-breaking change which fixes)_
- [ ] New feature _(non-breaking change which adds functionality)_
- [ ] Breaking change _(fix or feature that would cause existing functionality to change)_
- [ ] This change is only breaking for integrators, not for external standards or end-users.
- [ ] Documentation improvement


## PR checklist
<!-- Go over all the following points, and put an `x` in all the boxes that apply. -->
- [ ] I have checked there is no other PR open for the same change.
- [ ] I have read the [Contribution Guidelines](https://doc.jeedom.com/fr_FR/contribute/).
- [ ] I grant the project the right to include and distribute the code under the GNU.
- [ ] I have added tests to cover my changes.
- [ ] I have verified that the code complies with the projects coding standards.
- [ ] [Required for new sniffs] I have added MD documentation for the sniff.

<!--
============================================================================================
Please make sure your pull request passes all continuous integration checks!

PRs which are failing their CI checks will likely be ignored by the maintainers.

PRs using atomic, descriptive commits are hugely appreciated as it will make
reviewing your changes easier for the maintainers.
============================================================================================
-->
14 changes: 14 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on:
# Create branch > prettier / this workflows create commit on branch prettier.
push:
branches:
- prettier
pull_request:
branches:
- prettier

name : 'Prettier Plugin Jeedom'

jobs:
prettier:
uses: jeedom/workflows/.github/workflows/prettier.yml@main
15 changes: 15 additions & 0 deletions .github/workflows/work.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
# Workflows check plugin Jeedom
push:
branches:
- beta
pull_request:
branches:
- beta
- master

name : 'Full Workflows Plugin Jeedom'

jobs:
plugin:
uses: jeedom/workflows/.github/workflows/plugin.yml@main
12 changes: 2 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
{
"name": "jeedom/plugin-script",
"description": "Plugin script for Jeedom",
"require": {
"electrolinux/phpquery": "0.9.*"
},
"authors": [
{
"name": "Loic",
"email": "loic@jeedom.com"
}
]
}
}
}
58 changes: 0 additions & 58 deletions composer.lock

This file was deleted.

10 changes: 8 additions & 2 deletions core/class/script.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

/* * ***************************Includes********************************* */
require_once dirname(__FILE__) . '/../../../../core/php/core.inc.php';
require_once dirname(__FILE__) . '/../../vendor/autoload.php';
if(file_exists(dirname(__FILE__) . '/../../vendor/autoload.php')){
require_once dirname(__FILE__) . '/../../vendor/autoload.php';
}

class script extends eqLogic {

Expand Down Expand Up @@ -120,7 +122,11 @@ public function postSave() {
if ($this->getLogicalId() == 'refresh' || $this->getEqlogic()->getIsEnable() != 1) {
return;
}
$this->refreshInfo();
try {
$this->refreshInfo();
} catch (\Throwable $th) {
log::add('script','error',$th->getMessage());
}
}

private function replaceTags($request) {
Expand Down
2 changes: 1 addition & 1 deletion desktop/php/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
foreach ($eqLogics as $eqLogic) {
$opacity = ($eqLogic->getIsEnable()) ? '' : 'disableCard';
echo '<div class="eqLogicDisplayCard cursor ' . $opacity . '" data-eqLogic_id="' . $eqLogic->getId() . '">';
echo '<img src="' . $plugin->getPathImgIcon() . '">';
echo '<img src="' . $eqLogic->getImage() . '"/>';
echo '<br>';
echo '<span class="name">' . $eqLogic->getHumanName(true, true) . '</span>';
echo '<span class="hiddenAsCard displayTableRight hidden">';
Expand Down
2 changes: 2 additions & 0 deletions docs/de_DE/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
>
>Zur Erinnerung: Wenn keine Informationen zum Update vorhanden sind, bedeutet dies, dass es sich nur um die Aktualisierung von Dokumentation, Übersetzung oder Text handelt

- Unterstützung für benutzerdefinierte Gerätebilder (Jeedom 4.5)

# 01.07.2024

- Bug-Fix
Expand Down
2 changes: 2 additions & 0 deletions docs/en_US/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
>
>As a reminder if there is no information on the update, it means that it only concerns the updating of documentation, translation or text

- Support for custom equipment images (Jeedom 4.5)

# 01/07/2024

- Bug fix
Expand Down
2 changes: 2 additions & 0 deletions docs/es_ES/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
>
>Como recordatorio si no hay información sobre la actualización, significa que solo se refiere a la actualización de documentación, traducción o texto

- Soporte para imágenes de equipos personalizados (Jeedom 4.5)

# 01/07/2024

- Arreglo del fallo
Expand Down
5 changes: 5 additions & 0 deletions docs/fr_FR/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
>
>Pour rappel s'il n'y a pas d'information sur la mise à jour, c'est que celle-ci concerne uniquement de la mise à jour de documentation, de traduction ou de texte

# 26/11/2025

- Support des images d'équipement personnalisées (Jeedom 4.5)

# 01/07/2024

- Correction de bug
Expand Down Expand Up @@ -75,3 +79,4 @@
# 13/03/2018

- Correction de bugs sur le refresh automatique des commandes

1 change: 1 addition & 0 deletions docs/i18n/de_DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"changelog.md": {
"Changelog Script": "Changelog-Skript",
"Pour rappel s'il n'y a pas d'information sur la mise à jour, c'est que celle-ci concerne uniquement de la mise à jour de documentation, de traduction ou de texte": "Zur Erinnerung: Wenn keine Informationen zum Update vorhanden sind, bedeutet dies, dass es sich nur um die Aktualisierung von Dokumentation, Übersetzung oder Text handelt",
"Support des images d'équipement personnalisées (Jeedom 4.5": "Unterstützung für benutzerdefinierte Gerätebilder (Jeedom 4.5",
"01\/07\/2024": "01.07.2024",
"Correction de bug": "Bug-Fix",
"Isolation du système de mise à jour des équipements sur cron pour le fiabiliser": "Isolierung des Geräteaktualisierungssystems auf Cron, um es zuverlässiger zu machen",
Expand Down
1 change: 1 addition & 0 deletions docs/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"changelog.md": {
"Changelog Script": "Changelog script",
"Pour rappel s'il n'y a pas d'information sur la mise à jour, c'est que celle-ci concerne uniquement de la mise à jour de documentation, de traduction ou de texte": "As a reminder if there is no information on the update, it means that it only concerns the updating of documentation, translation or text",
"Support des images d'équipement personnalisées (Jeedom 4.5": "Support for custom equipment images (Jeedom 4.5",
"01\/07\/2024": "01\/07\/2024",
"Correction de bug": "Bug fix",
"Isolation du système de mise à jour des équipements sur cron pour le fiabiliser": "Isolation of the equipment update system on cron to make it more reliable",
Expand Down
1 change: 1 addition & 0 deletions docs/i18n/es_ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"changelog.md": {
"Changelog Script": "Script de registro de cambios",
"Pour rappel s'il n'y a pas d'information sur la mise à jour, c'est que celle-ci concerne uniquement de la mise à jour de documentation, de traduction ou de texte": "Como recordatorio si no hay información sobre la actualización, significa que solo se refiere a la actualización de documentación, traducción o texto",
"Support des images d'équipement personnalisées (Jeedom 4.5": "Soporte para imágenes de equipos personalizados (Jeedom 4.5",
"01\/07\/2024": "01\/07\/2024",
"Correction de bug": "Arreglo del fallo",
"Isolation du système de mise à jour des équipements sur cron pour le fiabiliser": "Aislamiento del sistema de actualización de equipos en cron para hacerlo más confiable",
Expand Down
1 change: 1 addition & 0 deletions docs/i18n/fr_FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"Changelog Script": "Changelog Script",
"IMPORTANT": "IMPORTANT",
"Pour rappel s'il n'y a pas d'information sur la mise à jour, c'est que celle-ci concerne uniquement de la mise à jour de documentation, de traduction ou de texte": "Pour rappel s'il n'y a pas d'information sur la mise à jour, c'est que celle-ci concerne uniquement de la mise à jour de documentation, de traduction ou de texte",
"Support des images d'équipement personnalisées (Jeedom 4.5": "Support des images d'équipement personnalisées (Jeedom 4.5",
"01\/07\/2024": "01\/07\/2024",
"Correction de bug": "Correction de bug",
"Isolation du système de mise à jour des équipements sur cron pour le fiabiliser": "Isolation du système de mise à jour des équipements sur cron pour le fiabiliser",
Expand Down
1 change: 1 addition & 0 deletions docs/i18n/pt_PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"changelog.md": {
"Changelog Script": "Script do Changelog",
"Pour rappel s'il n'y a pas d'information sur la mise à jour, c'est que celle-ci concerne uniquement de la mise à jour de documentation, de traduction ou de texte": "Como lembrete, se não houver informações sobre a atualização, isso significa que se trata apenas da atualização da documentação, tradução ou texto",
"Support des images d'équipement personnalisées (Jeedom 4.5": "Suporte para imagens de equipamentos personalizados (Jeedom 4.5",
"01\/07\/2024": "01\/07\/2024",
"Correction de bug": "Correção de bug",
"Isolation du système de mise à jour des équipements sur cron pour le fiabiliser": "Isolamento do sistema de atualização de equipamentos no cron para torná-lo mais confiável",
Expand Down
2 changes: 2 additions & 0 deletions docs/pt_PT/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
>
>Como lembrete, se não houver informações sobre a atualização, isso significa que se trata apenas da atualização da documentação, tradução ou texto

- Suporte para imagens de equipamentos personalizados (Jeedom 4.5)

# 01/07/2024

- Correção de bug
Expand Down
3 changes: 2 additions & 1 deletion plugin_info/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"name": "Script",
"licence": "AGPL",
"author": "Jeedom SAS",
"require": "4.3",
"require": "4.4",
"hasDependency": true,
"category": "programming",
"changelog": "https:\/\/doc.jeedom.com\/#language#\/plugins\/programming\/script\/changelog",
"documentation": "https:\/\/doc.jeedom.com\/#language#\/plugins\/programming\/script\/",
Expand Down
5 changes: 5 additions & 0 deletions plugin_info/packages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"composer": {
"plugins/script" : {}
}
}
Binary file modified plugin_info/script_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 0 additions & 7 deletions vendor/autoload.php

This file was deleted.

Loading