Comparer les révisions
| Auteur | SHA1 | Date | |
|---|---|---|---|
|
|
0e0fa5b1d0 | ||
|
|
321e65ef3b | ||
|
|
308c56c64c | ||
|
|
b812efe9a4 | ||
|
|
8dfb19b2bc | ||
|
|
acbc30d79f | ||
|
|
9ae5a92b07 |
No files matched your search
@@ -6,6 +6,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
paths:
|
||||||
|
- 'src/**'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
+37
-14
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Aidé par Claude AI
|
Aidé par Claude AI
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
@@ -21,14 +21,11 @@ Aidé par Claude AI
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Prérequis
|
## Testé avec Roundcube **1.6.0** jusqu'à **1.7.1**
|
||||||
|
|
||||||
- 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)
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Démonstration vidéo
|
## Prévisualisation
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<video
|
<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
|
#### 2.1 Depuis un container roundcubemail
|
||||||
|
|
||||||
@@ -66,6 +63,12 @@ docker run --name tmp-roundcube -d roundcube/roundcubemail:latest && \
|
|||||||
mkdir -p skins && \
|
mkdir -p skins && \
|
||||||
docker cp tmp-roundcube:/var/www/html/skins/elastic 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 \
|
docker exec tmp-roundcube \
|
||||||
find /var/www/html/plugins -type d -path "*/skins/elastic" |
|
find /var/www/html/plugins -type d -path "*/skins/elastic" |
|
||||||
|
|
||||||
@@ -87,26 +90,46 @@ docker rm -f tmp-roundcube
|
|||||||
|
|
||||||
ou
|
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
|
```bash
|
||||||
|
RC_VERSION=1.7.1
|
||||||
curl --location https://github.com/roundcube/roundcubemail/releases/download/1.7.0/roundcubemail-1.7.0-complete.tar.gz \
|
curl --location https://github.com/roundcube/roundcubemail/releases/download/${RC_VERSION}/roundcubemail-${RC_VERSION}-complete.tar.gz \
|
||||||
--output roundcubemail.tar.gz && \
|
--output roundcubemail.tar.gz && \
|
||||||
tar -zxvf roundcubemail.tar.gz --wildcards --strip-components=1 -C . \
|
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
|
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
|
```bash
|
||||||
|
|
||||||
curl https://git.celjim.fr/public/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 && \
|
--output theme-skynet.zip && \
|
||||||
7z x 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 script-skynet.min.js skins/elastic/ && \
|
||||||
mv -f styles-skynet.min.css skins/elastic/styles && \
|
mv -f styles-skynet.min.css skins/elastic/styles && \
|
||||||
mv skins/elastic skins/skynet && \
|
mv skins/elastic skins/skynet && \
|
||||||
|
|||||||
@@ -89,6 +89,19 @@
|
|||||||
<button class="sky-submit" id="sky-submit-btn" type="button">
|
<button class="sky-submit" id="sky-submit-btn" type="button">
|
||||||
CONNEXION <span class="blink">_</span>
|
CONNEXION <span class="blink">_</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="sky-oauth-wrap">
|
||||||
|
<a
|
||||||
|
href="/?_task=login&_action=oauth"
|
||||||
|
id="rcmloginoauth"
|
||||||
|
class="sky-oauth-button"
|
||||||
|
>
|
||||||
|
<span class="sky-oauth-icon">◈</span>
|
||||||
|
<span>CONNEXION AVEC SKYNET AUTH</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="sky-threat">
|
<div class="sky-threat">
|
||||||
|
|||||||
+161
-2
@@ -1,4 +1,4 @@
|
|||||||
*,
|
*,
|
||||||
*::before,
|
*::before,
|
||||||
*::after {
|
*::after {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@@ -247,7 +247,7 @@ body {
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
95% {
|
95% {
|
||||||
border-color: var(--blue-dark)
|
border-color: var(--blue-dark);
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -637,3 +637,162 @@ body {
|
|||||||
padding: 1.5rem 1rem;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Référencer dans un nouveau ticket
Bloquer un utilisateur