Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 28 02:00
    3cp closed #1198
  • Jul 28 02:00
    3cp commented #1198
  • Jul 27 21:18
    nenadvicentic commented #1198
  • Jul 27 09:45
    3cp commented #1198
  • Jul 27 09:44
    3cp commented #1198
  • Jul 26 21:38
    3cp assigned #1198
  • Jul 26 14:50
    nenadvicentic edited #1198
  • Jul 26 14:49
    nenadvicentic opened #1198
  • Jul 20 17:47
    dependabot[bot] labeled #385
  • Jul 20 17:47
    dependabot[bot] opened #385
  • Jul 20 17:47

    dependabot[bot] on npm_and_yarn

    chore(deps): bump terser from 4… (compare)

  • Jul 20 17:46
    dependabot[bot] labeled #384
  • Jul 20 17:46
    dependabot[bot] opened #384
  • Jul 20 17:46

    dependabot[bot] on npm_and_yarn

    chore(deps): bump terser from 4… (compare)

  • Jul 20 12:47
    dependabot[bot] labeled #422
  • Jul 20 12:47
    dependabot[bot] opened #422
  • Jul 20 12:47

    dependabot[bot] on npm_and_yarn

    chore(deps): bump terser from 4… (compare)

  • Jul 20 06:32
    dependabot[bot] labeled #209
  • Jul 20 06:32
    dependabot[bot] opened #209
  • Jul 20 06:32

    dependabot[bot] on npm_and_yarn

    chore(deps): bump terser from 5… (compare)

Caleb Cushing
@xenoterracide
@zedL also can you change the port that way without editing a file?
so that just one dev can run it on special port?
Jan Möller
@Croissong
Can i have value converters apply AFTER signal behaviors ? Like run (expensive) calculation after debounce
David Morris
@elmt1
Hoping someone can help here or has a suggestion. I have a value converter that I created to translate values. The value converter takes a term name and a list of terminology. All it does is return the appropriate translation. This works most of the time but sometimes, the list of terminology is not loaded when the converter is called. I am loading the terminology in the root component. An alternative would have been to use the i18n plugin but it is much heavier weight than I needed and didn't seem to provide an easy way to override terms with values in a db. Not sure what I should do at this point, does anyone have any suggestions? -- thank you!
David Morris
@elmt1
I think I may have a solution. I moved the code that initializes the terminology to the activate method from the constructor. I haven't tested thoroughly but it seems to be working. Any idea why the activate method would be synchronous where the constructor wouldn't? I made the change based on this thread on stack overflow: https://stackoverflow.com/questions/40304882/possible-in-aurelia-to-wait-for-a-promise-in-a-custom-element-to-complete-before
Jason Sobell
@jsobell
@elmt1 Constructors are synchronous, as are all javascript functions, and the only async version is if you return a Promise from something and the calling code decides to wait until that promise has resolved
@elmt1 constructors don't return anything, so they can't be async. The activate() function is able to return a function, and Aurelia looks at any return value, and if it's a Promise it waits for it to resolve (or fail) before continuing.
Constructors should be high-speed and ideally contain no expensive operations; all those should be implemented as functions (returning Promises) or methods on the object itself
David Morris
@elmt1
@jsobell, that helps. I was using a promise in the constructor and it worked most of the time but in some cases that seem related to caching, it wasn't hitting the constructor. I just added the terminology promise to the promise chain I had in the activate and it seems to work now, which makes sense based on what you said about it waiting for the promise to resolve in an activate.
Tyler J Presley
@TylerJPresley
I'm trying to setup protractor on this new project. I'm using the CLI. I've broke something and it's not apparent what I broke.
C:\Users\...\web\aurelia_project\tasks\build.ts:1
"use strict";
                                                              ^
ReferenceError: define is not defined
    at Object.<anonymous> (C:\Users\...\web\aurelia_project\tasks\build.ts:1:63)
    at Module._compile (module.js:635:30)
    at Module.m._compile (C:\Users\...\web\node_modules\ts-node\src\index.ts:422:23)
    at require.extensions..ts (C:\Users\...\web\node_modules\aurelia-cli\lib\project.js:239:19)
    at Object.require.extensions.(anonymous function) [as .ts] (C:\Users\...\web\node_modules\ts-node\src\index.ts:425:12)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Users\...\web\aurelia_project\tasks\test.ts:6:15)
    at Module._compile (module.js:635:30)
    at Object.require.extensions..ts (C:\Users\...\web\node_modules\aurelia-cli\lib\project.js:239:19)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
