shadok-ai 0.2.33 → 0.2.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/index.html +12 -9
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
6
|
<title>shadok-ai — cockpit</title>
|
|
7
|
-
<link rel="icon" id="favicon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7' fill='%2314161d'/%3E%3Ctext x='
|
|
7
|
+
<link rel="icon" id="favicon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7' fill='%2314161d'/%3E%3Ctext x='16' y='25' font-family='monospace' font-size='26' font-weight='700' fill='%23f0a848' text-anchor='middle'%3E%E2%80%BA%3C/text%3E%3C/svg%3E">
|
|
8
8
|
<style>
|
|
9
9
|
:root {
|
|
10
10
|
--bg: #14161d;
|
|
@@ -2486,22 +2486,25 @@
|
|
|
2486
2486
|
const favicon = $("favicon");
|
|
2487
2487
|
let titleBase = BASE_TITLE; // current title without the notification badge
|
|
2488
2488
|
/** SVG data-URI favicon: the base mark, plus a coloured corner pip if given. */
|
|
2489
|
-
|
|
2490
|
-
|
|
2489
|
+
/** L'indicateur remplit TOUT le favicon : au repos, fond sombre + chevron
|
|
2490
|
+
* ambre ; pour un état (rouge = à faire, ambre = à lire) tout le carré prend
|
|
2491
|
+
* la couleur, chevron sombre par-dessus. Bien plus visible qu'une pastille. */
|
|
2492
|
+
function faviconSVG(bg) {
|
|
2491
2493
|
const svg =
|
|
2492
2494
|
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">` +
|
|
2493
|
-
`<rect width="32" height="32" rx="7" fill="#14161d"/>` +
|
|
2494
|
-
`<text x="
|
|
2495
|
-
|
|
2495
|
+
`<rect width="32" height="32" rx="7" fill="${bg || "#14161d"}"/>` +
|
|
2496
|
+
`<text x="16" y="25" font-family="monospace" font-size="26" font-weight="700" fill="${bg ? "#14161d" : "#f0a848"}" text-anchor="middle">›</text>` +
|
|
2497
|
+
`</svg>`;
|
|
2496
2498
|
return "data:image/svg+xml," + encodeURIComponent(svg);
|
|
2497
2499
|
}
|
|
2498
|
-
/** Favicon « en train de bosser » :
|
|
2500
|
+
/** Favicon « en train de bosser » : un GROS spinner centré qui remplit le
|
|
2501
|
+
* favicon (piste faible + arc ambre qui tourne). */
|
|
2499
2502
|
function faviconWorkingSVG(angle) {
|
|
2500
2503
|
const svg =
|
|
2501
2504
|
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">` +
|
|
2502
2505
|
`<rect width="32" height="32" rx="7" fill="#14161d"/>` +
|
|
2503
|
-
`<
|
|
2504
|
-
`<g transform="rotate(${angle}
|
|
2506
|
+
`<circle cx="16" cy="16" r="11" fill="none" stroke="rgba(240,168,72,0.22)" stroke-width="4"/>` +
|
|
2507
|
+
`<g transform="rotate(${angle} 16 16)"><circle cx="16" cy="16" r="11" fill="none" stroke="#f0a848" stroke-width="4" stroke-linecap="round" stroke-dasharray="34 100"/></g>` +
|
|
2505
2508
|
`</svg>`;
|
|
2506
2509
|
return "data:image/svg+xml," + encodeURIComponent(svg);
|
|
2507
2510
|
}
|