{"id":13778246,"url":"https://github.com/FirebaseExtended/polymerfire","last_synced_at":"2025-05-11T11:35:10.504Z","repository":{"id":57105938,"uuid":"59135852","full_name":"FirebaseExtended/polymerfire","owner":"FirebaseExtended","description":"Polymer Web Components for Firebase","archived":false,"fork":false,"pushed_at":"2020-08-10T13:47:01.000Z","size":317,"stargazers_count":460,"open_issues_count":112,"forks_count":153,"subscribers_count":67,"default_branch":"master","last_synced_at":"2024-04-23T20:18:23.055Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.webcomponents.org/element/firebase/polymerfire","language":"HTML","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/FirebaseExtended.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-18T17:09:40.000Z","updated_at":"2024-01-03T22:48:06.000Z","dependencies_parsed_at":"2022-08-20T22:10:57.219Z","dependency_job_id":null,"html_url":"https://github.com/FirebaseExtended/polymerfire","commit_stats":null,"previous_names":["firebase/polymerfire"],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FirebaseExtended%2Fpolymerfire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FirebaseExtended%2Fpolymerfire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FirebaseExtended%2Fpolymerfire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FirebaseExtended%2Fpolymerfire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FirebaseExtended","download_url":"https://codeload.github.com/FirebaseExtended/polymerfire/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224708951,"owners_count":17356521,"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-08-03T18:00:52.378Z","updated_at":"2024-11-17T13:31:28.390Z","avatar_url":"https://github.com/FirebaseExtended.png","language":"HTML","readme":"\n\u003c!---\n\nThis README is automatically generated from the comments in these files:\nfirebase-app.html  firebase-auth.html  firebase-document.html  firebase-query.html\n\nEdit those files, and our readme bot will duplicate them over here!\nEdit this file, and the bot will squash your changes :)\n\nThe bot does some handling of markdown. Please file a bug if it does the wrong\nthing! https://github.com/PolymerLabs/tedium/issues\n\n--\u003e\n\n[![Build status](https://travis-ci.org/firebase/polymerfire.svg?branch=master)](https://travis-ci.org/firebase/polymerfire)\n\n## Status\n\n![Status: Archived](https://img.shields.io/badge/Status-Archived-red)\n\nThis library is no longer actively maintained. We **do not recommend** using this library in production.\n\nIf you maintain a fork of this library that you believe is healthier than the official version, we may consider recommending your fork.  Please open a Pull Request if you believe that is the case.\n\n## \u0026lt;firebase-app\u0026gt;\n\nThe firebase-app element is used for initializing and configuring your\nconnection to firebase.\n\n\n## \u0026lt;firebase-auth\u0026gt;\n\n`firebase-auth` is a wrapper around the Firebase authentication API. It notifies\nsuccessful authentication, provides user information, and handles different\ntypes of authentication including anonymous, email / password, and several OAuth\nworkflows.\n\nExample Usage:\n\n```html\n\u003cfirebase-app\n  auth-domain=\"polymerfire-test.firebaseapp.com\"\n  database-url=\"https://polymerfire-test.firebaseio.com/\"\n  api-key=\"AIzaSyDTP-eiQezleFsV2WddFBAhF_WEzx_8v_g\"\n  storage-bucket=\"polymerfire-test.appspot.com\"\n  messaging-sender-id=\"544817973908\"\n  project-id=\"polymerfire-test\"\u003e\n\u003c/firebase-app\u003e\n\u003cfirebase-auth id=\"auth\" user=\"{{user}}\" provider=\"google\" on-error=\"handleError\"\u003e\n\u003c/firebase-auth\u003e\n```\n\nThe `firebase-app` element initializes `app` in `firebase-auth` (see\n`firebase-app` documentation for more information), but an app name can simply\nbe specified at `firebase-auth`'s `app-name` property instead.\n\nJavaScript sign-in calls can then be made to the `firebase-auth` object to\nattempt authentication, e.g.:\n\n```javascript\nthis.$.auth.signInWithPopup()\n    .then(function(response) {// successful authentication response here})\n    .catch(function(error) {// unsuccessful authentication response here});\n```\n\nThis popup sign-in will then attempt to sign in using Google as an OAuth\nprovider since there was no provider argument specified and since `\"google\"` was\ndefined as the default provider.\n\n\n\n## \u0026lt;firebase-document\u0026gt;\n\nThe firebase-document element is an easy way to interact with a firebase\nlocation as an object and expose it to the Polymer databinding system.\n\nFor example:\n\n```html\n\u003cfirebase-document\n  path=\"/users/{{userId}}/notes/{{noteId}}\"\n  data=\"{{noteData}}\"\u003e\n\u003c/firebase-document\u003e\n```\n\nThis fetches the `noteData` object from the firebase location at\n`/users/${userId}/notes/${noteId}` and exposes it to the Polymer\ndatabinding system. Changes to `noteData` will likewise be, sent back up\nand stored.\n\n`\u003cfirebase-document\u003e` needs some information about how to talk to Firebase.\nSet this configuration by adding a `\u003cfirebase-app\u003e` element anywhere in your\napp.\n\n\n\n## \u0026lt;firebase-query\u0026gt;\n\n`firebase-query` combines the given properties into query options that generate\na query, a request for a filtered, ordered, immutable set of Firebase data. The\nresults of this Firebase query are then synchronized into the `data` parameter.\n\nExample usage:\n\n```html\n\u003cfirebase-query\n    id=\"query\"\n    app-name=\"notes\"\n    path=\"/notes/[[uid]]\"\n    data=\"{{data}}\"\u003e\n\u003c/firebase-query\u003e\n\n\u003ctemplate is=\"dom-repeat\" items=\"{{data}}\" as=\"note\"\u003e\n  \u003csticky-note note-data=\"{{note}}\"\u003e\u003c/sticky-note\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nPolymer({\n  properties: {\n    uid: String,\n    data: {\n      type: Object,\n      observer: 'dataChanged'\n    }\n  },\n\n  dataChanged: function (newData, oldData) {\n    // do something when the query returns values\n  }\n});\n\u003c/script\u003e\n```\n\n\n","funding_links":[],"categories":["Adapters","웹"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFirebaseExtended%2Fpolymerfire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFirebaseExtended%2Fpolymerfire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFirebaseExtended%2Fpolymerfire/lists"}