mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-04-15 13:08:30 +02:00
Clean useless stuff
This commit is contained in:
parent
4f59545e97
commit
e9d9f661ad
@ -1,16 +0,0 @@
|
|||||||
import { defineStore } from 'pinia'
|
|
||||||
|
|
||||||
export const useDataStore = defineStore({
|
|
||||||
id: 'data',
|
|
||||||
|
|
||||||
state: () => {
|
|
||||||
return {
|
|
||||||
twofaccounts: [],
|
|
||||||
groups: [],
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
actions: {
|
|
||||||
|
|
||||||
},
|
|
||||||
})
|
|
@ -2,7 +2,6 @@
|
|||||||
import Form from '@/components/formElements/Form'
|
import Form from '@/components/formElements/Form'
|
||||||
import { useUserStore } from '@/stores/user'
|
import { useUserStore } from '@/stores/user'
|
||||||
import { useBusStore } from '@/stores/bus'
|
import { useBusStore } from '@/stores/bus'
|
||||||
import { useDataStore } from '@/stores/data'
|
|
||||||
import { useNotifyStore } from '@/stores/notify'
|
import { useNotifyStore } from '@/stores/notify'
|
||||||
import { UseColorMode } from '@vueuse/components'
|
import { UseColorMode } from '@vueuse/components'
|
||||||
|
|
||||||
@ -10,8 +9,6 @@
|
|||||||
const user = useUserStore()
|
const user = useUserStore()
|
||||||
const bus = useBusStore()
|
const bus = useBusStore()
|
||||||
const notify = useNotifyStore()
|
const notify = useNotifyStore()
|
||||||
const data = useDataStore()
|
|
||||||
const { twofaccounts } = storeToRefs(data)
|
|
||||||
|
|
||||||
const qrcodeInput = ref(null)
|
const qrcodeInput = ref(null)
|
||||||
const qrcodeInputLabel = ref(null)
|
const qrcodeInputLabel = ref(null)
|
||||||
|
@ -4,11 +4,9 @@
|
|||||||
import twofaccountService from '@/services/twofaccountService'
|
import twofaccountService from '@/services/twofaccountService'
|
||||||
import { useUserStore } from '@/stores/user'
|
import { useUserStore } from '@/stores/user'
|
||||||
import { useBusStore } from '@/stores/bus'
|
import { useBusStore } from '@/stores/bus'
|
||||||
import { useDataStore } from '@/stores/data'
|
|
||||||
import { useNotifyStore } from '@/stores/notify'
|
import { useNotifyStore } from '@/stores/notify'
|
||||||
import { UseColorMode } from '@vueuse/components'
|
import { UseColorMode } from '@vueuse/components'
|
||||||
import { useIdGenerator } from '@/composables/helpers'
|
import { useIdGenerator } from '@/composables/helpers'
|
||||||
import { watch } from 'vue'
|
|
||||||
|
|
||||||
const { copy } = useClipboard({ legacy: true })
|
const { copy } = useClipboard({ legacy: true })
|
||||||
const $2fauth = inject('2fauth')
|
const $2fauth = inject('2fauth')
|
||||||
@ -16,8 +14,6 @@ import { watch } from 'vue'
|
|||||||
const user = useUserStore()
|
const user = useUserStore()
|
||||||
const bus = useBusStore()
|
const bus = useBusStore()
|
||||||
const notify = useNotifyStore()
|
const notify = useNotifyStore()
|
||||||
const data = useDataStore()
|
|
||||||
const { twofaccounts } = storeToRefs(data)
|
|
||||||
const form = reactive(new Form({
|
const form = reactive(new Form({
|
||||||
service: '',
|
service: '',
|
||||||
account: '',
|
account: '',
|
||||||
|
Loading…
Reference in New Issue
Block a user