Skip to content

CFB扩展V1.1.0 - #201

Open
blissfulCQR wants to merge 1 commit into
Gandi-IDE:mainfrom
blissfulCQR:main
Open

CFB扩展V1.1.0#201
blissfulCQR wants to merge 1 commit into
Gandi-IDE:mainfrom
blissfulCQR:main

Conversation

@blissfulCQR

Copy link
Copy Markdown

一个用于打开文件的扩展

@Nightre

Nightre commented Mar 15, 2024

Copy link
Copy Markdown
Contributor

你999厉害!

@kukemc

kukemc commented Mar 15, 2024

Copy link
Copy Markdown
Contributor

base泛滥可不好过审啊

@blissfulCQR

Copy link
Copy Markdown
Author

base泛滥可不好过审啊

......经验+1

@The11thPencil

Copy link
Copy Markdown
Contributor

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

@blissfulCQR

Copy link
Copy Markdown
Author

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

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

@The11thPencil

Copy link
Copy Markdown
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

@little-starts

Copy link
Copy Markdown
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
Copy Markdown
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):从网页链接下载文件

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Comment thread CQR/CFB.js

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Comment thread CQR/CFB.js
}
/** 打开文件*/
openfile(args) {
if (args.type == "true"){

Copy link
Copy Markdown
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
Copy Markdown
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