duangsuse::Echo
https://github.com/duangsuse/alldreamwall #web #recommend 🌝 已经包装完好,各位路过的大佬们如果看着顺眼就点个赞吧...
马上再往上加功能,这次是支持 URL 参数定位 SID、UID、选择 page 和 rowsize、category
然后支持手动设置 cookie,开启关闭夜间模式
然后支持 基于字段的 JSON prettyprint comment 插件
然后支持插件,允许使用 AllDreamAPI DSL 创建更多功能
plugin foo
author buf
description 无用的插件
menuitem 你好世界 link 🌐
begin
cookie foo as bar
ask GET ?
ajax get https://foo.com data
url param :result
param foo as bar
success javascript
alert(dsl['body'])
end
end
snackbar :result
setlist 你好世界
end
然后支持手动设置 cookie,开启关闭夜间模式
然后支持 基于字段的 JSON prettyprint comment 插件
然后支持插件,允许使用 AllDreamAPI DSL 创建更多功能
plugin foo
author buf
description 无用的插件
menuitem 你好世界 link 🌐
begin
cookie foo as bar
ask GET ?
ajax get https://foo.com data
url param :result
param foo as bar
success javascript
alert(dsl['body'])
end
end
snackbar :result
setlist 你好世界
end
jsoncomment rule
for uid do |a|
"https://all-dream.com/rest/student/" + a
end
for id do |b|
//....
'hello'
end
end
然后可以在 pluin 里用 using rule 设置当前 JSON pp 插件🌚
反正用户操作不可能是并行的,也不用加锁什么的
for uid do |a|
"https://all-dream.com/rest/student/" + a
end
for id do |b|
//....
'hello'
end
end
然后可以在 pluin 里用 using rule 设置当前 JSON pp 插件🌚
反正用户操作不可能是并行的,也不用加锁什么的
duangsuse::Echo
https://gist.github.com/duangsuse/f576da3db8a7563130411d950f4110c1 第一个 AllDreamWall 脚本
我觉得在开始完成插件系统之前应该先修改一下 DreamScript — DS 必须使用基于缩进的语法,这样才不会出现
begin
ajax get https://foo.com
success
javascript
mdui.alert("Load finished")
begin解析错误的问题
alert Load end
end
begin
ajax get https://foo.com
success
javascript
mdui.alert("Load finished")