« first day (3561 days earlier)      last day (1370 days later) » 

7:39 AM
hello, regarding the error caused by using a too old version of Node (12 instead of 13), I saw it worked yesterday before doing some updates and I am thinking what if webpack is configured in a wrong way? is it possible to be related with the config of webpack (through razzle)? thanks
 
8:35 AM
Anybody in here good at VueJS?
 
@Robotica Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
Is it possible to take this: https://github.com/gerasimvol/vue-faq-accordion and use it via CDN (https://www.jsdelivr.com/package/npm/vue-faq-accordion) on codepen?

Here it is on CodeSandbox: https://codesandbox.io/s/vue-faq-accordion-gh6yl?file=/package.json:0-2

I'm not yet at the level of using Vue-CLI...
 
Hi there
I got a question here. I want to detect if a svg has been shown on the page? How can I do it?
 
define "shown"
just the presence of the element itself or fully drawn
 
@KarelG So, What's lib or function should I use?
As we know, If you have a line or path need to draw on the page by using SVG, You have to wait for a second util it all done. but How can I know if it has been done.
 
8:55 AM
how do I avoid using inline functions for onClick on an element when I want to pass other data to the click handler
example:
dateRow.map((cell: IDate) => {
    <div onClick={() => handleDateSelected(cell.date)></div>
})
I want to pass cell.date but if i dont use inline function i cannot pass it
i can use dataset but it doesn't seem right. besides, cell.date is a date object and using dataset probably converts it to a string and I have to create an other date object from the date string in dataset
 
@FrankAK svg has an API itself that you can use
yet, there are libraries that functions as a layer of abstraction over the native API functionalities for easy-to-use.
a good example is just svg.js :P
 
my boss just won't accept inline functions
 
and the reason is ... ?
 
@Abhi you could just make it a normal function
 
@KarelG It's wonderful :) Thanks mate
 
9:00 AM
@Wietlol and returning a function as well?
kek
 
higher order functions <3
but it avoids the inline function
 
that is correct
it is just ... silly :)
 
I suppose
 
@KarelG probably because new functions are created on each render
 
Does stackoverflow have a VueJS oriented chat?
 
9:02 AM
function onClickHandlerForDateSelected(cell) {
  return () => handleDateSelected(cell.date);
}
@Abhi each function has its own cell data ... so you need to have a function per row
unless ... you work with a different approach
have a click handler and use the API to figure out which cell got clicked
(it's just the element itself mind you)
 
doesn't that still create new functions?
 
9:16 AM
@KarelG What do you think if I listen or monitor the Svg's visibility attribute ? if it's visible is true, I can believe all path has been render
 
Regarding this accordion in VueJS... https://codepen.io/usamakhushnood4/pen/ExVmQZE

Can someone please help me with adding a new box underneath?
 
Hi friends
 
@VijayPalaskar Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
How to add stack navigation inside drawer navigation?
Is anyone know how to add in react native? How to add stack navigation inside drawer navigation?
 
@FrankAK yes and no. there are various strategies to wait when the svg got fully rendered
for loading only (the initial phase), listening to load is sufficient.
but if you intend to make it dynamically, you have to wait when svg has completed it
 
10:22 AM
hi guys
i thought there was some problem with react dev tools,
so to debug it i read https://github.com/facebook/react/tree/master/packages/react-devtools#the-react-tab-doesnt-show-up
this page said, 'You can test this on the React website or by inspecting Facebook.'
after checking React website and my react dev tools worked
But, IT SAID it would also work for Facebook page, AND IT DIDN'T,
Facebook doesn't seem to use REACT, Then why the manual said that ??
 
it depends if the build is including the console hook
 
then why that page said to also check on facebook
if it isn't supposed to work ??
 
something changed in between?
and did not got communicated?
 
maybe ๐Ÿคจ
 
judging to the history, that section got touched 10 months ago.
 
10:30 AM
should i add an issue ??
 
feel free
 
thanks for fast response
 
WHy there is no proper documentation for react hooks, like how to handle infinite loop in case , there is no array dependencies
 
@AnilLoutombam Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
the doc isn't that bad, whats the problem exactly ??
 
10:37 AM
it has limited in terms of comparing with class components
 
probably cause, their new
 
10:59 AM
@AnilLoutombam imagine being in my shoes when working on my corp's CRM: had to update a javascript functionality of a given service because of a feature request. That uses a third party API, which is very old and "had" a documentation. So I had to figure out undocumented functions :)
there was not much time to renew the page.
 
11:23 AM
๐Ÿ‘๐Ÿ‘๐Ÿ‘
 
 
3 hours later…
2:15 PM
console.log('Hello world!');
 
2:55 PM
Hello World!
 
fail
 
Wietbot is a better bot than JBis
 
3:25 PM
My processor is just slower
 
3:43 PM
it also changes casing of characters
 
I have built in auto correct/casing
 
3:54 PM
@KarelG Good to now! Cheers mate!
 
user13638878
4:29 PM
Please help me how to make music player like saavn.com
 
@AmanAlp Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
user13638878
??
 
Hire someone to make it for you
 
user13638878
I'm php dev and i want know how to make ?
 
What are you expecting? Someone here to explain how to make it step by step?
We aren't a code writing service
try building it, if you have a problem ask and we can try to help
if you don't know js then look online for a tutorial
 
5:32 PM
hi
 
 
1 hour later…
7:02 PM
Is it safe to send a jwt through a url? For context, I'm trying to make an auth server for my school club's apps. Our school uses shibboleth auth, and the idea is any of our club apps can redirect a user to this auth server, which will take them to our schools SSO portal. After SSO theyll be back at the auth server, and I'd like to create a custom firebase token and then send it back to the original app the user came from
The reason we're doing this infrastructure is so we dont have to register every single app individually with our school's IT in order to get SSO integration, this way we just have our auth server that verifies that for us, and also allows us to maintain a single profile for users across our apps (in a firebase firestore)
I already have the part of the auth server setup where it handles the school SSO, and ive read the firebase docs about creating a custom token and it seems simple enough, my only concern is passing that token back to the original app the user called it from. The auth server is just a simple express server with passport-saml for sso, so i cant think of anything else other than redirecting back to the original app with the token as a query param
 
 
3 hours later…
9:39 PM
hi, is there a better debugging tool than i.e chrome devtools? an extension perhaps?
 
I assume WebStorm or PhpStorm have plugins to debug a website
IntelliJ has it, but the one I use is kotlin specific, so it won't work for javascript
but I assume they made one for javascript as well
other IDEs might also have tools like that
 
10:35 PM
hello JS people!
 
10:57 PM
@Washery hello!
 
do you talk about Ionic too on here?
 
@DuckLing as @Wietlol said, there is one built into WebStorm (and PHPstorm) there is also firefox dev tools which i prefer
@Washery Is it js?
 
it uses Angular or React to build cross-compatible apps
 
What is the shortest opposite of trim in JavaScript?
like padding or something similar?
 
@Washery then sure
|| mdn padStart
 
|| mdn padEnd
 
@Lime ^
 
That's new from when I started
 
yep, added due to the entire left pad incident i think
 

« first day (3561 days earlier)      last day (1370 days later) »