{"id":17222358,"url":"https://github.com/riverside/zino-alert","last_synced_at":"2026-02-08T20:34:51.475Z","repository":{"id":57406029,"uuid":"223464090","full_name":"riverside/zino-alert","owner":"riverside","description":":christmas_tree: Autonomous open source alert component","archived":false,"fork":false,"pushed_at":"2023-06-04T18:28:41.000Z","size":1058,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-17T15:34:51.982Z","etag":null,"topics":["alert","alertdialog","customelements","ecmascript2015","ecmascript6","es6","javascript","shadowdom","sweetalert","sweetalert2","web-components","webcomponent","webcomponents","zino-alert"],"latest_commit_sha":null,"homepage":"https://riverside.github.io/zino-alert/","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/riverside.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,"zenodo":null}},"created_at":"2019-11-22T18:40:31.000Z","updated_at":"2023-06-04T08:32:56.000Z","dependencies_parsed_at":"2025-06-12T22:36:27.429Z","dependency_job_id":"2cc6f43f-adf6-44fc-b3b5-5e4fbe683cea","html_url":"https://github.com/riverside/zino-alert","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/riverside/zino-alert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riverside%2Fzino-alert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riverside%2Fzino-alert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riverside%2Fzino-alert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riverside%2Fzino-alert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riverside","download_url":"https://codeload.github.com/riverside/zino-alert/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riverside%2Fzino-alert/sbom","scorecard":{"id":777577,"data":{"date":"2025-08-11","repo":{"name":"github.com/riverside/zino-alert","commit":"02386273171af45bef742aad50f1268088948a6c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":10,"reason":"no dangerous workflow patterns detected","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/26 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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/riverside/zino-alert/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/riverside/zino-alert/test.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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-23T04:00:05.856Z","repository_id":57406029,"created_at":"2025-08-23T04:00:05.856Z","updated_at":"2025-08-23T04:00:05.856Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29242878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T19:36:48.828Z","status":"ssl_error","status_checked_at":"2026-02-08T19:27:12.336Z","response_time":57,"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":["alert","alertdialog","customelements","ecmascript2015","ecmascript6","es6","javascript","shadowdom","sweetalert","sweetalert2","web-components","webcomponent","webcomponents","zino-alert"],"created_at":"2024-10-15T04:04:58.818Z","updated_at":"2026-02-08T20:34:51.429Z","avatar_url":"https://github.com/riverside.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript Alert Web Component\nAutonomous open source alert component with RTL support built on Custom Elements and Shadow DOM specifications.\n\n| Build | GitHub pages | NPM |\n| --- | --- | --- |\n| [![CI](https://github.com/riverside/zino-alert/actions/workflows/test.yml/badge.svg)](https://github.com/riverside/zino-alert/actions/workflows/test.yml) | [![pages-build-deployment](https://github.com/riverside/zino-alert/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/riverside/zino-alert/actions/workflows/pages/pages-build-deployment) | [![npm version](https://badge.fury.io/js/zino-alert.svg)](https://www.npmjs.com/package/zino-alert) |\n\n## How to use\n\n### Installation\n- Install with `npm`\n```\n$ npm install zino-alert\n```\n\n- Install with `bower`\n```\n$ bower install zino-alert\n```\n\n### Using `zino-alert`\n- HTML way\n```html\n\u003czino-alert id=\"alert-1\"\n    heading=\"HTML\"\n    text=\"Lorem ipsum dolor sit amet.\"\n    type=\"success\"\u003e\u003c/zino-alert\u003e\n\n\u003cscript type=\"module\" src=\"../zino-alert.js\"\u003e\u003c/script\u003e\n```\nAlert customizations are possible via `data-*` attributes.\n\n- using the DOM API\n```html\n\u003cscript type=\"module\" src=\"../zino-alert.js\"\u003e\u003c/script\u003e\n\n\u003cscript\u003e\nconst alert = document.createElement(\"zino-alert\");\nalert.heading = \"DOM API\";\nalert.type = \"success\";\nalert.text = \"Autonomous WAI-ARIA accessible alert dialog.\";\ndocument.body.appendChild(alert);\nalert.open();\n\u003c/script\u003e\n```\n\n- using the constructor\n```html\n\u003cscript type=\"module\"\u003e\nimport {ZinoAlert} from \"../zino-alert.js\";\n\nconst alert = new ZinoAlert({\n    heading: \"Constructor\",\n    type: \"success\",\n    text: \"A web component build on Custom Elements and Shadow DOM APIs.\",\n    showCancelButton: \"true\",\n    allowEscapeKey: \"true\"\n});\ndocument.body.appendChild(alert);\nalert.open();\n\u003c/script\u003e\n```\n\n##### Styling\n```css\n:root {\n  --background-head: #fff;\n  --color-head: #FA4251;\n  --color-head-active: #FA4251;\n  --background-foot: #fff;\n  --color-foot: #222;\n  --background-odd: #fff;\n  --background-even: #fff;\n  --color-odd: #333;\n  --color-even: #222;\n}\nzino-grid {\n  margin: 20px auto 0;\n  width: 100%;\n  max-width: 1024px;\n}\n```\n\n## Options\n|Option|Required|Type|Default|Description|\n|---|:---:|---|---|---|\n|**allowEscapeKey**        |No |Boolean|**true**   |Whether to close the alert when the Escape key is pressed|\n|**animation**             |No |Boolean|**true**   |Whether to use an animation when show the alert|\n|**backdrop**              |No |Boolean|**true**   |Whether to use a backdrop|\n|**background**            |No |String |**#fff**   |The alert's background color|\n|**cancelButtonAriaLabel** |No |String |**Cancel** |The cancel button's aria-label attribute|\n|**cancelButtonColor**     |No |String |**#aaa**   |The cancel button's background color|\n|**cancelButtonText**      |No |String |**Cancel** |The cancel button's text|\n|**closeButtonAriaLabel**  |No |String |**Close**  |The close button's aria-label attribute|\n|**confirmButtonAriaLabel**|No |String |**OK**     |The confirm button's aria-label attribute|\n|**confirmButtonColor**    |No |String |**#3085d6**|The confirm button's background color|\n|**confirmButtonText**     |No |String |**OK**     |The confirm button's text|\n|**debug**                 |No |Boolean|**false**  |If `true` will log events into console|\n|**focusCancel**           |No |Boolean|**false**  |Whether to focus on cancel button when alert show|\n|**focusConfirm**          |No |Boolean|**true**   |Whether to focus on confirm button when alert show|\n|**footer**                |No |String |**(empty)**|If not empty will show it's content at the alert's footer|\n|**header**                |No |String |**(empty)**|If not empty will show it's content at the alert's header|\n|**heading**               |No |String |**(empty)**|The alert's heading text|\n|**position**              |No |String |**center** |The alert's position. Accepts: top, top-start, top-left, top-end, top-right, center, center-start, center-left, center-end, center-right, bottom, bottom-start, bottom-left, bottom-end, bottom-right|\n|**showCancelButton**      |No |Boolean|**false**  |Whether to show the cancel button|\n|**showCloseButton**       |No |Boolean|**false**  |Whether to show the close button|\n|**showConfirmButton**     |No |Boolean|**true**   |Whether to show the confirm button|\n|**text**                  |No |String |**(empty)**|The alert's text|\n|**type**                  |Yes|String |**(empty)**|The alert's icon. Accepts: success, error|\n\n## Methods\n| Method  | Description |\n| ------- | ----------- |\n| **cancel**  | Manually triggers the `cancel.alert` event. |\n| **close**   | Manually closes an alert and triggers the `close.alert` event. | \n| **confirm** | Manually triggers the `confirm.alert` event. |\n| **open**    | Manually opens an alert and triggers the `open.alert` event. |\n\n```javascript\ndocument.querySelector(\"zino-alert\").open();\n```\n\n## Events\n| Event | Description |\n| ------| ----------- |\n| **cancel.alert**  | This event is fired immediately when the **Cancel** button has been clicked. |\n| **close.alert**   | This event is fired immediately when the `close` instance method has been called. |\n| **confirm.alert** | This event is fired immediately when the **Confirm** button has been clicked. |\n| **open.alert**    | This event is fired immediately when the `open` instance method has been called. |\n\n```javascript\ndocument.querySelector(\"zino-alert\").addEventListener(\"close.alert\", function(event) {\n    // do something...    \n});\n```\n\n## Browser Support\n|Polyfill|Edge|IE11+|Chrome 54+|Firefox 63+|Safari 10.1+|Opera 41+|\n|---|:---:|:---:|:---:|:---:|:---:|:---:|\n|Yes|✓|✓|✓|✓|✓|✓|\n|No|✗|✗|✓|✓|✓|✓| \n\n## License\nzino-alert is licensed under the MIT license.\n\nCopyright (c) 2019-2020 Dimitar Ivanov","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friverside%2Fzino-alert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friverside%2Fzino-alert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friverside%2Fzino-alert/lists"}