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
18 changes: 18 additions & 0 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: translate

on:
workflow_dispatch:
push:
branches:
- beta

jobs:
auto-translate:
runs-on: ubuntu-latest
steps:
- uses: jeedom/jeetranslate@main
with:
deepl_api_key: ${{ secrets.DEEPL_API_KEY }}
include_empty_translation: false
target_languages: "en_US,es_ES,de_DE,it_IT,pt_PT"
use_core_translations: true
6 changes: 3 additions & 3 deletions core/ajax/mobile.ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
}
ajax::success($return);
}

if (init('action') == 'getNotificationsV2') {
$return = '';
$iq = init('iq');
Expand All @@ -71,8 +71,8 @@
}

if (init('action') == 'removeNotificationV2') {
ajax::success(mobile::removeNotificationV2(init('iq', ''), init('id', '')));
}
ajax::success(mobile::removeNotificationV2(init('iq', ''), init('id', '')));
}

// APP V1

Expand Down
204 changes: 104 additions & 100 deletions core/api/mobile.api.php

Large diffs are not rendered by default.

305 changes: 188 additions & 117 deletions core/class/mobile.class.php

Large diffs are not rendered by default.

21 changes: 11 additions & 10 deletions desktop/php/mobile.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@
}
}
$isApi = config::byKey('api::mobile::mode');
if($isApi == 'whiteip' || $isApi == 'disable'){
if ($isApi == 'whiteip' || $isApi == 'disable') {
message::add('mobile', 'L\'API mobile est désactivée ou en mode whitelist IP');
}
$isCoreApi = config::byKey('api::core::mode');
if($isCoreApi == 'whiteip' || $isCoreApi == 'disable'){
if ($isCoreApi == 'whiteip' || $isCoreApi == 'disable') {
message::add('mobile', 'L\'API core est désactivée ou en mode whitelist IP');
}
?>

<div class="row row-overflow">

<!-- APP V2 -->
<div class="col-xs-12 eqLogicThumbnailDisplay">
<legend><i class="fas fa-mobile-alt"></i> {{App V2}}</legend>
Expand Down Expand Up @@ -94,7 +93,7 @@
echo '<div class="alert alert-info text-center" style="width: 100%; background-color: var(--al-info-color) !important;">';
echo '{{Pour ajouter un téléphone, il y a 2 méthodes possible :}} <br> {{Sur le premier écran de l\'application, il vous est proposé de connecter votre compte market, et ainsi de retrouver toutes les boxs associées à ce compte, ou bien simplement ajouter une box.}}';
echo '</div>';
}
}
?>
</div>
</div>
Expand Down Expand Up @@ -125,6 +124,9 @@
</div>
</div>
<legend><i class="fas fa-mobile"></i> {{Mes Téléphones Mobiles}}</legend>
<div class="alert alert-warning" style="background-color: var(--al-warning-color) !important; font-size:1.2em;font-weight:bold;">
{{Attention, l'APP V1 ne sera plus mise à jour}}
</div>
<div class="eqLogicThumbnailContainer">
<?php
if (count($eqLogicsV1) >= 0) { // AppV1
Expand Down Expand Up @@ -237,13 +239,13 @@
</div>
</div>
<div class="form-group paramV2">
<label class="col-sm-4 control-label">{{Verrouiller le menu custom}} <sup><i class="fa fa-question-circle tooltips" title="Si activé, l'application verrouillera la modification du menu custom."></i></sup></label>
<label class="col-sm-4 control-label">{{Verrouiller le menu custom}} <sup><i class="fa fa-question-circle tooltips" title="Si activé, l'application verrouillera la modification du menu custom."></i></sup></label>
<div class="col-sm-6">
<input type="checkbox" class="eqLogicAttr form-control" data-l1key="configuration" data-l2key="hideMenuCustom">
</div>
</div>
<div class="form-group paramV2">
<label class="col-sm-4 control-label">{{NFC : Envoi direct}} <sup><i class="fa fa-question-circle tooltips" title="Envoyer directement les informations du Tag au plugin Mobile"></i></sup></label>
<label class="col-sm-4 control-label">{{NFC : Envoi direct}} <sup><i class="fa fa-question-circle tooltips" title="Envoyer directement les informations du Tag au plugin Mobile"></i></sup></label>
<div class="col-sm-2">
<select class="eqLogicAttr form-control" data-l1key="configuration" data-l2key="sendNFCDirectly">
<option value="0">{{Non}}</option>
Expand Down Expand Up @@ -277,7 +279,7 @@
</div>
</div>
<div class="paramV1">
<legend><i class="fas fa-mobile-alt"></i> {{Notifications}} <sup>(V1)</sup></legend>
<legend><i class="fas fa-mobile-alt"></i> {{Notifications}} <sup>(V1)</sup></legend>
<div class="form-group paramV1">
<label class="col-sm-4 control-label">ARN Mobile</label>
<div class="col-sm-6">
Expand Down Expand Up @@ -307,7 +309,7 @@
<span class="label label-primary affect_user"></span>
</div>
</div>
<div class="form-group" id="formGroupIq">
<div class="form-group" id="formGroupIq">
<label class="col-sm-3 control-label">{{Iq Mobile}}</label>
<div class="col-sm-8">
<span class="eqLogicAttr label label-primary" data-l1key="logicalId"></span>
Expand Down Expand Up @@ -343,7 +345,6 @@
</fieldset>
</form>
</div>

<div role="tabpanel" class="tab-pane" id="commandtab">
<br><br>
<div class="table-responsive">
Expand Down Expand Up @@ -373,4 +374,4 @@
</div>
<?php include_file('desktop', 'notification', 'css', 'mobile'); ?>
<?php include_file('desktop', 'mobile', 'js', 'mobile'); ?>
<?php include_file('core', 'plugin.template', 'js'); ?>
<?php include_file('core', 'plugin.template', 'js'); ?>
Loading