{"id":19258917,"url":"https://github.com/lassehaslev/vue-confirm","last_synced_at":"2025-08-11T05:15:48.082Z","repository":{"id":57126314,"uuid":"76864386","full_name":"LasseHaslev/vue-confirm","owner":"LasseHaslev","description":"Simple confirm dialog using vue 2","archived":false,"fork":false,"pushed_at":"2017-02-17T20:46:24.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T18:16:53.591Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/LasseHaslev.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-12-19T13:26:16.000Z","updated_at":"2017-06-22T09:51:43.000Z","dependencies_parsed_at":"2022-08-31T06:51:34.046Z","dependency_job_id":null,"html_url":"https://github.com/LasseHaslev/vue-confirm","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/LasseHaslev/vue-confirm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fvue-confirm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fvue-confirm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fvue-confirm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fvue-confirm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LasseHaslev","download_url":"https://codeload.github.com/LasseHaslev/vue-confirm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fvue-confirm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269833248,"owners_count":24482413,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"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-11-09T19:14:47.188Z","updated_at":"2025-08-11T05:15:48.023Z","avatar_url":"https://github.com/LasseHaslev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @lassehaslev/vue-confirm\n\n\u003e Simple confirm dialog using vue\n\n## Installation\nRun ```npm install @lassehaslev/vue-confirm --save``` in your project folder\n\n## Usage\nUse this simple confirm with [Bulma](https://trello.com/b/BDC3zQvN).\nThis package is based on [@lassehaslev/vue-modal](https://github.com/LasseHaslev/vue-modal)\n``` js\nimport { Confirm } from '@lassehaslev/vue-confirm';\nexport default {\n    template: `\n        \u003ca @click=\"open\" class=\"button is-primary is-large\" href=\"#\"\u003eOpen a simple confirm\u003c/a\u003e\n        \u003cconfirm ref=\"confirm\" message=\"You sure you want to do this?\"\u003e\u003c/confirm\u003e\n    `,\n    methods: {\n        open() {\n            this.$refs.confirm.open();\n        }\n    },\n    components: {\n        Confirm,\n    }\n}\n```\n\n## Extend / Build your own!\nJust include the BaseConfirm class as a mixin, and you are good to call ```confirm``` and ```cancel``` and checking ```isShowingModal``` boolean.\n```js\nimport BaseConfirm from '@lassehaslev/vue-confirm';\n\nexport default {\n    template: `\n        \u003cdiv class=\"modal\"\n             :class=\"{ 'is-active': isShowingModal }\"\u003e\n            \u003cdiv class=\"modal-background\" @click=\"cancel\"\u003e\u003c/div\u003e\n            \u003cdiv class=\"modal-content\"\u003e\n            \u003cdiv class=\"box\"\u003e\n                    \u003cdiv class=\"content has-text-centered\"\u003e\n                        \u003ch1 class=\"title\"\u003e{{ message }}\u003c/h1\u003e\n                    \u003c/div\u003e\n                    \u003cdiv class=\"columns\"\u003e\n                        \u003cdiv class=\"column\"\u003e\n                            \u003cbutton class=\"button is-large is-primary is-fullwidth\"\n                                    :class=\"{ 'is-loading': isConfirmLoading }\"\n                                    @click=\"confirm\"\n                                \u003eConfirm\u003c/button\u003e\n                        \u003c/div\u003e\n                        \u003cdiv class=\"column\"\u003e\n                            \u003cbutton @click=\"cancel\" class=\"button is-large is-is-default is-fullwidth\"\u003eCancel\u003c/button\u003e\n                        \u003c/div\u003e\n                    \u003c/div\u003e\n                \u003c/div\u003e\n            \u003c/div\u003e\n            \u003cbutton class=\"modal-close\" @click=\"cancel\"\u003e\u003c/button\u003e\n        \u003c/div\u003e\n    `,\n\n    mixins: [ BaseConfirm ],\n}\n```\n\n\n## Development\n\n``` bash\n# install dependencies\nnpm install\n\n# serve with hot reload at localhost:8080\nnpm run dev\n\n# build for production with minification\nnpm run build\n```\n\nFor detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flassehaslev%2Fvue-confirm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flassehaslev%2Fvue-confirm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flassehaslev%2Fvue-confirm/lists"}