by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Feb 02 12:39
    HeReleased Piral v0.10.0
  • Feb 02 12:36
    Hello!
  • Feb 02 12:06
    Hello!
Brendan King
@kingb12

Hi all, I'm working on adding use of the requireRef field to our own feed-service implementation. Noting this from the docs:

If the requireRef field is used then PiletMetadataV2 will be used implicitly. In this case the pilet is integrated via a currentScript-based mechanism. The requireRef describes the name of the global require function, which must be pilet specific and should be unique across all pilets. For more information on the requireRef have a look at the pilet specification.

I'm not very familiar with JS packaging in general, but is there a straight-forward way to determine the name of the global require function from an existing pilet, or at publishing time?

17 replies
Florian Rappl
@FlorianRappl

Reminder:

Community Standup (1)

  • When? Next Monday 5pm CET (8am PST, 3pm UTC)
  • Where? http://meet.piral.io
  • Who? Piral team and everyone who is interested
  • What? (up to you, we would show some features of new plugins, the feed service, and the new WIP documentation page)

If you have something to show or discuss, please let us know!

5 replies
Robin
@Robbson
I wonder how I can disable all those Piral State Change messages in the console log when using piral debug. Is there any parameter I can pass or is it part of the instance configuration?
8 replies
Rovi Riyadi
@roviriyadi
Hi @FlorianRappl , when i create litle component with fetch data from api in them and registered with registerExtension, that component always rerender and refetch from api when value changed but not if i use component without registerExtension.
Thanks :)
4 replies
Robin
@Robbson
Hello, how can I migrate an existing Piral app shell to Webpack? Just removing the piral-cli-parcel dependency and replace it by piral-cli-webpack seems not to be all because when running piral debug it is missing parcel... What have I overlooked?
33 replies
Robin
@Robbson
How can I access an action to add something to the global state when not inside a react component? That's mandatory when implementing an API. Is it context.emit?
3 replies
Christopher Dimitri Sastropranoto
@cds95
Hi is there a way to turnoff kras when running pilet debug? We need to proxy request headers along with the original request and it looks like kras strips them out. We are thinking if we can use our own proxy instead of kras.
45 replies
kpyfan
@kpyfan
Hey @FlorianRappl - Is there a reasonable way to configure the local emulator instance from pilet debug to point to a feed service to load other pilets/extensions/etc for integration testing purposes? I know the piral dev tools exist to add things as a one off, but if I'm developing an integration with a specific extension it would be nice to have it loaded in each time the instance reloads rather than having to re-add it manually
13 replies
Jan Eirik Forland
@janforland
@FlorianRappl : It seems like React.lazy is not working in Safari or Chrome on iPads/iPhones. I have one component that is not lazy loaded, and that is working as expected, but all my lazy loaded compoenents fail. On desktop everything is fine, but on iPad I get an error saying "Unexpected token "<"". It seems that injecting scripts using <script async... in <head> is not working as expected. Anyone else have similar experiences?
67 replies
Robin
@Robbson
Hello, what has to be done on the App Shell when a named search provider is used? Because the provider does only work when it has no name set.
4 replies
Burak Akça
@burakakca
Can I write my piral and pilets angular based
i want to use angular
it's possible or not
also same question but for blazor
13 replies

also same question but for blazor

it's a bit absurd but I can run react and angular component in blazor

Florian Rappl
@FlorianRappl
Community Standup (2)
  • When? Monday 5pm CET (8am PST, 3pm UTC)
  • Where? http://meet.piral.io
  • Who? Piral team and everyone who is interested
  • What? (release of the latest 0.11.8)
  • If you have something to show or discuss, please let us know!
2 replies
Burak Akça
@burakakca
how can i configure piral-pwa ? like offline mode . I look the this document https://docs.piral.io/reference/plugins/piral-pwa but i dont understand
13 replies
Son Nguyen
@lamson

Question: can a pilet register a page at root path? - registerPage("/", <App />)

I know that the piral instance owns the root pilet instance.root, though is there anyway we can overwrite this behavior?

9 replies
Isuru
@isuru88
Question: What is the best way for multiple pilets to publish data while one pilet listens to it? I was trying to use SetData() but if I use a single name, it will be owned by the first Pilet that publishes to it.
5 replies
Son Nguyen
@lamson
Question re: scaffolding process - is there an option to overwrite existing file?
Son Nguyen
@lamson
nevermind - I found pilet upgrade --force-overwrite prompt
Robin
@Robbson
I still can't figure out how to "transform" a project based on StencilJS to work as a pilet / get the pilet publishing to work. Stencil uses rollup.js for bundling and the module structure is different. There are no index.ts files in the component folders, there is even no index.ts as a starting point. It has loaders to use StencilJS based component libraries in a project, that's the standard use case and it works fine. But we will have stencilJS based applications in the near future and I have no idea how to use them in Piral... especially without restructuring the whole project. Any glues where to start are welcome! This todo list sample app ist a typical example: https://github.com/theodesp/todolist-stencil
40 replies
Burak Akça
@burakakca
I do not fully understand the purpose of dependency sharing from piral. Can you please explain?
image.png
1 reply
is this the purpose ?
2 replies
or this for pilet dependecy sharing
hari9.nalluri
@Hari9Nalluri_twitter
Hi @FlorianRappl , we have shell and pilet , shell has bread-cum for navigation, when we doing navigation in shell bread-cum is working, when navigate form pilet bread-cum is not getting update with change navigation, we are not able to send change notification to shell , could you please help us
10 replies
Florian Rappl
@FlorianRappl
Community Standup (3)
  • When? Monday 5pm CET (8am PST, 3pm UTC)
  • Where? http://meet.piral.io
  • Who? Piral team and everyone who is interested
  • What? (current progress on v1, new documentation page, piral-containers plugin)
  • If you have something to show or discuss, please let us know!
