Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 01 08:41

    0x64 on WRO-5932

    Apply @lit-labs/react partially… (compare)

  • Jul 01 07:45
    vladut-clapou-lgp synchronize #183
  • Jul 01 07:45

    vladut-clapou-lgp on WRO-713

    Review fix (compare)

  • Jul 01 07:44
    vladut-clapou-lgp synchronize #176
  • Jul 01 07:44

    vladut-clapou-lgp on WRO-713

    Review fix (compare)

  • Jul 01 07:35
    vladut-clapou-lgp synchronize #176
  • Jul 01 07:35

    vladut-clapou-lgp on WRO-713

    Review fix (compare)

  • Jul 01 06:55
    codecov[bot] commented #3069
  • Jul 01 06:49
    codecov[bot] commented #3069
  • Jul 01 06:49
    jeonghee27 synchronize #3069
  • Jul 01 06:49

    jeonghee27 on WRO-745

    apply review (compare)

  • Jul 01 06:40
    jeonghee27 closed #184
  • Jul 01 06:40

    jeonghee27 on develop

    Remove using svg background ima… Remove background-repeat, backg… Align indentation Enact-DCO-1.0… and 1 more (compare)

  • Jul 01 05:02
    sjro synchronize #184
  • Jul 01 05:02

    sjro on WRO-7413

    Align indentation Enact-DCO-1.0… (compare)

  • Jul 01 02:14
    codecov[bot] commented #3070
  • Jul 01 02:09
    codecov[bot] commented #3070
  • Jul 01 02:09
    jeonghee27 synchronize #3070
  • Jul 01 02:09

    jeonghee27 on WRO-4003

    fix lint (compare)

  • Jul 01 02:07
    jeonghee27 edited #3070
