9 Révisions
v1 ... v3
Auteur SHA1 Message Date
jimmyGALLAND 0e0fa5b1d0 Fix: Add SSO button
Release / release (push) Successful in 23s
2026-11-18 22:22:50 +01:00
jimmyGALLAND 321e65ef3b Update .github/workflows/release.yml 2026-06-03 07:46:07 +00:00
jimmyGALLAND 308c56c64c Update README.md
Release / release (push) Successful in 19s
2026-06-03 07:44:29 +00:00
jimmyGALLAND b812efe9a4 Update README.md
Release / release (push) Successful in 24s
2026-06-03 07:42:39 +00:00
jimmyGALLAND 8dfb19b2bc Update README.md
Release / release (push) Successful in 21s
2026-06-02 21:01:37 +00:00
jimmyGALLAND acbc30d79f Update README.md
Release / release (push) Successful in 33s
2026-06-02 20:34:01 +00:00
jimmyGALLAND 9ae5a92b07 Update README.md
Release / release (push) Successful in 1m34s
2026-06-02 20:06:59 +00:00
jimmyGALLAND ffc217bf33 Update src/styles-skynet.css
Release / release (push) Has been cancelled
Remove sky-threat display:none with media max-width: 480px
add   body min-width: 350px;
2026-05-21 20:17:51 +00:00
jimmyGALLAND b174c7f1f5 Actualiser README.md
Release / release (push) Has been cancelled
2026-05-17 16:04:31 +00:00
4 fichiers modifiés avec 215 ajouts et 19 suppressions

No files matched your search

