mirror of
https://github.com/h44z/wg-portal.git
synced 2025-09-15 15:21:14 +00:00
chore(deps): update frontend packages (#387)
This commit is contained in:
@@ -4,8 +4,7 @@ import { notify } from "@kyvg/vue3-notification";
|
||||
import { apiWrapper } from '@/helpers/fetch-wrapper'
|
||||
import router from '../router'
|
||||
|
||||
export const authStore = defineStore({
|
||||
id: 'auth',
|
||||
export const authStore = defineStore('auth',{
|
||||
state: () => ({
|
||||
// initialize state from local storage to enable user to stay logged in
|
||||
user: JSON.parse(localStorage.getItem('user')),
|
||||
@@ -122,4 +121,4 @@ export const authStore = defineStore({
|
||||
}
|
||||
},
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@@ -7,8 +7,7 @@ import { base64_url_encode } from '@/helpers/encoding';
|
||||
|
||||
const baseUrl = `/interface`
|
||||
|
||||
export const interfaceStore = defineStore({
|
||||
id: 'interfaces',
|
||||
export const interfaceStore = defineStore('interfaces', {
|
||||
state: () => ({
|
||||
interfaces: [],
|
||||
prepared: freshInterface(),
|
||||
|
@@ -8,8 +8,7 @@ import { ipToBigInt } from '@/helpers/utils';
|
||||
|
||||
const baseUrl = `/peer`
|
||||
|
||||
export const peerStore = defineStore({
|
||||
id: 'peers',
|
||||
export const peerStore = defineStore('peers', {
|
||||
state: () => ({
|
||||
peers: [],
|
||||
stats: {},
|
||||
|
@@ -8,8 +8,7 @@ import { ipToBigInt } from '@/helpers/utils';
|
||||
|
||||
const baseUrl = `/user`
|
||||
|
||||
export const profileStore = defineStore({
|
||||
id: 'profile',
|
||||
export const profileStore = defineStore('profile', {
|
||||
state: () => ({
|
||||
peers: [],
|
||||
interfaces: [],
|
||||
|
@@ -3,8 +3,7 @@ import { defineStore } from 'pinia'
|
||||
import { notify } from "@kyvg/vue3-notification";
|
||||
import { apiWrapper } from '@/helpers/fetch-wrapper'
|
||||
|
||||
export const securityStore = defineStore({
|
||||
id: 'security',
|
||||
export const securityStore = defineStore('security',{
|
||||
state: () => ({
|
||||
csrfToken: "",
|
||||
}),
|
||||
@@ -29,4 +28,4 @@ export const securityStore = defineStore({
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@@ -5,8 +5,7 @@ import { apiWrapper } from '@/helpers/fetch-wrapper'
|
||||
|
||||
const baseUrl = `/config`
|
||||
|
||||
export const settingsStore = defineStore({
|
||||
id: 'settings',
|
||||
export const settingsStore = defineStore('settings', {
|
||||
state: () => ({
|
||||
settings: {},
|
||||
}),
|
||||
@@ -33,4 +32,4 @@ export const settingsStore = defineStore({
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@@ -5,8 +5,7 @@ import { base64_url_encode } from '@/helpers/encoding';
|
||||
|
||||
const baseUrl = `/user`
|
||||
|
||||
export const userStore = defineStore({
|
||||
id: 'users',
|
||||
export const userStore = defineStore('users', {
|
||||
state: () => ({
|
||||
userPeers: [],
|
||||
users: [],
|
||||
|
Reference in New Issue
Block a user