Skip to content

Commit

Permalink
Merge branch 'dev' into feat/user-cache
Browse files Browse the repository at this point in the history
# Conflicts:
#	frontend/app_student/pubspec.yaml
  • Loading branch information
PHPLukaas committed Mar 13, 2024
2 parents 3e6c61f + 8c97906 commit 8540ad0
Show file tree
Hide file tree
Showing 23 changed files with 280 additions and 205 deletions.
Binary file added frontend/app_student/assets/fonts/arial.ttf
Binary file not shown.
21 changes: 21 additions & 0 deletions frontend/app_student/assets/images/eating.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions frontend/app_student/assets/images/microsoft-teams.svg

This file was deleted.

49 changes: 49 additions & 0 deletions frontend/app_student/assets/images/school.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions frontend/app_student/assets/images/teams.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '../../events/entities/event_entity.dart';
import 'package:app_student/api/events/models/event_model.dart';
import '../entities/day_schedule_entity.dart';

class DayScheduleModel {
Expand All @@ -10,7 +10,8 @@ class DayScheduleModel {

int get jour => entity.jour;

List<EventEntity> get events => entity.events;
List<EventModel> get events =>
entity.events.map((e) => EventModel(entity: e)).toList();

factory DayScheduleModel.fromEntity(DayScheduleEntity entity) {
return DayScheduleModel(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ class EventModel {
String get couleur => entity.couleur;
EventHoursModel get horaires => EventHoursModel(entity: entity.horaires);
String get salle => entity.salle;
bool get visio => entity.visio;
}
1 change: 1 addition & 0 deletions frontend/app_student/lib/main_dev.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class MyApp extends StatelessWidget {
theme: ThemeData(
primarySwatch: Colors.blue,
focusColor: const Color(0xffE84E0F),
fontFamily: 'Arial',
),
routerConfig: router,
);
Expand Down
Loading

0 comments on commit 8540ad0

Please sign in to comment.