-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
406 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/app/models/saga.model.ts → src/app/models/saga/saga.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { Routes, RouterModule } from '@angular/router'; | ||
|
||
import { EditSagaPage } from './edit-saga.page'; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: '', | ||
component: EditSagaPage | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule], | ||
}) | ||
export class EditSagaPageRoutingModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; | ||
|
||
import { IonicModule } from '@ionic/angular'; | ||
|
||
import { EditSagaPageRoutingModule } from './edit-saga-routing.module'; | ||
|
||
import { EditSagaPage } from './edit-saga.page'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
FormsModule, | ||
ReactiveFormsModule, | ||
IonicModule, | ||
EditSagaPageRoutingModule | ||
], | ||
declarations: [EditSagaPage] | ||
}) | ||
export class EditSagaPageModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<ion-header [translucent]="true"> | ||
<ion-toolbar color="primary"> | ||
<ion-buttons slot="start"> | ||
<ion-menu-button></ion-menu-button> | ||
<ion-back-button></ion-back-button> | ||
</ion-buttons> | ||
<ion-buttons slot="primary"> | ||
<ion-button routerDirection="backward" *ngIf="authService.currentTokenValue" type="submit" (click)="save()"> | ||
<ion-icon name="save"></ion-icon> | ||
</ion-button> | ||
</ion-buttons> | ||
<ion-title>{{ saga.title }}</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<form [formGroup]="sagaForm" novalidate> | ||
<ion-list lines="full" class="ion-no-margin"> | ||
<ion-list-header lines="full"> | ||
<ion-label>Informations</ion-label> | ||
</ion-list-header> | ||
<ion-item> | ||
<ion-label position="floating">Titre</ion-label> | ||
<ion-input type="string" value="{{ saga.title }}" formControlName="title"></ion-input> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label position="floating">URL</ion-label> | ||
<ion-input value="{{ saga.url }}" formControlName="url"></ion-input> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label position="floating">URL Wiki</ion-label> | ||
<ion-input value="{{ saga.urlWiki }}" formControlName="urlWiki"></ion-input> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label position="floating">Etat</ion-label> | ||
<ion-input value="{{ saga.status }}" formControlName="status"></ion-input> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label position="floating">Synopsis</ion-label> | ||
<ion-textarea value="{{ saga.synopsis }}" formControlName="synopsis"></ion-textarea> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label position="floating">Origine</ion-label> | ||
<ion-textarea value="{{ saga.origin }}" formControlName="origin"></ion-textarea> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label position="floating">Génèse</ion-label> | ||
<ion-textarea value="{{ saga.genese }}" formControlName="genese"></ion-textarea> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label position="floating">Récompenses</ion-label> | ||
<ion-textarea value="{{ saga.awards }}" formControlName="awards"></ion-textarea> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label position="floating">Bannière</ion-label> | ||
<ion-input class="fileUpload" type="file" formControlName="banner" (change)="onBannerChange($event)">{{ bannerSource }}</ion-input> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label position="floating">Pochette</ion-label> | ||
<ion-input class="fileUpload" type="file" formControlName="cover" (change)="onCoverChange($event)">{{ coverSource }}</ion-input> | ||
</ion-item> | ||
</ion-list> | ||
</form> | ||
</ion-content> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; | ||
import { IonicModule } from '@ionic/angular'; | ||
|
||
import { EditSagaPage } from './edit-saga.page'; | ||
|
||
describe('EditSagaPage', () => { | ||
let component: EditSagaPage; | ||
let fixture: ComponentFixture<EditSagaPage>; | ||
|
||
beforeEach(waitForAsync(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ EditSagaPage ], | ||
imports: [IonicModule.forRoot()] | ||
}).compileComponents(); | ||
|
||
fixture = TestBed.createComponent(EditSagaPage); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
})); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.