From 3fa9618504d9f9a000060ac53a293697dcdc6165 Mon Sep 17 00:00:00 2001 From: Clint Plummer Date: Fri, 2 Feb 2024 14:27:41 +1100 Subject: [PATCH] WIP --- v2/package-lock.json | 51 +++++++++++++++++++++++++++++---- v2/package.json | 4 ++- v2/pages/index.tsx | 6 ++-- v2/public/output.docx | Bin 0 -> 16920 bytes v2/public/parser.js | 39 +++++++++++++++++++++++++ v2/public/resume-template.docx | Bin 0 -> 10580 bytes v2/public/resume.clintp.json | 13 +++++---- 7 files changed, 98 insertions(+), 15 deletions(-) create mode 100644 v2/public/output.docx create mode 100644 v2/public/parser.js create mode 100644 v2/public/resume-template.docx diff --git a/v2/package-lock.json b/v2/package-lock.json index 14644b5..0e011d6 100644 --- a/v2/package-lock.json +++ b/v2/package-lock.json @@ -8,7 +8,6 @@ "name": "clintp-xyz", "version": "0.1.0", "dependencies": { - "fs": "^0.0.1-security", "next": "14.1.0", "react": "^18", "react-dom": "^18", @@ -18,9 +17,12 @@ "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", + "angular-expressions": "^1.2.1", "autoprefixer": "^10.0.1", + "docxtemplater": "^3.44.0", "eslint": "^8", "eslint-config-next": "14.1.0", + "pizzip": "^3.1.6", "postcss": "^8", "tailwindcss": "^3.3.0", "typescript": "^5" @@ -671,6 +673,15 @@ "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==" }, + "node_modules/@xmldom/xmldom": { + "version": "0.8.10", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.10.tgz", + "integrity": "sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/acorn": { "version": "8.11.3", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", @@ -708,6 +719,12 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/angular-expressions": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/angular-expressions/-/angular-expressions-1.2.1.tgz", + "integrity": "sha512-pUnlViwIJ0L3KXh1a5gJGuMuGvxwbTbxkGINt7F6259p5UtksRpQ9Q5GhYb6VyfVfKtR65QAJgDhml3zpgmFuA==", + "dev": true + }, "node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -1429,6 +1446,18 @@ "node": ">=6.0.0" } }, + "node_modules/docxtemplater": { + "version": "3.44.0", + "resolved": "https://registry.npmjs.org/docxtemplater/-/docxtemplater-3.44.0.tgz", + "integrity": "sha512-JkMX1hMLYHaYyecSUgdJLyBPOhUFqWWNqdrv+8PDVloIeCpNnxNr887d1s52ZLQOXOLGwNIEBnJ+OblPxW2Swg==", + "dev": true, + "dependencies": { + "@xmldom/xmldom": "^0.8.10" + }, + "engines": { + "node": ">=0.10" + } + }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", @@ -2173,11 +2202,6 @@ "url": "https://github.com/sponsors/rawify" } }, - "node_modules/fs": { - "version": "0.0.1-security", - "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", - "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==" - }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -4146,6 +4170,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/pako": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz", + "integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==", + "dev": true + }, "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -4275,6 +4305,15 @@ "node": ">= 6" } }, + "node_modules/pizzip": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/pizzip/-/pizzip-3.1.6.tgz", + "integrity": "sha512-FCG2lSMVlrt2jB1iokujjXexanfszV/Y04t4mu1icdSEC/vb/2qDISr2kgENzdkThd1jkRNjvipWitU4gpbM/g==", + "dev": true, + "dependencies": { + "pako": "^2.1.0" + } + }, "node_modules/postcss": { "version": "8.4.33", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.33.tgz", diff --git a/v2/package.json b/v2/package.json index bf94c87..ce6e79b 100644 --- a/v2/package.json +++ b/v2/package.json @@ -9,7 +9,6 @@ "lint": "next lint" }, "dependencies": { - "fs": "^0.0.1-security", "next": "14.1.0", "react": "^18", "react-dom": "^18", @@ -19,9 +18,12 @@ "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", + "angular-expressions": "^1.2.1", "autoprefixer": "^10.0.1", + "docxtemplater": "^3.44.0", "eslint": "^8", "eslint-config-next": "14.1.0", + "pizzip": "^3.1.6", "postcss": "^8", "tailwindcss": "^3.3.0", "typescript": "^5" diff --git a/v2/pages/index.tsx b/v2/pages/index.tsx index eebf2e5..cc320ff 100644 --- a/v2/pages/index.tsx +++ b/v2/pages/index.tsx @@ -35,7 +35,7 @@ const Header = () => { const AboutSection = () => { return (
-

What have you done?

+

What have you done?