Skip to content
Draft
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
9 changes: 2 additions & 7 deletions de_DE/plugins/jeelocker/beta/info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "jeelocker",
"name": "jeelocker",
"name": "Jeelocker",
"description": {
"fr_FR": "Jeelocker est un plugin dedié à la gestion d'acces de casier",
"en_US": "Jeelocker is a plugin dedicated to locker access management",
Expand Down Expand Up @@ -29,12 +29,7 @@
"en_US",
"es_ES",
"de_DE",
"ru_RU",
"id_ID",
"it_IT",
"ja_JP",
"pt_PT",
"tr"
"pt_PT"
],
"compatibility": [
"miniplus",
Expand Down
4 changes: 2 additions & 2 deletions de_DE/plugins/jeelocker/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

>**WICHTIG**
>Nur offizielle Plugins haben ihre Dokumentation hier. Sie können die Dokumentation der anderen Plugins direkt aus dem Jeedom Market einsehen. Klicken Sie auf dem betreffenden Plugin auf Dokumentation.
>Du kannst sehen [Hier](https://market.jeedom.com/index.php?v=d&p=market&type=plugin&categorie=jeelocker) alle offiziellen Plugins in dieser Kategorie
>Du kannst sehen [Hier](https://market.jeedom.com/index.php?v=d&p=market&type=plugin&categorie=Jeelocker) alle offiziellen Plugins in dieser Kategorie


| | | | |
|--- | --- | --- | ---|
|<img src="./beta/._icon.png" class="pluginLogo" width="100" />|jeelocker|ACHTUNG Plugin nur in Beta verfügbar<br/>Jeelocker ist ein Plugin für die Schließfachzugriffsverwaltung|[Beta-Dokumentation](./beta/index.md)<br/>[Markt](https://market.jeedom.com/index.php?v=d&p=market_display&id=4238)<br/>[Changelog-Beta](./beta/changelog.md)|
|<img src="./beta/._icon.png" class="pluginLogo" width="100" />|Jeelocker|ACHTUNG Plugin nur in Beta verfügbar<br/>Jeelocker ist ein Plugin für die Schließfachzugriffsverwaltung|[Beta-Dokumentation](./beta/index.md)<br/>[Markt](https://market.jeedom.com/index.php?v=d&p=market_display&id=4237)<br/>[Changelog-Beta](./beta/changelog.md)|
2 changes: 0 additions & 2 deletions de_DE/plugins/security/Jeelocker/beta/changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Changelog Jeelocker

# Changelog Jeelocker

# Changelog-Plugin jeelocker

>**WICHTIG**
Expand Down
2 changes: 0 additions & 2 deletions en_US/plugins/jeelocker/beta/changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Changelog Jeelocker

# Changelog Jeelocker

# Changelog plugin jeelocker

>**IMPORTANT**
Expand Down
9 changes: 2 additions & 7 deletions en_US/plugins/jeelocker/beta/info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "jeelocker",
"name": "jeelocker",
"name": "Jeelocker",
"description": {
"fr_FR": "Jeelocker est un plugin dedié à la gestion d'acces de casier",
"en_US": "Jeelocker is a plugin dedicated to locker access management",
Expand Down Expand Up @@ -29,12 +29,7 @@
"en_US",
"es_ES",
"de_DE",
"ru_RU",
"id_ID",
"it_IT",
"ja_JP",
"pt_PT",
"tr"
"pt_PT"
],
"compatibility": [
"miniplus",
Expand Down
2 changes: 1 addition & 1 deletion en_US/plugins/jeelocker/beta/market_id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4238
4237
4 changes: 2 additions & 2 deletions en_US/plugins/jeelocker/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

>**IMPORTANT**
>Only official plugins have their documentation here. You can consult the documentation of the other plugins directly from the Jeedom Market. Once on the plugin in question, click on documentation.
>You can see [here](https://market.jeedom.com/index.php?v=d&p=market&type=plugin&categorie=jeelocker) all official plugins in this category
>You can see [here](https://market.jeedom.com/index.php?v=d&p=market&type=plugin&categorie=Jeelocker) all official plugins in this category


| | | | |
|--- | --- | --- | ---|
|<img src="./beta/._icon.png" class="pluginLogo" width="100" />|jeelocker|ATTENTION plugin available only in beta<br/>Jeelocker is a plugin dedicated to locker access management|[Beta documentation](./beta/index.md)<br/>[Market](https://market.jeedom.com/index.php?v=d&p=market_display&id=4238)<br/>[Changelog beta](./beta/changelog.md)|
|<img src="./beta/._icon.png" class="pluginLogo" width="100" />|Jeelocker|ATTENTION plugin available only in beta<br/>Jeelocker is a plugin dedicated to locker access management|[Beta documentation](./beta/index.md)<br/>[Market](https://market.jeedom.com/index.php?v=d&p=market_display&id=4237)<br/>[Changelog beta](./beta/changelog.md)|
2 changes: 0 additions & 2 deletions en_US/plugins/security/Jeelocker/beta/changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Changelog Jeelocker

# Changelog Jeelocker

# Changelog plugin jeelocker

>**IMPORTANT**
Expand Down
2 changes: 1 addition & 1 deletion es_ES/plugins/Jeelocker/beta/market_id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4237
4238
4 changes: 2 additions & 2 deletions es_ES/plugins/Jeelocker/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

>**IMPORTANTE**
>Solo los complementos oficiales tienen su documentación aquí. Puede consultar la documentación de los otros complementos directamente desde Jeedom Market. Una vez en el complemento en cuestión, haga clic en documentación.
>Podéis ver [aquí](https://market.jeedom.com/index.php?v=d&p=market&type=plugin&categorie=Jeelocker) todos los complementos oficiales en esta categoría
>Podéis ver [aquí](https://market.jeedom.com/index.php?v=d&p=market&type=plugin&categorie=jeelocker) todos los complementos oficiales en esta categoría


| | | | |
|--- | --- | --- | ---|
|<img src="./beta/._icon.png" class="pluginLogo" width="100" />|Jeelocker|El complemento ATENCIÓN está disponible solo en versión beta<br/>Jeelocker es un complemento dedicado a la gestión del acceso a los casilleros|[Documentación beta](./beta/index.md)<br/>[Mercado](https://market.jeedom.com/index.php?v=d&p=market_display&id=4237)<br/>[Lista de cambios beta](./beta/changelog.md)|
|<img src="./beta/._icon.png" class="pluginLogo" width="100" />|jeelocker|El complemento ATENCIÓN está disponible solo en versión beta<br/>Jeelocker es un complemento dedicado a la gestión del acceso a los casilleros|[Documentación beta](./beta/index.md)<br/>[Mercado](https://market.jeedom.com/index.php?v=d&p=market_display&id=4238)<br/>[Lista de cambios beta](./beta/changelog.md)|
2 changes: 0 additions & 2 deletions es_ES/plugins/jeelocker/beta/changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Registro de cambios Jeelocker

# Registro de cambios Jeelocker

# Complemento de registro de cambios jeelocker

>**IMPORTANTE**
Expand Down
9 changes: 2 additions & 7 deletions es_ES/plugins/jeelocker/beta/info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "jeelocker",
"name": "jeelocker",
"name": "Jeelocker",
"description": {
"fr_FR": "Jeelocker est un plugin dedié à la gestion d'acces de casier",
"en_US": "Jeelocker is a plugin dedicated to locker access management",
Expand Down Expand Up @@ -29,12 +29,7 @@
"en_US",
"es_ES",
"de_DE",
"ru_RU",
"id_ID",
"it_IT",
"ja_JP",
"pt_PT",
"tr"
"pt_PT"
],
"compatibility": [
"miniplus",
Expand Down
2 changes: 2 additions & 0 deletions es_ES/plugins/security/jeelocker/beta/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Registro de cambios Jeelocker

# Registro de cambios Jeelocker

# Complemento de registro de cambios jeelocker

>**IMPORTANTE**
Expand Down
22 changes: 17 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script>
(function() {
function getCookie(cname) {
var name = cname + "=";
var decodedCookie = decodeURIComponent(document.cookie);
Expand All @@ -12,12 +13,23 @@
return c.substring(name.length, c.length);
}
}
return "";
return null;
}

if(getCookie('lang')){
window.location.href = "/"+getCookie('lang')+"/";
}else{
window.location.href = "/fr_FR/";
const lang = getCookie('lang') || 'fr_FR';
const knownLangs = ['fr_FR', 'en_US', 'es_ES', 'de_DE']; // à adapter selon tes langues
const pathParts = window.location.pathname.split('/').filter(Boolean);

// Si l'un des segments du chemin correspond déjà à une langue connue, on ne redirige pas
if (pathParts.some(part => knownLangs.includes(part))) return;

// Construire le nouveau chemin en insérant la langue à la fin du chemin existant
const newPath = '/' + pathParts.join('/') + '/' + lang + '/';

// Rediriger seulement si ce n'est pas déjà la bonne URL
if (!window.location.pathname.endsWith('/' + lang + '/')) {
window.location.href = newPath;
}
})();

</script>
2 changes: 1 addition & 1 deletion js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ var docMenu = [
{link:"/#LANG#/contribute/",fr_FR:"Contribuer",en_US:"Contribute",es_ES:"Contribuir",de_DE:"Bijdragen",pt_PT:"Contribuir"},
{link:"/#LANG#/dev/",fr_FR:"Plugins",en_US:"Plugins",es_ES:"Complementos",de_DE:"Plugins",pt_PT:"Plugins"},
{link:"/#LANG#/core/#VERSION#/api_http",fr_FR:"Api HTTP",en_US:"Api HTTP",es_ES:"Api HTTP",de_DE:"Api HTTP",pt_PT:"Api HTTP"},
{link:"/#LANG#/core/#VERSION#/jsonrpc_api",fr_FR:"API JsonRPC",en_US:"API JsonRPC",es_ES:"API JsonRPC",de_DE:"API JsonRPC",pt_PT:"API JsonRPC"},
{link:"/swagger-ui",fr_FR:"API JsonRPC",en_US:"API JsonRPC",es_ES:"API JsonRPC",de_DE:"API JsonRPC",pt_PT:"API JsonRPC"},
{link:"/dev/phpdoc/#VERSION#",fr_FR:"PhpDoc",en_US:"PhpDoc",es_ES:"PhpDoc",de_DE:"PhpDoc",pt_PT:"PhpDoc"},
]
},{
Expand Down
2 changes: 2 additions & 0 deletions pt_PT/plugins/Jeelocker/beta/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog Jeelocker

# Changelog Jeelocker

# Plugin de log de mudanças jeelocker

>**IMPORTANTE**
Expand Down
9 changes: 7 additions & 2 deletions pt_PT/plugins/Jeelocker/beta/info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "jeelocker",
"name": "Jeelocker",
"name": "jeelocker",
"description": {
"fr_FR": "Jeelocker est un plugin dedié à la gestion d'acces de casier",
"en_US": "Jeelocker is a plugin dedicated to locker access management",
Expand Down Expand Up @@ -29,7 +29,12 @@
"en_US",
"es_ES",
"de_DE",
"pt_PT"
"ru_RU",
"id_ID",
"it_IT",
"ja_JP",
"pt_PT",
"tr"
],
"compatibility": [
"miniplus",
Expand Down
2 changes: 1 addition & 1 deletion pt_PT/plugins/Jeelocker/beta/market_id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4237
4238
2 changes: 0 additions & 2 deletions pt_PT/plugins/security/Jeelocker/beta/changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Changelog Jeelocker

# Changelog Jeelocker

# Plugin de log de mudanças jeelocker

>**IMPORTANTE**
Expand Down
Binary file added swagger-ui/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added swagger-ui/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions swagger-ui/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
html {
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}

*,
*:before,
*:after {
box-sizing: inherit;
}

body {
margin: 0;
background: #fafafa;
}
19 changes: 19 additions & 0 deletions swagger-ui/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" />
<link rel="stylesheet" type="text/css" href="index.css" />
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
</head>

<body>
<div id="swagger-ui"></div>
<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script src="./swagger-initializer.js" charset="UTF-8"> </script>
</body>
</html>
79 changes: 79 additions & 0 deletions swagger-ui/oauth2-redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<!doctype html>
<html lang="en-US">
<head>
<title>Swagger UI: OAuth2 Redirect</title>
</head>
<body>
<script>
'use strict';
function run () {
var oauth2 = window.opener.swaggerUIRedirectOauth2;
var sentState = oauth2.state;
var redirectUrl = oauth2.redirectUrl;
var isValid, qp, arr;

if (/code|token|error/.test(window.location.hash)) {
qp = window.location.hash.substring(1).replace('?', '&');
} else {
qp = location.search.substring(1);
}

arr = qp.split("&");
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';});
qp = qp ? JSON.parse('{' + arr.join() + '}',
function (key, value) {
return key === "" ? value : decodeURIComponent(value);
}
) : {};

isValid = qp.state === sentState;

if ((
oauth2.auth.schema.get("flow") === "accessCode" ||
oauth2.auth.schema.get("flow") === "authorizationCode" ||
oauth2.auth.schema.get("flow") === "authorization_code"
) && !oauth2.auth.code) {
if (!isValid) {
oauth2.errCb({
authId: oauth2.auth.name,
source: "auth",
level: "warning",
message: "Authorization may be unsafe, passed state was changed in server. The passed state wasn't returned from auth server."
});
}

if (qp.code) {
delete oauth2.state;
oauth2.auth.code = qp.code;
oauth2.callback({auth: oauth2.auth, redirectUrl: redirectUrl});
} else {
let oauthErrorMsg;
if (qp.error) {
oauthErrorMsg = "["+qp.error+"]: " +
(qp.error_description ? qp.error_description+ ". " : "no accessCode received from the server. ") +
(qp.error_uri ? "More info: "+qp.error_uri : "");
}

oauth2.errCb({
authId: oauth2.auth.name,
source: "auth",
level: "error",
message: oauthErrorMsg || "[Authorization failed]: no accessCode received from the server."
});
}
} else {
oauth2.callback({auth: oauth2.auth, token: qp, isValid: isValid, redirectUrl: redirectUrl});
}
window.close();
}

if (document.readyState !== 'loading') {
run();
} else {
document.addEventListener('DOMContentLoaded', function () {
run();
});
}
</script>
</body>
</html>
Loading