commit
1f6c3bbafa
@ -0,0 +1,2 @@ |
|||||||
|
/wordle-results.min.js |
||||||
|
/node_modules/ |
@ -0,0 +1,8 @@ |
|||||||
|
# Default ignored files |
||||||
|
/shelf/ |
||||||
|
/workspace.xml |
||||||
|
# Datasource local storage ignored files |
||||||
|
/dataSources/ |
||||||
|
/dataSources.local.xml |
||||||
|
# Editor-based HTTP Client requests |
||||||
|
/httpRequests/ |
@ -0,0 +1,8 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project version="4"> |
||||||
|
<component name="ProjectModuleManager"> |
||||||
|
<modules> |
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/wordle-results-copy.iml" filepath="$PROJECT_DIR$/.idea/wordle-results-copy.iml" /> |
||||||
|
</modules> |
||||||
|
</component> |
||||||
|
</project> |
@ -0,0 +1,6 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project version="4"> |
||||||
|
<component name="VcsDirectoryMappings"> |
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" /> |
||||||
|
</component> |
||||||
|
</project> |
@ -0,0 +1,12 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<module type="WEB_MODULE" version="4"> |
||||||
|
<component name="NewModuleRootManager"> |
||||||
|
<content url="file://$MODULE_DIR$"> |
||||||
|
<excludeFolder url="file://$MODULE_DIR$/temp" /> |
||||||
|
<excludeFolder url="file://$MODULE_DIR$/.tmp" /> |
||||||
|
<excludeFolder url="file://$MODULE_DIR$/tmp" /> |
||||||
|
</content> |
||||||
|
<orderEntry type="inheritedJdk" /> |
||||||
|
<orderEntry type="sourceFolder" forTests="false" /> |
||||||
|
</component> |
||||||
|
</module> |
@ -0,0 +1,681 @@ |
|||||||
|
{ |
||||||
|
"name": "wordle-results-copy", |
||||||
|
"version": "1.0.0", |
||||||
|
"lockfileVersion": 2, |
||||||
|
"requires": true, |
||||||
|
"packages": { |
||||||
|
"": { |
||||||
|
"name": "wordle-results-copy", |
||||||
|
"version": "1.0.0", |
||||||
|
"devDependencies": { |
||||||
|
"minify": "^8.0.4" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/buffer-from": { |
||||||
|
"version": "1.1.2", |
||||||
|
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", |
||||||
|
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"node_modules/camel-case": { |
||||||
|
"version": "4.1.2", |
||||||
|
"resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", |
||||||
|
"integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"pascal-case": "^3.1.2", |
||||||
|
"tslib": "^2.0.3" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/clean-css": { |
||||||
|
"version": "5.2.4", |
||||||
|
"resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.2.4.tgz", |
||||||
|
"integrity": "sha512-nKseG8wCzEuji/4yrgM/5cthL9oTDc5UOQyFMvW/Q53oP6gLH690o1NbuTh6Y18nujr7BxlsFuS7gXLnLzKJGg==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"source-map": "~0.6.0" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": ">= 10.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/commander": { |
||||||
|
"version": "8.3.0", |
||||||
|
"resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", |
||||||
|
"integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", |
||||||
|
"dev": true, |
||||||
|
"engines": { |
||||||
|
"node": ">= 12" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/css-b64-images": { |
||||||
|
"version": "0.2.5", |
||||||
|
"resolved": "https://registry.npmjs.org/css-b64-images/-/css-b64-images-0.2.5.tgz", |
||||||
|
"integrity": "sha1-QgBdgyBLK0pdk7axpWRBM7WSegI=", |
||||||
|
"dev": true, |
||||||
|
"bin": { |
||||||
|
"css-b64-images": "bin/css-b64-images" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": "*" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/debug": { |
||||||
|
"version": "4.3.3", |
||||||
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", |
||||||
|
"integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"ms": "2.1.2" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": ">=6.0" |
||||||
|
}, |
||||||
|
"peerDependenciesMeta": { |
||||||
|
"supports-color": { |
||||||
|
"optional": true |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/dot-case": { |
||||||
|
"version": "3.0.4", |
||||||
|
"resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", |
||||||
|
"integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"no-case": "^3.0.4", |
||||||
|
"tslib": "^2.0.3" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/entities": { |
||||||
|
"version": "3.0.1", |
||||||
|
"resolved": "https://registry.npmjs.org/entities/-/entities-3.0.1.tgz", |
||||||
|
"integrity": "sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==", |
||||||
|
"dev": true, |
||||||
|
"engines": { |
||||||
|
"node": ">=0.12" |
||||||
|
}, |
||||||
|
"funding": { |
||||||
|
"url": "https://github.com/fb55/entities?sponsor=1" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/find-up": { |
||||||
|
"version": "6.3.0", |
||||||
|
"resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", |
||||||
|
"integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"locate-path": "^7.1.0", |
||||||
|
"path-exists": "^5.0.0" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" |
||||||
|
}, |
||||||
|
"funding": { |
||||||
|
"url": "https://github.com/sponsors/sindresorhus" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/html-minifier-terser": { |
||||||
|
"version": "7.0.0-alpha.1", |
||||||
|
"resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-7.0.0-alpha.1.tgz", |
||||||
|
"integrity": "sha512-tQwy+rdjixdS2oOf5l0A1VWHSRDPJcpmcUyGGIM1QybxswixhttRzRmqXR+2jLwl+iYoKndU1HBdVOftkFXmQw==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"camel-case": "^4.1.2", |
||||||
|
"clean-css": "^5.2.2", |
||||||
|
"commander": "^8.3.0", |
||||||
|
"entities": "^3.0.1", |
||||||
|
"param-case": "^3.0.4", |
||||||
|
"relateurl": "^0.2.7", |
||||||
|
"terser": "^5.10.0" |
||||||
|
}, |
||||||
|
"bin": { |
||||||
|
"html-minifier-terser": "cli.js" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/jju": { |
||||||
|
"version": "1.4.0", |
||||||
|
"resolved": "https://registry.npmjs.org/jju/-/jju-1.4.0.tgz", |
||||||
|
"integrity": "sha1-o6vicYryQaKykE+EpiWXDzia4yo=", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"node_modules/locate-path": { |
||||||
|
"version": "7.1.0", |
||||||
|
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-7.1.0.tgz", |
||||||
|
"integrity": "sha512-HNx5uOnYeK4SxEoid5qnhRfprlJeGMzFRKPLCf/15N3/B4AiofNwC/yq7VBKdVk9dx7m+PiYCJOGg55JYTAqoQ==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"p-locate": "^6.0.0" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" |
||||||
|
}, |
||||||
|
"funding": { |
||||||
|
"url": "https://github.com/sponsors/sindresorhus" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/lower-case": { |
||||||
|
"version": "2.0.2", |
||||||
|
"resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", |
||||||
|
"integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"tslib": "^2.0.3" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/minify": { |
||||||
|
"version": "8.0.4", |
||||||
|
"resolved": "https://registry.npmjs.org/minify/-/minify-8.0.4.tgz", |
||||||
|
"integrity": "sha512-NA3ia+/VbjxgPb6Oo7aebvi0WGKHyNWGPg4m018CmWT1Ar8CXLnpz7Ux1ccaVPfADjs3Yv8hc4NuBvUVdIZ21A==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"clean-css": "^5.0.1", |
||||||
|
"css-b64-images": "~0.2.5", |
||||||
|
"debug": "^4.1.0", |
||||||
|
"find-up": "^6.1.0", |
||||||
|
"html-minifier-terser": "^7.0.0-alpha.1", |
||||||
|
"readjson": "^2.2.2", |
||||||
|
"simport": "^1.2.0", |
||||||
|
"terser": "^5.3.2", |
||||||
|
"try-catch": "^3.0.0", |
||||||
|
"try-to-catch": "^3.0.0" |
||||||
|
}, |
||||||
|
"bin": { |
||||||
|
"minify": "bin/minify.js" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": ">=14" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/ms": { |
||||||
|
"version": "2.1.2", |
||||||
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", |
||||||
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"node_modules/no-case": { |
||||||
|
"version": "3.0.4", |
||||||
|
"resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", |
||||||
|
"integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"lower-case": "^2.0.2", |
||||||
|
"tslib": "^2.0.3" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/p-limit": { |
||||||
|
"version": "4.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", |
||||||
|
"integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"yocto-queue": "^1.0.0" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" |
||||||
|
}, |
||||||
|
"funding": { |
||||||
|
"url": "https://github.com/sponsors/sindresorhus" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/p-locate": { |
||||||
|
"version": "6.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-6.0.0.tgz", |
||||||
|
"integrity": "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"p-limit": "^4.0.0" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" |
||||||
|
}, |
||||||
|
"funding": { |
||||||
|
"url": "https://github.com/sponsors/sindresorhus" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/param-case": { |
||||||
|
"version": "3.0.4", |
||||||
|
"resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", |
||||||
|
"integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"dot-case": "^3.0.4", |
||||||
|
"tslib": "^2.0.3" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/pascal-case": { |
||||||
|
"version": "3.1.2", |
||||||
|
"resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", |
||||||
|
"integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"no-case": "^3.0.4", |
||||||
|
"tslib": "^2.0.3" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/path-exists": { |
||||||
|
"version": "5.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", |
||||||
|
"integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", |
||||||
|
"dev": true, |
||||||
|
"engines": { |
||||||
|
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/readjson": { |
||||||
|
"version": "2.2.2", |
||||||
|
"resolved": "https://registry.npmjs.org/readjson/-/readjson-2.2.2.tgz", |
||||||
|
"integrity": "sha512-PdeC9tsmLWBiL8vMhJvocq+OezQ3HhsH2HrN7YkhfYcTjQSa/iraB15A7Qvt7Xpr0Yd2rDNt6GbFwVQDg3HcAw==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"jju": "^1.4.0", |
||||||
|
"try-catch": "^3.0.0" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": ">=10" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/relateurl": { |
||||||
|
"version": "0.2.7", |
||||||
|
"resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", |
||||||
|
"integrity": "sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=", |
||||||
|
"dev": true, |
||||||
|
"engines": { |
||||||
|
"node": ">= 0.10" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/simport": { |
||||||
|
"version": "1.2.0", |
||||||
|
"resolved": "https://registry.npmjs.org/simport/-/simport-1.2.0.tgz", |
||||||
|
"integrity": "sha512-85Bm7pKsqiiQ8rmYCaPDdlXZjJvuW6/k/FY8MTtLFMgU7f8S00CgTHfRtWB6KwSb6ek4p9YyG2enG1+yJbl+CA==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"readjson": "^2.2.0", |
||||||
|
"try-to-catch": "^3.0.0" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": ">=12.2" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/source-map": { |
||||||
|
"version": "0.6.1", |
||||||
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", |
||||||
|
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", |
||||||
|
"dev": true, |
||||||
|
"engines": { |
||||||
|
"node": ">=0.10.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/source-map-support": { |
||||||
|
"version": "0.5.21", |
||||||
|
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", |
||||||
|
"integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"buffer-from": "^1.0.0", |
||||||
|
"source-map": "^0.6.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/terser": { |
||||||
|
"version": "5.10.0", |
||||||
|
"resolved": "https://registry.npmjs.org/terser/-/terser-5.10.0.tgz", |
||||||
|
"integrity": "sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA==", |
||||||
|
"dev": true, |
||||||
|
"dependencies": { |
||||||
|
"commander": "^2.20.0", |
||||||
|
"source-map": "~0.7.2", |
||||||
|
"source-map-support": "~0.5.20" |
||||||
|
}, |
||||||
|
"bin": { |
||||||
|
"terser": "bin/terser" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": ">=10" |
||||||
|
}, |
||||||
|
"peerDependencies": { |
||||||
|
"acorn": "^8.5.0" |
||||||
|
}, |
||||||
|
"peerDependenciesMeta": { |
||||||
|
"acorn": { |
||||||
|
"optional": true |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/terser/node_modules/commander": { |
||||||
|
"version": "2.20.3", |
||||||
|
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", |
||||||
|
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"node_modules/terser/node_modules/source-map": { |
||||||
|
"version": "0.7.3", |
||||||
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", |
||||||
|
"integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", |
||||||
|
"dev": true, |
||||||
|
"engines": { |
||||||
|
"node": ">= 8" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/try-catch": { |
||||||
|
"version": "3.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/try-catch/-/try-catch-3.0.0.tgz", |
||||||
|
"integrity": "sha512-3uAqUnoemzca1ENvZ72EVimR+E8lqBbzwZ9v4CEbLjkaV3Q+FtdmPUt7jRtoSoTiYjyIMxEkf6YgUpe/voJ1ng==", |
||||||
|
"dev": true, |
||||||
|
"engines": { |
||||||
|
"node": ">=6" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/try-to-catch": { |
||||||
|
"version": "3.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/try-to-catch/-/try-to-catch-3.0.0.tgz", |
||||||
|
"integrity": "sha512-eIm6ZXwR35jVF8By/HdbbkcaCDTBI5PpCPkejRKrYp0jyf/DbCCcRhHD7/O9jtFI3ewsqo9WctFEiJTS6i+CQA==", |
||||||
|
"dev": true, |
||||||
|
"engines": { |
||||||
|
"node": ">=6" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/tslib": { |
||||||
|
"version": "2.3.1", |
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", |
||||||
|
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"node_modules/yocto-queue": { |
||||||
|
"version": "1.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz", |
||||||
|
"integrity": "sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==", |
||||||
|
"dev": true, |
||||||
|
"engines": { |
||||||
|
"node": ">=12.20" |
||||||
|
}, |
||||||
|
"funding": { |
||||||
|
"url": "https://github.com/sponsors/sindresorhus" |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"dependencies": { |
||||||
|
"buffer-from": { |
||||||
|
"version": "1.1.2", |
||||||
|
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", |
||||||
|
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"camel-case": { |
||||||
|
"version": "4.1.2", |
||||||
|
"resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", |
||||||
|
"integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"pascal-case": "^3.1.2", |
||||||
|
"tslib": "^2.0.3" |
||||||
|
} |
||||||
|
}, |
||||||
|
"clean-css": { |
||||||
|
"version": "5.2.4", |
||||||
|
"resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.2.4.tgz", |
||||||
|
"integrity": "sha512-nKseG8wCzEuji/4yrgM/5cthL9oTDc5UOQyFMvW/Q53oP6gLH690o1NbuTh6Y18nujr7BxlsFuS7gXLnLzKJGg==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"source-map": "~0.6.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"commander": { |
||||||
|
"version": "8.3.0", |
||||||
|
"resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", |
||||||
|
"integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"css-b64-images": { |
||||||
|
"version": "0.2.5", |
||||||
|
"resolved": "https://registry.npmjs.org/css-b64-images/-/css-b64-images-0.2.5.tgz", |
||||||
|
"integrity": "sha1-QgBdgyBLK0pdk7axpWRBM7WSegI=", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"debug": { |
||||||
|
"version": "4.3.3", |
||||||
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", |
||||||
|
"integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"ms": "2.1.2" |
||||||
|
} |
||||||
|
}, |
||||||
|
"dot-case": { |
||||||
|
"version": "3.0.4", |
||||||
|
"resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", |
||||||
|
"integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"no-case": "^3.0.4", |
||||||
|
"tslib": "^2.0.3" |
||||||
|
} |
||||||
|
}, |
||||||
|
"entities": { |
||||||
|
"version": "3.0.1", |
||||||
|
"resolved": "https://registry.npmjs.org/entities/-/entities-3.0.1.tgz", |
||||||
|
"integrity": "sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"find-up": { |
||||||
|
"version": "6.3.0", |
||||||
|
"resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", |
||||||
|
"integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"locate-path": "^7.1.0", |
||||||
|
"path-exists": "^5.0.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"html-minifier-terser": { |
||||||
|
"version": "7.0.0-alpha.1", |
||||||
|
"resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-7.0.0-alpha.1.tgz", |
||||||
|
"integrity": "sha512-tQwy+rdjixdS2oOf5l0A1VWHSRDPJcpmcUyGGIM1QybxswixhttRzRmqXR+2jLwl+iYoKndU1HBdVOftkFXmQw==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"camel-case": "^4.1.2", |
||||||
|
"clean-css": "^5.2.2", |
||||||
|
"commander": "^8.3.0", |
||||||
|
"entities": "^3.0.1", |
||||||
|
"param-case": "^3.0.4", |
||||||
|
"relateurl": "^0.2.7", |
||||||
|
"terser": "^5.10.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"jju": { |
||||||
|
"version": "1.4.0", |
||||||
|
"resolved": "https://registry.npmjs.org/jju/-/jju-1.4.0.tgz", |
||||||
|
"integrity": "sha1-o6vicYryQaKykE+EpiWXDzia4yo=", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"locate-path": { |
||||||
|
"version": "7.1.0", |
||||||
|
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-7.1.0.tgz", |
||||||
|
"integrity": "sha512-HNx5uOnYeK4SxEoid5qnhRfprlJeGMzFRKPLCf/15N3/B4AiofNwC/yq7VBKdVk9dx7m+PiYCJOGg55JYTAqoQ==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"p-locate": "^6.0.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"lower-case": { |
||||||
|
"version": "2.0.2", |
||||||
|
"resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", |
||||||
|
"integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"tslib": "^2.0.3" |
||||||
|
} |
||||||
|
}, |
||||||
|
"minify": { |
||||||
|
"version": "8.0.4", |
||||||
|
"resolved": "https://registry.npmjs.org/minify/-/minify-8.0.4.tgz", |
||||||
|
"integrity": "sha512-NA3ia+/VbjxgPb6Oo7aebvi0WGKHyNWGPg4m018CmWT1Ar8CXLnpz7Ux1ccaVPfADjs3Yv8hc4NuBvUVdIZ21A==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"clean-css": "^5.0.1", |
||||||
|
"css-b64-images": "~0.2.5", |
||||||
|
"debug": "^4.1.0", |
||||||
|
"find-up": "^6.1.0", |
||||||
|
"html-minifier-terser": "^7.0.0-alpha.1", |
||||||
|
"readjson": "^2.2.2", |
||||||
|
"simport": "^1.2.0", |
||||||
|
"terser": "^5.3.2", |
||||||
|
"try-catch": "^3.0.0", |
||||||
|
"try-to-catch": "^3.0.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"ms": { |
||||||
|
"version": "2.1.2", |
||||||
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", |
||||||
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"no-case": { |
||||||
|
"version": "3.0.4", |
||||||
|
"resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", |
||||||
|
"integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"lower-case": "^2.0.2", |
||||||
|
"tslib": "^2.0.3" |
||||||
|
} |
||||||
|
}, |
||||||
|
"p-limit": { |
||||||
|
"version": "4.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", |
||||||
|
"integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"yocto-queue": "^1.0.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"p-locate": { |
||||||
|
"version": "6.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-6.0.0.tgz", |
||||||
|
"integrity": "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"p-limit": "^4.0.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"param-case": { |
||||||
|
"version": "3.0.4", |
||||||
|
"resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", |
||||||
|
"integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"dot-case": "^3.0.4", |
||||||
|
"tslib": "^2.0.3" |
||||||
|
} |
||||||
|
}, |
||||||
|
"pascal-case": { |
||||||
|
"version": "3.1.2", |
||||||
|
"resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", |
||||||
|
"integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"no-case": "^3.0.4", |
||||||
|
"tslib": "^2.0.3" |
||||||
|
} |
||||||
|
}, |
||||||
|
"path-exists": { |
||||||
|
"version": "5.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", |
||||||
|
"integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"readjson": { |
||||||
|
"version": "2.2.2", |
||||||
|
"resolved": "https://registry.npmjs.org/readjson/-/readjson-2.2.2.tgz", |
||||||
|
"integrity": "sha512-PdeC9tsmLWBiL8vMhJvocq+OezQ3HhsH2HrN7YkhfYcTjQSa/iraB15A7Qvt7Xpr0Yd2rDNt6GbFwVQDg3HcAw==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"jju": "^1.4.0", |
||||||
|
"try-catch": "^3.0.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"relateurl": { |
||||||
|
"version": "0.2.7", |
||||||
|
"resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", |
||||||
|
"integrity": "sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"simport": { |
||||||
|
"version": "1.2.0", |
||||||
|
"resolved": "https://registry.npmjs.org/simport/-/simport-1.2.0.tgz", |
||||||
|
"integrity": "sha512-85Bm7pKsqiiQ8rmYCaPDdlXZjJvuW6/k/FY8MTtLFMgU7f8S00CgTHfRtWB6KwSb6ek4p9YyG2enG1+yJbl+CA==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"readjson": "^2.2.0", |
||||||
|
"try-to-catch": "^3.0.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"source-map": { |
||||||
|
"version": "0.6.1", |
||||||
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", |
||||||
|
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"source-map-support": { |
||||||
|
"version": "0.5.21", |
||||||
|
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", |
||||||
|
"integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"buffer-from": "^1.0.0", |
||||||
|
"source-map": "^0.6.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"terser": { |
||||||
|
"version": "5.10.0", |
||||||
|
"resolved": "https://registry.npmjs.org/terser/-/terser-5.10.0.tgz", |
||||||
|
"integrity": "sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA==", |
||||||
|
"dev": true, |
||||||
|
"requires": { |
||||||
|
"commander": "^2.20.0", |
||||||
|
"source-map": "~0.7.2", |
||||||
|
"source-map-support": "~0.5.20" |
||||||
|
}, |
||||||
|
"dependencies": { |
||||||
|
"commander": { |
||||||
|
"version": "2.20.3", |
||||||
|
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", |
||||||
|
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"source-map": { |
||||||
|
"version": "0.7.3", |
||||||
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", |
||||||
|
"integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", |
||||||
|
"dev": true |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"try-catch": { |
||||||
|
"version": "3.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/try-catch/-/try-catch-3.0.0.tgz", |
||||||
|
"integrity": "sha512-3uAqUnoemzca1ENvZ72EVimR+E8lqBbzwZ9v4CEbLjkaV3Q+FtdmPUt7jRtoSoTiYjyIMxEkf6YgUpe/voJ1ng==", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"try-to-catch": { |
||||||
|
"version": "3.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/try-to-catch/-/try-to-catch-3.0.0.tgz", |
||||||
|
"integrity": "sha512-eIm6ZXwR35jVF8By/HdbbkcaCDTBI5PpCPkejRKrYp0jyf/DbCCcRhHD7/O9jtFI3ewsqo9WctFEiJTS6i+CQA==", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"tslib": { |
||||||
|
"version": "2.3.1", |
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", |
||||||
|
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", |
||||||
|
"dev": true |
||||||
|
}, |
||||||
|
"yocto-queue": { |
||||||
|
"version": "1.0.0", |
||||||
|
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz", |
||||||
|
"integrity": "sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==", |
||||||
|
"dev": true |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,10 @@ |
|||||||
|
{ |
||||||
|
"name": "wordle-results-copy", |
||||||
|
"version": "1.0.0", |
||||||
|
"devDependencies": { |
||||||
|
"minify": "^8.0.4" |
||||||
|
}, |
||||||
|
"scripts": { |
||||||
|
"build": "minify wordle-results.js >wordle-results.min.js" |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,99 @@ |
|||||||
|
console.log((function(document, clipboard) { |
||||||
|
const LOWERCASE_A_OFFSET = 0x61 |
||||||
|
const CIRCLED_SPACE = 0x25CF |
||||||
|
const CIRCLED_A_OFFSET = 0x24B6 |
||||||
|
const NEGATIVE_CIRCLED_A_OFFSET = 0x1F150 |
||||||
|
const SQUARED_A_OFFSET = 0x1F130 |
||||||
|
const NEGATIVE_SQUARED_A_OFFSET = 0x1F170 |
||||||
|
const UNFILLED = " " |
||||||
|
const UNFILLED_EMOJI_CODEPOINT = 0x2754 |
||||||
|
const FILLED_EMOJI_CODEPOINT = 0x2753 |
||||||
|
const ABSENT = "absent" |
||||||
|
const ABSENT_EMOJI_CODEPOINT = 0x2B1B |
||||||
|
const PRESENT = "present" |
||||||
|
const PRESENT_EMOJI_CODEPOINT = 0x1F7E8 |
||||||
|
const CORRECT = "correct" |
||||||
|
const CORRECT_EMOJI_CODEPOINT = 0x1F7E9 |
||||||
|
const IN_PROGRESS = "IN_PROGRESS" |
||||||
|
const FAIL = "FAIL" |
||||||
|
const WIN = "WIN" |
||||||
|
const NON_EMOJI_VARIANT = 0xfe0e |
||||||
|
|
||||||
|
function letterToEvaluatedCodePoints(letter, evaluation) { |
||||||
|
if (letter === UNFILLED) { |
||||||
|
return CIRCLED_SPACE |
||||||
|
} |
||||||
|
let offset |
||||||
|
switch (evaluation) { |
||||||
|
case CORRECT: |
||||||
|
offset = NEGATIVE_SQUARED_A_OFFSET |
||||||
|
break |
||||||
|
case PRESENT: |
||||||
|
offset = SQUARED_A_OFFSET |
||||||
|
break |
||||||
|
case null: |
||||||
|
offset = NEGATIVE_CIRCLED_A_OFFSET |
||||||
|
break |
||||||
|
case ABSENT: |
||||||
|
default: |
||||||
|
offset = CIRCLED_A_OFFSET |
||||||
|
break |
||||||
|
} |
||||||
|
return [letter.codePointAt(0) - LOWERCASE_A_OFFSET + offset, NON_EMOJI_VARIANT] |
||||||
|
} |
||||||
|
|
||||||
|
function evaluationsToEmoji(word, evaluations) { |
||||||
|
if (evaluations === null) { |
||||||
|
return String.fromCodePoint(...Array.from(word).map((letter) => letter === UNFILLED ? UNFILLED_EMOJI_CODEPOINT : FILLED_EMOJI_CODEPOINT)) |
||||||
|
} |
||||||
|
return String.fromCodePoint(...evaluations.map((eval) => { |
||||||
|
switch (eval) { |
||||||
|
case CORRECT: |
||||||
|
return CORRECT_EMOJI_CODEPOINT |
||||||
|
case PRESENT: |
||||||
|
return PRESENT_EMOJI_CODEPOINT |
||||||
|
case ABSENT: |
||||||
|
default: |
||||||
|
return ABSENT_EMOJI_CODEPOINT |
||||||
|
} |
||||||
|
})) |
||||||
|
} |
||||||
|
|
||||||
|
function wordToEvaluatedWord(word, evaluations) { |
||||||
|
return String.fromCodePoint(...Array.from(word).map((letter, index) => |
||||||
|
letterToEvaluatedCodePoints(letter, evaluations !== null ? evaluations[index] : null) |
||||||
|
).flat()) |
||||||
|
} |
||||||
|
|
||||||
|
function wordToResultLine(word, evaluations) { |
||||||
|
return `${evaluationsToEmoji(word, evaluations)} ||${wordToEvaluatedWord(word, evaluations)}||` |
||||||
|
} |
||||||
|
|
||||||
|
function count(rowIndex, gameStatus) { |
||||||
|
switch (gameStatus) { |
||||||
|
case WIN: |
||||||
|
return rowIndex |
||||||
|
case FAIL: |
||||||
|
return "X" |
||||||
|
case IN_PROGRESS: |
||||||
|
default: |
||||||
|
return "?" |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
function gameStateToResults(game) { |
||||||
|
return `Wordle ${game.dayOffset} ${count(game.rowIndex, game.gameStatus)}/6${game.hardMode ? "*" : ""}\n\n${game.boardState |
||||||
|
.map((word, index) => [word, game.evaluations[index]]) |
||||||
|
.filter(([word]) => word !== "") |
||||||
|
.map(([word, evaluation]) => wordToResultLine(word.padEnd(5, UNFILLED), evaluation)) |
||||||
|
.join('\n')}` |
||||||
|
} |
||||||
|
|
||||||
|
function findGame() { |
||||||
|
return document.querySelector("game-app") |
||||||
|
} |
||||||
|
|
||||||
|
const results = gameStateToResults(findGame()) |
||||||
|
clipboard.writeText(results) |
||||||
|
return results |
||||||
|
})(document, navigator.clipboard)) |
Loading…
Reference in new issue