{"id":13535513,"url":"https://github.com/ng2-ui/sortable","last_synced_at":"2026-04-02T02:18:24.434Z","repository":{"id":57130729,"uuid":"54847986","full_name":"ng2-ui/sortable","owner":"ng2-ui","description":"An example of how to pakcage a Angular2 project into a bundle","archived":false,"fork":false,"pushed_at":"2017-12-18T15:23:29.000Z","size":1496,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-02T13:51:08.405Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ng2-ui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-27T21:02:45.000Z","updated_at":"2019-02-28T09:03:17.000Z","dependencies_parsed_at":"2022-09-11T20:51:22.122Z","dependency_job_id":null,"html_url":"https://github.com/ng2-ui/sortable","commit_stats":null,"previous_names":["jsvalley/ng2-publish-seed","ng2-ui/ng2-ui-sortable","jsvalley/ng2-ui-sortable"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ng2-ui/sortable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ng2-ui%2Fsortable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ng2-ui%2Fsortable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ng2-ui%2Fsortable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ng2-ui%2Fsortable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ng2-ui","download_url":"https://codeload.github.com/ng2-ui/sortable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ng2-ui%2Fsortable/sbom","scorecard":{"id":539637,"data":{"date":"2025-08-11","repo":{"name":"github.com/ng2-ui/sortable","commit":"5ed3acd2d951372db8f2bd9d66f6c6615a7fd524"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-20T07:53:26.848Z","repository_id":57130729,"created_at":"2025-08-20T07:53:26.849Z","updated_at":"2025-08-20T07:53:26.849Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-08-01T08:00:57.538Z","updated_at":"2026-04-02T02:18:24.392Z","avatar_url":"https://github.com/ng2-ui.png","language":"TypeScript","readme":"# sortable\n\nMobile-friendly re-arrangable list element\n\n## IMPORTANT: NOT-MAINTAINED\nAccepting volunteers and ready to transfer ownership.\n\n\n\u003ca href=\"https://rawgit.com/ng2-ui/sortable/master/app/index.html\"\u003e\n  DEMO\n  \u003c!-- img src=\"http://i.imgur.com/0qcxg8X.png\" width=\"50% border=\"1\" / --\u003e\n\u003c/a\u003e\n\n## Install\n\n1. install @ngui/sortable node module\n\n        $ npm install @ngui/sortable --save\n\n2. add `map` and `packages` to your `systemjs.config.js`\n\n        map['@ngui/sortable'] = 'node_modules/sortable/dist/sortable.umd.js';\n\n3. import NguiSortableModule to your AppModule\n\n        import { NgModule } from '@angular/core';\n        import { FormsModule } from \"@angular/forms\";\n        import { BrowserModule  } from '@angular/platform-browser';\n        import { AppComponent } from './app.component';\n        import { NguiSortableModule } from '@ngui/sortable';\n        \n        @NgModule({\n          imports: [BrowserModule, FormsModule, NguiSortableModule],\n          declarations: [AppComponent],\n          bootstrap: [ AppComponent ]\n        })\n        export class AppModule { }\n\n\nFor full example, please check out `test` directory to see the example of;\n\n  - `systemjs.config.js`\n  - `app.module.ts`\n  -  and `app.component.ts`.\n\n## Usage it in your code\n\nadd `hammer.js` in your html\n\n    \u003cscript src=\"../node_modules/hammerjs/hammer.js\"\u003e\u003c/script\u003e\n  \nYou are ready. use it in your template\n\n\n    \u003cul ngui-sortable\u003e\n      \u003cli id=\"order\"\u003eOrder\u003c/li\u003e\n      \u003cli id=\"me\"\u003eMe\u003c/li\u003e\n      \u003cli id=\"right\"\u003eRight\u003c/li\u003e\n      \u003cli id=\"the\"\u003eThe\u003c/li\u003e\n      \u003cli id=\"into\"\u003eInto\u003c/li\u003e\n      \u003cli id=\"put\"\u003ePut\u003c/li\u003e\n    \u003c/ul\u003e\n\n## Without css, it still works, but for better styling, please use some css. e.g.;\n\n    ul[ngui-sortable] {\n       padding: 10px; \n       border: 1px solid #ccc;\n      list-style: none; \n      display: block\n    }\n    ul[ngui-sortable] li {\n      padding: 10px 5px;\n      background: #4986e7;\n      color: #fff; \n      border: 1px solid #fff;\n      display: block; \n      position: relative\n    }\n    ul[ngui-sortable] li.drag-enter {\n      border-top: 2px solid yellow;\n    }\n\n## For Developers\n\n  Things to know to understand the implementation;\n  \n  1.  **transform: 'translate(x, y)'**   \n      when  drag an element. which sets the position of an element to a new one, described by two vectors (x, y). The y value is optional.\u003c/li\u003e\n      \n  2. **document.elementFromPoint(x, y)**   \n      The elementFromPoint() method of the Document interface returns the topmost element at the specified coordinates.\n      https://developer.mozilla.org/en-US/docs/Web/API/Document/elementFromPoint\n  \n  3. pan events(a gesture event)\n  \n      * event.center     {Object}  center position of the touches. contains pageX and pageY\n      * event.deltaTime  {Number}  the total time of the touches in the screen\n      * event.deltaX     {Number}  the delta on x axis we haved moved\n      * event.deltaY     {Number}  the delta on y axis we haved moved\n","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fng2-ui%2Fsortable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fng2-ui%2Fsortable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fng2-ui%2Fsortable/lists"}