1 reply
Benjamin
@axinom-benjamin
Is there a way to make the CLI more talkative?
14 replies
rtruong
@rtruong

Hi @FlorianRappl . I think there's an IE11 bug in Piral using Webpack. We're seeing an error occur at document.currentScript.app =.

According to MDN ( https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript ), document.currentScript isn't supported in IE11.

7 replies
Burak Akça
@burakakca

Hello ,

https://preview.keenthemes.com/metronic/react/demo3/dashboard#
I try to integrate the theme into the piral. I followed the Moving of Existing Applications steps but I was not successful

It was very mixed. What is your suggestion?

11 replies
Burak Akça
@burakakca

https://docs.piral.io/guidelines/tutorials/13-sharing-from-piral

I tried to transfer data from piral to pilets, I am successful, but I could not change that data from pilet.

10 replies
How can I do since it does not have direct access to the global data warehouse
rtruong
@rtruong
@FlorianRappl How can we write a local injector for kras? The documentation says it's possible, but it doesn't have an example of how.
1 reply
rtruong
@rtruong
Is there an ETA on this? FlorianRappl/kras#27
1 reply
Damon Salvatore
@damon3465_gitlab
@FlorianRappl I am looking at Customizing the Pilet API and I want to say registerMyHeader to set up a structure like registerMenu. If we go through the example for this, does it make sense to use api.registerMenu in createMyApi?
1 reply
image.png
Isuru
@isuru88
I'm having an issue with environment variables with piral-cli-webpack. Earlier with parcel I was able to access variables defined within .env from the react page. But after scaffolding a new project with the latest piral cli, I noticed that only the variables defined here, https://github.com/smapiot/piral/blob/develop/src/tooling/piral-cli-webpack/src/configs/common.ts#L10, are accessible. If I add the piral-cli-dotenv plugin and the custom variable key to that array it gets published to the react application. Am I missing something here?
15 replies
Robin
@Robbson

Suppose a Pilet registering a page with a routing parameter like this

api.registerPage('/person/:personId/details', () => {...}

How could the same Pilet register a menu without knowing the personId while the App-Shell could have it in its context state?
I have been thinking about a placeholder approach like

api.registerMenu(() => 
     <NavLink to="/person/{{PERSON_ID}}/details">Person Details</NavLink>
);

But the Menu Component in the App-Shell can't access the "children" object to modify the link. I guess the Menu API isn't designed for such a dynamic approach.

21 replies
Robin
@Robbson
I really like the new documentation layout. Everything is easily accessible whatsoever I'm looking for :smiley: :smiley: :thumbsup: :thumbsup: . The Gitter community archive is also a good information source but it can get a little bit difficult to find the right thing. Maybe we can make something like a cookbook from it... even though the FAQ already covers a lot. :wink:
6 replies
Nolan Locke
@nolanlocke_twitter
Is there a way to obtain the current LayoutType from the piral instance inside of a pilet?
3 replies
Mrityunjay Kumar
@mrityunjayk
I am unable to open Cross Frameworks Demo on page https://docs.piral.io/guidelines/examples/demo-cross . It is still pointing to Webshop https://mife-demo.florian-rappl.de/.
3 replies
phantom-SS
@shantanu28sharma

I was trying to integrate Elm referring sample-cross-fx but while building elm I am getting this error
`ERROR in ./src/Tile.elm 1:7
Module parse failed: Unexpected token (1:7)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

module Tile exposing (main)
|
| import Browser
@ ./src/index.tsx 1:0-33 6:48-51
@ multi ./node_modules/piral-cli-webpack/lib/set-path ./src/index.tsx
× [0074] The bundling process failed: Invalid input.`

3 replies
Mrityunjay Kumar
@mrityunjayk

I am trying to publish pilet in Company network but getting below error and same is working from personal Laptop. Please let me know how to find the url that is not working or restricted.

√ Pilet built successfully!
[0000] Using feed service "https://feed.piral.cloud/api/v1/pilet/pillettest1".
× [0065] Failed to upload via HTTP: [object Object].
‼ [0062] Could not upload "my-pilet-1.0.0.tgz" to feed service.
× [0064] Failed to upload some pilet(s)!
Codes Reference: https://docs.piral.io/code/search

5 replies
Damon Salvatore
@damon3465_gitlab
I add the style files I created in the pilet as "import" ./mystyles.scss "in the index.tsx file and I want this pilet to work in more than one piral. it works when I debug pilet, but when I publish my pilet, my style file is not visible in piral
23 replies
Robin
@Robbson
There seems to be a bug in the Piral build process for the develop version (the one with the emulator). The package.json inside the tar Archiv doesnt have all properties. The missing publishConfig leads to the problem that npm publish targets the wrong registry.
16 replies
Robin
@Robbson
Can I use components, which are delivered by pilets via registerExtension, in the layout of the Piral instance?
24 replies
hari9.nalluri
@Hari9Nalluri_twitter
hi @team, we are facing issue with breadcrumbs , implementation is like this, shell is holding breadcrum, pilet has its own routing like chaild routes , when ever we navigating in pilet, shell breadcrumb is not updating. routing is implemented react-router-dom, like a normal react routing, could you please help us. Here is the git hub link.
12 replies
Burak Akça
@burakakca
When using tailwind css "externals": [] I get errors during build
3 replies