mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-26 01:44:53 +10:00
fixes #2151, apply secure cookie session only if using SSL (https)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { createContext, useContext } from "react";
|
||||
import { FieldPath, FieldValues, useFormContext } from "react-hook-form";
|
||||
import type { FieldPath, FieldValues } from "react-hook-form";
|
||||
import { useFormContext } from "react-hook-form";
|
||||
|
||||
type FormFieldContextValue<
|
||||
TFieldValues extends FieldValues = FieldValues,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ResumeData } from "@reactive-resume/schema";
|
||||
import { ZodDto } from "nestjs-zod/dto";
|
||||
import { Schema } from "zod";
|
||||
import type { ResumeData } from "@reactive-resume/schema";
|
||||
import type { ZodDto } from "nestjs-zod/dto";
|
||||
import type { Schema } from "zod";
|
||||
|
||||
export type Parser<Data = unknown, T = ZodDto, Result = ResumeData> = {
|
||||
schema?: Schema;
|
||||
|
||||
@@ -13,11 +13,12 @@ import {
|
||||
defaultSkill,
|
||||
defaultVolunteer,
|
||||
} from "@reactive-resume/schema";
|
||||
import { Json } from "@reactive-resume/utils";
|
||||
import { Schema } from "zod";
|
||||
import type { Json } from "@reactive-resume/utils";
|
||||
import type { Schema } from "zod";
|
||||
|
||||
import { Parser } from "../interfaces/parser";
|
||||
import { JsonResume, jsonResumeSchema } from "./schema";
|
||||
import type { Parser } from "../interfaces/parser";
|
||||
import type { JsonResume } from "./schema";
|
||||
import { jsonResumeSchema } from "./schema";
|
||||
|
||||
export * from "./schema";
|
||||
|
||||
|
||||
@@ -10,12 +10,14 @@ import {
|
||||
defaultSkill,
|
||||
resumeDataSchema,
|
||||
} from "@reactive-resume/schema";
|
||||
import { extractUrl, Json, parseArrayLikeCSVEntry, parseCSV } from "@reactive-resume/utils";
|
||||
import type { Json } from "@reactive-resume/utils";
|
||||
import { extractUrl, parseArrayLikeCSVEntry, parseCSV } from "@reactive-resume/utils";
|
||||
import * as JSZip from "jszip";
|
||||
import { Schema } from "zod";
|
||||
import type { Schema } from "zod";
|
||||
|
||||
import { Parser } from "../interfaces/parser";
|
||||
import { LinkedIn, linkedInSchema } from "./schema";
|
||||
import type { Parser } from "../interfaces/parser";
|
||||
import type { LinkedIn } from "./schema";
|
||||
import { linkedInSchema } from "./schema";
|
||||
|
||||
export * from "./schema";
|
||||
|
||||
|
||||
@@ -15,11 +15,13 @@ import {
|
||||
defaultSkill,
|
||||
defaultVolunteer,
|
||||
} from "@reactive-resume/schema";
|
||||
import { isUrl, Json } from "@reactive-resume/utils";
|
||||
import { Schema } from "zod";
|
||||
import type { Json } from "@reactive-resume/utils";
|
||||
import { isUrl } from "@reactive-resume/utils";
|
||||
import type { Schema } from "zod";
|
||||
|
||||
import { Parser } from "../interfaces/parser";
|
||||
import { ReactiveResumeV3, reactiveResumeV3Schema } from "./schema";
|
||||
import type { Parser } from "../interfaces/parser";
|
||||
import type { ReactiveResumeV3 } from "./schema";
|
||||
import { reactiveResumeV3Schema } from "./schema";
|
||||
|
||||
export * from "./schema";
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { ResumeData, resumeDataSchema } from "@reactive-resume/schema";
|
||||
import { Json } from "@reactive-resume/utils";
|
||||
import { Schema } from "zod";
|
||||
import type { ResumeData } from "@reactive-resume/schema";
|
||||
import { resumeDataSchema } from "@reactive-resume/schema";
|
||||
import type { Json } from "@reactive-resume/utils";
|
||||
import type { Schema } from "zod";
|
||||
|
||||
import { Parser } from "../interfaces/parser";
|
||||
import type { Parser } from "../interfaces/parser";
|
||||
|
||||
export class ReactiveResumeParser implements Parser<Json, ResumeData> {
|
||||
schema: Schema;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ResumeData } from "./index";
|
||||
import type { ResumeData } from "./index";
|
||||
|
||||
export const sampleResume: ResumeData = {
|
||||
basics: {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { FilterKeys } from "../shared";
|
||||
import type { FilterKeys } from "../shared";
|
||||
import { idSchema } from "../shared";
|
||||
import { awardSchema } from "./award";
|
||||
import { certificationSchema } from "./certification";
|
||||
|
||||
@@ -3,7 +3,7 @@ import { cn } from "@reactive-resume/utils";
|
||||
import { forwardRef } from "react";
|
||||
|
||||
import { buttonVariants } from "../variants/button";
|
||||
import { ButtonProps } from "./button";
|
||||
import type { ButtonProps } from "./button";
|
||||
|
||||
export const AlertDialog = AlertDialogPrimitive.Root;
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import { Dispatch, forwardRef, SetStateAction, useCallback, useEffect, useState } from "react";
|
||||
import type { Dispatch, SetStateAction } from "react";
|
||||
import { forwardRef, useCallback, useEffect, useState } from "react";
|
||||
|
||||
import { Input, InputProps } from "./input";
|
||||
import type { InputProps } from "./input";
|
||||
import { Input } from "./input";
|
||||
|
||||
type BadgeInputProps = Omit<InputProps, "value" | "onChange"> & {
|
||||
value: string[];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { MagnifyingGlass } from "@phosphor-icons/react";
|
||||
import { DialogProps } from "@radix-ui/react-dialog";
|
||||
import type { DialogProps } from "@radix-ui/react-dialog";
|
||||
import { cn } from "@reactive-resume/utils";
|
||||
import { Command as CommandPrimitive } from "cmdk";
|
||||
import { forwardRef } from "react";
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import * as LabelPrimitive from "@radix-ui/react-label";
|
||||
import type * as LabelPrimitive from "@radix-ui/react-label";
|
||||
import { Slot } from "@radix-ui/react-slot";
|
||||
import { FormFieldContext, FormItemContext, useFormField } from "@reactive-resume/hooks";
|
||||
import { cn } from "@reactive-resume/utils";
|
||||
import { forwardRef, useId } from "react";
|
||||
import { Controller, ControllerProps, FieldPath, FieldValues } from "react-hook-form";
|
||||
import type { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
|
||||
import { Controller } from "react-hook-form";
|
||||
|
||||
import { Label } from "./label";
|
||||
|
||||
|
||||
@@ -33,7 +33,8 @@ import { Image } from "@tiptap/extension-image";
|
||||
import { Link } from "@tiptap/extension-link";
|
||||
import { TextAlign } from "@tiptap/extension-text-align";
|
||||
import { Underline } from "@tiptap/extension-underline";
|
||||
import { Editor, EditorContent, EditorContentProps, useEditor } from "@tiptap/react";
|
||||
import type { Editor, EditorContentProps } from "@tiptap/react";
|
||||
import { EditorContent, useEditor } from "@tiptap/react";
|
||||
import { StarterKit } from "@tiptap/starter-kit";
|
||||
import { forwardRef, useCallback } from "react";
|
||||
import { useForm } from "react-hook-form";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
||||
import { cn } from "@reactive-resume/utils";
|
||||
import { VariantProps } from "class-variance-authority";
|
||||
import type { VariantProps } from "class-variance-authority";
|
||||
import { forwardRef } from "react";
|
||||
|
||||
import { toggleVariants } from "../variants/toggle";
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user