Skip to content

Commit

Permalink
feat: move files to environment
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey committed Jan 22, 2024
1 parent 5b774db commit 5d49546
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
6 changes: 2 additions & 4 deletions public/src/app/all-files/all-files.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Company } from '../model/company';
import { StorageService } from '../storage.service';
import { FilesComponent } from '../ui/files/files.component';
import { StoreService } from '../services/store.service';

import { environment } from '../../environments/environment';
@Component({
selector: 'cms-all-files',
standalone: true,
Expand All @@ -16,9 +16,7 @@ export class AllFilesComponent implements OnInit {
private readonly partnerStore = inject(StoreService);

files: { [key: string]: string } = {
'RIB du GDG Lille': '/assets/RIB.pdf',
'Journal Officiel suite à la création du GDG Lille':
'/assets/JournalOfficiel.pdf',
...environment.files,
};

private readonly storageService = inject(StorageService);
Expand Down
2 changes: 1 addition & 1 deletion public/src/app/generated/generated.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<ul>
<li>la convention pour ce partenariat à nous retourner signée</li>
<li>la facture proforma à acquitter</li>
<li>le RIB du GDG Lille</li>
<li>le RIB de l'association</li>
</ul>
<p>
Vous pouvez nous faire parvenir la convention soit en retour de ce mail,
Expand Down
4 changes: 1 addition & 3 deletions public/src/app/generated/generated.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ export class GeneratedComponent {
@Input() company: Company | undefined;
@Input() id: string | undefined;
files: { [key: string]: string } = {
'RIB du GDG Lille': '/assets/RIB.pdf',
'Journal Officiel suite à la création du GDG Lille':
'/assets/JournalOfficiel.pdf',
...environment.files,
};
isAdmin = false;
private readonly partnerService = inject(PartnerService);
Expand Down
1 change: 1 addition & 0 deletions public/src/environments/environment.cloudnord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ export const environment: Environement = {
appId: '1:844221667986:web:ffa3f4d8c781b3c212244b',
},
emailDomain: 'cloudnord.fr',
files: {},
};
5 changes: 5 additions & 0 deletions public/src/environments/environment.devfestlille.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ export const environment: Environement = {
measurementId: 'G-S558S2HZ11',
},
emailDomain: 'gdglille.org',
files: {
'RIB du GDG Lille': '/assets/RIB.pdf',
'Journal Officiel suite à la création du GDG Lille':
'/assets/JournalOfficiel.pdf',
},
};
1 change: 1 addition & 0 deletions public/src/environments/environment.type.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export type Environement = {
firebase?: Record<string, string>;
emailDomain: string;
files: Record<string, string>;
};

0 comments on commit 5d49546

Please sign in to comment.