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
配置代码可直接编辑 #3
Comments
最好是有一些 checkbox,勾勾就能解决大多数问题。 |
@afc163 嗯,一并考虑。等设计好后,找个周会看看大家的意见。 预计开发时间:7 月份 |
debug只能适用get请求页面,post的不太方便,并且很多post页面,刷新重复提交是无效的。建议在debug的页面默认给链接和表单地址加上 另外,在console里的配置可以存到页面url里。 |
原来是存 cookie 的,也就是会一直保持 debug 状态 ---Sent from Boxer | http://getboxer.com On 周四, 7月 04, 2013 at 11:24 下午, noahlu wrote:debug只能适用get请求页面,post的不太方便,并且很多post页面,刷新重复提交是无效的。建议在debug的页面默认给链接和表单地址加上 seajs-debug 参数。 另外,在console里的配置可以存到页面url里。 —Reply to this email directly or view it on GitHub. |
现在依旧存在 cookie 里的,有效期 30 天,因此只要加一次 |
看了之前的 issue , 感觉 seajs-debug 需融合以下功能:
有几个问题:
@lifesinger , 是否要精简下需求? 我觉得方便开发者调试的功能够用就好了. 不是非常必要的就不加了. |
sea-log.js 有可能线上需要的,这样线上代码,可以直接使用
当 debug 为 true 时,就会保留。
嗯,这个是最主要的功能点。有了这个,其他功能都可以基于 config 来实现。
目前可通过下面的配置来实现 seajs.config({
comboExcludes: /\.js/
})
目前可通过下面的配置来实现 seajs.config({
map: [
function(url) {
// 将 url 中的所有非 -debug.js 替换为 debug.js
}
]
})
这个放到 seajs-health 插件中去做,debug 中不做
这个可以放 debug 插件做 |
核心需求就是
让 config.js 的内容可直接在页面中编辑,不需要放到本地文件中。 把这个实现后,然后优化界面,将常用功能以更便捷的方式提供出来(比如 checkbox 等)。 |
我觉得比较重要的功能
之前请求 config.js 方式还有个问题,线上 https 是无法访问本地 http 服务的,会被阻止 |
debug 插件乔花跟进,直接修改 seajs/sea-debug 库。 新界面、功能设计好后,先让贯高、小高、偏右和我看下,讨论下。 |
这个可以关了. seajs-debug@1.1.1 |
debug 插件的核心功能,是给用户提供一个加载自定义 config 的可扩展点,目前所有自定义 config 信息,都需要存在一个本地文件里,并且需要 http server 来访问。
一个优化点是,利用本地存储,不再依赖 http server,直接弹出一个可编辑框让用户编辑即可。
还可以提供一个 config 模板文件出来,让常用功能,通过去除注释就可以开启。
The text was updated successfully, but these errors were encountered: