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

Create resume builder website #59

Merged
merged 7 commits into from
Sep 3, 2024
Merged

Create resume builder website #59

merged 7 commits into from
Sep 3, 2024

Conversation

rogermparent
Copy link
Owner

This PR adds a new website, the resume builder. This ports next-resume-builder, which was originally a copy-paste, into the current content-engine codebase.

Copy link

trunk-io bot commented Aug 28, 2024

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

Comment on lines +1 to +17
import z from "zod";

const dateEpochSchema = z.union([
z.enum([""]),
z.string().transform((value, ctx) => {
const epoch = Date.parse(`${value}Z`);
if (Number.isNaN(epoch)) {
ctx.addIssue({
code: z.ZodIssueCode.invalid_date,
});
return z.NEVER;
}
return epoch;
}),
]);

export default dateEpochSchema;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactors the custom dateEpoch zod schema to be exported from content-engine

Fixing issues Trunk caught
@rogermparent rogermparent merged commit 4d24935 into main Sep 3, 2024
2 checks passed
@rogermparent rogermparent deleted the resume-builder branch September 3, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant