mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-06-17 22:40:16 -04:00
fix: Various lint issues (#7766)
This commit is contained in:
@@ -45,7 +45,7 @@ function cont(x: number, D: number, mixed: boolean) {
|
|||||||
let Q_2 = 1;
|
let Q_2 = 1;
|
||||||
let Q_1 = 0;
|
let Q_1 = 0;
|
||||||
let Q = 0;
|
let Q = 0;
|
||||||
let A = Math.floor(B);
|
let A: number;
|
||||||
while (Q_1 < D) {
|
while (Q_1 < D) {
|
||||||
A = Math.floor(B);
|
A = Math.floor(B);
|
||||||
P = A * P_1 + P_2;
|
P = A * P_1 + P_2;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ const authUser = ref<UserOut | null>(null);
|
|||||||
const authStatus = ref<"loading" | "authenticated" | "unauthenticated">("loading");
|
const authStatus = ref<"loading" | "authenticated" | "unauthenticated">("loading");
|
||||||
|
|
||||||
export const useAuthBackend = function (): AuthState {
|
export const useAuthBackend = function (): AuthState {
|
||||||
const { $appInfo, $axios } = useNuxtApp();
|
const { $axios } = useNuxtApp();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
const runtimeConfig = useRuntimeConfig();
|
const runtimeConfig = useRuntimeConfig();
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
export function getTokenCookieOptions(): Parameters<typeof useCookie>[1] {
|
export function getTokenCookieOptions() {
|
||||||
const isSecureConnection = useNuxtApp().$appInfo.production && window?.location?.protocol === "https:";
|
const isSecureConnection = useNuxtApp().$appInfo.production && window?.location?.protocol === "https:";
|
||||||
return {
|
return {
|
||||||
maxAge: useNuxtApp().$appInfo.tokenTime * 60 * 60,
|
maxAge: useNuxtApp().$appInfo.tokenTime * 60 * 60,
|
||||||
secure: isSecureConnection,
|
secure: isSecureConnection,
|
||||||
sameSite: isSecureConnection ? "none" : "lax",
|
sameSite: (isSecureConnection ? "none" : "lax") as "none" | "lax",
|
||||||
partitioned: isSecureConnection,
|
partitioned: isSecureConnection,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user