AncientBeast icon indicating copy to clipboard operation
AncientBeast copied to clipboard

ditch jQuery for UI+animation libs

Open DreadKnight opened this issue 5 years ago • 4 comments

We should totally ditch jQuery and replace it with an UI library plus an animation one, some options:

  • https://vuejs.org
  • https://vuetifyjs.com
  • https://github.com/vuejs/ui
  • https://nuxtjs.org
  • https://greensock.com
  • https://github.com/jeremyckahn/shifty - simple one for tweens

Edit: Going with Vue/Tres frameworks.

DreadKnight avatar Nov 16 '19 05:11 DreadKnight

Or maybe keeping things native, using https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API/Using_the_Web_Animations_API

DreadKnight avatar Apr 22 '20 11:04 DreadKnight

There's a lot of jQuery $.extend calls used to copy properties from one JS object to another. If it's simple values that are being copied, those can be replaced with native Object.assign. Otherwise, a relatively simple custom function could be used for deep copies.

Is that worth doing as an intermediate step in order to move towards this goal?

andretchen0 avatar Mar 24 '23 21:03 andretchen0

There's a lot of jQuery $.extend calls used to copy properties from one JS object to another. If it's simple values that are being copied, those can be replaced with native Object.assign. Otherwise, a relatively simple custom function could be used for deep copies.

Is that worth doing as an intermediate step in order to move towards this goal?

Yeah, I guess so; if we decouple from the stuff without running into issues that's still progress.

DreadKnight avatar Mar 24 '23 23:03 DreadKnight

We'll be going the Vue/Tres route.

DreadKnight avatar Jul 06 '23 13:07 DreadKnight