by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 04 2017 10:01
    zedL closed #74
  • Feb 20 2017 15:00
    zedL opened #74
  • Jan 04 2017 10:32
    richbryant opened #73
  • Aug 05 2016 14:58
    genericuser-me opened #72
  • Jun 29 2016 21:13
    ajdisalvo72 opened #71
  • Apr 18 2016 06:54
    behzad888 commented #34
  • Dec 06 2015 11:14

    cmichaelgraham on update-for-perf-testing

    updated bundles for perf testing (compare)

  • Nov 29 2015 14:03

    cmichaelgraham on master

    Update README.md (compare)

  • Nov 28 2015 14:09

    cmichaelgraham on master

    Update README.md (compare)

  • Nov 28 2015 14:05

    cmichaelgraham on master

    yahoooooooooo !! beta (compare)

  • Nov 28 2015 13:45

    cmichaelgraham on 1.0.0-beta.1.0.2

    (compare)

  • Nov 28 2015 13:25

    cmichaelgraham on get-started-and-beta-update

    updated todo-require-vs-ts (compare)

  • Nov 28 2015 13:21

    cmichaelgraham on get-started-and-beta-update

    updated skel-nav-require-websto… (compare)

  • Nov 28 2015 13:05

    cmichaelgraham on get-started-and-beta-update

    updated skel-nav-esri-vs-ts (compare)

  • Nov 28 2015 12:59

    cmichaelgraham on get-started-and-beta-update

    updated skel-nav-esri-gulp (compare)

  • Nov 28 2015 12:46

    cmichaelgraham on get-started-and-beta-update

    updated skel-nav-esri-atom (compare)

  • Nov 27 2015 20:06

    cmichaelgraham on get-started-and-beta-update

    updated pwkad-aurelia-samples (compare)

  • Nov 27 2015 19:43

    cmichaelgraham on get-started-and-beta-update

    updated nwind-breeze-bootstrap (compare)

  • Nov 27 2015 19:33

    cmichaelgraham on get-started-and-beta-update

    updated multi-level-menu (compare)

  • Nov 27 2015 19:24

    cmichaelgraham on get-started-and-beta-update

    updated code-sandbox. unresolv… (compare)

