-
Notifications
You must be signed in to change notification settings - Fork 294
obviousAlexC/newgroundsIO.js -- "The fix-it update!" #2254
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
obviousAlexC/newgroundsIO.js -- "The fix-it update!" #2254
Conversation
!Format |
!format |
The formatting bot didn't find any formatting issues. It currently only checks the extensions folder. The author or a maintainer can run terminal command 'npm run format' manually to format all files. |
Remind me to look this weekend |
Will do once it is finished. |
!format |
Nah this isn't the fix it update, this is the weight loss update 🗣️ |
A lot of it is reminifying an api prettier thought shouldn't be minifed. |
@David-Orangemoon do you want this reviewed or is it still being worked on? |
I'm waiting for reviews. |
Though I know I should add a can fetch when I get home. |
!format |
@Brackets-Coder ok it's ready |
I'll review when I can |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not approving or requesting changes, just wanna ask a few questions
I'm not familiar with new grounds or their API or anything so this is a very quick skim review of things that jump out at me more than a critique of the actual functionality/best practices...
I also haven't tested this yet but I normally like to before I approve
It looks like the biggest thing is just a minification of whatever library you're using but other than that it looks like you added some things related to medals and scoreboards? like I said, not very familiar...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested this because I don't have newgrounds but it looks good to me
the web editor is lagging quite a bit so other mods let me know if I missed something, I'd greatly appreciate it
I am going to wait for #2267 to finish up (soon - it has a real deadline), then this will be the first extension to use the new importing system |
One thing that concerns me about this is the fact that certain penguinmod projects (Since I know some use this extension) will break if Scratch.import is used due to it not existing in the PM. |
We can give them sufficient notice to copy and paste our implementations of those if we end up adding anything required at run time |
okay, changed my mind, dependency management still a bit away so i'll get this in sooner i figure it can't be any more broken than the old version |
//eslint-disable-next-line no-async-promise-executor | ||
return new Promise(async (resolve, reject) => { | ||
//Just do it once | ||
const canFetch = await Scratch.canFetch("https://www.newgrounds.io/"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was going to ask about this. thanks for thinking about it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i made two changes
- one is just copying and pasting the built library from the original github again to ensure that there was no tampering (don't think there was)
- one is to remove innerhtml usage
if you can check that i didn't break anything bad this can merge whenever
I'll check as well but we can merge whenever you like |
Alright we're all good I suppose the only thing that's keeping this from officially ready is @David-Orangemoon's approval |
Looks good @Brackets-Coder |
Fixes, and updates the NGIO extension which has been degrading due to back-end updates, and my general unthoughtfulness from years ago.
It's ready