diff --git a/src/app/components/group-chat/group-chat.component.html b/src/app/components/group-chat/group-chat.component.html index eea1547..cb0cb0b 100644 --- a/src/app/components/group-chat/group-chat.component.html +++ b/src/app/components/group-chat/group-chat.component.html @@ -1,3 +1,3 @@
- group-chat works! + group-chat works!
diff --git a/src/app/components/group-chat/group-chat.component.ts b/src/app/components/group-chat/group-chat.component.ts index 76b514c..055b50f 100644 --- a/src/app/components/group-chat/group-chat.component.ts +++ b/src/app/components/group-chat/group-chat.component.ts @@ -1,14 +1,16 @@ -import { Component, OnInit } from '@angular/core'; +import {Component, OnInit} from '@angular/core'; @Component({ - selector: 'app-group-chat', - templateUrl: './group-chat.component.html', - styleUrls: ['./group-chat.component.scss'], + selector: 'app-group-chat', + templateUrl: './group-chat.component.html', + styleUrls: ['./group-chat.component.scss'], }) -export class GroupChatComponent implements OnInit { +export class GroupChatComponent implements OnInit { - constructor() { } + constructor() { + } - ngOnInit() {} + ngOnInit() { + } } diff --git a/src/app/components/group-info/group-info.component.html b/src/app/components/group-info/group-info.component.html index 36ae143..7d44001 100644 --- a/src/app/components/group-info/group-info.component.html +++ b/src/app/components/group-info/group-info.component.html @@ -17,7 +17,7 @@ }- message-form works! + message-form works!
diff --git a/src/app/components/message-form/message-form.component.ts b/src/app/components/message-form/message-form.component.ts index 6fc3bcb..d52d767 100644 --- a/src/app/components/message-form/message-form.component.ts +++ b/src/app/components/message-form/message-form.component.ts @@ -1,14 +1,16 @@ -import { Component, OnInit } from '@angular/core'; +import {Component, OnInit} from '@angular/core'; @Component({ - selector: 'app-message-form', - templateUrl: './message-form.component.html', - styleUrls: ['./message-form.component.scss'], + selector: 'app-message-form', + templateUrl: './message-form.component.html', + styleUrls: ['./message-form.component.scss'], }) -export class MessageFormComponent implements OnInit { +export class MessageFormComponent implements OnInit { - constructor() { } + constructor() { + } - ngOnInit() {} + ngOnInit() { + } } diff --git a/src/app/components/message/message.component.html b/src/app/components/message/message.component.html index 9bee74c..6159413 100644 --- a/src/app/components/message/message.component.html +++ b/src/app/components/message/message.component.html @@ -1,3 +1,3 @@- message works! + message works!
diff --git a/src/app/components/message/message.component.ts b/src/app/components/message/message.component.ts index 7b435fd..69e685e 100644 --- a/src/app/components/message/message.component.ts +++ b/src/app/components/message/message.component.ts @@ -1,14 +1,16 @@ -import { Component, OnInit } from '@angular/core'; +import {Component, OnInit} from '@angular/core'; @Component({ - selector: 'app-message', - templateUrl: './message.component.html', - styleUrls: ['./message.component.scss'], + selector: 'app-message', + templateUrl: './message.component.html', + styleUrls: ['./message.component.scss'], }) -export class MessageComponent implements OnInit { +export class MessageComponent implements OnInit { - constructor() { } + constructor() { + } - ngOnInit() {} + ngOnInit() { + } } diff --git a/src/app/components/settings-options/settings-options.component.ts b/src/app/components/settings-options/settings-options.component.ts index 74af7fb..81f45e9 100644 --- a/src/app/components/settings-options/settings-options.component.ts +++ b/src/app/components/settings-options/settings-options.component.ts @@ -45,7 +45,7 @@ export class SettingsOptionsComponent { await loading.dismiss(); } - async deleteUser(){ + async deleteUser() { const loading = await this.loadCtrl.create({ message: 'Déconnexion en cours...', spinner: 'lines-sharp-small' diff --git a/src/app/pages/home/home.component.html b/src/app/pages/home/home.component.html index 3976387..1f36426 100644 --- a/src/app/pages/home/home.component.html +++ b/src/app/pages/home/home.component.html @@ -47,7 +47,7 @@{{ user.username }}
{{ user.getUserStatsDto.totalChallenge }} défis réalisés
{{ user.getUserStatsDto.totalLikes }} pts +
{{ user.getUserStatsDto.totalLikes }} + pts
} diff --git a/src/app/services/api/README.md b/src/app/services/api/README.md index c2ba935..f9e031a 100644 --- a/src/app/services/api/README.md +++ b/src/app/services/api/README.md @@ -59,9 +59,9 @@ In your Angular project: ```typescript -import { ApplicationConfig } from '@angular/core'; -import { provideHttpClient } from '@angular/common/http'; -import { provideApi } from ''; +import {ApplicationConfig} from '@angular/core'; +import {provideHttpClient} from '@angular/common/http'; +import {provideApi} from ''; export const appConfig: ApplicationConfig = { providers: [ @@ -73,17 +73,19 @@ export const appConfig: ApplicationConfig = { ``` **NOTE** -If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module: +If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you +can still import an Angular module: + ```typescript -import { ApiModule } from ''; +import {ApiModule} from ''; ``` If different from the generated base path, during app bootstrap, you can provide the base path to your service. ```typescript -import { ApplicationConfig } from '@angular/core'; -import { provideHttpClient } from '@angular/common/http'; -import { provideApi } from ''; +import {ApplicationConfig} from '@angular/core'; +import {provideHttpClient} from '@angular/common/http'; +import {provideApi} from ''; export const appConfig: ApplicationConfig = { providers: [ @@ -96,9 +98,9 @@ export const appConfig: ApplicationConfig = { ```typescript // with a custom configuration -import { ApplicationConfig } from '@angular/core'; -import { provideHttpClient } from '@angular/common/http'; -import { provideApi } from ''; +import {ApplicationConfig} from '@angular/core'; +import {provideHttpClient} from '@angular/common/http'; +import {provideApi} from ''; export const appConfig: ApplicationConfig = { providers: [ @@ -115,9 +117,9 @@ export const appConfig: ApplicationConfig = { ```typescript // with factory building a custom configuration -import { ApplicationConfig } from '@angular/core'; -import { provideHttpClient } from '@angular/common/http'; -import { provideApi, Configuration } from ''; +import {ApplicationConfig} from '@angular/core'; +import {provideHttpClient} from '@angular/common/http'; +import {provideApi, Configuration} from ''; export const appConfig: ApplicationConfig = { providers: [ @@ -126,10 +128,10 @@ export const appConfig: ApplicationConfig = { { provide: Configuration, useFactory: (authService: AuthService) => new Configuration({ - basePath: 'http://localhost:9999', - withCredentials: true, - username: authService.getUsername(), - password: authService.getPassword(), + basePath: 'http://localhost:9999', + withCredentials: true, + username: authService.getUsername(), + password: authService.getPassword(), }), deps: [AuthService], multi: false @@ -145,10 +147,10 @@ you can create an alias name when importing the modules in order to avoid naming conflicts: ```typescript -import { provideApi as provideUserApi } from 'my-user-api-path'; -import { provideApi as provideAdminApi } from 'my-admin-api-path'; -import { HttpClientModule } from '@angular/common/http'; -import { environment } from '../environments/environment'; +import {provideApi as provideUserApi} from 'my-user-api-path'; +import {provideApi as provideAdminApi} from 'my-admin-api-path'; +import {HttpClientModule} from '@angular/common/http'; +import {environment} from '../environments/environment'; export const appConfig: ApplicationConfig = { providers: [ @@ -181,5 +183,7 @@ new Configuration({ ``` [parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations + [style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values + [@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander diff --git a/src/app/services/api/api.base.service.ts b/src/app/services/api/api.base.service.ts index ca18710..b90fbe9 100644 --- a/src/app/services/api/api.base.service.ts +++ b/src/app/services/api/api.base.service.ts @@ -1,16 +1,16 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http'; -import { CustomHttpParameterCodec } from './encoder'; -import { Configuration } from './configuration'; -import { OpenApiHttpParams, QueryParamStyle, concatHttpParamsObject} from './query.params'; +import {HttpHeaders, HttpParams, HttpParameterCodec} from '@angular/common/http'; +import {CustomHttpParameterCodec} from './encoder'; +import {Configuration} from './configuration'; +import {OpenApiHttpParams, QueryParamStyle, concatHttpParamsObject} from './query.params'; export class BaseService { protected basePath = 'http://localhost:5235'; @@ -18,7 +18,7 @@ export class BaseService { public configuration: Configuration; public encoder: HttpParameterCodec; - constructor(basePath?: string|string[], configuration?: Configuration) { + constructor(basePath?: string | string[], configuration?: Configuration) { this.configuration = configuration || new Configuration(); if (typeof this.configuration.basePath !== 'string') { const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined; diff --git a/src/app/services/api/api.module.ts b/src/app/services/api/api.module.ts index 58d341f..68ca8d7 100644 --- a/src/app/services/api/api.module.ts +++ b/src/app/services/api/api.module.ts @@ -1,30 +1,30 @@ -import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core'; -import { Configuration } from './configuration'; -import { HttpClient } from '@angular/common/http'; +import {NgModule, ModuleWithProviders, SkipSelf, Optional} from '@angular/core'; +import {Configuration} from './configuration'; +import {HttpClient} from '@angular/common/http'; @NgModule({ - imports: [], - declarations: [], - exports: [], - providers: [] + imports: [], + declarations: [], + exports: [], + providers: [] }) export class ApiModule { public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders