Delete unused store files

This commit is contained in:
Dede Fuji Abdul 2024-04-04 21:42:59 +07:00
parent 2cf868297d
commit c95e41f4f3
7 changed files with 0 additions and 132 deletions

View File

@ -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,
}
})

View File

@ -1,9 +0,0 @@
import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useSearchStore = defineStore('dateTest', () => {
return {
isTriggerChange: ref(false),
}
})

View File

@ -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,
}
})

View File

@ -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,
}
})

View File

@ -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,
}
})

View File

@ -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,
}
})

View File

@ -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,
}
})