-
-
Notifications
You must be signed in to change notification settings - Fork 278
files.js -- Update with code from Files Expanded #1833
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
base: master
Are you sure you want to change the base?
Conversation
!format |
Related PR: #1594 |
|
Ah, someone that actually knows what they are doing. I'm just going to close mine, since this does everything that mine would do (and better). |
Renamed the branch, reopen the PR from |
!format |
!format |
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.
A more indepth review is indeed required.
* @param {Uint8Array} buffer | ||
* @returns {string} base64 | ||
*/ | ||
function bufferToBase64(buffer) { |
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.
this seems wasteful and copied from stackoverflow, is there a reason you cant use the globally exposed Base64 module
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.
im not certain that module can do this stuff, i cant seem to find any useful documentation on it either
@@ -444,7 +1117,242 @@ | |||
console.warn(`unknown mode`, args.mode); | |||
} | |||
} | |||
|
|||
fileInfo(args) { | |||
if (args.FORMAT === "size formatted") return FileSize; |
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.
checking again you dont cast anything in your new changes, that should be fixed
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 dont really see a need to cast this?
!format |
this must be merged first before this can be officially PR-ed: |
THIS MUST BE MERGED FIRST:
TurboWarp/scratch-gui#979
Super Mega Update to the Files Extension to port over many new features from my expansion of the extension.
This includes:
Closes:
#1603
#156
#837
Files Expanded:
https://github.com/SharkPool-SP/SharkPools-Extensions/blob/main/extension-code/Files-Expanded.js