Skip to content

Commit

Permalink
[BOT] Applying format.
Browse files Browse the repository at this point in the history
  • Loading branch information
clubapplets-server authored and github-actions[bot] committed Sep 20, 2023
1 parent e1f37bb commit 2d5cf62
Show file tree
Hide file tree
Showing 11 changed files with 176 additions and 165 deletions.
36 changes: 24 additions & 12 deletions lib/core/constants/faq.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ class Faq {
"en": "What password should I use to log in?"
},
description: {
"fr": "Le mot de passe à utiliser correspond à celui utilisé pour la connexion à MonÉTS et les autres systèmes informatiques de l’ÉTS.",
"en": "The password is the one you use for logging into MonÉTS and other ÉTS computer systems."
"fr":
"Le mot de passe à utiliser correspond à celui utilisé pour la connexion à MonÉTS et les autres systèmes informatiques de l’ÉTS.",
"en":
"The password is the one you use for logging into MonÉTS and other ÉTS computer systems."
},
),
QuestionItem(
Expand All @@ -26,13 +28,16 @@ class Faq {
"en": "I don't have access to the courses and program."
},
description: {
"fr": "Les nouveaux étudiants pourraient ne pas voir l’horaire et les cours inscrits avant le début de la première session de cours. Cependant, ces informations apparaissent dès le début de la première session de cours.",
"en": "New students may not see the schedule and courses before the start of the first course session. However, this information becomes available at the beginning of the first course session."
"fr":
"Les nouveaux étudiants pourraient ne pas voir l’horaire et les cours inscrits avant le début de la première session de cours. Cependant, ces informations apparaissent dès le début de la première session de cours.",
"en":
"New students may not see the schedule and courses before the start of the first course session. However, this information becomes available at the beginning of the first course session."
},
),
QuestionItem(
title: {
"fr": "Je suis diplômé de l’ÉTS et je souhaite faire réactiver mon compte.",
"fr":
"Je suis diplômé de l’ÉTS et je souhaite faire réactiver mon compte.",
"en": "I am an ÉTS graduate, and I want to reactivate my account."
},
description: {
Expand All @@ -46,8 +51,10 @@ class Faq {
"en": "I can't see my grades anymore."
},
description: {
"fr": "Il est possible qu’il s’agit de la période d'évaluation des cours. Vous devez compléter les évaluations sur SignETS. Les notes seront disponibles après avoir répondu aux évaluations.",
"en": "It is possible that this is the course evaluation period. You need to complete the evaluations on SignETS. Grades will be available after responding to the evaluations."
"fr":
"Il est possible qu’il s’agit de la période d'évaluation des cours. Vous devez compléter les évaluations sur SignETS. Les notes seront disponibles après avoir répondu aux évaluations.",
"en":
"It is possible that this is the course evaluation period. You need to complete the evaluations on SignETS. Grades will be available after responding to the evaluations."
},
),
];
Expand All @@ -59,8 +66,10 @@ class Faq {
"en": "Where can I find my universal code?"
},
description: {
"fr": "Le code universel se trouve dans la décision d’admission sur le portail de monÉTS.",
"en": "The universal code can be found in the admission decision on the MonÉTS portal."
"fr":
"Le code universel se trouve dans la décision d’admission sur le portail de monÉTS.",
"en":
"The universal code can be found in the admission decision on the MonÉTS portal."
},
type: ActionType.webview,
link: "https://portail.etsmtl.ca/home/Admission",
Expand All @@ -70,7 +79,8 @@ class Faq {
),
ActionItem(
title: {
"fr": "Je suis diplômé de l’ÉTS et je souhaite faire réactiver mon compte.",
"fr":
"Je suis diplômé de l’ÉTS et je souhaite faire réactiver mon compte.",
"en": "I am an ÉTS graduate, and I want to reactivate my account."
},
description: {
Expand All @@ -85,8 +95,10 @@ class Faq {
),
ActionItem(
title: {
"fr": "Questions concernant vos conditions d'admission, des inscriptions et des conditions relatives à la poursuite de vos études",
"en": "Questions about your admission conditions, registrations, and conditions for continuing your studies"
"fr":
"Questions concernant vos conditions d'admission, des inscriptions et des conditions relatives à la poursuite de vos études",
"en":
"Questions about your admission conditions, registrations, and conditions for continuing your studies"
},
description: {
"fr": "Veuillez contacter le Bureau de la registraire.",
Expand Down
2 changes: 1 addition & 1 deletion lib/core/models/faq_questions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ class QuestionItem {
@required this.title,
@required this.description,
});
}
}
8 changes: 3 additions & 5 deletions lib/core/viewmodels/faq_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@ class FaqViewModel extends BaseViewModel {
Future<void> openMail(String addressEmail, BuildContext context) async {
var email = "";
if (addressEmail == AppInfo.email) {
email =
mailtoStr(addressEmail, AppIntl.of(context).email_subject);
email = mailtoStr(addressEmail, AppIntl.of(context).email_subject);
} else {
email =
mailtoStr(addressEmail, "");
email = mailtoStr(addressEmail, "");
}

final urlLaunchable = await _launchUrlService.canLaunch(email);

if (urlLaunchable) {
Expand Down
3 changes: 2 additions & 1 deletion lib/ui/router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ Route<dynamic> generateRoute(RouteSettings routeSettings) {
case RouterPaths.faq:
return MaterialPageRoute(
settings: RouteSettings(name: routeSettings.name),
builder: (_) => FaqView(backgroundColor: routeSettings.arguments as Color));
builder: (_) =>
FaqView(backgroundColor: routeSettings.arguments as Color));
case RouterPaths.dashboard:
final code = (routeSettings.arguments as UpdateCode) ?? UpdateCode.none;
return PageRouteBuilder(
Expand Down
Loading

0 comments on commit 2d5cf62

Please sign in to comment.