{"id":19709970,"url":"https://github.com/xgfe/ui-xg","last_synced_at":"2025-04-29T17:31:06.339Z","repository":{"id":3625506,"uuid":"50324212","full_name":"xgfe/ui-xg","owner":"xgfe","description":"AngularJS directives for xgfe team.","archived":false,"fork":false,"pushed_at":"2023-01-05T22:31:02.000Z","size":8178,"stargazers_count":13,"open_issues_count":41,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T18:50:30.351Z","etag":null,"topics":["angularjs","bootstrap"],"latest_commit_sha":null,"homepage":"http://xgfe.github.io/ui-xg","language":"JavaScript","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/xgfe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-25T03:43:37.000Z","updated_at":"2020-06-14T15:07:44.000Z","dependencies_parsed_at":"2023-01-13T12:39:21.606Z","dependency_job_id":null,"html_url":"https://github.com/xgfe/ui-xg","commit_stats":null,"previous_names":["xgfe/angular-ui-fugu"],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgfe%2Fui-xg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgfe%2Fui-xg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgfe%2Fui-xg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgfe%2Fui-xg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xgfe","download_url":"https://codeload.github.com/xgfe/ui-xg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251174803,"owners_count":21547569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["angularjs","bootstrap"],"created_at":"2024-11-11T22:05:36.844Z","updated_at":"2025-04-29T17:31:03.701Z","avatar_url":"https://github.com/xgfe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ui-xg - AngularJS directives\n\n[![Build Status](https://travis-ci.org/xgfe/ui-xg.svg?branch=master)](https://travis-ci.org/xgfe/ui-xg)\n[![codecov](https://codecov.io/gh/xgfe/ui-xg/branch/master/graph/badge.svg)](https://codecov.io/gh/xgfe/ui-xg)\n\n## 依赖说明\n本组件的开发主要依赖于以下几个库:\n\n- Angular JS(v1.2.29): 组件库在1.2.29版本下进行测试,适用于1.2.x-1.3.20的AngularJS。\n- Bootstrap(v3.3.6): 支持组件库样式设计。\n\n\n## 安装\n- 使用bower安装:\n\n\t```\n\tbower install ui-xg\n\t```\n\n## 使用\n- 文件引入\n\t- angular.min.js\n\t- bootstrap.css\n\t- ui.xg.min.css\n\t- ui.xg.min.js\n\n\t**angular和bootstrap文件的引入要在xg文件引入之前**\n- 具体使用\n\n```\n/**\n * js文件\n */\nangular.module('myApp',['ui.xg']);  // 组件依赖注入\n// 以alert使用为例\nangular.module('xgDemo').controller('alertDemoCtrl',['$scope', function ($scope) {\n    $scope.alerts = [\n        { type: 'danger', msg: 'Oh snap! Change a few things up and try submitting again.' },\n        { type: 'success', msg: 'Well done! You successfully read this important alert message.' },\n        { type: 'warning', msg: 'FBI Warning! Manong would ignore anything about warning.' },\n        { type: 'info', msg: 'I know that you wouldn\\'t see this line.' }\n    ];\n    $scope.closeAlert = function(index) {\n        $scope.alerts.splice(index, 1);\n    };\n}]);\n\n\n/**\n * html文件\n */\n \u003cdiv ng-controller=\"alertDemoCtrl\"\u003e\n    \u003cuix-alert ng-repeat=\"alert in alerts\" type=\"{{alert.type}}\" close=\"true\" close-func=\"closeAlert($index)\" has-icon=\"true\"\u003e{{alert.msg}}\u003c/uix-alert\u003e\n\u003c/div\u003e\n\n```\n## 鸣谢\n- Gulp：[https://github.com/gulpjs/gulp](https://github.com/gulpjs/gulp)\n- Jasmine：[http://jasmine.github.io/](http://jasmine.github.io/)\n- Karma：[https://github.com/karma-runner/karma](https://github.com/karma-runner/karma)\n- ESLint：[http://eslint.org](http://eslint.org)\n- UI Bootstrap：[https://angular-ui.github.io/bootstrap/](https://angular-ui.github.io/bootstrap/)\n- ui-select：[https://github.com/angular-ui/ui-select](https://github.com/angular-ui/ui-select)\n- angular-growl-2：[https://github.com/JanStevens/angular-growl-2](https://github.com/JanStevens/angular-growl-2)\n- angular-drag-and-drop-lists：[https://github.com/marceljuenemann/angular-drag-and-drop-lists](https://github.com/marceljuenemann/angular-drag-and-drop-lists)\n\n\n## LICENSE\nISC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxgfe%2Fui-xg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxgfe%2Fui-xg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxgfe%2Fui-xg/lists"}