Eric Blade
@ericblade
ugh also need to fork dev-utils
Eric Blade
@ericblade
ok.. so when i link in my modified dev-tools it deletes all the other modules necessary for cli to run.. :|
Eric Blade
@ericblade
please review enactjs/cli#257 and enactjs/dev-utils#85 to add the feature to package.json
Eric Blade
@ericblade
... and confirming that it works and does what it's supposed to, all the way out to my production server. \o/
i should've called it relative paths, not absolute paths, i thought that sounded weird, but all the articles were like 'absolute paths are amazing'.. but these aren't absolute paths. sorry if that caused any confusion
Eric Blade
@ericblade
image.png
2 hours to clone and figure out how to add the feature to enact, get it added to my production server, and touch every single file in my application to update for it. not too bad.
Mikyung Kim
@MikyungKim
@ericblade ,
Thanks for the PRs. Enact CLI does support "resolve.alias" (https://webpack.js.org/configuration/resolve/#resolvealias) through package.json as "alias" property.
But I guess you wanted to resolve additional paths.
I understand what's the pain point for developers and I think it's reasonable to add the feature.
I found Create React App also supports the feature through js/tsconfig file. (https://create-react-app.dev/docs/importing-a-component/#absolute-imports)
Fortunately, we have plans for adopting Webpack5 near future, we'll take a look at how we could achieve this while updating Webpack.
I think "enact" object in package.json is a good start point. Thanks for the suggestion!
Eric Blade
@ericblade
I don't know enough about webpack configuration to know if that can be used to achieve the same thing or not
hmm. i just looked up those fields, and for the specific purpose, it does look like both can be used to achieve what i wanted, though it does look like there might be good reasons to have both.
If you'd like to accept that change, but need me to make any changes to it, just lmk. I'm not sure my choice of variable names fits well.
Mikyung Kim
@MikyungKim
Sure, we'll let you know! If we need to make another PR for some reason, we'll also comment on your PR to let you know.
Thank you for your support! I really appreciate it.
Eric Blade
@ericblade
hmm. might be a long shot question, but .. anyone know of a way to defeat Android's pull-to-refresh behavior on a Touchable that is looking for a flick event?
I've just discovered that having a component slide out on flick is a really interesting UI thing I want to toy with, but Android keeps getting in the way
Eric Blade
@ericblade
i found a way!
            onFlick={() => { do_thing_flick_should_do(); document.body.style.overscrollBehaviorY = 'auto'; }}
            onTouchMove={(ev) => { document.body.style.overscrollBehaviorY = 'contain';}}
Eric Blade
@ericblade
should there be a fix soon to make enact serve work with node 17+ ?
requires NODE_OPTIONS=--openssl-legacy-provider right now
Seungho Park
@seunghoh
We have a plan to bump up the node LTS(16) not 17 soon.
Eric Blade
@ericblade
👍not sure if that problem affects 16, i think the pc i have 17 on i bumped straight from 14 to 17.
Eric Blade
@ericblade
it looks like this doesn't effect 16, this is a new change in 17. my production server uses 16 and doesn't set this, though i try to keep my dev machines up to date when i'm active on them. so, not a big deal, but someone will need to be aware that node 17+ will break npm run serve
Seungho Park
@seunghoh
Will do. Thanks for the information Eric!
Dead-Master
@Dead-Master
Tell me how to add your data to the index.html file, I can’t find the template for this file
Eric Blade
@ericblade
@Dead-Master in my package.json i have under "enact": { "template": "./template.html", ... }
Martin Scola
@martinscola-hwm
Hello Enact Team! I'm getting acquainted with the Enact Framework and I was wondering if it's compatible with React Hooks, and where would I go about using them. Can I use them while creating components with kind()?
Eric Blade
@ericblade
i don't know 100% but i haven't found a way to use hooks inside a kind.. when i need a hook, i use a react component
Martin Scola
@martinscola-hwm
Thank you, Eric. Sorry for the delay, I’m only seeing msgs at the office. You can just insert React components anywhere in the app, right? One other question, if you will: I’m having the most stupidest thing, where I try to insert an image using the Sandstone Image component, but it doesn’t render. Neither inside a panel, or inside a DIV. Any thoughts?
Martin Scola
@martinscola-hwm
What I don’t understand is that I’m getting a status 200 on the images, but when I see them on the Network preview, they’re blank
Martin Scola
@martinscola-hwm
Never mind, I fixed that
Seungho Park
@seunghoh
Hi @martinscola-hwm Yes, you can use react hooks with kind by setting functional: true
Please refer to the https://enactjs.com/docs/modules/core/kind/
Eric Blade
@ericblade
oh wow, that's great to know
quite a time ago, i had asked about creating a PWA with enact.. finally figured out a way to do it.. just built the app manifest and related information, then installed it into the enact dist directory after packing everything with pack-p . . . just totally bypass the problem :-)
i'd just never thought about doing it like that, and i saw someone else doing something similar, and was like... oh.. i can do that. :-D
Martin Scola
@martinscola-hwm
Thank you, @seunghoh
Eric Blade
@ericblade
@seunghoh so setting functional: true does get past the initial "you can't use a hook here" problem, but then it triggers: Line 25:30: React Hook "useSelector" is called in function "render" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter react-hooks/rules-of-hooks
both the variable name and the 'name' field are set to a name that begins with an uppercase letter.
Seungho Park
@seunghoh
@ericblade Thanks for the notes. We will take a look and let you know
Seungho Park
@seunghoh
hi @ericblade We've released Enact CLI 4.1.7
It supports absolute path imports. https://github.com/enactjs/cli/releases/tag/4.1.7
Eric Blade
@ericblade
<3 ty
i just upgraded to react 18-rc2, and unless there's something really really sticky hiding in there, the entire app appears to work 100% with no changes other than adding react 18 to my peerDeps in one component
goodev2021
@goodev2021
hi
I come across Paper Mache - https://www.ryanwatkins.net/software/papermache/press.html
I have huge content to be displayed like Paper Mache or https://lwcast.org/Mobile which uses enjoy framework. Looks the enyo framework is not very active right now or not sure whether i should use enjojs
Could you please kindly suggest the best framework or plugin or anything similar to Paper Mache or Enjo framework implementation like https://lwcast.org/Mobile or should we use enyojs which will satisfy the artcile or paper publishing website with search engine.
Eric Blade
@ericblade
hmm. i switched back to using the mainline version of @enact/cli, instead of my modified one, and now it's complaining about typescript features i'm using in 4.5.. but only on my production build..
my development build has no problem with the new typescript
Seungho Park
@seunghoh
hi @goodev2021 Enyo has switched to Enact in 2018. https://medium.com/enact-js/hello-enact-2d971dc763ab
You can use Enact. https://enactjs.com/
Thanks
1 reply
@ericblade Can you share the complaining message of new feature?
Eric Blade
@ericblade
image.png
specifically, type imports
Seungho Park
@seunghoh
Thanks! We will take a look.
Eric Blade
@ericblade
i just reverted back to using my custom enact from when i submitted that PR and the type imports work fine.