Delete unused store files
This commit is contained in:
parent
2cf868297d
commit
c95e41f4f3
@ -1,16 +0,0 @@
|
|||||||
import { ref } from 'vue'
|
|
||||||
import { defineStore } from 'pinia'
|
|
||||||
|
|
||||||
export const useDateStore = defineStore('date', () => {
|
|
||||||
const dateValue = ref('')
|
|
||||||
const setDateValue = (value: string) => {
|
|
||||||
dateValue.value = value
|
|
||||||
}
|
|
||||||
const getDateValue = () => {
|
|
||||||
return dateValue.value;
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
setDateValue,
|
|
||||||
getDateValue,
|
|
||||||
}
|
|
||||||
})
|
|
@ -1,9 +0,0 @@
|
|||||||
import { ref } from 'vue'
|
|
||||||
import { defineStore } from 'pinia'
|
|
||||||
|
|
||||||
|
|
||||||
export const useSearchStore = defineStore('dateTest', () => {
|
|
||||||
return {
|
|
||||||
isTriggerChange: ref(false),
|
|
||||||
}
|
|
||||||
})
|
|
@ -1,16 +0,0 @@
|
|||||||
import { ref } from 'vue'
|
|
||||||
import { defineStore } from 'pinia'
|
|
||||||
|
|
||||||
export const useMediaStore = defineStore('media', () => {
|
|
||||||
const media = ref('')
|
|
||||||
const setData = (value: string) => {
|
|
||||||
media.value = value
|
|
||||||
}
|
|
||||||
const getData = () => {
|
|
||||||
return media.value
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
setData,
|
|
||||||
getData,
|
|
||||||
}
|
|
||||||
})
|
|
@ -1,34 +0,0 @@
|
|||||||
import { ref, computed } from 'vue'
|
|
||||||
import { defineStore } from 'pinia'
|
|
||||||
import gql from 'graphql-tag'
|
|
||||||
import { useQuery } from '@vue/apollo-composable'
|
|
||||||
|
|
||||||
export const useQueryStore = defineStore('query', () => {
|
|
||||||
const getUser = useQuery(gql`
|
|
||||||
query getUsers {
|
|
||||||
users {
|
|
||||||
id
|
|
||||||
firstname
|
|
||||||
lastname
|
|
||||||
email
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`)
|
|
||||||
|
|
||||||
const { variables } = useQuery(gql`
|
|
||||||
query getUserById ($id: ID!) {
|
|
||||||
user (id: $id) {
|
|
||||||
id
|
|
||||||
email
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`, {
|
|
||||||
variables: {
|
|
||||||
id: 'abc-abc-abc',
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
return {
|
|
||||||
getUser,
|
|
||||||
}
|
|
||||||
})
|
|
@ -1,16 +0,0 @@
|
|||||||
import { ref } from 'vue'
|
|
||||||
import { defineStore } from 'pinia'
|
|
||||||
|
|
||||||
export const useRegionStore = defineStore('region', () => {
|
|
||||||
const region = ref()
|
|
||||||
const setData = (value: Number) => {
|
|
||||||
region.value = value
|
|
||||||
}
|
|
||||||
const getData = () => {
|
|
||||||
return region.value
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
setData,
|
|
||||||
getData,
|
|
||||||
}
|
|
||||||
})
|
|
@ -1,25 +0,0 @@
|
|||||||
import { ref } from 'vue'
|
|
||||||
import { defineStore } from 'pinia'
|
|
||||||
|
|
||||||
export const useTotalReport = defineStore('totalReport', () => {
|
|
||||||
const totalMin = ref(1)
|
|
||||||
const totalMax = ref(1)
|
|
||||||
const setDataMin = (value: any) => {
|
|
||||||
totalMin.value = value
|
|
||||||
}
|
|
||||||
const getDataMin = () => {
|
|
||||||
return totalMin.value
|
|
||||||
}
|
|
||||||
const setDataMax = (value: any) => {
|
|
||||||
totalMax.value = value
|
|
||||||
}
|
|
||||||
const getDataMax = () => {
|
|
||||||
return totalMax.value
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
setDataMin,
|
|
||||||
getDataMin,
|
|
||||||
setDataMax,
|
|
||||||
getDataMax,
|
|
||||||
}
|
|
||||||
})
|
|
@ -1,16 +0,0 @@
|
|||||||
import { ref } from 'vue'
|
|
||||||
import { defineStore } from 'pinia'
|
|
||||||
|
|
||||||
export const useUp3Store = defineStore('up3', () => {
|
|
||||||
const up3 = ref()
|
|
||||||
const setData = (value: number) => {
|
|
||||||
up3.value = value
|
|
||||||
}
|
|
||||||
const getData = () => {
|
|
||||||
return up3.value
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
setData,
|
|
||||||
getData,
|
|
||||||
}
|
|
||||||
})
|
|
Loading…
x
Reference in New Issue
Block a user