pulsarblow / aurelia-firebase Goto Github PK
View Code? Open in Web Editor NEW๐ฅ A Firebase plugin for Aurelia
Home Page: https://aureliaonfire.azurewebsites.net
License: MIT License
๐ฅ A Firebase plugin for Aurelia
Home Page: https://aureliaonfire.azurewebsites.net
License: MIT License
Would it be possible to update to Beta1?
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
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?
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.
I just wanted to quickly integrate the ReactiveCollection in my app, so i thought that it would work well if it just took a ref() therefore, it doesnt need any other dependencies:
https://gist.github.com/tonypee/c2dcf22a1f3075e388fc0a7454a88ef6
Maybe this would be a good feature
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/
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
Wondering if it would make sense to either expose Firebase or Firebase.ServerValue through the plugin.
One use case would be to get a unique timestamp instead of relying on moment in application.
https://www.firebase.com/docs/web/api/servervalue/timestamp.html
Is there an eta for this feature yet?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.