Giter VIP home page Giter VIP logo

aurelia-firebase's People

Contributors

pulsarblow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aurelia-firebase's Issues

Support all firebase method for saving data

It looks like that currently firebase-aurelia add only implements firebase push method.

https://github.com/PulsarBlow/aurelia-firebase/blob/master/src/collection.js#L23

add(item:any) : Promise {
    return new Promise((resolve, reject) => {
      let query = this._query.ref().push();
      query.set(item, (error) => {
        if (error) {
          reject(error);
          return;
        }
        resolve(item);
      });
    });
  }

It would be useful to support the other methods like set update transaction as well.
https://www.firebase.com/docs/web/guide/saving-data.html

Cannot invoke ReactiveCollection - Container has not been made global

Upon starting a completely new project with the latest starter kit (http://aurelia.io/downloads/kit-es2016.zip) and following the steps in the README, the ReactiveCollection fails to invoke with the following stacktrace:

Error: Error invoking App. Check the inner error for details.
------------------------------------------------
inner error: Error: Container has not been made global
    at Error (native)
    at new ReactiveCollection (http://127.0.0.1:8080/jspm_packages/github/pulsarblow/[email protected]/collection.js:27:108)
    at new App (http://127.0.0.1:8080/src/app.js!transpiled:18:28)
    at Object.invoke (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-dependency-injection.js:334:14)
    at InvocationHandler.invoke (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-dependency-injection.js:309:168)
    at Container.invoke (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-dependency-injection.js:557:25)
    at StrategyResolver.get (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-dependency-injection.js:145:37)
    at Container.get (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-dependency-injection.js:494:23)
    at eval (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-templating.js:3899:73)
    at Error (native)
    at new ReactiveCollection (http://127.0.0.1:8080/jspm_packages/github/pulsarblow/[email protected]/collection.js:27:108)
    at new App (http://127.0.0.1:8080/src/app.js!transpiled:18:28)
    at Object.invoke (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-dependency-injection.js:334:14)
    at InvocationHandler.invoke (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-dependency-injection.js:309:168)
    at Container.invoke (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-dependency-injection.js:557:25)
    at StrategyResolver.get (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-dependency-injection.js:145:37)
    at Container.get (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-dependency-injection.js:494:23)
    at eval (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-templating.js:3899:73)
    at new AggregateError (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-pal.js:20:13)
    at Container.invoke (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-dependency-injection.js:559:15)
    at StrategyResolver.get (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-dependency-injection.js:145:37)
    at Container.get (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-dependency-injection.js:494:23)
    at eval (http://127.0.0.1:8080/jspm_packages/npm/[email protected]/aurelia-templating.js:3899:73)

This renders the plugin completely useless! Can anyone reproduce?

Filtering ReactiveCollection items

Is there currently any way to filter the collections before pulling them from Firebase?

If I got it right, in the demo sample, all todos are retrieved and then they are filtered by ownerId. Would there be any way to retrieve only todos with a specific ownerId?

I have been looking at the _query variable in ReactiveCollection.class but I guess it's meant to be a private variable.

new Firebase Authentication SDKs

When trying the code using a newly created firebase db, signin and signups spit out the following error:

Projects created at console.firebase.google.com must use the new Firebase Authentication SDKs available from firebase.google.com/docs/auth/

Futures plans for aurelia-firebase?

Hi @PulsarBlow,

Just wondering if you have plans for active development of aurelia-firebase? I'm evaluating now and wondering if it was worth my efforts to learn the code and contribute. Also wondering what you see as next in the roadmap?

Thanks,
forest

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.