Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 17 15:33

    agubler on v7.0.0-alpha.1

    (compare)

  • Oct 17 15:33

    agubler on master

    package-lock 7.0.0-alpha.1 Update package metadata (compare)

  • Oct 06 12:12
    matt-gadd transferred #173
  • Oct 06 05:49
    samenz opened #173
  • Sep 25 12:08
    JamesMilnerUK edited #288
  • Sep 24 18:06
    JamesMilnerUK synchronize #255
  • Sep 24 17:36
    JamesMilnerUK synchronize #255
  • Sep 24 14:33

    JamesMilnerUK on master

    .dojorc extends support with @s… (compare)

  • Sep 24 14:33
    JamesMilnerUK closed #297
  • Sep 24 14:33
    JamesMilnerUK closed #295
  • Sep 24 14:08

    agubler on v6

    (compare)

  • Sep 24 13:52
    JamesMilnerUK synchronize #297
  • Sep 24 13:13
    JamesMilnerUK synchronize #297
  • Sep 24 13:11
    JamesMilnerUK edited #297
  • Sep 24 13:04
    JamesMilnerUK opened #297
  • Sep 24 13:04
    JamesMilnerUK closed #296
  • Sep 23 19:06
    JamesMilnerUK review_requested #296
  • Sep 23 19:06
    JamesMilnerUK review_requested #296
  • Sep 23 19:06
    JamesMilnerUK edited #296
  • Sep 23 19:04
    JamesMilnerUK edited #296
