From 4470df3705d0060d0c1440a41b058b86139da198 Mon Sep 17 00:00:00 2001 From: Isahann Hanacleto Date: Tue, 7 May 2024 09:21:20 -0300 Subject: [PATCH] #56 improving messages --- src/app/score-window/score-window.component.ts | 1 + src/assets/templates/question_result.mustache | 4 ++-- src/assets/templates/week_score.mustache | 5 +++-- src/model/Template.ts | 1 + 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/app/score-window/score-window.component.ts b/src/app/score-window/score-window.component.ts index 929acc8..3841ce4 100644 --- a/src/app/score-window/score-window.component.ts +++ b/src/app/score-window/score-window.component.ts @@ -47,6 +47,7 @@ export class ScoreWindowComponent implements OnInit { private async assembleClipboardText(): Promise { const templateParams: WeekScoreTemplateParams = { + year: this.currentYear, week: this.currentWeek, rightAnswers: this.currentWeekScore!.rightAnswers, wrongAnswers: this.currentWeekScore!.wrongAnswers, diff --git a/src/assets/templates/question_result.mustache b/src/assets/templates/question_result.mustache index 66eb0b1..b872ba4 100644 --- a/src/assets/templates/question_result.mustache +++ b/src/assets/templates/question_result.mustache @@ -1,5 +1,3 @@ -❔ XPQuiz - xpquiz.github.io 🤔 - 👉 {{{question}}} 👈 🟩 {{{rightAnswer}}} @@ -8,3 +6,5 @@ {{/wrongAnswers}} I picked... {{{selectedAnswer}}} {{#questionPoints}}(+{{.}} point(s)){{/questionPoints}} + +🤔 XPQuiz - xpquiz.github.io ❔ diff --git a/src/assets/templates/week_score.mustache b/src/assets/templates/week_score.mustache index 86de5b1..22b66d7 100644 --- a/src/assets/templates/week_score.mustache +++ b/src/assets/templates/week_score.mustache @@ -1,6 +1,7 @@ -❔ XPQuiz - xpquiz.github.io 🤔 -Here's my week score! +Here are my results for {{ year }}, week {{ week }}! 🟩 Right answers: {{rightAnswers}} 🟥 Wrong answers: {{wrongAnswers}} 🟦 Total score: {{totalScore}} + +🤔 XPQuiz - xpquiz.github.io ❔ diff --git a/src/model/Template.ts b/src/model/Template.ts index 11f63dc..d5acb8d 100644 --- a/src/model/Template.ts +++ b/src/model/Template.ts @@ -7,6 +7,7 @@ export interface TemplateParams { } export interface WeekScoreTemplateParams extends TemplateParams { + year: number, week: number, rightAnswers: number, wrongAnswers: number,