Tyler J Presley
@TylerJPresley
I got unit tests working again by rolling everything protractor/e2e back. Is there a tutorial that works for CLI/TS?
Shawn Talbert
@ShawnTalbert
Anyone here know if the effort to convert Aurelia to TS is still active?
There was talk of it many months ago
Matthew James Davis
@davismj
its on the radar
Shawn Talbert
@ShawnTalbert
good to know @davismj
Tyler J Presley
@TylerJPresley
I thought most of it was already
Shawn Talbert
@ShawnTalbert
I just looked at one of the simpler modules, Aurelaia-logging and it seems to still be plain JS
Tyler J Presley
@TylerJPresley
Anyone do e2e testing
with the CLI/TS?
Tyler J Presley
@TylerJPresley
It's like it's converting the ts files to use require, but it's not including require
Andrew C
@andrew-caines
is there a command via the CLI to just re-install all the files required for the framework?
Tyler J Presley
@TylerJPresley
You can always create a new project and drop the files over the existing
@andrew-caines ^
Andrew C
@andrew-caines
Yah thats what i have done, but i think i was having an ownership issue with the files, and wanted to test overwritting them with different user
m-athijs
@m-athijs
I'm trying to get pushstate working with jspm. I added a base href to my index.html and a baseUrl to the config.js. But I still get 404 errors, so it's not working. Anyone has any idea how to get this working?
Matthew James Davis
@davismj
has nothing to do with jspm i assume
i'm hoping you set it up on the router as well
you would also need to make sure that your hosting service is handling this correctly, i rarely use pushstate, but i think that amounts to bascially having every request redirect to index.html
m-athijs
@m-athijs
yes I did. And when I use the aurelia-cli (which doesn't use jspm) it does work. But with the aurelia-cli I have a lot a problems setting up my dependencies correctly so I figured I try the esnext-skeleton. But now I have this issue
I do need pushstate because I'm authenticating my app with Auth0 which requires it.
Matthew James Davis
@davismj
I don't think Auth0 would force you into push state, but its been a while since I used it.
So, this has to do with how the cli does hosting.
the skeleton uses browsersync and you'll need to use a middleware on browsersync to rewrite
m-athijs
@m-athijs
well Auth0 - or at least my implementation which is based on their tutorial - after authentication tries to find a rout /access_token which results in a 404
it's /acess_token=....
Matthew James Davis
@davismj
thats auth0's route
not aurelia
m-athijs
@m-athijs
As you can probably tell I'm relatively new to Aurelia as well as Auth0. But anyway, if that's auth0's route, I don't understand why I still get a 404. I removed the pushstate now and added a callback route with a # to the auth0 configuration. So at least the callback is working now.
Matthew James Davis
@davismj
/shrug dunno
It's hard to say.
m-athijs
@m-athijs
well, I guess I'll return to the aurelia-cli version and see if I can get my dependencies fixed. Thanks for your suggestions! And by the way, you don't happen to have experience with using the prismic-javascript library in Aurelia? That's the one I originally I had issues with setting up the dependencies correctly.
And off course that one works like a charm in the jspm-version :(
Anyway, onwards with the struggle
Fred Myklebust
@Ztorkthrower_twitter

Anyone had any sucess integrating au-table with the asp.net core 2.0 spa-template?

Otherwise would be thankful if anyone know about a Aurelia table plugin compatible with webpack (and the .net spa template)?

Sytone
@sytone
using the aurelia-skeleton-webpack and trying to add aurelia-configuration, coming back module id cannot be found and webpack does not seems to be bundling it. Looked for any place to explicitly delare modules to include but came up blank
ok, just managed to get it working after 2 hours... .plugin(PLATFORM.moduleName('aurelia-configuration')); did not know you had to have the PLATFORM in there as other docs did not reference that
Tjad Clark
@tjad
Howzit, I'm trying to dynamically render elements on the fly using TemplatingEngine's enhance(). I would like to tell the enhance instruction about the current controller's viewResources - as it seems by default enhance uses only globally declared resources. Any ideas on how to get all the current controller's view resources :?
I have looked into ViewResourcesimport from aurelia-framework, however this seems to only include resources that were used by the controller - hence my dynamically added custom element is not listed as a view resource as it hasn't been rendered/used yet