3 Commits
taff ... perso

Author SHA1 Message Date
6110949622 Update js/main.js 2025-10-27 15:28:16 +01:00
91890c9091 Update js/main.js 2025-10-27 15:26:29 +01:00
57a98a1cbd Update config.json
Customization
2025-10-27 15:21:18 +01:00
2 changed files with 33 additions and 33 deletions

View File

@@ -1,53 +1,53 @@
{ {
"squares": [ "squares": [
{ "name": "Media", { "name": "media",
"color": "#61afef", "color": "#61afef",
"links": [ "links": [
{ "name": "Youtube", "url": "https://youtube.com" }, { "name": "Youtube", "url": "https://youtube.com" },
{ "name": "Jellyfin", "url": "https://stream.kawa.zip/" }, { "name": "Jellyfin", "url": "https://stream.kawa.zip/" },
{ "name": "KawaMusic", "url": "https://music.kawawete.xyz/" }, { "name": "KawaMusic", "url": "https://music.kawawete.xyz/" },
{ "name": "Tidal", "url": "https://tidal.com" }, { "name": "Tidal", "url": "https://tidal.com" },
{ "name": "Tidarr", "url": "https://zic.kawa.zip" } { "name": "Tidal", "url": "https://zic.kawa.zip" }
] ]
}, },
{ "name": "Admin MS", { "name": "homelab",
"color": "#e06c75", "color": "#e06c75",
"links": [ "links": [
{ "name": "Admin", "url": "https://admin.microsoft.com" }, { "name": "Front 1 Portainer", "url": "https://port.team4kw.fr" },
{ "name": "Entra", "url": "https://entra.microsoft.com/" }, { "name": "Front 2 Portainer", "url": "https://port.azuze.fr/" },
{ "name": "Teams", "url": "https://admin.teams.microsoft.com/" }, { "name": "IIRIAM Dockge", "url": "https://yacht.iiriam.fr/" }
{ "name": "Intune", "url": "https://endpoint.microsoft.com/" },
{ "name": "Security", "url": "https://Security.microsoft.com/" },
{ "name": "Exchange", "url": "https://admin.exchange.microsoft.com/" },
{ "name": "Lighthouse", "url": "https://lighthouse.microsoft.com" }
] ]
}, },
{ "name": "Outils", { "name": "social",
"color": "#e5c07b", "color": "#e5c07b",
"links": [ "links": [
{ "name": "Ninja RMM", "url": "https://arescom.rmmservice.eu/" }, { "name": "Reddit", "url": "https://reddit.com" },
{ "name": "Passportal", "url": "https://de-clover.passportalmsp.com/" }, { "name": "9GAG", "url": "https://9gag.com" },
{ "name": "Sharepoint Arescom", "url": "https://arescom.sharepoint.com/" }, { "name": "Twitter", "url": "https://x.com/" },
{ "name": "Console Unify", "url": "https://wifi.arescom.fr" }, { "name": "Instagram", "url": "https://instagram.com/" }
{ "name": "Docker", "url": "https://10.19.100.10:9443" }, ]
{ "name": "CIPP", "url": "https://cipp.arescom.fr" }, },
{ "name": "Watchguard Cloud", "url": "https://deu.cloud.watchguard.com" }, {
{ "name": "Copilot", "url": "https://m365.cloud.microsoft/chat" }, "name": "tools",
{ "name": "Info Licences MS", "url": "https://m365maps.com" }, "color": "#98c379",
{ "name": "Bali", "url": "https://bali.arescom.fr/" } "links": [
{"name": "PDF", "url": "https://pdf.larrache.fr/"},
{"name": "YT DL", "url": "https://ytdl.kawa.zip/"},
{"name": "OmniTools", "url": "https://tools.larrache.fr/"},
{"name": "Penpot", "url": "https://id.larrache.fr"}
] ]
} }
], ],
"searchEngine":"FindShit", "searchEngine":"FindShit",
"user": "Sébastien", "user": "Kawa",
"disableMessage": false, "disableMessage": false,
"disableDate": false, "disableDate": false,
"disableSearchBar": false, "disableSearchBar": false,
"disable24Hour": false, "disable24Hour": false,
"disableWeather": false, "disableWeather": false,
"timeZone": "Eurpoe/Paris", "timeZone": "Europe/Paris",
"weatherConf": { "weatherConf": {
"location": "Alfortville", "location": "Melun",
"unit": "cel" "unit": "cel"
}, },
"settingsIcon": false, "settingsIcon": false,

View File

@@ -112,17 +112,17 @@ function buildMsg() {
currentTime = currentHour + (0.01 * currentMinute) currentTime = currentHour + (0.01 * currentMinute)
if (inRange(currentTime, 0, 5.59)) if (inRange(currentTime, 0, 5.59))
return "It's too late, take some sleep" return "Rendort toi..."
if (inRange(currentTime, 6, 8.59)) if (inRange(currentTime, 6, 8.30))
return "You're up early" return "Trop tot pour bosser"
if (inRange(currentTime, 9, 11.59)) if (inRange(currentTime, 8.31, 11.59))
return "Have a good day ahead" return "Je sens que ca va etre une bonne journée"
if (inRange(currentTime, 12, 16.59)) if (inRange(currentTime, 12, 16.59))
return "Good Afternoon" return "Bon aprem"
if (inRange(currentTime, 17, 19.59)) if (inRange(currentTime, 17, 19.59))
return "Good Evening" return "Bonne soirée"
if (inRange(currentTime, 20, 24)) if (inRange(currentTime, 20, 24))
return "It's time to wrap up for the day" return "Allez hop, on remballe"
else else
return "" return ""
} }
@@ -137,7 +137,7 @@ function handleMessage(userName) {
*/ */
var builtMsg = buildMsg() var builtMsg = buildMsg()
builtMsg == "" ? builtMsg == "" ?
builtMsg = `Hello ${userName}` : builtMsg = `Hey ${userName}, ${builtMsg}!` builtMsg = `Salut ${userName}` : builtMsg = `Hey ${userName}, ${builtMsg}!`
return builtMsg; return builtMsg;
} }