🌐 (app) init 18n in en and french
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user