Skip to content

Commit

Permalink
fix(backend): update ressources backend
Browse files Browse the repository at this point in the history
  • Loading branch information
pYassine committed Nov 25, 2024
1 parent b006353 commit 6fa5103
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 194 deletions.
4 changes: 2 additions & 2 deletions .kontinuous/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ backend:
containerPort: 3000
resources:
requests:
cpu: 0.3
memory: 512Mi
cpu: 1
memory: 1Gi
limits: # exports need a lot of CPU/RAM ATM
cpu: 3
memory: 3Gi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -488,118 +488,6 @@ <h4>Dois-je maintenir mon registre de signature avec DomiFa ?</h4>
conserver ou non le registre de signature papier existant.
</p>
</div>
<!-- <div id="faq-videos">
<h2 class="mt-2">Tutoriels vidéos</h2>
<p>
Voici quelques vidéos qui vous aideront à utiliser DomiFa au mieux.
</p>
<div class="d-flex flex-wrap justify-content-center">
<div>
<h3 class="mt-2">Inscription d'une nouvelle structure</h3>
<video
preload="none"
width="640"
poster="../../../../../assets/images/faq/faq-inscription.jpg"
controls
(click)="trackVideo('inscription')"
>
<source
src="https://domifaprod2.blob.core.windows.net/public/tuto_inscription_nouvelle_structure.mp4"
type="video/mp4"
/>
</video>
</div>
<div>
<h3 class="mt-2">Créer une domiciliation</h3>
<video
width="640"
preload="none"
poster="../../../../../assets/images/faq/faq-demande.jpg"
controls
(click)="trackVideo('creation_dom')"
>
<source
src="https://domifaprod2.blob.core.windows.net/public/tuto_creation_domiciliation.mp4"
type="video/mp4"
/>
</video>
</div>
<div>
<h3 class="mt-2">Importer des domiciliés</h3>
<video
preload="none"
width="640"
poster="../../../../../assets/images/faq/faq-import.jpg"
controls
(click)="trackVideo('import')"
>
<source
src="https://domifaprod2.blob.core.windows.net/public/tuto_import.mp4"
type="video/mp4"
/>
</video>
</div>
<div>
<h3>Gestion des domiciliés</h3>
<video
width="640"
preload="none"
poster="../../../../../assets/images/faq/faq-liste.jpg"
controls
(click)="trackVideo('gestion_domicilies')"
>
<source
src="https://domifaprod2.blob.core.windows.net/public/tuto_liste_domicilies.mp4"
type="video/mp4"
/>
</video>
</div>
<div>
<h3 class="mt-2">Compte</h3>
<video
width="640"
preload="none"
poster="../../../../../assets/images/faq/faq-compte.jpg"
controls
(click)="trackVideo('mon_compte')"
>
<source
src="https://domifaprod2.blob.core.windows.net/public/tuto_compte.mp4"
type="video/mp4"
/>
</video>
</div>
<div>
<h3 class="mt-2">Fiche domicilié</h3>
<video
width="640"
preload="none"
poster="../../../../../assets/images/faq/faq-profil.jpg"
controls
(click)="trackVideo('fiche_domicilie')"
>
<source
src="https://domifaprod2.blob.core.windows.net/public/tuto_fiche_domicilie.mp4"
type="video/mp4"
/>
</video>
<h3 class="mt-2">Activer et utiliser les SMS</h3>
<video
width="640"
preload="none"
poster="../../../../../assets/images/faq/faq-sms.jpg"
controls
(click)="trackVideo('fiche_domicilie')"
>
<source
src="https://domifaprod2.blob.core.windows.net/public/activation-sms.mp4"
type="video/mp4"
/>
</video>
</div>
</div>
</div> -->
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,6 @@ <h3>Satisfaction utilisateurs👇</h3>
</div>
</div>
</div>
<div class="col-md-4 col-12">
<video
preload="metadata"
poster="/assets/images/impact/temoignages.jpg"
controls
>
<source
src="https://DomiFaprod2.blob.core.windows.net/public/temoignages-0120.mp4"
type="video/mp4"
/>
</video>
</div>
</div>
</div>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@
<h1 class="title">Paramètres d'envoi de SMS pour votre structure</h1>

