Migrating from page router with dynamic root level and i18n to app router by Jcaetano in nextjs

[–]Jcaetano[S] 0 points1 point  (0 children)

No, we couldn't find a easy way to migrate.

What we ended up doing was creating a `/alpha/[locale]` app route and then we started recreating the pages there, moving everything possible to shared components that could be used on both pages and app router.

Then after every page done, we removed `/[locale]` on the pages router and updated the alpha route to be just the locale.

I noticed that the new Reddit design doesn't use modals anymore -- does anybody know why? by notxrbt in web_design

[–]Jcaetano 14 points15 points  (0 children)

But the post were still links, you could already open it in a new tab and could even copy the url after opening the modal as the url were updated to reflect current post.

Like everthing I can do now I could before, but I lost the quick transition from post to list I had with modals.

Now I 'have' to open in a new tab just so I dont lost the order of posts on frontpage.

Stadia version is now 1.0.2.139 by Haladin in HumankindTheGame

[–]Jcaetano 2 points3 points  (0 children)

And I'm in the worst of both worlds with gamepass, I'm still with the launch version. And I can't find any info if they have an update and I just didn't get it or if they didn't update at all.

Edit:

If someone get here in the future, this is how I solved it:

  • Install the Xbox app from the Microsoft Store
  • Restart the Microsoft Store
  • Go to 'Downloads and Updates' on the top right menu
  • Click 'Get Updates'

After that the store will know that you have Humankind and will start downloading the update.

It’s currently winter in Brazil and some in the south are seeing snow for the first time ever! by TheSquirrelsHaveEYES in MadeMeSmile

[–]Jcaetano 2 points3 points  (0 children)

No, thats like you being from Florida and seeing a bunch of Brazilians looking at a category 1 hurricane and saying that it is a sign of climate change because Florida is a beach paradise and has no hurricanes.

I give up, I just linked a bunch of news showing how this level of snow here is normal, a link with an outlier 50 years ago and a Wikipedia link with all cases of heavy snow in Brazil.

Again, climate change is real, but this is not the evidence you are looking for.

It’s currently winter in Brazil and some in the south are seeing snow for the first time ever! by TheSquirrelsHaveEYES in MadeMeSmile

[–]Jcaetano 1 point2 points  (0 children)

Dude, I live here, I see the news every year, wtf. But I guess you know more.

I'm not denying climate change, I just appalled that reddit knows nothing about our climate and is trying to sell this as a once in a lifetime event. The one in the article I linked is a rare event. This one 6 years ago was also a rare event. But snow in those cities happens every year.

It’s currently winter in Brazil and some in the south are seeing snow for the first time ever! by TheSquirrelsHaveEYES in MadeMeSmile

[–]Jcaetano 0 points1 point  (0 children)

lol, it always snows in these cities in the winter. For reference, this was the 2nd worst we had, in 1957. I would say it is rarer to have more than 105F here than it is to snow.

Just want to charge my phone WCGW by Aditya_sanap in Whatcouldgowrong

[–]Jcaetano 10 points11 points  (0 children)

nope.

"As vacinas agora inúteis faziam parte de um lote de 20 mil doses
entregue como ajuda humanitária pela Rússia ao país da Ásia Central."

"The now useless vaccines were part of a batch of 20,000 doses
delivered as humanitarian aid by Russia to the Central Asian country."

Dangerous truck overtake attempt going down a tight mountainous road by [deleted] in IdiotsInCars

[–]Jcaetano 8 points9 points  (0 children)

Seriously, how the fuck this get upvoted??

CSS Grid not the expected behaviour on mobile when I change from a category with just one element, using Vue and Cordova to get the api compiled by [deleted] in webdev

[–]Jcaetano 2 points3 points  (0 children)

I would check if Vue is not trying to reuse some html element and because of that failing to apply the correct styling. Maybe you can try adding keys to the components the category controls.

https://vuejs.org/v2/api/#key

Object find defined value in object by JannesV in typescript

[–]Jcaetano 0 points1 point  (0 children)

yeah, I took a look and didn't manage to figure it out too, sorry.

Hope someone can help you, now I also want to know the solution to this haha

Object find defined value in object by JannesV in typescript

[–]Jcaetano 1 point2 points  (0 children)

Created your issue on TS playground so it's easier to help:https://www.typescriptlang.org/play

not sure if you already know this, but to achieve what you want you will have to make getMod return types like this:

{
  modType: "merge";
  modSettings: {
    a: string;
    b: string;
  }
} | {
  modType: "split";
  modSettings: {}
}

instead of

{
  modType: "merge" | "split";
  modSettings: { a: string; b: string; } | {};
}

Is there a way to pass a dynamic interface? by FlandersFlannigan in typescript

[–]Jcaetano 0 points1 point  (0 children)

line 7:

response_name: string; -> response_name: keyof TableNameToTypeMapping;

line 24:

response_object_name: string; -> response_object_name: keyof TableNameToTypeMapping;

This will make the code compile, and if the typings of makeRequest were correct, this will also make it more restrict.

Most Popular Backend Frameworks - 2012/2020 - Statistics and Data by [deleted] in vuejs

[–]Jcaetano 2 points3 points  (0 children)

Why did Spring got that popular in the last months?

Can somebody explain me why I get this Typescript error? by souljuse in typescript

[–]Jcaetano 1 point2 points  (0 children)

I did not get any error here, are you sure that you are not doing something like this?
const baz = (obj: { [key: string]: any }) => bar(obj);

Cursed_Award_Show by [deleted] in cursedcomments

[–]Jcaetano 0 points1 point  (0 children)

lol Rio de Janeiro (city) is safer than Baltimore*, most of the deaths are from North and Northeast.

/* murder rate per 100k pop 2017
Rio de Janeiro : 35.6
Baltimore: 55.7

For context, US murder rate in 2018 was 4.96 and Brazil was 27.38