Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Roberto Wesley Overdijk
@RWOverdijk
haha
norgie
@norgie
We’re slowly moving from “pure js” to TypeScript and so far we’ve hit two (minor) problems with the AuthService, i.e.
this.authService.authentication.config and this.authService.authentication.storage both produce a red squiggly underneath config and storage. What are we missing/doing wrong?
Roberto Wesley Overdijk
@RWOverdijk
Maybe they're not defined.
I'm currently not working on the plugins because I have a lot of react work, but having good typings would be nice.
Vijay Bindraban
@VMBindraban
When updating to aurelia-authentication 3.8.1 i am getting the following error:
aurelia-authentication.js?cca0:1729 Uncaught (in promise) TypeError: Cannot read property 'origin' of undefined
    at Object.configure (aurelia-authentication.js?cca0:1729)
    at eval (aurelia-framework.js?517a:186)
in:
function configure(frameworkConfig, config) {
  if (!_aureliaPal.PLATFORM.location.origin) { // <=== here
    _aureliaPal.PLATFORM.location.origin = _aureliaPal.PLATFORM.location.protocol + '//' + _aureliaPal.PLATFORM.location.hostname + (_aureliaPal.PLATFORM.location.port ? ':' + _aureliaPal.PLATFORM.location.port : '');
  }
using aurelia-config though.. coming from 3.7.0
Roberto Wesley Overdijk
@RWOverdijk
woa
That's not good
Vijay Bindraban
@VMBindraban
Fixed, it was using aurelia-pal 1.5 instead of 1.8.
Roberto Wesley Overdijk
@RWOverdijk
Oopsy
Glad you found it
:)
agstover
@agstover
Just starting to integrate Wetland into a project. I was previously using Sequelize, but I like the Unit of Work feature of Wetland. Seems like a really cool library. Working on getting tests up and running. With Sequelize when I want to nuke DB values between tests there's a database.truncate() command that you can use to do that. How would you suggest I do that with Wetland?
agstover
@agstover
I'm guessing manager.getEntities() then iterate over the entities with queryBuilder.remove()
agstover
@agstover
Oh wow, I just now read the section on seeding and see that you can set it to seed cleanly. You guys are awesome!
Roberto Wesley Overdijk
@RWOverdijk
:D
Sorry, I'm at React Native EU
So I'm a bit unresponsive. But I'm glad you found the seeding section. :)
Shauni
@ShauniArima
Hello, is it possible to display form element conditionnaly when it is binded on an entity?
Roberto Wesley Overdijk
@RWOverdijk
@ShauniArima Conditional in what way?
Shauni
@ShauniArima
For example, you want to let the user choose if he want to notified someone by email when something append. So you let the user check a checkbox then the email input appear. Now the user can type the email address he want.
norgie
@norgie
Have you looked at show.bind and its sibling if.bind?
See https://aurelia.io/docs/fundamentals/cheat-sheet#databinding and search for “Templating View Resources”.
Shauni
@ShauniArima
Yes but I'm using aurelia-form to do that.
Roberto Wesley Overdijk
@RWOverdijk
Then you need to make a custom field
Ryan McElroy
@Ryanman
@RWOverdijk how was the conference? Are you guys also working on React native apps? The only exposure I've had to it is through Discord's engineering blog which has been a mixed bag...
Roberto Wesley Overdijk
@RWOverdijk
@Ryanman The conference was great! Thanks for asking. I'm still in Poland enjoying the country for two more days.
Yes, we're also working on native apps and have been for about two years now.
React Native is quite neat and just makes sense for native development.
norgie
@norgie

Hi.
I’ve installed aurelia-autocomplete using au install. aurelia.json contains the following entry:

          {
            "name": "aurelia-autocomplete",
            "main": "aurelia-autocomplete",
            "path": "../node_modules/aurelia-autocomplete/dist/amd",
            "resources": []
          }

and in main.js I’ve got the following line: aurelia.use.plugin(‘aurelia-autocomplete’);
When I run the application it fails to load with these two errors being reported:
Uncaught RangeError: Maximum call stack size exceeded and Unhandled rejection TypeError: Cannot read property ‘resolvedView’ of undefined.
If I comment out the line in main.js the application loads just fine. What am I missing? Are there any dependencies which are missing from the documentation?

norgie
@norgie
@RWOverdijk @doktordirk
Hello. Anyone here?
Roberto Wesley Overdijk
@RWOverdijk
@norgie I'm busy with my job hunt and a project and @doktordirk has a new job where he has to focus
I don't think either of us has time right now
resolvedView is view manager which uses aurelia-config and aurelia-view-manager. Are you sue you have those set up?
norgie
@norgie

Ok.

Got it to work in the end. However, I do have some questions but seeing that you’re both busy I might search for a replacement. It’s not a time critical project, but I would like to get it off my shoulders in a not too distant future 😊

Roberto Wesley Overdijk
@RWOverdijk
Makes sense :)
Roberto Wesley Overdijk
@RWOverdijk

@/all Time for the periodic spam!

After some consideration, I have decided to move to slack. Soon we'll be releasing some cool stuff (Node.JS framework called stix, click here for a preview of the CLI) and the announcements and following help for said things will be on slack. There will also be a live stream where I'll be coding something using stix, live... Probably a bad idea, so let's do it.

Feel free to join!

Slack Status

I hope to see you there!

Shauni
@ShauniArima
Hello there, is it possible to display form errors that are returned by the backend? I use aurelia orm with aurelia-form.
Alfred Lopez
@alfredlopez
Hello all, can anybody point me to an usage example of aurelia-chart?
Gorka Chaudouin
@g0rk4
Hello guys, i use aurelia form and I need to have a field that is editable only on create
while updating my entity i need to make this field disabled
any idea to perform this ?
norgie
@norgie
Shauni, Alfred Lopez and Gorka Chaudouin.
Please ask your questions on Slack as this group has moved there.
Shauni
@ShauniArima
Houston we got a problem.
Gorka Chaudouin
@g0rk4
@norgie we cannot access to spoonx slack
Roberto Wesley Overdijk
@RWOverdijk
Ooooh noooo
Shauni
@ShauniArima
It's good now I think.
Roberto Wesley Overdijk
@RWOverdijk
It's still broken, legacy tokens got removed
But I added it again \o/
Shivendra Jadon
@Shivendra12
mnmn