🌐 (app) init 18n in en and french

This commit is contained in:
2020-07-18 23:32:47 +02:00
parent 4cae3c7a49
commit 62749a3bf7
14 changed files with 311 additions and 40 deletions

View File

@@ -1,6 +1,7 @@
import { useGetters, useActions } from 'vuex-composition-helpers'
import { GetterTree } from 'vuex'
import { State, RootActions } from '@/store'
import { computed } from '@vue/composition-api'
const MIN_INTERVAL = 0.5
const MAX_INTERVAL = 60
@@ -19,8 +20,11 @@ export const useInterval = () => {
setInterval(Math.min(Math.floor(interval.value + 1), MAX_INTERVAL))
}
const isMinuteSession = computed(() => interval.value >= 1)
return {
interval,
isMinuteSession,
minInterval: MIN_INTERVAL,
minus,
plus

View File

@@ -28,8 +28,8 @@ export const useTimer = () => {
const session = computed(() => formatSeconds(sessionSeconds.value))
const intervalSeconds = computed(() => interval.value * 60)
let stopwatchId: number | null = null
let stopWatchSessionId: number | null = null
let stopwatchId: NodeJS.Timeout | null = null
let stopWatchSessionId: NodeJS.Timeout | null = null
watch(interval, () => {
sessionSeconds.value = interval.value * 60