From 38c12281d3a6ea445973dda5e8eeea7879a6121e Mon Sep 17 00:00:00 2001 From: Tykayn Date: Fri, 17 Oct 2025 17:07:27 +0200 Subject: [PATCH] style disabled selector csc --- angular-basic/.gitignore | 1 + angular-basic/Dockerfile | 8 ++--- .../sae-lib/chatbot/bot-talks/bot-talks.html | 12 ++++--- .../sae-lib/chatbot/bot-talks/bot-talks.scss | 4 +-- .../sae-lib/chatbot/bot-talks/bot-talks.ts | 1 + .../inputs/multi-selector/multi-selector.html | 34 ++++++++++++++---- .../inputs/multi-selector/multi-selector.scss | 36 ++++++++++++++----- 7 files changed, 68 insertions(+), 28 deletions(-) diff --git a/angular-basic/.gitignore b/angular-basic/.gitignore index 2d02efe..6b970a5 100644 --- a/angular-basic/.gitignore +++ b/angular-basic/.gitignore @@ -42,3 +42,4 @@ testem.log Thumbs.db sae-lib +my-workspace \ No newline at end of file diff --git a/angular-basic/Dockerfile b/angular-basic/Dockerfile index 6efd472..8012723 100644 --- a/angular-basic/Dockerfile +++ b/angular-basic/Dockerfile @@ -13,7 +13,7 @@ COPY my-workspace /app/my-workspace WORKDIR /app/angular-basic RUN echo "============= run setup script " - +RUN pkg install bash nano ncdu RUN ./setup.sh # Construire le projet Angular (production) @@ -31,9 +31,6 @@ FROM nginx:1.27-alpine AS production RUN rm -rf /usr/share/nginx/html/* # Copier la sortie du build (on testera le bon chemin ensuite) - -#COPY --from=build /app/dist /usr/share/nginx/html - COPY --from=build /app/angular-basic/dist/angular-basic/browser/* /usr/share/nginx/html RUN echo "============= liste des fichiers dans nginx html" @@ -45,9 +42,10 @@ RUN echo "=============" # 🔹 Exposer le port par défaut d'nginx (80) EXPOSE 80 + HEALTHCHECK --interval=30s --timeout=10s --retries=3 \ CMD wget -qO- http://localhost:80/ || exit 1 RUN echo "servir le front static CSC: done." -CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file +CMD ["nginx", "-g", "daemon off;"] diff --git a/my-workspace/projects/sae-lib/chatbot/bot-talks/bot-talks.html b/my-workspace/projects/sae-lib/chatbot/bot-talks/bot-talks.html index 1605ae4..61931fd 100644 --- a/my-workspace/projects/sae-lib/chatbot/bot-talks/bot-talks.html +++ b/my-workspace/projects/sae-lib/chatbot/bot-talks/bot-talks.html @@ -1,6 +1,9 @@ -
+
+ @if (avatarPlacement == 'left') { +
+ }
{{ message }} @@ -72,8 +75,7 @@
-
- -
-
+ @if (avatarPlacement == 'right') { +
+ }
diff --git a/my-workspace/projects/sae-lib/chatbot/bot-talks/bot-talks.scss b/my-workspace/projects/sae-lib/chatbot/bot-talks/bot-talks.scss index 51596a9..6e93876 100644 --- a/my-workspace/projects/sae-lib/chatbot/bot-talks/bot-talks.scss +++ b/my-workspace/projects/sae-lib/chatbot/bot-talks/bot-talks.scss @@ -83,8 +83,8 @@ padding: 12px; } - .avatar { - background: transparent url('/public/chatbot.png') center center no-repeat; + .bot-avatar { + background: white; background-size: contain; width: 32px; height: 32px; diff --git a/my-workspace/projects/sae-lib/chatbot/bot-talks/bot-talks.ts b/my-workspace/projects/sae-lib/chatbot/bot-talks/bot-talks.ts index a1ba34c..b3b8f9d 100644 --- a/my-workspace/projects/sae-lib/chatbot/bot-talks/bot-talks.ts +++ b/my-workspace/projects/sae-lib/chatbot/bot-talks/bot-talks.ts @@ -14,4 +14,5 @@ export class BotTalks { @Input() public message: string = 'Hello!'; @Input() public documents: Array = []; @Input() public appState: any = {}; + @Input() public avatarPlacement: '' | 'left' | 'right' = 'left'; } diff --git a/my-workspace/projects/sae-lib/inputs/multi-selector/multi-selector.html b/my-workspace/projects/sae-lib/inputs/multi-selector/multi-selector.html index bce0aa1..e23d261 100644 --- a/my-workspace/projects/sae-lib/inputs/multi-selector/multi-selector.html +++ b/my-workspace/projects/sae-lib/inputs/multi-selector/multi-selector.html @@ -5,7 +5,7 @@ class="input-box" > - +
{{ label }} @@ -13,18 +13,38 @@
- + @if (selectedChoices.length > 0) { +
+ + {{ selectedChoices[0].value }} +
+ } @else { + + @if (displayDropdown) { + + + } @else { + +
+ {{ label }} +
+ + } + + + } {{ selectedChoices?.length || 0 }} +