draber / draber.github.io Goto Github PK
View Code? Open in Web Editor NEWSpelling Bee Assistant is an add-on for Spelling Bee, the New York Times’ popular word puzzle.
License: GNU General Public License v3.0
Spelling Bee Assistant is an add-on for Spelling Bee, the New York Times’ popular word puzzle.
License: GNU General Public License v3.0
I'm trying to build this for the first time and getting the errors below. NPM/Node 17.4.0.
npm run build
> [email protected] build
> npm run app:build & npm run site:build
> [email protected] app:build
> node --experimental-json-modules --no-warnings ./src/tools/compile/compile.js -t app
> [email protected] site:build
> node --experimental-json-modules --no-warnings ./src/tools/compile/compile.js -t site
node:internal/errors:464
ErrorCaptureStackTrace(err);
^
TypeError [ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "file:///.../spelling-bee/draber.github.io/package.json" needs an import assertion of type "json"
at new NodeError (node:internal/errors:371:5)
at validateAssertions (node:internal/modules/esm/assert:82:15)
at defaultLoad (node:internal/modules/esm/load:24:3)
at ESMLoader.load (node:internal/modules/esm/loader:359:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:280:58)
at new ModuleJob (node:internal/modules/esm/module_job:66:26)
at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:297:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:261:34)
at async ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:81:21)
at async Promise.all (index 0) {
code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING'
}
Node.js v17.4.0
node:internal/errors:464
ErrorCaptureStackTrace(err);
^
TypeError [ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "file:///.../spelling-bee/draber.github.io/package.json" needs an import assertion of type "json"
at new NodeError (node:internal/errors:371:5)
at validateAssertions (node:internal/modules/esm/assert:82:15)
at defaultLoad (node:internal/modules/esm/load:24:3)
at ESMLoader.load (node:internal/modules/esm/loader:359:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:280:58)
at new ModuleJob (node:internal/modules/esm/module_job:66:26)
at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:297:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:261:34)
at async ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:81:21)
at async Promise.all (index 0) {
code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING'
}
@draber - I was investigating #143
The issue is if you log out and log back in, you'll get two local storage keys, games-state-spelling_bee/ANON
and games-state-spelling_bee/{account_number}
. Doing the shift will bring back the ANON storage key. Now, I can make a pull request to deal with this scenario. The only thing is, while digging into the spelling bee website, I couldn't figure out a good way of differentiating between logged in and logged out (only thing I could think was checking if the login button was present and visible on the page). I'm not as familiar with this so maybe you might be able to find a way that I'm not seeing.
In my current solution, it'll always get the account data if it's there over the ANON. This is technically wrong, because if they log out and start using it in the ANON mode, all the previous logged in words populate and won't update. So, a bit tricky here.
Here with an extremely helpful red arrow:
This is because the menu is shown 10000 px off screen to the right instead of being hidden with display: none;
(it was annoying me and I figured it would be a 2 second fix, so that's why I made the original PR here to close it)
I'm pretty sure the assistant started working again after the 4.3.8 update, but maybe I just never refreshed in the middle of the game. In any case, it currently records my answers but if I refresh the page, it goes back to 0, and it doesn't record anything from the iphone app.
On a mac, google chrome.
Thanks for your helpful plugin. Sometime yesterday the progress tracking broke. New words added after the spelling be is added are tracked, but the existing words don't get added. See this example:
(note how there's one word there, VINE, but spelling bee helper reports 0).
This is consistent behavior seen on Chrome on Mac and Chrome on iOS and began with the Feb 13 puzzle. I am loading spelling bee helper via the bookmarklet.
Hi @ajs256, I reworked the install section and included your suggestions. Could you please have a quick look at https://spelling-bee-assistant.app/ to check if this looks alright to you?
Thanks!
Hey, this looks super cool. Now that there’s a dedicated Spelling Bee forum it might be nice to have a link to it from the assistant since the forum has people discussing the day’s puzzle and even offering creative hints. Finding the column for the day should be trivial. Just a thought..
Just upgraded my Fedora Linux system to Chrome 90. Neither the bookmarklet nor the extension are underlining the pangram in todays (4/16/21) spelling bee. The bookmarklet was working in Chrome 89. Can't say for the extension as I just installed in for the first time on Chrome 90. Not a big deal but I thought you should know.
Congrats on a lovely piece of software!
Any interest in adding an option to display the grid on the puzzle page, for your users with 4k monitors?
Regarding spelling bee of 8/28/21. I'm part way done. I have 26 "D" words but the spelling bee assistant grid and first letter say I only have 20. Also, I have 12 "F" words but the grid and first letter say I have 11. I saw this once before a few weeks ago where the grid and first letter count got stuck and did not count up all the words correctly. I tried deleting the extension and reinstalling it but that did not fix the issue.
Charles Dennett
[email protected]
The recent update seems to have fixed everything that broke when the Times rolled out the ability to play past puzzles... with the exception of one thing. When the page refreshes, it seems like the extension forgets all the words you found, resetting all the score/word totals to 0. The Today's Answers tab also doesn't remember what words have been found already after refreshing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.