<div class="text-start text-md-end col">
<button
(click)="openTutoModal()"
class="btn btn-white-primary me-1 my-1 my-md-0"
type="button"
>
<fa-icon [icon]="['fas', 'info-circle']" aria-hidden="true"></fa-icon>
Vidéo explicative
</button>
<a
href="https://fabnummas.notion.site/Activer-les-notifications-SMS-a045349c1edc423c8f228d24c0edc72c"
target="_blank"
Expand Down Expand Up @@ -336,41 +328,3 @@ <h1 class="title">Paramètres d'envoi de SMS pour votre structure</h1>
</div>
</div>
</div>

<ng-template #tutoModal let-modal>
<div class="modal-header">
<span id="modal-title"> Comment activer et utiliser les SMS </span>
</div>

<div class="modal-body text-center py-4">
<video
width="560"
preload="metadata"
poster="../../../../../assets/images/faq/faq-sms.jpg"
controls
(click)="trackVideo('fiche_domicilie')"
>
<source
src="https://domifaprod2.blob.core.windows.net/public/activation-sms.mp4"
type="video/mp4"
/>
</video>
</div>
<div class="modal-footer">
<a
href="https://domifaprod2.blob.core.windows.net/public/activation-sms.mp4"
download
rel="noopener noreferrer"
target="_blank"
class="btn-primary btn me-1"
>Télécharger la vidéo</a
>
<button
type="button"
class="btn btn-outline-primary"
(click)="closeTutoModal()"
>
Fermer la fenêtre
</button>
</div>
</ng-template>
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
Component,
OnDestroy,
OnInit,
TemplateRef,
ViewChild,
} from "@angular/core";
import { Component, OnDestroy, OnInit } from "@angular/core";
import {
AbstractControl,
FormControl,
Expand All @@ -14,10 +8,8 @@ import {
Validators,
} from "@angular/forms";
import { Title } from "@angular/platform-browser";
import { NgbModalRef, NgbModal } from "@ng-bootstrap/ng-bootstrap";
import { MatomoTracker } from "ngx-matomo-client";
import { Subscription } from "rxjs";
import { DEFAULT_MODAL_OPTIONS } from "../../../../../_common/model";
import { CustomToastService } from "../../../shared/services";
import { StructureService } from "../../services";
import { StructureCommon } from "@domifa/common";
Expand All @@ -35,18 +27,14 @@ export class StructuresSmsFormComponent implements OnInit, OnDestroy {
public submitted: boolean;
public structureSmsForm!: UntypedFormGroup;

@ViewChild("tutoModal", { static: true })
public tutoModal!: TemplateRef<NgbModalRef>;

private subscription = new Subscription();

constructor(
private readonly formBuilder: UntypedFormBuilder,
private readonly structureService: StructureService,
private readonly toastService: CustomToastService,
private readonly titleService: Title,
private readonly matomo: MatomoTracker,
private readonly modalService: NgbModal
private readonly matomo: MatomoTracker
) {
this.loading = false;
this.submitted = false;
Expand Down Expand Up @@ -170,14 +158,6 @@ export class StructuresSmsFormComponent implements OnInit, OnDestroy {
this.matomo.trackEvent("vues_videos_faq", name, "null", 1);
}

public openTutoModal(): void {
this.modalService.open(this.tutoModal, DEFAULT_MODAL_OPTIONS);
}

public closeTutoModal(): void {
this.modalService.dismissAll();
}

public ngOnDestroy(): void {
this.subscription.unsubscribe();
}
Expand Down

0 comments on commit 6fa5103

Please sign in to comment.