Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency pinia to v3 #1286

Merged
merged 2 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 113 additions & 6 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"fedora-bootstrap": "^2.0.2",
"install": "^0.13.0",
"npm": "^10.5.2 || ^11.0.0",
"pinia": "^2.0.14",
"pinia": "^2.0.14 || ^3.0.0",
"pinia-plugin-persistedstate": "^2.1.0 || ^3.0.0 || ^4.0.0",
"qs": "^6.11.0",
"vue": "^3.2.37",
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/stores/toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export interface Toast {
date: Date;
}

export const useToastStore = defineStore({
id: "toast",
export const useToastStore = defineStore("toast", {
state: () => ({
toasts: [] as Toast[],
}),
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/stores/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { login } from "../auth";
import type { UserInfoResponseJson } from "../auth/userinfo_request";
import { useToastStore } from "./toast";

export const useUserStore = defineStore({
id: "user",
export const useUserStore = defineStore("user", {
state: () => ({
accessToken: null as string | null,
refreshToken: null as string | null,
Expand Down