Lot 2, interface : synchro, appariement par QR code, page d'autorisation d'une IA
- Écran Synchro (#/synchro) : activer, « J'ai déjà une clé » (pull d'abord, faute de frappe signalée), état, clé masquée, QR code, désactiver, brancher son IA (adresse du connecteur et mode d'emploi). - Appariement #pair=<clé> : la clé quitte l'adresse aussitôt, confirmation, fusion des données locales. - Page #/connecter-ia?… : autoriser (POST /oauth/authorize) ou refuser, erreurs traduites ; le routeur accepte « ? » dans le fragment. - Synchro automatique sans scrutation (ouverture, 3 s après une saisie, online, visibilitychange), indicateur dans l'en-tête. - QR code : qrcode-generator 2.0.4 (MIT) vendorisé, dessiné en SVG par le DOM. - Magasin : dates strictement croissantes pour les événements de l'appareil (cause du flottement de test-browser : deux PlanSettingsChanged de la même milliseconde départagés par leur identifiant aléatoire). - test-browser : parcours de la synchro contre server/main.js (données temporaires), QR décodé par jsQR dans la capture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
c12e37e215
commit
08cc995eef
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2009 Kazuhiko Arase
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+1
@@ -0,0 +1 @@
|
||||
`qrcode.mjs` : qrcode-generator 2.0.4 de Kazuhiko Arase (registre npm, `dist/qrcode.mjs`, sha256 ea91d711…b7c0), licence MIT (`LICENSE`), non modifié ; `qrcode.d.mts` : ses types réduits, pour `make lint`.
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// Types de qrcode.mjs, pour la vérification JSDoc (make lint) : ce qu'IA-Fit
|
||||
// en utilise, repris de qrcode.d.ts du même paquet (MIT, Kazuhiko Arase). Sans
|
||||
// ce fichier, tsc vérifierait le code vendorisé lui-même.
|
||||
|
||||
type ErrorCorrectionLevel = "L" | "M" | "Q" | "H";
|
||||
type Mode = "Numeric" | "Alphanumeric" | "Byte" | "Kanji";
|
||||
|
||||
export interface QRCode {
|
||||
addData(data: string, mode?: Mode): void;
|
||||
make(): void;
|
||||
getModuleCount(): number;
|
||||
isDark(row: number, col: number): boolean;
|
||||
}
|
||||
|
||||
/** typeNumber : 0 (automatique) à 40. */
|
||||
declare function qrcode(typeNumber: number, errorCorrectionLevel: ErrorCorrectionLevel): QRCode;
|
||||
export default qrcode;
|
||||
export { qrcode };
|
||||
+2237
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user