GithubHelp home page GithubHelp logo

baiy / ctool Goto Github PK

View Code? Open in Web Editor NEW
1.4K 13.0 193.0 94.58 MB

程序开发常用工具 chrome / edge / firefox / utools / windows / linux / mac

Home Page: https://ctool.dev

License: MIT License

HTML 0.65% JavaScript 9.53% Vue 40.47% CSS 8.76% TypeScript 40.37% Rust 0.15% Shell 0.06%
crx qrcode chrome-extension firefox-extension electron-app developer-tools development

ctool's Issues

样式问题,横向滚动条

切换正则表达式语法时,出现横向滚动条.样式问题.
这个工具真的非常好.是我见过最好的.

插件点击无响应

如图,点击打开后选项皆不可点击
Chrome: 版本 87.0.4280.88(正式版本) (x86_64)
image

使用疑问:小红点

小红点有什么方法可以去除吗,点击了还是存在,对于如果不关注的用户来说,满屏的小红点相当难受

image

开发者视角:生成开发代码

场景1:
中文翻译成英文的属性名、方法名、控件名等,涉及语言 objc、swift、weex
比如
姓名、年龄 在谷歌翻译成 name、age
这里我们则可能需要生成对应代码:
oc

/// 姓名
@property(copy, nonatomic) NSString *m_name;
/// 年龄
@property(copy, nonatomic) NSString *m_age;

swift

// 生成属性
/// 姓名
var m_name: String?
/// 年龄
var m_age: String?
// 生成控件连线 label button 
/// 姓名
@IBOutlet weak var m_nameLabel: UILabel!
/// 姓名
@IBOutlet weak var m_nameBtn: UIButton!

weex下的jsdoc

/* 
* 姓名
 * @type {string}
*/
m_name: ''

场景2:
开发中经常接入接口到代码里,url 入参 返回值,生成模型等
这里则需要拿到当前网页的url,解析域名及路径、请求方式等生成注释
如:

     // MARK: 获取工作日志详情
    /// 获取工作日志详情 http://ult-ga.....ge/preview/928
    let getDetailWorkLog = XSNetworkRequestMethod(method: .get, path: "entprise/workLog/basic/detail", replace: "")

如,抓取接口文档 里的返回的模型生成swift下或者 java下的bean

class KYWorkDiaryDetailCommentModel: Mappable {
    
    
    /// 员工用户名
    var name: String?
    var userId: String?
    var avatar: String?
    /// 评论时间
    var createTime: String?
    /// 评论id
    var id: String?
    /// 评论内容
    var content: String?
    var employeeId: String?
    required init?(map: Map) { }
    init() {
        
    }
    func mapping(map: Map) {
        
        name <- map["name"]
        userId <- map["userId"]
        avatar <- map["avatar"]
        createTime <- map["createTime"]
        id <- map["id"]
        content <- map["content"]
        employeeId <- map["employeeId"]
    }
    
}

等 等

如果没有这种谷歌插件工具,我们也能开发,只不过是一个一个的复制 ,当然有些开发都连字段注释也懒得复制到代码中,就会导致不清楚某个字段时会去看网页文档,连这个接口文档的url也没放代码里时,就还得问其他开发人员,太低效率了

希望可以发布一个微软edge商店的版本

希望可以发布一个微软edge商店的版本,国内上不去谷歌商店,然后下载crx不知道为啥总是装不上,都是按照教程的步骤做的,大概是电脑的软件环境出了问题。

然后顺便问一下,可以把插件打包之后扔到服务器上对外使用吗,我现在因为装不上插件,所有是这么用的,如果不妥的话我就把网页撤下来。

数组的格式异常

想请问数组的格式是哪种?输入下面两种会提示格式不对,谢谢
Array
(
[0] => Array
(
[field_name] => 单行文本
[cue] => 请输入单行
[field_type] => text
[item_name] => 2_7_x1k8q2
[ifempty] => 1
[field_type_text] => 单行文本
[ifempty_text] => 是
)
)
['a'=>1,'b'=>2]

建议添加「去除转义」功能

示例网站:http://www.bejson.com/

日志中记录的 json 数据有些会有转义符号
例如:

{
  "msg": "'[\"getData\",{\"field\":\"code,name\"}]'"
}

实际上关注的是:msg 字段的内容:

[\"getData\",{\"field\":\"code,name\"}]

进行反转义就可以对 msg 字段进行 json 解析:

[
  "getData",
  {
    "field": "code,name"
  }
]

Crontab 计算相差也太大了

0 */1 * * * ###每小时执行,但是输出最近的执行时间,也太离谱了吧 ,这样会害死人的
每小时

最近10次执行时间
第1次: 2020-08-19 12:00:00
第2次: 2020-08-19 14:00:00
第3次: 2020-08-19 16:00:00
第4次: 2020-08-19 18:00:00
第5次: 2020-08-19 20:00:00
第6次: 2020-08-19 22:00:00
第7次: 2020-08-20 00:00:00
第8次: 2020-08-20 02:00:00
第9次: 2020-08-20 04:00:00
第10次: 2020-08-20 06:00:00

建议增加生成UUID功能

在测试的时候经常用到UUID,希望可以增加生成UUID的功能,最好有个选项可以勾选是否要替换掉“-”
eg:
带“-”:2526e2e4-1e9c-4245-84d4-6216249aeb6c
不带:2526e2e41e9c424584d46216249aeb6c

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.