{"id":22330775,"url":"https://github.com/one-programmer/op-d2-scaffolding","last_synced_at":"2026-01-19T11:01:45.824Z","repository":{"id":113140380,"uuid":"146974799","full_name":"one-programmer/op-d2-scaffolding","owner":"one-programmer","description":null,"archived":false,"fork":false,"pushed_at":"2018-09-18T03:18:58.000Z","size":26,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T19:50:56.693Z","etag":null,"topics":["d2-admin","element-ui","scaffolding","vue"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/one-programmer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-01T06:39:31.000Z","updated_at":"2023-04-20T20:13:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"5a08d1ed-fa52-4864-af9c-f11dd63ab96a","html_url":"https://github.com/one-programmer/op-d2-scaffolding","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/one-programmer/op-d2-scaffolding","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-programmer%2Fop-d2-scaffolding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-programmer%2Fop-d2-scaffolding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-programmer%2Fop-d2-scaffolding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-programmer%2Fop-d2-scaffolding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/one-programmer","download_url":"https://codeload.github.com/one-programmer/op-d2-scaffolding/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-programmer%2Fop-d2-scaffolding/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["d2-admin","element-ui","scaffolding","vue"],"created_at":"2024-12-04T04:07:44.198Z","updated_at":"2026-01-19T11:01:45.819Z","avatar_url":"https://github.com/one-programmer.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# D2 脚手架\n\n## 安装\n\n```bash\nsudo npm install https://github.com/one-programmer/op-d2-scaffolding.git -g link\n```\n\n## 如何使用\n\n```bash\n$ op-crud -h\n\n  Usage: op-crud [options]\n\n  Options:\n\n    -V, --version              output the version number\n    -n, --name \u003cname\u003e          name\n    -t, --title \u003ctitle\u003e        标题\n    -f, --filePath \u003cfilePath\u003e  file path\n    -h, --help                 output usage information\n```\n\n```bash\nop-crud -n todos -t TODO -f /path/xxx.json\n```\n\n## JSON数据格式\n\n- key 字段名\n- name 中文含义\n- type 类型 [number|string|datetime|boolean|image|file]\n- choices 选项\n- read 是否可读（默认在列表中展示）\n- write 是否可写（默认在编辑/新装中展示）\n\n```json\n[\n    {\n        \"key\": \"id\",\n        \"name\": \"ID\",\n        \"type\": \"number\",\n        \"read\": true,\n        \"write\": false\n    },\n    {\n        \"key\": \"title\",\n        \"name\": \"标题\",\n        \"type\": \"string\",\n        \"read\": true,\n        \"write\": true\n    },\n    {\n      \"key\": \"price\",\n      \"name\": \"价格\",\n      \"type\": \"number\",\n      \"read\": true,\n      \"write\": true\n    },\n    {\n        \"key\": \"description\",\n        \"name\": \"描述\",\n        \"type\": \"string\",\n        \"read\": true,\n        \"write\": true\n    },\n    {\n        \"key\": \"created_at\",\n        \"name\": \"创建时间\",\n        \"type\": \"datetime\",\n        \"read\": true,\n        \"write\": false\n    },\n    {\n        \"key\": \"updated_at\",\n        \"name\": \"生效时间\",\n        \"type\": \"datetime\",\n        \"read\": true,\n        \"write\": true\n    }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-programmer%2Fop-d2-scaffolding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fone-programmer%2Fop-d2-scaffolding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-programmer%2Fop-d2-scaffolding/lists"}