diff --git a/.claude/settings.json b/.claude/settings.json index e8bb5a6..bbde9f3 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -10,7 +10,8 @@ "Bash(npm list *)", "Bash(ng update *)", "Bash(npm run *)", - "Bash(nvm ls *)" + "Bash(nvm ls *)", + "Bash(grep -E \"\\\\.\\(js|ts\\)$\")" ] } } diff --git a/src/app/core/models/application.model.ts b/src/app/core/models/application.model.ts index dffd8b4..3b483c9 100644 --- a/src/app/core/models/application.model.ts +++ b/src/app/core/models/application.model.ts @@ -1,4 +1,7 @@ +import { FormControl } from '@angular/forms'; + import { Profile } from './profile.model'; +import { ColumnDefinition, PageLinks, PageMeta } from './shared.model'; export interface Application { apikey: string; @@ -10,3 +13,44 @@ export interface Application { createdAt: string; updatedAt: string; } + +export const applicationColumns: Array = [ + { + key: 'titre', + type: 'text', + label: 'Titre', + }, + { + key: 'maskedkey', + type: 'text', + label: 'Clé masquée', + }, + { + key: 'createdat', + type: 'date', + label: 'Date de création', + }, + { + key: 'updatedat', + type: 'date', + label: 'Date de mise à jour', + }, +]; + +export interface ApplicationForm { + title: FormControl; + description: FormControl; +} + +export interface ApplicationPageData { + application: Application; + prevApplication: Application; + nextApplication: Application; + _links: PageLinks; + _meta: PageMeta; +} + +export interface ApplicationsPageData { + applications: Array; + count: number; +} diff --git a/src/app/core/models/jump.model.ts b/src/app/core/models/jump.model.ts index 45c9aac..af208f5 100644 --- a/src/app/core/models/jump.model.ts +++ b/src/app/core/models/jump.model.ts @@ -34,10 +34,10 @@ export interface Jump { } export enum JumpFileType { - CSV = "csv", - IMAGE = "image", - KML = "kml", - VIDEO = "video" + CSV = 'csv', + IMAGE = 'image', + KML = 'kml', + VIDEO = 'video', } export interface JumpFile { @@ -168,12 +168,10 @@ export interface X2Data { deployment: number; }; cutaway: string; - malfunctions:Array< - { - name: string; - type: string; - } - >; + malfunctions: Array<{ + name: string; + type: string; + }>; date: string; createdOn: string; } @@ -192,25 +190,25 @@ export interface JumpsPageData { jumpsByDateByModule: Array; jumpsByModule: Array; jumpsByYears: Array; - //jumpsFromSkydiverIdApi: SkydiverIdJumps; lastjump: Jump; /*yearsCount: number; jumpsByCategoryCount: number; jumpsByDateCount: number; - jumpsByModuleCount: number;*/ + jumpsByModuleCount: number; + jumpsFromSkydiverIdApi: SkydiverIdJumps;*/ } export const jumpColumns: Array = [ { key: 'isSelected', type: 'isSelected', - label: '' + label: '', }, { key: 'date', type: 'date', label: 'Date', - required: true + required: true, }, { key: 'numero', @@ -218,82 +216,82 @@ export const jumpColumns: Array = [ label: 'Numéro', required: true, min: 0, - step: 1 + step: 1, }, { key: 'lieu', type: 'text', - label: 'Lieu' + label: 'Lieu', }, { key: 'oaci', type: 'text', - label: 'OACI' + label: 'OACI', }, { key: 'aeronef', type: 'text', - label: 'Aéronef' + label: 'Aéronef', }, { key: 'imat', type: 'text', - label: 'Imat.' + label: 'Imat.', }, { key: 'hauteur', type: 'numeric', - label: 'Hauteur' + label: 'Hauteur', }, { key: 'deploiement', type: 'numeric', - label: 'Deploiement' + label: 'Deploiement', }, { key: 'voile', type: 'text', - label: 'Voile' + label: 'Voile', }, { key: 'taille', type: 'numeric', - label: 'Taille' + label: 'Taille', }, { key: 'categorie', type: 'text', - label: 'Categorie' + label: 'Categorie', }, { key: 'module', type: 'text', - label: 'Module' + label: 'Module', }, { key: 'participants', type: 'numeric', - label: 'Participants' + label: 'Participants', }, { key: 'sautants', type: 'text', - label: 'Sautants' + label: 'Sautants', }, { key: 'programme', type: 'text', - label: 'Programme' + label: 'Programme', }, { key: 'accessoires', type: 'text', - label: 'Accessoires' + label: 'Accessoires', }, { key: 'zone', type: 'text', - label: 'Zone' + label: 'Zone', }, /*{ key: 'dossier', @@ -303,11 +301,11 @@ export const jumpColumns: Array = [ { key: 'video', type: 'text', - label: 'Vidéo' + label: 'Vidéo', }, { key: 'isEdit', type: 'isEdit', - label: '' - } -]; \ No newline at end of file + label: '', + }, +];