{"id":20832095,"url":"https://github.com/ihtml5/norton-miniui","last_synced_at":"2026-04-20T18:32:25.785Z","repository":{"id":83258332,"uuid":"96299609","full_name":"ihtml5/norton-miniui","owner":"ihtml5","description":"简单易用的快速开发框架","archived":false,"fork":false,"pushed_at":"2018-03-08T23:37:58.000Z","size":865,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T08:32:49.735Z","etag":null,"topics":["base","framework","jquery","miniui"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ihtml5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-07-05T09:03:06.000Z","updated_at":"2018-04-25T16:40:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"70b11e4c-6e4c-4483-879d-e4f299196361","html_url":"https://github.com/ihtml5/norton-miniui","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ihtml5/norton-miniui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihtml5%2Fnorton-miniui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihtml5%2Fnorton-miniui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihtml5%2Fnorton-miniui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihtml5%2Fnorton-miniui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ihtml5","download_url":"https://codeload.github.com/ihtml5/norton-miniui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihtml5%2Fnorton-miniui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32059759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"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":["base","framework","jquery","miniui"],"created_at":"2024-11-18T00:10:11.645Z","updated_at":"2026-04-20T18:32:25.765Z","avatar_url":"https://github.com/ihtml5.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# norton-miniui.js\n![](base.png)\n\n## 依赖\n\n1. [jquery](http://www.jquery.com)\n2. [miniui](http://www.miniui.com)\n\n## 理念\n\n1. 底层隔离，不直接依赖具体的框架\n2. 快速沉淀业务中常用的功能\n3. 模块可以自由组合使用\n4. 只需简单修改就可以和其他ui框架一起使用\n\n## 项目中使用方式\n\n1. 引入需要的miniui和jquery.js以及基础文件base.js\n2. 命名base.项目名称.js作为当前项目的扩展模块,并引入到当前页面中\n3. 编写当前页面需要的js，书写方式如下:\n```javascript\n// 模块编写\nfunction ebapDemo (options) {\n    // 简化分析options步骤\n    // 比如获取id值可以这样 parseOBK('id', ''); \n    // 指的是获取options.id, 如果options.id不存在，则返回空字符串\n    var po = ebapUtils.getAllOptions(options);\n    var self = {\n        start: function (opts) {\n            var dpo = ebapUtils.genDpo(self, opts, options);\n            /*\n              deepParseOBK('id', '');\n              如果opts.id不存在，则判断options.id是否存在，如果不存在，则设置为空字符串默认值\n            */\n            var tipMsg = dpo('tipMsg', 'ok');\n            alert(tipMsg);\n        }\n    }\n}\n// 注册模块\nebapBase.regesiter({\n    'demo': ebapDemo\n});\n// 初始化实例\nvar ebapIns = ebapBase.get({\n    id: '',\n    key: '',\n    settings: {\n\n    },\n    deps: [{\n        key: 'demo'\n    }],\n    beforeParse: function (options) {\n        // 在调用mi.parse之前\n    },\n    beforeCreate: function(options) {\n        // 默认传入的是组件当前的配置\n        // 依赖分析完成，待调用组件模块前\n    },\n    created: function (comIns) {\n        // 当前的ui组件实例，以miniui为例，指的就是id对应的miniui组件实例\n        // 对于没有id的模块，comIns等于模块实例\n    },\n    mounted: function (moduleIns) {\n        // 已经获取模块，即将返回，在这里可以对模块进行扩展，比如\n        moduleIns = $.extend(true, moduleIns, {\n            search: function () {\n                // 对模块进行扩展\n            }\n        });\n        // 调用依赖模块\n        moduleIns.moudleDeps.demo.start({\n            tipMsg: 'ccc'\n        });\n        return moduleIns;\n    }\n});\n// ok 这样一个页面的功能就开发完了\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fihtml5%2Fnorton-miniui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fihtml5%2Fnorton-miniui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fihtml5%2Fnorton-miniui/lists"}