{"id":15684310,"url":"https://github.com/julon/vue-creativecommons","last_synced_at":"2025-05-05T21:34:32.726Z","repository":{"id":53739528,"uuid":"116581335","full_name":"julon/vue-creativecommons","owner":"julon","description":"CreativeCommons.org Vue.js components library ©️!","archived":false,"fork":false,"pushed_at":"2021-03-16T20:33:28.000Z","size":8428,"stargazers_count":9,"open_issues_count":39,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T18:41:53.817Z","etag":null,"topics":["creative-commons","vue","vue-components"],"latest_commit_sha":null,"homepage":"","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/julon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-07T16:33:35.000Z","updated_at":"2025-02-28T03:02:34.000Z","dependencies_parsed_at":"2022-09-09T13:40:21.853Z","dependency_job_id":null,"html_url":"https://github.com/julon/vue-creativecommons","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julon%2Fvue-creativecommons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julon%2Fvue-creativecommons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julon%2Fvue-creativecommons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julon%2Fvue-creativecommons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julon","download_url":"https://codeload.github.com/julon/vue-creativecommons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252580227,"owners_count":21771289,"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":["creative-commons","vue","vue-components"],"created_at":"2024-10-03T17:14:31.438Z","updated_at":"2025-05-05T21:34:32.710Z","avatar_url":"https://github.com/julon.png","language":"JavaScript","funding_links":[],"categories":["UI组件","Components \u0026 Libraries","UI Components","UI Components [🔝](#readme)"],"sub_categories":["杂","UI Components","Miscellaneous"],"readme":"# vue-creativecommons\n\n![Rollup badge](https://img.shields.io/badge/Rollup-^0.53.3-ff69b4.svg)\n![Jest](https://img.shields.io/badge/Jest-^22.0.4-blue.svg)\n![Vue](https://img.shields.io/badge/Vue-^2.5.13-brightgreen.svg)\n![Storybook](https://img.shields.io/badge/Storybook-^3.3.3-ff70a3.svg)\n![Commitizen](https://img.shields.io/badge/Commitizen-enabled-brightgreen.svg)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n![Npm badge](https://img.shields.io/npm/v/vue-creativecommons.svg)\n[![Build Status](https://travis-ci.org/julon/vue-creativecommons.svg?branch=master)](https://travis-ci.org/julon/vue-creativecommons)\n[![Coverage Status](https://coveralls.io/repos/github/julon/vue-creativecommons/badge.svg?branch=master)](https://coveralls.io/github/julon/vue-creativecommons?branch=master)\n[![Greenkeeper badge](https://badges.greenkeeper.io/julon/vue-creativecommons.svg)](https://greenkeeper.io/)\n\n\u003e CreativeCommons.org Vue.js components library.\n\n\u003e Generated using [vue-cli-template-library](https://github.com/julon/vue-cli-template-library).\n\n## Installation\n```\nnpm install vue-creativecommons\n```\nvue-creativecommons can be used as a module in both CommonJS and ES modular environments.\n\nWhen in non-modular environment, vue-creativecommons will register all the components to vue by itself.\u003c/p\u003e\n\n### ES6\n```js\n//\n// You can register a component manually\n//\nimport { CreativeCommonsIcon, CreativeCommonsLabel } from 'vue-creativecommons';\n\nexport default {\n  ...\n  components: {\n    CreativeCommonsIcon,\n    CreativeCommonsLabel\n  },\n  ...\n};\n\n//\n// or register the whole module with vue\n//\nimport vueCreativeCommons from 'vue-creativecommons';\n\n// Install this library\nVue.use(vueCreativeCommons);\n```\n\n### CommonJS\n```js\n//\n// You can register a component manually\n//\nvar Vue = require('vue');\nvar vueCreativeCommons = require('vue-creativecommons');\n\nvar YourComponent = Vue.extend({\n  ...\n  components: {\n    'cc-icon': vueCreativeCommons.CreativeCommonsIcon,\n    'cc-label': vueCreativeCommons.CreativeCommonsLabel\n  },\n  ...\n});\n\n//\n// or register the whole module with vue\n//\nvar Vue = require('vue');\nvar vueCreativeCommons = require('vue-creativecommons');\n\n// Install this library\nVue.use(vueCreativeCommons);\n```\n\n### Browser\n\n```html\n\u003cscript src=\"path/to/vue/vue.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"path/to/vue-creativecommons/dist/vue-creativecommons.min.js\"\u003e\u003c/script\u003e\n\u003c!-- Components are registered globally --\u003e\n```\n\n## Usage\n\n### Icon component\n\n#### Example\n\n```html\n\u003c!-- normal icon --\u003e\n\u003ccc-icon allow-adaptations=\"yes\" allow-commercial-use=\"yes\" icon-size=\"normal\"\u003e\u003c/cc-icon\u003e\n\n\u003c!-- compact icon --\u003e\n\u003ccc-icon allow-adaptations=\"yes\" allow-commercial-use=\"yes\" icon-size=\"compact\"\u003e\u003c/cc-icon\u003e\n```\n\n\u003e ![alt text](https://i.creativecommons.org/l/by/4.0/88x31.png \"Creative Commons Attribution 4.0 International License\")\n![alt text](https://i.creativecommons.org/l/by/4.0/80x15.png \"Creative Commons Attribution 4.0 International License\")\n\n#### Props\n- allowAdaptations(required) - Allow adaptations of your work to be shared? `yes`, `no` or `share-alike`\n- allowCommercialUse(required) - Allow commercial uses of your work? `yes` or `no`\n- iconSize(required) : `compact` or `normal`\n\n### Label component\n\n#### Example\n```html\n\u003ccc-label allow-adaptations=\"yes\" allow-commercial-use=\"yes\"\u003e\u003c/cc-label\u003e\n```\n\u003e This work is licensed under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).\n\n#### Props\n- allowAdaptations(required) - Allow adaptations of your work to be shared? `yes`, `no` or `share-alike`\n- allowCommercialUse(required) - Allow commercial uses of your work? `yes` or `no`\n\n## Changelog\n\nSee the GitHub [release history](https://github.com/julon/vue-creativecommons/releases).\n\n## Contributing\n\nSee [CONTRIBUTING.md](.github/CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulon%2Fvue-creativecommons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulon%2Fvue-creativecommons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulon%2Fvue-creativecommons/lists"}