From cf649e8f9863369775b5a7c63ae90e5074fe2625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Advaita=20K=E1=B9=9B=E1=B9=A3=E1=B9=87a=20D=C4=81sa?= Date: Fri, 31 Mar 2023 16:39:27 +0200 Subject: [PATCH] feat: improve tutorial (#194) --- .github/workflows/tests.yml | 28 ++++++++--------- src/app/decks/review/pages/ReviewDeckPage.vue | 16 +++++++++- src/app/shared/composables/useTimeMachine.ts | 21 +++++++++++++ src/app/shared/index.ts | 3 +- src/app/statistics/index.ts | 2 +- ...ticsTask.ts => runUpdateStatisticsTask.ts} | 6 ++++ .../tutorial/components/TutorialPlayer.vue | 30 +++++++++++++------ src/app/tutorial/stores/useTutorialStore.ts | 6 ++-- src/locale/en/tutorial.json | 6 ++-- src/locale/ru/tutorial.json | 1 + 10 files changed, 88 insertions(+), 31 deletions(-) create mode 100644 src/app/shared/composables/useTimeMachine.ts rename src/app/statistics/tasks/{UpdateStatisticsTask.ts => runUpdateStatisticsTask.ts} (87%) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 95a4d59b..5e079bcc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,15 +19,15 @@ jobs: registry-url: 'https://npm.pkg.github.com' cache: npm - - name: πŸ«™ Cache NPM dependencies - uses: actions/cache@v3 - id: cache-primes - with: - path: node_modules - key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }} + # - name: πŸ«™ Cache NPM dependencies + # uses: actions/cache@v3 + # id: cache-primes + # with: + # path: node_modules + # key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }} - name: πŸ“¦ Install dependencies - if: steps.cache-primes.outputs.cache-hit != 'true' + # if: steps.cache-primes.outputs.cache-hit != 'true' run: npm ci --audit=false env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -79,15 +79,15 @@ jobs: with: node-version: 18 - - name: πŸ“¦ [Node] Cache packages - uses: actions/cache@v3 - id: cache-primes - with: - path: node_modules - key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }} + # - name: πŸ“¦ [Node] Cache packages + # uses: actions/cache@v3 + # id: cache-primes + # with: + # path: node_modules + # key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }} - name: πŸ“¦ [Node] Install packages - if: steps.cache-primes.outputs.cache-hit != 'true' + # if: steps.cache-primes.outputs.cache-hit != 'true' run: npm ci --audit=false env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/src/app/decks/review/pages/ReviewDeckPage.vue b/src/app/decks/review/pages/ReviewDeckPage.vue index cc7a2117..adc435e8 100644 --- a/src/app/decks/review/pages/ReviewDeckPage.vue +++ b/src/app/decks/review/pages/ReviewDeckPage.vue @@ -6,6 +6,18 @@ {{ $t('decks.review.title') }} + + + + {{ $t("tutorial.daysInFuture", { count: timeMachine.daysInFuture.value }) }} + + @@ -62,7 +74,7 @@