{"id":18517734,"url":"https://github.com/projectblacklight/blacklight-vue","last_synced_at":"2025-10-31T22:30:21.440Z","repository":{"id":58597639,"uuid":"163878744","full_name":"projectblacklight/blacklight-vue","owner":"projectblacklight","description":"Blacklight frontend for VueJS","archived":false,"fork":false,"pushed_at":"2019-01-23T16:32:30.000Z","size":38,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-26T00:51:27.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","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/projectblacklight.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":"2019-01-02T19:01:45.000Z","updated_at":"2022-09-04T20:54:45.000Z","dependencies_parsed_at":"2022-09-16T09:12:57.469Z","dependency_job_id":null,"html_url":"https://github.com/projectblacklight/blacklight-vue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectblacklight%2Fblacklight-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectblacklight%2Fblacklight-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectblacklight%2Fblacklight-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectblacklight%2Fblacklight-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projectblacklight","download_url":"https://codeload.github.com/projectblacklight/blacklight-vue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239236474,"owners_count":19604904,"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-06T17:08:20.086Z","updated_at":"2025-10-31T22:30:21.323Z","avatar_url":"https://github.com/projectblacklight.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VueJS for Blacklight\n\n\n[![npm version](https://img.shields.io/npm/v/blacklight-vue.svg)](https://www.npmjs.com/package/blacklight-vue)\n\nSee a demo usage of this library at https://github.com/projectblacklight/blacklight-vue-demo\n\n\n## Getting started:\n\nThe first step is to create a project using [Vue JS CLI](https://cli.vuejs.org/guide/creating-a-project.html#vue-create).\n\nNext add blacklight-vue:\n```\nyarn add blacklight-vue\n```\n\nThen add sass support:\n```\nyarn add sass-loader node-sass\n```\n\nThen add routes. In main.js add the following:\n```js\nimport Blacklight from 'blacklight-vue'\nimport BlacklightRoutes from 'blacklight-vue/src/routes'\nimport VueRouter from 'vue-router'\nimport Home from './components/Home.vue'\n\nVue.use(Blacklight)\nVue.use(VueRouter)\n\n// Push your own \"Home\" page into the routes.\nBlacklightRoutes.push({ path: '/', name: 'home', component: Home })\nconst router = new VueRouter({\n  routes: BlacklightRoutes\n})\n\n// Add address to the API server\nVue.http.options.root = 'http://demo.projectblacklight.org'\nVue.http.options.headers = {\n  Accept: 'application/json'\n}\n\nnew Vue({\n  router,\n  render: h =\u003e h(App)\n}).$mount('#app')\n```\n\nThen in `App.vue` add the following to the template:\n```html\n\u003cdiv id=\"app\"\u003e\n  \u003cvue-progress-bar\u003e\u003c/vue-progress-bar\u003e\n  \u003crouter-view\u003e\u003c/router-view\u003e\n\u003c/div\u003e\n```\n\nAnd `components/Home.vue` could look like this:\n\n```vue\n\u003ctemplate\u003e\n  \u003cdiv class=\"hello\"\u003e\n    \u003cSearch /\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\n\nimport Search from 'blacklight-vue/src/components/Search'\n\nexport default {\n  name: 'Home',\n  components: {\n    Search\n  }\n}\n\u003c/script\u003e\n```\n\nFinally, if you want to use bootstrap, install it.\nI used these directions: https://medium.com/@BjornKrols/integrating-and-customising-bootstrap-4-in-vue-js-cbc29ba7688e\nBut all you need to do is:\n\n```\nyarn add bootstrap\n```\n\nand then change the styles in `src/App.vue` to be:\n\n```vue\n\u003cstyle lang=\"scss\"\u003e\n@import '~bootstrap/scss/bootstrap.scss';\n@import '~blacklight-vue/scss/blacklight.scss';\n\u003c/style\u003e\n```\n\n## Install dependencies\n\n```\nnpm install\n```\n\n## Configure\n\nYou can set the title field to use by doing:\n```\nVue.prototype.$titleField = 'title_display'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectblacklight%2Fblacklight-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojectblacklight%2Fblacklight-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectblacklight%2Fblacklight-vue/lists"}