fixes #2151, apply secure cookie session only if using SSL (https)

This commit is contained in:
Amruth Pillai
2025-01-14 09:45:57 +01:00
parent 21af624096
commit a32def2086
122 changed files with 721 additions and 669 deletions

View File

@ -1,4 +1,4 @@
import { LayoutLocator } from "./types";
import type { LayoutLocator } from "./types";
// Function to find a specific item in a layout
export const findItemInLayout = (item: string, layout: string[][][]): LayoutLocator | null => {

View File

@ -1,6 +1,6 @@
import Papa from "papaparse";
import { Json } from "./types";
import type { Json } from "./types";
export const parseCSV = async (string: string) => {
return new Promise<Json[]>((resolve, reject) => {

View File

@ -1,6 +1,6 @@
import { adjectives, animals, uniqueNamesGenerator } from "unique-names-generator";
import { LayoutLocator, SortablePayload } from "./types";
import type { LayoutLocator, SortablePayload } from "./types";
export const getInitials = (name: string) => {
// eslint-disable-next-line unicorn/better-regex

View File

@ -1,4 +1,5 @@
import { ClassValue, clsx } from "clsx";
import type { ClassValue } from "clsx";
import { clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export const breakpoints = {