Compare commits
No commits in common. "38c07cb9ce5541cdc10daa107155ac3f80a5b87a" and "229ea2c5d508c7a7235aaf557ca1d68404f2bff7" have entirely different histories.
38c07cb9ce
...
229ea2c5d5
|
|
@ -1,43 +1,24 @@
|
||||||
import { defineStore } from 'pinia'
|
import { defineStore } from "pinia";
|
||||||
import { computed, reactive, ref, watch } from 'vue'
|
import { reactive, ref } from "vue";
|
||||||
|
|
||||||
export type TomatoTarget = {
|
export type TomatoTarget = {
|
||||||
id: string
|
id: string;
|
||||||
finishTime: number
|
finishTime: number;
|
||||||
remindTime: number | null
|
remindTime: number | null;
|
||||||
title: string
|
title: string;
|
||||||
isCompleted: boolean
|
isCompleted: boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
export type TomatoTime = {
|
export type TomatoTime = {
|
||||||
date: number
|
date: number;
|
||||||
finishTime: number
|
finishTime: number;
|
||||||
}
|
}
|
||||||
export const musicList = [
|
|
||||||
{
|
export default defineStore("work", () => {
|
||||||
name: 'A Part of Us',
|
|
||||||
music: 'https://newfatfox.oss-cn-beijing.aliyuncs.com/admin/music/aPartOfUs.mp3'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'a signal rose',
|
|
||||||
music: 'https://newfatfox.oss-cn-beijing.aliyuncs.com/admin/music/AsignalRose.mp3'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'a thousand lifetimes',
|
|
||||||
music: 'https://newfatfox.oss-cn-beijing.aliyuncs.com/admin/music/aThousandLifetimes.mp3'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'A Very Brady Special',
|
|
||||||
music: 'https://newfatfox.oss-cn-beijing.aliyuncs.com/admin/music/AVeryBradySpecial.mp3'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'A Wonderful Story',
|
|
||||||
music: 'https://newfatfox.oss-cn-beijing.aliyuncs.com/admin/music/AWonderfulStore.mp3'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
export default defineStore('work', () => {
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
list: [] as TomatoTarget[],
|
list: [] as TomatoTarget[],
|
||||||
timeList: [] as TomatoTime[]
|
timeList: [] as TomatoTime[]
|
||||||
|
|
||||||
})
|
})
|
||||||
const openShowModel = ref<undefined | null | TomatoTarget>()
|
const openShowModel = ref<undefined | null | TomatoTarget>()
|
||||||
const openFullscreen = ref(false)
|
const openFullscreen = ref(false)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue