Comparer les révisions
| Auteur | SHA1 | Date | |
|---|---|---|---|
|
|
d4be91584b | ||
|
|
feea718cab | ||
|
|
f87031975a | ||
|
|
cc0f7cf685 |
No files matched your search
@@ -509,6 +509,65 @@
|
|||||||
revealBar(event);
|
revealBar(event);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Sur écran tactile, agrandir la zone active de l'encoche :
|
||||||
|
// le doigt ne doit jamais déclencher un lien situé juste dessous.
|
||||||
|
const isTouchLayout = window.matchMedia(
|
||||||
|
"(max-width: 600px), (pointer: coarse)"
|
||||||
|
).matches;
|
||||||
|
|
||||||
|
if (isTouchLayout) {
|
||||||
|
tab.style.width = "64px";
|
||||||
|
tab.style.height = "24px";
|
||||||
|
tab.style.bottom = "-23px";
|
||||||
|
tab.style.touchAction = "manipulation";
|
||||||
|
|
||||||
|
// Un balayage vers le bas depuis le haut de la page ouvre le bandeau
|
||||||
|
// et annule le geste natif de rechargement (pull-to-refresh).
|
||||||
|
let touchStartY = null;
|
||||||
|
let pullGestureHandled = false;
|
||||||
|
|
||||||
|
document.addEventListener("touchstart", event => {
|
||||||
|
if (event.touches.length !== 1 || dialog.dataset.open === "true") {
|
||||||
|
touchStartY = null;
|
||||||
|
pullGestureHandled = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
touchStartY = event.touches[0].clientY;
|
||||||
|
pullGestureHandled = false;
|
||||||
|
}, { capture: true, passive: true });
|
||||||
|
|
||||||
|
document.addEventListener("touchmove", event => {
|
||||||
|
if (
|
||||||
|
touchStartY === null ||
|
||||||
|
pullGestureHandled ||
|
||||||
|
event.touches.length !== 1 ||
|
||||||
|
window.scrollY > 0
|
||||||
|
) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const deltaY = event.touches[0].clientY - touchStartY;
|
||||||
|
|
||||||
|
// Seuil volontairement court pour intervenir avant le rechargement.
|
||||||
|
if (deltaY >= 14) {
|
||||||
|
pullGestureHandled = true;
|
||||||
|
clearAutoCollapse();
|
||||||
|
bar.dataset.collapsed = "false";
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
}
|
||||||
|
}, { capture: true, passive: false });
|
||||||
|
|
||||||
|
const resetTouchGesture = () => {
|
||||||
|
touchStartY = null;
|
||||||
|
pullGestureHandled = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
document.addEventListener("touchend", resetTouchGesture, { capture: true, passive: true });
|
||||||
|
document.addEventListener("touchcancel", resetTouchGesture, { capture: true, passive: true });
|
||||||
|
}
|
||||||
|
|
||||||
function render(state) {
|
function render(state) {
|
||||||
|
|
||||||
bar.dataset.state = state.status;
|
bar.dataset.state = state.status;
|
||||||
|
|||||||
Fichier binaire non affiché.
|
Après Largeur: | Hauteur: | Taille: 12 KiB |
Fichier binaire non affiché.
|
Après Largeur: | Hauteur: | Taille: 20 KiB |
Fichier binaire non affiché.
|
Après Largeur: | Hauteur: | Taille: 10 KiB |
+57
-17
@@ -1,34 +1,74 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "SKYNET SSO",
|
"name": "SKYNET SSO",
|
||||||
"version": "0.0.2",
|
"version": "0.0.6",
|
||||||
"description": "Affiche l'état de la session SSO Zoraxy et permet une déconnexion.",
|
"description": "Affiche l'état de la session SSO Zoraxy et permet une déconnexion.",
|
||||||
"browser_specific_settings": {
|
"browser_specific_settings": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
"id": "skynet-sso@celjim.fr",
|
"id": "skynet-sso@celjim.fr",
|
||||||
"strict_min_version": "128.0"
|
"strict_min_version": "128.0",
|
||||||
|
" ": {
|
||||||
|
"required": [
|
||||||
|
"none"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"permissions": ["storage", "tabs"],
|
"permissions": [
|
||||||
"host_permissions": ["http://*/*", "https://*/*"],
|
"storage",
|
||||||
|
"tabs"
|
||||||
|
],
|
||||||
|
"host_permissions": [
|
||||||
|
"http://*/*",
|
||||||
|
"https://*/*"
|
||||||
|
],
|
||||||
"web_accessible_resources": [
|
"web_accessible_resources": [
|
||||||
{
|
{
|
||||||
"resources": ["icons/skynet.png"],
|
"resources": [
|
||||||
"matches": ["http://*/*", "https://*/*"]
|
"icons/skynet.png"
|
||||||
|
],
|
||||||
|
"matches": [
|
||||||
|
"http://*/*",
|
||||||
|
"https://*/*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"icons": { "128": "icons/logoSkynet.png" },
|
"icons": {
|
||||||
"background": { "scripts": ["background.js"] },
|
"96": "icons/logoSkynet96.png",
|
||||||
"content_scripts": [{
|
"128": "icons/logoSkynet128.png",
|
||||||
"matches": ["http://*/*", "https://*/*"],
|
"256": "icons/logoSkynet256.png"
|
||||||
"js": ["content.js"],
|
},
|
||||||
"css": ["skynet.css"],
|
"background": {
|
||||||
"run_at": "document_idle"
|
"scripts": [
|
||||||
}],
|
"background.js"
|
||||||
"options_ui": { "page": "options.html", "open_in_tab": true },
|
]
|
||||||
|
},
|
||||||
|
"content_scripts": [
|
||||||
|
{
|
||||||
|
"matches": [
|
||||||
|
"http://*/*",
|
||||||
|
"https://*/*"
|
||||||
|
],
|
||||||
|
"js": [
|
||||||
|
"content.js"
|
||||||
|
],
|
||||||
|
"css": [
|
||||||
|
"skynet.css"
|
||||||
|
],
|
||||||
|
"run_at": "document_idle"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"options_ui": {
|
||||||
|
"page": "options.html",
|
||||||
|
"open_in_tab": true
|
||||||
|
},
|
||||||
"action": {
|
"action": {
|
||||||
"default_title": "SKYNET SSO",
|
"default_title": "SKYNET SSO",
|
||||||
"default_popup": "popup.html",
|
"default_popup": "popup.html",
|
||||||
"default_icon": { "128": "icons/logoSkynet.png" }
|
"default_icon": {
|
||||||
|
"96": "icons/logoSkynet96.png",
|
||||||
|
"128": "icons/logoSkynet128.png",
|
||||||
|
"256": "icons/logoSkynet256.png"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Référencer dans un nouveau ticket
Bloquer un utilisateur