+2
Voir le fichier
@@ -6,6 +6,8 @@ on:
push:
branches:
- main
paths:
- 'src/**'
workflow_dispatch:
jobs:
+37 -14
Voir le fichier
@@ -5,7 +5,7 @@
Aidé par Claude AI
![Version](https://img.shields.io/badge/Roundcube-1.7.x-blue)
![Version](https://img.shields.io/badge/Roundcube-1.7.1-blue)
![License](https://img.shields.io/badge/license-MIT-green)
![Skin base](https://img.shields.io/badge/base-elastic-informational)
@@ -21,14 +21,11 @@ Aidé par Claude AI
---
## Prérequis
- Testé avec Roundcube **1.6.x** **1.7.x**
- Un autre skin **(ex: elastic)** présent dans `/var/www/html/skins/elastic/` (utilisé comme base)
## Testé avec Roundcube **1.6.0** jusqu'à **1.7.1**
---
## Démonstration vidéo
## Prévisualisation
<p align="center">
<video
@@ -56,7 +53,7 @@ $config['skin'] = 'skynet';
---
### 2. Récuperer le skin
### 2. Récuperer le skin elastic comme base
#### 2.1 Depuis un container roundcubemail
@@ -66,6 +63,12 @@ docker run --name tmp-roundcube -d roundcube/roundcubemail:latest && \
mkdir -p skins && \
docker cp tmp-roundcube:/var/www/html/skins/elastic skins && \
# Attendre que le fichier soit disponible (max 60s)
echo "Waiting for Roundcube to be ready..."
timeout 60 bash -c 'until docker exec tmp-roundcube test -f /var/www/html/program/include/iniset.php 2>/dev/null; do sleep 1; done' && \
RC_VERSION=$(docker exec tmp-roundcube sed -n "s/define('RCMAIL_VERSION', '\([^']*\)');/\1/p" /var/www/html/program/include/iniset.php) && \
docker exec tmp-roundcube \
find /var/www/html/plugins -type d -path "*/skins/elastic" |
@@ -87,26 +90,46 @@ docker rm -f tmp-roundcube
ou
#### 2.1 Directement depuis les sources de roundcubemail (exemple pour va version avec la version 1.7.0)
#### 2.1 Directement depuis les sources de roundcubemail (exemple pour la version 1.7.1)
```bash
curl --location https://github.com/roundcube/roundcubemail/releases/download/1.7.0/roundcubemail-1.7.0-complete.tar.gz \
RC_VERSION=1.7.1
curl --location https://github.com/roundcube/roundcubemail/releases/download/${RC_VERSION}/roundcubemail-${RC_VERSION}-complete.tar.gz \
--output roundcubemail.tar.gz && \
tar -zxvf roundcubemail.tar.gz --wildcards --strip-components=1 -C . \
roundcubemail-1.7.0/skins/elastic roundcubemail-1.7.0/plugins/*/skins/elastic
roundcubemail-${RC_VERSION}/skins/elastic roundcubemail-${RC_VERSION}/plugins/*/skins/elastic
rm roundcubemail.tar.gz
```
### 3. Puis télécharger la release du thême depuis le dépôt
### 3. Puis télécharger la dernière release du thême depuis le dépôt
```bash
curl https://[TOKEN]@git.celjim.fr/jimmyGALLAND/roundcube-theme-skynet/releases/download/v1/roundcube-theme-skynet-v1.zip \
# Compare semver: returns 0 if $1 >= $2
version_gte() {
[ "$(printf '%s\n' "$1" "$2" | sort -V | head -n1)" = "$2" ]
}
# Récupère l'URL du dernier asset zip via l'API Gitea
LATEST_ZIP=$(curl -s "https://git.celjim.fr/api/v1/repos/public/roundcube-theme-skynet/releases/latest" \
| grep -o '"browser_download_url":"[^"]*\.zip"' \
| head -n1 \
| cut -d'"' -f4)
curl "${LATEST_ZIP}" \
--output theme-skynet.zip && \
7z x theme-skynet.zip && \
mv -f login.html skins/elastic/templates && \
if version_gte "$RC_VERSION" "1.7.1"; then
sed -e 's|\.\/skins\/skynet\/styles\/styles-skynet\.min\.css|static.php/skins/skynet/styles/styles-skynet.min.css|g' \
-e 's|\.\/skins\/skynet\/script-skynet\.min\.js|static.php/skins/skynet/script-skynet.min.js|g' \
login.html > skins/elastic/templates/login.html && \
rm -f login.html
else
mv -f login.html skins/elastic/templates/login.html
fi && \
mv -f script-skynet.min.js skins/elastic/ && \
mv -f styles-skynet.min.css skins/elastic/styles && \
mv skins/elastic skins/skynet && \
+13
Voir le fichier
@@ -89,6 +89,19 @@
<button class="sky-submit" id="sky-submit-btn" type="button">
CONNEXION <span class="blink">_</span>
</button>
<div class="sky-oauth-wrap">
<a
href="/?_task=login&amp;_action=oauth"
id="rcmloginoauth"
class="sky-oauth-button"
>
<span class="sky-oauth-icon">◈</span>
<span>CONNEXION AVEC SKYNET AUTH</span>
</a>
</div>
</div>
<div class="sky-threat">
+163 -5
Voir le fichier
@@ -1,4 +1,4 @@
*,
*,
*::before,
*::after {
box-sizing: border-box;
@@ -29,6 +29,7 @@ body {
align-items: center;
justify-content: center;
position: relative;
min-width: 350px;
}
/* ── LOGO CANVAS ──
@@ -246,7 +247,7 @@ body {
opacity: 1;
}
95% {
border-color: var(--blue-dark)
border-color: var(--blue-dark);
opacity: 0.5;
}
}
@@ -614,9 +615,7 @@ body {
gap: 4px;
align-items: center;
}
.sky-threat {
display: none;
}
.sky-ticker {
font-size: 8px;
}
@@ -638,3 +637,162 @@ body {
padding: 1.5rem 1rem;
}
}
/* ── SKYNET OAUTH / SSO BUTTON ── */
.sky-oauth-wrap {
margin-top: 12px;
width: 100%;
animation: slide-up 0.6s ease both 1.1s;
}
.sky-oauth-button {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
width: 100%;
padding: 14px 10px;
position: relative;
overflow: hidden;
isolation: isolate;
background: rgba(0, 207, 255, 0.035);
border: 1px solid rgba(0, 207, 255, 0.5);
border-radius: 0;
color: var(--cyan);
font-family: "Orbitron", monospace;
font-size: 10px;
font-weight: 700;
letter-spacing: 2px;
text-align: center;
text-decoration: none;
text-transform: uppercase;
cursor: pointer;
transition:
background 0.25s,
border-color 0.25s,
color 0.25s,
box-shadow 0.25s;
}
/* Reflet lumineux principal */
.sky-oauth-button::before {
content: "";
position: absolute;
z-index: -1;
top: -50%;
bottom: -50%;
left: -65%;
width: 38%;
transform: skewX(-22deg);
background: linear-gradient(
90deg,
transparent,
rgba(0, 207, 255, 0.08) 20%,
rgba(122, 184, 255, 0.48) 50%,
rgba(0, 207, 255, 0.08) 80%,
transparent
);
filter: blur(3px);
animation: skynetSweep 3.2s ease-in-out infinite;
}
/* Halo secondaire */
.sky-oauth-button::after {
content: "";
position: absolute;
z-index: -1;
top: 0;
bottom: 0;
left: -65%;
width: 38%;
transform: skewX(-22deg);
background: linear-gradient(
90deg,
transparent,
rgba(0, 207, 255, 0.22),
transparent
);
animation: skynetSweep 3.2s ease-in-out infinite;
}
/* Symbole Skynet */
.sky-oauth-icon {
position: relative;
color: var(--blue-light);
font-size: 19px;
line-height: 1;
text-shadow: 0 0 9px var(--cyan);
}
/* Survol */
.sky-oauth-button:hover {
background: rgba(0, 207, 255, 0.12);
border-color: var(--cyan);
color: var(--blue-pale);
box-shadow:
0 0 12px rgba(0, 207, 255, 0.17),
inset 0 0 18px rgba(0, 207, 255, 0.07);
text-decoration: none;
}
.sky-oauth-button:active {
transform: scale(0.99);
}
.sky-oauth-button:focus-visible {
outline: 1px solid var(--cyan);
outline-offset: 3px;
}
/* Animation du balayage horizontal */
@keyframes skynetSweep {
0% {
left: -65%;
opacity: 0;
}
12% {
opacity: 1;
}
65% {
opacity: 1;
}
82%, 100% {
left: 130%;
opacity: 0;
}
}
/* Affichage mobile */
@media (max-width: 480px) {
.sky-oauth-button {
font-size: 10px !important;
padding: 16px 8px !important;
letter-spacing: 1.5px;
}
}
/* Respect des préférences de réduction des animations */
@media (prefers-reduced-motion: reduce) {
.sky-oauth-button::before,
.sky-oauth-button::after {
animation: none;
}
}