Evgeny Rachinskiy
@evra
It looks like credentials property of the RequestOptions ( https://github.com/dojo/core/blob/fdeba616fafbaf6edcf9eb152a5bc6ffb6ae1e60/src/request/interfaces.d.ts#L43 ) is not used in the xhr provider.
If I'm not mistaken CORS requests with cookies or credentials will not be possible in this case.
salmau
@salmau
Hey all, I'm doing the theming on my project, but something isn't clear... Could we have several declination of themed widget furnished by Dojo?
For instance, I wish I were create some themed buttons in a same theme (validate button, cancel button...). But I have understood that I can have only one themed button by theme !
I saw that it possible to put a theme as property in a button widget (https://github.com/dojo/widgets/blob/master/src/button/index.ts) but it involves to create a theme by button...
Is there a solution?
Deno Vichas
@denov
@evra - you can set the headers on fetch.
CORS needs to be set on the server
Evgeny Rachinskiy
@evra
@denov unfortunatelly the withCredentials flag doesn't add any headers (as expected). It's an instruction for the browser to add cookies to a cross-domain request (if headers provided by the server allow this).
just to make more clear: cross-domain requests are working fine. But cross-domain requests with cookies don't as cookies are not included.
Sarah Higley
@smhigley

@salmau if you want to make a few differently-themed buttons, you can either extend Button for each one, or extend it and add a buttonStyle property that controls a class added to the root. The first option is as simple as this:

@theme(validateButtonCSS)
export default class ValidateButton extends Button { }

For the second option, you'd need to override the getModifierClasses method on Button:

export interface MyButtonProperties extends ButtonProperties {
  buttonStyle: 'validate' | 'cancel';
}

@theme(myButtonCSS)
export default class ValidateButton extends Button<MyButtonProperties> {
  getModifierClasses() {
    // add some logic for appending classes here
  }
}
Anthony Gubler
@agubler
@denov what do you need to bootstrap your stores example?
Deno Vichas
@denov
to show an issue i'm having with store.on watching { [id: number]: boolean; }
Anthony Gubler
@agubler
if you use a string index type, does it work?
(rather than number)
Deno Vichas
@denov
haven't tried. i will....
the overall problem i'm trying to solve is i have a bunch of (IoT) 'nodes'. the have an number for an id. and i only want to update a list of status widgets when they change. i'm not sure the best way to structure my store.
Deno Vichas
@denov
changing to a string from number doesn't seem to do anything
@salmau - scroll up up july 23 3:44 - i had asked a similar question.
Deno Vichas
@denov
Evgeny Rachinskiy
@evra
@denov we have IE 11 support as a requirement so we can't use fetchapi unfortunatelly :( https://caniuse.com/#feat=fetch
Deno Vichas
@denov
@evra :(
Deno Vichas
@denov
@evra - i just looked at the source. yeah, it looks like RequestOptions is missing withCredentials to be passed to provider/xhr.ts
Anthony Gubler
@agubler
@evra there are polyfils for fetch though?
Evgeny Rachinskiy
@evra
@agubler yes, we could move to using polifills for fetch api but we thought that using dojo request API is a good alternative.
salmau
@salmau
@denov thx !
Matthew Gadd
@matt-gadd
Hey everyone, just a heads up but as part of some structural re-ogranisation, we are going to be moving from Gitter to Discord for chat, Discord has many more features than Gitter and allows us to have multiple channels without being coupled to a github repo. Here is the link to join: https://discord.gg/M7yRngE. Hope to see you over there!
tkanderson01
@tkanderson01
Long time user of dojo 1.x and going through the tutorial for 2.0. I am not seeing anything about graphs or grids, is this something they are working on or is it not going to support this in the future?
Matthew Gadd
@matt-gadd
@tkanderson01 hey! yeah a grid is in the immediate pipeline - we have a small prototype here: https://github.com/agubler/le-grid. visualizations/graphs are something on the roadmap.
tkanderson01
@tkanderson01
@matt-gadd Thank you for your reply. I like the new grid. Do they have a road map of the current projects?
Matthew Gadd
@matt-gadd
@tkanderson01 the current roadmap is here: https://github.com/dojo/meta/wiki/Roadmap, but we’re working on updating it
mythbu2
@mythbu2
I'm just trying to get into Dojo2 and have a question, which I already asked on GitHub but got no response. So sorry for re-asking my question here: the situation is like this: I have a widget which has child widgets and I want to get one of the child widgets to call a function on it from the "parent" widget. But I can't find any hint on it in the documentation. Here is my code snippet on StackOverflow: https://stackoverflow.com/questions/51550943/dojo2-how-to-get-the-child-widget-instance-to-call-functions-on-it Can you help me?
Anthony Gubler
@agubler
@mythbu2 if you want a child widget to call a function from the parent you need pass it to the child as a property. In dojo the widget instance are never exposed.
mythbu2
@mythbu2
@agubler Thank you very much. If its possible I think it is worth mentioning in the documentation.
Rob Agar
@robagar
so.. is this forum decamping to dojo/dojo3 now? feels like we've only just got here ;)
ah just saw the post about discord
petro1
@petro1
I want to upgrade my app from dojo2 to dojo3 and I installed @dojo/cli-upgrade-app@3.0.1-pre. When I run dojo update I get this message Commands are not available: Error: Failed to load module X:/my-app/node_modules/@dojo/cli-upgrade-app
Nested error: Cannot find module ‘X:/my-app/node_modules/@dojo/cli-upgrade-app’. Do you know why?
Anthony Gubler
@agubler
Hey @petro1, can you install the 3.0.0 version from npm and try again? Just an FYI, we are migrating from gitter to discord as the official dojo support forum (https://discord.gg/M7yRngE)
khalboi
@khalboi
Hi Everyone, my current application is on dojo 1.9. Thew views in the app are rendered on server side and it uses dijit widgets declaratively. I am trying to upgrade to dojo2. To reduce the amount of work, I would like to keep the view rendering on serverside. Is there way to use dojo2 declaratively?
Dylan Schiemann
@dylans
Hi @khalboi we've started to move the chat to Discord https://discord.gg/M7yRngE ... sorry for the redirection, but you're more like to get an answer over there.
Adan Agic
@adaan7
Hi Everyone, my current application is in dojo2, can someone help me regarding my issue, i have those messages in console all over my application
[Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL>
7[Violation] 'requestAnimationFrame' handler took <N>ms
on some pages, it is just like an infinite loop and it completely blocking my UI.. does anybody know how to solve this in dojo2? thanks in advance :)
Anthony Gubler
@agubler

Hey @adaan7 can you give some examples of that you are doing?

FYI, we’ve moved over to discord now for the official dojo chat

Anthony Gubler
@agubler
@adaan7 Also dojo is supported on codesandbox now so you could create an example sandbox for us to look at.
Robert Butler
@lighth7015
so what's the deal with TSX? can't I just like babel or something to import an html module and throw that up as a view?
Sebastian Lasse
@sebilasse
Hi, just like to point to the https://github.com/gothinkster/dojo2-realworld-example-app - started with that at http://indieweb.org/2019/Vlissingen and it was easy and is a nice example e.g. for the state management - this might be worth to mention (link) it in the docs. We are heading over to FOSDEM now - maybe see you.
Dylan Schiemann
@dylans
@sebilasse unfortunately I don't think any of us are at FOSDEM this year. The example you linked to is actually from https://github.com/dojo/examples/tree/master/realworld !
Anthony Gubler
@agubler
To be honest it originally started in the gothinkster repository because that’s where they keeps all the examples. We ported it to examples for visibility and exposure
Sebastian Lasse
@sebilasse
off topic: Made an ActivityPub + IPFS example with that example. Unfortunately ipfs-js is untyped for now. See end of ipfs/js-ipfs#1166 – another user made typings, but he doesn't know how to submit it to "@types". I never had to and so I don't know either ;)
aldyn
@aldyn

Hello dojo experts,

I'm working with dojo2 from beta version on and everything was fine till I did upgrade from dojo4 to dojo5. In this version I found out that generated dist files don't change hash codes, so all the time I have the same name of 'bootstrap.repeating_hash_code.bundle.js' file. This has impact on the browser caching after new deployment. I thought that this will be solved in dojo6 and I did upgrade but it's the same. It's easy to reproduce using dojo/cli-create-app and doing build afterwards.
Does anyone else has the same problems?

Looking forward for your help...

David Schontzler
@schontz
@aldyn Most dojo2+ support is on Discord now: https://discordapp.com/channels/471607790213922816/471607790213922818