{"id":19258902,"url":"https://github.com/lassehaslev/vue-crud","last_synced_at":"2026-06-21T00:32:39.799Z","repository":{"id":89976156,"uuid":"77084154","full_name":"LasseHaslev/vue-crud","owner":"LasseHaslev","description":"Create Read Update Delete logic for vue","archived":false,"fork":false,"pushed_at":"2017-03-20T06:14:30.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T22:05:27.258Z","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-21T20:33:03.000Z","updated_at":"2016-12-21T20:33:25.000Z","dependencies_parsed_at":"2023-05-26T21:15:28.461Z","dependency_job_id":null,"html_url":"https://github.com/LasseHaslev/vue-crud","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fvue-crud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fvue-crud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fvue-crud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fvue-crud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LasseHaslev","download_url":"https://codeload.github.com/LasseHaslev/vue-crud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240356192,"owners_count":19788513,"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":[],"created_at":"2024-11-09T19:14:41.053Z","updated_at":"2026-06-21T00:32:39.793Z","avatar_url":"https://github.com/LasseHaslev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @lassehaslev/vue-crud\n\n\u003e Create read update delete logic for Vue\n\n# Installation\nRun ```npm install @lassehaslev/vue-crud --save``` in your project folder\n\n## Usage\n```js\nimport Crud from '@lassehaslev/vue-crud';\nexport default {\n\n    mixins: [ Crud ],\n\n    template: `\n        \u003ctable class=\"table\"\u003e\n            \u003cthead\u003e\n                \u003ctr\u003e\n                    \u003cth\u003eName\u003c/th\u003e\n                    \u003cth\u003e\u003cdiv class=\"has-text-right\"\u003eAction\u003c/div\u003e\u003c/th\u003e\n                \u003c/tr\u003e\n            \u003c/thead\u003e\n            \u003ctbody\u003e\n                \u003ctr v-for=\"( item, index ) in items\"\u003e\n                    \u003ctd\u003e{{ item }}\u003c/td\u003e\n                    \u003ctd class=\"has-text-right\"\u003e\n                        \u003cbutton class=\"button is-warning\" @click=\"update( null, index )\"\u003eEmpty\u003c/button\u003e\n                        \u003cbutton class=\"button is-danger\" @click=\"removeItem( item )\"\u003eRemove\u003c/button\u003e\n                    \u003c/td\u003e\n                \u003c/tr\u003e\n            \u003c/tbody\u003e\n        \u003c/table\u003e\n        \u003cbutton @click=\"append(null)\" class=\"button is-primary\"\u003eAppend empry\u003c/button\u003e\n        \u003cbutton @click=\"prepend(null)\" class=\"button is-primary\"\u003ePrepend empry\u003c/button\u003e\n        \u003cbutton @click=\"removeAll\" class=\"button is-danger\"\u003eDelete all\u003c/button\u003e\n    \u003c/section\u003e\n    `,\n\n    data() {\n        return {\n            items: [\n                'Html',\n                'Css',\n                'Javascript',\n            ],\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-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flassehaslev%2Fvue-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flassehaslev%2Fvue-crud/lists"}