Peter Wone
@PeterWone
Getting "@types/jquery" from npm and importing "jquery" sorted "$" but now connection is undefined.
Fernando Vega
@vegafx12
If I want to include databinding in electron app, am I able to just npm install `aurelia-binding', import in my project, and viola, I'm binding?! Or... is there more setup involved there? I feel like it's definitely not as simple as that. Anyone knowsss???
probably aurelia-templating needed too I imagine..
VagyokC4
@VagyokC4
Hi Room
I'm converting an aurelia project from JS to TS. I'm looking for example of how to do certain things... my first one is the attached lifecycle event.
  attached(params, routeConfig, navigationInstruction) {
}
What are the backing types for these params?
doktordirk
@doktordirk
VagyokC4
@VagyokC4
the js app used attached
I've moved pass this issue ... the "blocker" I have now is the use of super(...args)
  TS2556: Expected 15 arguments, but got 0 or more.
    super(...args);
  constructor(
    protected rollbar,
    protected ablyService,
    protected dataStore,
    protected db,
    protected eventAggregator,
    protected eventService,
    protected notificationService,
    protected router,
    protected cache,
    protected taskQueue,
    protected templatingEngine,
    protected http,
    protected utils,
    protected environment,
    protected signaler) { }
doktordirk
@doktordirk
Extending some class there? The original class was clearly intended to be created by the dependency-injection. You probably have the wrong approach there
or if you just need the singleton of that class, injected it somewhere or get it with container.get(ThatClass) (with Container injected before)
VagyokC4
@VagyokC4
So my base class gets injected from the DI. This seems to work just fine... now when I extend the base class, with what is essentially a higher base class, I want to also inject from the DI
using the super(...args)
doktordirk
@doktordirk
inheritance isn't the recommended approach. but anyways, since your super class probably already has an eg @inject for those then you they will get added already (assuming you use DI for your child class) and you can just pass the args on
class Child extends Super {
constructor(...rest) {
   super(...rest);
}
...
VagyokC4
@VagyokC4
yes... that looks right for my child class, but my base looks like the constructor here
  constructor(
    protected rollbar,
    protected ablyService,
    protected dataStore,
    protected db,
    protected eventAggregator,
    protected eventService,
    protected notificationService,
    protected router,
    protected cache,
    protected taskQueue,
    protected templatingEngine,
    protected http,
    protected utils,
    protected environment,
    protected signaler) { }
and I get the following error
  TS2556: Expected 15 arguments, but got 0 or more.
doktordirk
@doktordirk
as i said, that parent class was to be used with aurelia.s DI and the same applies for your child class. @inject(ChildClass) class XY {construtor(child){this.child=child}}
Dinoloop
@ParallelTask

I am very much impressed with typescript and angular for developing apps.
but to develop REST API i faced problems with javascript (no typing ..) and express redundant code.

So I have created a framework dinoloop which is powered by typescript heavily influenced by C# WebAPI and MVC.
Dinoloop focuses on OOPS and SOLID principles.

try dinoloop in developing small part of your REST API. You can then either gradually expand its presence,
or keep it contained to a few routes. You can develop your entire REST API in dinoloop or you can develop part of it.

project wiki: https://github.com/ParallelTask/dinoloop

Dinoloop
@ParallelTask

Dinoloop has been designed from the start for gradual adoption, and you can use as little or as much dinoloop as you need. Perhaps you only want to develop some "REST APIs" using dinoloop and other REST APIs can be developed using expressjs. In this section, we will show how to create dinoloop REST API to an existing express app.

Step 1: Add HomeController (file: home.controller.ts)
import { ApiController, Controller, HttpGet } from 'dinoloop';

@Controller('/home')
export class HomeController extends ApiController {

@HttpGet('/get')
get(): string {
    return 'Hello World!';
}

}
Step 2: Mount dinoloop and bind to express instance (file: app.ts)
const app = express();
app.use(bodyParser.json());

// Dino requires express instance and base-uri to which dino will be mounted
const dino = new Dino(app, '/api');

// Dino requires express router too
dino.useRouter(() => express.Router());

// Register controller
dino.registerController(HomeController);

// Bind dino to express
dino.bind();

// These are your normal express endpoints
app.get('/home', (req, res, next) => {
res.status(200).json('Hello World!');
});

app.get('/about', (req, res, next) => {
res.status(200).json('Hello World!');
});

// Start your express app
app.listen(8088, () => console.log('Server started on port 8088'));
Dinoloop is mounted on /api and all of its controller routes/endpoints which are registered with dinoloop are also mounted on /api. Dinoloop will handle those requests which are mounted on /api i.e. /api/home/get, the other end points /home and /about which are created by expressjs are not handled by dinoloop, this way you can slowly migrate your existing express app to dinoloop or you can start writing your new REST APIs using dinoloop.

please find the reference: https://github.com/ParallelTask/dinoloop

VagyokC4
@VagyokC4
Hey room.... anybody with Aurelia experience looking for some work? PM for more information
PeachyPeach
@jairadichoso
Hi, want to ask how to get data for selected hour in array of time?
bigopon
@bigopon
@jairadichoso how does your array look like?
[DateObject, DateObject, ...] ?
PeachyPeach
@jairadichoso
the array is stored as number[]
@bigopon
I kind of did this to get the time array
 let result = this.filteredArray.map(a => a.time);
      result.filter((data) =>{
        let newDate = new Date(data *1000);
        let timeResult = newDate.toTimeString();
          return timeResult;
      });

      console.log(result);
I just want to exctract the data within specific hour using timepicker
ex. I set 1:00 on timepicker, it should get data within 1:00 only
bigopon
@bigopon
let result = this.filteredArray.filter(a => {
  let date = new Date(a.time);
  let hour = date.getHours();
  if (hour === 16) { // just random number
    return true;
  }
});
// result is now number[] with matching selected hour
PeachyPeach
@jairadichoso
@bigopon what if I have separate pickers? one for date and another for hour? how do I do it to get the per hour data (thru separate timepicker) for current date selected?
bigopon
@bigopon
@jairadichoso Hmm, I'm not sure what you meant by that
can you describe what you want in bullet points?
PeachyPeach
@jairadichoso
@bigopon it's working fine now I just had to compare the toTimeString value of 2 dates
thank you
PeachyPeach
@jairadichoso
Hi, just want to ask if anybody knows how to use .replace correctly in javascript? I hava to make this one work in my html
  <h3 class="card-header bg-primary lighten-1 white-text py-3">{{ data.tags[0].replace(/([a-z])([A-Z])/g, '$1 $2') }}<i class="fa fa-hdd-o float-right"></i></h3>
Jürgen Wenzel
@jwx
@jairadichoso Maybe use a getter or a value converter?
And, err, what is it you're trying to achieve?
Jürgen Wenzel
@jwx
Oh, I just saw, you're using {{ }} when you should be using ${ }.
(Are you trying to sneak some React in here...? ;) )
bigopon
@bigopon
regexp isn't supported in template expression
Azhar Patel
@azharpatel_gitlab
ERROR TypeError: Cannot read property 'xxx' of undefined at Object.eval [as updateDirectives]
iDamari
@iDamari
what are you using for toast messages? have anyone use the build in boostrap 4 Toasts with Aurelia?
bigopon
@bigopon
What issue are you having? @iDamari i think all toasters work fine. It depends on what you find first :smile:
iDamari
@iDamari
While most toaster doesn't required markup such as "Toastr" the build in bootstrap 4 does (https://getbootstrap.com/docs/4.3/components/toasts/)
Since i'm already using bootstrap what's the point in importing an external one, so my question is for the best practice for the required markup - should I have it on the shell html or with any Aurelia helper module and how..
iDamari
@iDamari
@bigopon should I create an element with markup + class and add it to the shell in the same way the loading-indicator example is used here
iDamari
@iDamari
Has anyone used this aurelia-toast demo?