{"id":13810590,"url":"https://github.com/InCuca/ic-firebase-uploader","last_synced_at":"2025-05-14T10:34:13.991Z","repository":{"id":130522994,"uuid":"116019598","full_name":"InCuca/ic-firebase-uploader","owner":"InCuca","description":"This component is a multi-file uploader for firebase","archived":false,"fork":false,"pushed_at":"2019-10-04T19:33:32.000Z","size":160,"stargazers_count":20,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-07T04:29:03.356Z","etag":null,"topics":["file","firebase","firebase-storage","multi-upload","upload","uploader","vue","vue2"],"latest_commit_sha":null,"homepage":"https://bit.dev/incuca/incuca-ui/ic-firebase-uploader","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InCuca.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2018-01-02T13:46:44.000Z","updated_at":"2022-11-24T05:24:30.000Z","dependencies_parsed_at":"2023-07-28T01:00:55.181Z","dependency_job_id":null,"html_url":"https://github.com/InCuca/ic-firebase-uploader","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InCuca%2Fic-firebase-uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InCuca%2Fic-firebase-uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InCuca%2Fic-firebase-uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InCuca%2Fic-firebase-uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InCuca","download_url":"https://codeload.github.com/InCuca/ic-firebase-uploader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254121298,"owners_count":22018140,"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":["file","firebase","firebase-storage","multi-upload","upload","uploader","vue","vue2"],"created_at":"2024-08-04T02:01:01.382Z","updated_at":"2025-05-14T10:34:08.967Z","avatar_url":"https://github.com/InCuca.png","language":"Vue","funding_links":[],"categories":["Vue","UI组件","Components \u0026 Libraries","UI Components","UI Components [🔝](#readme)"],"sub_categories":["形成","UI Components","Form"],"readme":"# ic-firebase-uploader\n[![Travis](https://img.shields.io/travis/InCuca/ic-firebase-uploader/master.svg)](https://travis-ci.org/InCuca/ic-firebase-uploader/branches)\n\n\u003e This component is a multi-file uploader for firebase\n\n## Installation\n\n### Using yarn\n\n`yarn add ic-firebase-uploader`\n\n### Using npm\n\n`npm i --save ic-firebase-uploader`\n\n### ES6 Modules / CommonJS\n\n```js\nimport IcFirebaseUploader from 'ic-firebase-uploader';\nimport 'ic-firebase-uploader/dist/ic-firebase-uploader.min.css';\n\nVue.component('ic-firebase-uploader', IcFirebaseUploader);\n```\n\n### UMD\n\n```html\n\u003cscript src=\"https://unpkg.com/vue\" charset=\"utf-8\"\u003e\u003c/script\u003e\n\u003cscript src=\"./dist/umd/ic-firebase-uploader.min.js\" charset=\"utf-8\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"./dist/umd/ic-firebase-uploader.min.css\"\u003e\n\n\u003cscript type=\"text/javascript\"\u003e\n  Vue.component('ic-firebase-uploader', window.IcFirebaseUploader);\n\u003c/script\u003e\n```\n\n## Usage\n\n```js\nconst firebase = require('firebase')\n\nconst config = {\n  apiKey: \"secret\",\n  projectId: \"app-id\",\n  storageBucket: \"app-id.appspot.com\",\n}\n\nfunction getStorage() {\n  firebase.initializeApp(config)\n  return firebase.storage()\n}\n\nfunction getFileName(file) {\n  return file.name + Math.floor(Math.random() * 1000)\n}\n\nfunction onUpload({doUpload}) {\n  doUpload();\n}\n\nfunction onDelete({doDelete}) {\n  doDelete();\n}\n```\n\n```html\n\u003cic-firebase-uploader\n  path=\"images\"\n  max-files=\"3\"\n  :getFileName=\"getFileName\"\n  :storage=\"getStorage()\"\n  @upload=\"onUpload\"\n  @delete=\"onDelete\"\u003e\n\u003c/ic-firebase-uploader\u003e\n```\n\n## Demo and Docs\n\n`npm run serve`\n\n## Build\n\nBuild configuration is located in the `poi.config.js` file, to build just run: `npm run build`, it will build to `cjs` and `umd` directories.\n\n## Tests\n\nThis template uses karma with chai by default, you can change test settings in poi.config.js\n\n`npm run test`\n`npm run test:watch`\n`npm run test:cov`\n\n## License\n\nThis project is licensed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInCuca%2Fic-firebase-uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FInCuca%2Fic-firebase-uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInCuca%2Fic-firebase-uploader/lists"}