Skip to content
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

CFB扩展V1.1.0 #201

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CQR63aeb92acb2674523fc72f20

一个用于打开文件的扩展

@Nightre
Copy link
Contributor

Nightre commented Mar 15, 2024

你999厉害!

@kukemc
Copy link
Contributor

kukemc commented Mar 15, 2024

base泛滥可不好过审啊

@CQR63aeb92acb2674523fc72f20
Copy link
Author

base泛滥可不好过审啊

......经验+1

@fath11
Copy link
Contributor

fath11 commented Mar 16, 2024

SIPC Cloud Music can already play music from base64 tho...

@CQR63aeb92acb2674523fc72f20
Copy link
Author

SIPC Cloud Music can already play music from base64 tho...

I didn't know this when I was doing the Scrtch extension...

@fath11
Copy link
Contributor

fath11 commented Mar 17, 2024

Could the functionality to download different file types be implemented directly into File Helper? File Helper also has some updates here #199

Currently, FIle Helper only supports downloading text files, i just think we didn't need to add a whole new extension for just another feature.
image

@little-starts
Copy link
Contributor

Could the functionality to download different file types be implemented directly into File Helper? File Helper also has some updates here #199

Currently, FIle Helper only supports downloading text files, i just think we didn't need to add a whole new extension for just another feature.
image

I have developed base64 manipulation files and image related building blocks, but was warned of possible performance issues and was closed.

@little-starts
Copy link
Contributor

Could the functionality to download different file types be implemented directly into File Helper? File Helper also has some updates here #199

Currently, FIle Helper only supports downloading text files, i just think we didn't need to add a whole new extension for just another feature.
image

I have developed base64 manipulation files and image related building blocks, but was warned of possible performance issues and was closed.

pr#72,
feat(block):上传,下载图片(base64)(10kb)
feat(block):获取base64图片的宽高
feat(block):压缩base64图片
fix(block):修复文字base64在非base64下报错的BUG
feat(block):重新上线基于db的键值对
fix(compile):优化下载文件的代码,更加规范
feat(block):打开任意文件并转换为base64(50kb)
feat(block):获取上次打开文件的文件名,后缀,文件大小
feat(block):从网页链接下载文件

"CCWCQRCFB.unit": "单位转换",
"CCWCQRCFB.unitC": "将[num][type1]转换为[type2]做单位的数据",
"CCWCQRCFB.music": "音频",
"CCWCQRCFB.playAudio": "在线播放文件格式为[type]base64为[data]的base64音频",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

作为读取问价你的扩展,问什么会有播放音乐的功能。。。

"CCWCQRCFB.openfile": "打开[type]并编码为base64",
"CCWCQRCFB.typeOpenfile": "打开[type]格式的[num]并编码为base64",
"CCWCQRCFB.downloadfile": "将bease64为[data]的文件以[name]文件名[type]格式下载",
"CCWCQRCFB.downloadJSONfile": "根据JSON[data]下载文件",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以批量下载任意 url 的文件?监管风险很高啊


/** 打开教程 */
docs() {
let a = document.createElement('a');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getInfo 中使用 docsURI 即可配置扩展文档,不用自己写按钮

}
/** 打开文件*/
openfile(args) {
if (args.type == "true"){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个积木如果放到 for 里面会怎么样?会卡死玩家吗

@sylarhcn
Copy link
Contributor

@CQR63aeb92acb2674523fc72f20
我 review 了,并有上面几个疑问,你先你看下哦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants