{"id":14973450,"url":"https://github.com/vivadecora/vd-modal","last_synced_at":"2026-03-08T04:31:52.888Z","repository":{"id":93582855,"uuid":"82862174","full_name":"vivadecora/vd-modal","owner":"vivadecora","description":"Modal simples usando angularjs e flexbox.","archived":false,"fork":false,"pushed_at":"2017-03-10T14:57:44.000Z","size":58,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-10-27T01:35:04.569Z","etag":null,"topics":["angular","angular-components","angular-directives","angular1","angularjs","angularjs-component","angularjs-directives","javascript","modal"],"latest_commit_sha":null,"homepage":"https://vivadecora.github.io/vd-modal/","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/vivadecora.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-02-22T23:16:58.000Z","updated_at":"2018-02-06T17:34:06.000Z","dependencies_parsed_at":"2023-07-11T14:35:30.895Z","dependency_job_id":null,"html_url":"https://github.com/vivadecora/vd-modal","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":0.04166666666666663,"last_synced_commit":"e82890183445cbb291aa2e7d6043a9c46ec17bad"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vivadecora/vd-modal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vivadecora%2Fvd-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vivadecora%2Fvd-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vivadecora%2Fvd-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vivadecora%2Fvd-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vivadecora","download_url":"https://codeload.github.com/vivadecora/vd-modal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vivadecora%2Fvd-modal/sbom","scorecard":{"id":924417,"data":{"date":"2025-08-04","repo":{"name":"github.com/vivadecora/vd-modal","commit":"e82890183445cbb291aa2e7d6043a9c46ec17bad"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":3,"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 1/24 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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-25T09:36:23.487Z","repository_id":93582855,"created_at":"2025-08-25T09:36:23.487Z","updated_at":"2025-08-25T09:36:23.487Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30245223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"online","status_checked_at":"2026-03-08T02:00:06.215Z","response_time":56,"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":["angular","angular-components","angular-directives","angular1","angularjs","angularjs-component","angularjs-directives","javascript","modal"],"created_at":"2024-09-24T13:48:47.214Z","updated_at":"2026-03-08T04:31:52.861Z","avatar_url":"https://github.com/vivadecora.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VD Modal\n\n\u003e VD Modal is a easy to use modal for angularjs application. one modal at a time.\n\n![vd modal easy to use angularjs modal one modal at a time](https://cloud.githubusercontent.com/assets/762639/23389382/71b62b4e-fd46-11e6-9d1a-7bea764cc4b4.png)\n\nThis is another modal component using angularJs framework. This modal wants to be simple and easy to use.\n\n* VD Modal opens one modal at a time, never shows two modals at same time.\n* All your modal content is only attached to your document after modal popups, it means your modal **will not ** be hidden using css `display: none` or angular `ng-show` features. And this can be good to your SEO. \n* VD Modal was made with love by \u003ca href=\"https://www.vivadecora.com.br\"\u003eViva Decora\u003c/a\u003e front end team.\n\n\n## Table of contents\n\n* [Installation](#installation)\n* [Basic Usage](#basic-usage)\n* [Column modal](#column-modal)\n* [License](#license)\n\n\u003ch2 id=\"installation\"\u003e Installation \u003c/h2\u003e\n\n### 1. Install VD modal as a npm package:\n\n```shell\n$ npm install --save vd-modal\n``` \n\nOr use it from unpackage cdn, from this url:\n\n\u003e https://unpkg.com/vd-modal@0.0.1/dist/js/vd-modal.min.js\n\n### 2. Insert javascript and css from vd-modal.\n\n```html\n\u003cscript src=\"/path/to/vd-modal/dist/js/vd-modal.min.js\" type=\"application/javascript\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" href=\"/path/to/vd-modal/dist/css/vd-modal.css\"\u003e\n``` \n\n### 3. Inject vd-modal module to your application.\n\n```javascript\n\n(function(){\n    \"use strict\"\n\t\n\tangular.module(\"my-application\", [\"vd-modal\"]);\n})();\n``` \n\n\u003ch2 id=\"basic-usage\"\u003e Basic Usage \u003c/h2\u003e\n\nCreate your modal by using `ModalModel` factory. `ModalModal` provides a function called `getContructor(nameOfYourModal)` that you can use to create new instances of your modals, like that:\n\n```javascript\n\n(function(){\n   \"use strict\"\n       \n\tangular.module(\"my-application\").controller(\"mainController\", function(ModalModel){\n\t\tvar vc = this;\n\t\tvc.helloWorlModal = new ModalModel.getConstructor(\"hello-world\");\n\t\tvc.openHelloWorlModal = function(){\n\t\t\tvc.helloWorlModal.isOpen = true;\n\t\t}\n\t});\n})();\t\n```\n\nAfter you do id, create your own `\u003cmodal\u003e` in html wrapping any content you need:\n\n```html\n\u003cbody ng-app=\"my-application\"\u003e\n\t\u003cmodal model=\"vc.helloWorlModal\"\u003e\n\t\t\u003ch1\u003eHello world!\u003c/h1\u003e\n\t\t\u003cp\u003e This is my first modal using VD modal \u003c/p\u003e\n\t\u003c/modal\u003e\n\t\u003cmain ng-controller=\"mainController\"\u003e\n\t\t\u003cbutton ng-click=\"vc.openHelloWorlModal()\"\u003e\u003c/button\u003e\n\t\u003c/main\u003e\n\u003c/body\u003e\t\n```\n\n\u003ch2 id=\"column-modal\"\u003e Column modal \u003c/h2\u003e\n\nColumn modal is another directive you are able to use to create a two columns modal. Modals with columns have basically\n\n* A column for main content;\n* A column for sidebar content;\n* A toggle button inside content column to expand/collapse sidebar;\n\n### Create your instance of ModalModel as usually:\n\n```javascript\n\nangular.module(\"my-application\").controller(\"MainController\", MainController);\n\nfunction MainController(ModalModel){\n\n    var vc = this;\n    vc.sidebarModel = new ModalModel.getConstructor(\"sidebar-model\");\n    vc.sidebarModel.isFullscreen = true;\n\n    vc.openSidebarModel = function(){\n        vc.sidebarModel.isOpen = true;\n    }\n}\n\n``` \nand in your HTML you should do:\n\n```html\n\n\u003cmodal model=\"vc.sidebarModel\"\u003e\n    \u003cdiv class=\"vd-modal__grid\"\u003e\n        \u003cmodal-column layout=\"content\" modal-instance=\"sidebar-model\"\u003eContent of my modal\u003c/modal-column\u003e\n        \u003cmodal-column layout=\"sidebar\" modal-instance=\"sidebar-model\"\u003eSidebar of my modal\u003c/modal-column\u003e\n    \u003c/div\u003e\n\u003cmodal\u003e\n\n\u003cbutton ng-click=\"vc.openSidebarModal()\"\u003eOpen sidebar modal\u003c/button\u003e\n\n``` \n\n\u003ch2 id=\"license\"\u003eLicense\u003c/h2\u003e\n\nVD modal is licensed under MIT. [https://github.com/vivadecora/vd-modal/blob/master/LICENSE](see more).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvivadecora%2Fvd-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvivadecora%2Fvd-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvivadecora%2Fvd-modal/lists"}