Pricing Blog

Help forum

  • _.__._.__.__._-1410234480295153694

    Ethan

    1
    1

    2 months ago

    Unflatten Array
    Hi all, I'm trying to unflatten a 1D array into a 2D array in a formula. Inputs would be a 1D array and a chunk size. An example of what I need to do is below:

    [ 1, 2, 3, 4, 5, 6, 7, 8 ] => [ [1, 2, 3], [4, 5, 6], [7, 8] ]
  • luca.heck-1409872853704245258

    Luca Heck

    2

    2 months ago

    Central design system for multiple Nordcraft sites – best practices sought
    I'm currently working on a project where I'm stuck:
    We usually build two Nordcraft sites – a main site and a CMS on a subdomain, which we use to manage the content of the main site. However, this means that we have to maintain two design systems in parallel.

    Is there a best practice for setting up a central design system that both sites can access? My first idea was to create a separate package, but that would basically be available to everyone in the store. Have you ever had a situation like this and can you give me some tips?
    Thx!
  • platonico-1409694046045208656

    nico

    5

    2 months ago

    i need help recovering names
    hello, I have a problem. I want to retrieve names using IDs, but I can't seem to do it.

    I have an array of objects of the type [ {id, name}, {id, name} ] and I'm using a select component from the shoelace library, which returns an array of IDs [ “id, “id].

    What I want to achieve is that after selecting the items, I can retrieve the names to display them correctly in the component value. I understand that it may not be very complicated, but I just can't figure it out 😿
  • _.__._.__.__._-1409539121474437231

    Ethan

    1
    2

    2 months ago

    Setting Font for <select> has no Effect
    Hi all, I have created a generic <select> component for my app, But when I set the font for any of its components, there is no effect, it just defaults to (I think) Times New Roman.

    This occurs both when previewing and in the font preview panel of the editor.
  • elli4931-1409084671840489514

    Vizualinx

    1

    2 months ago

    Custom domain
    I already added my custom domain records, but it's still pending after 12 hours!

    Any idea what's going on?
  • ssssadsadasd-1408749312850133112

    ssssadsadasd

    8

    2 months ago

    get user ip address
    I want to use [this api](https://ip-api.com/docs/api:json), to get user's ip address (I need the country). for that I need to disable "proxy request" in NC otherwise it gets the cloudflare country. however, if I disable it shows an error.

    how to solve this? thanks
  • uunicode-1408705622379200583

    unicodes

    6

    2 months ago

    How to set multiple values at the same time?
    I the screen I set only availability, but in case of multiple keys how to avoid having N set?
  • uunicode-1408127513699553280

    unicodes

    5

    2 months ago

    Why a div child forces the parent to grow and ignore flex 1?
    I have a parent div called main, which contains two children: c1 and c2.

    -c1 has a fixed width of 200px.
    -c2 is set to flex: 1 and also has width: 100%.

    Inside c2, there is another child element. When this child becomes visible, it forces c2 to grow, ignoring the flex: 1 behavior.

    If I add overflow: hidden to c2, everything works as expected. Without it, c2 doesn’t respect the flex: 1.

    Do you know why this happens?
  • _.__._.__.__._-1408068961307852880

    Ethan

    1
    2

    2 months ago

    Create a Modal for a Form
    Hi all, I'm trying to create a modal component that can contain my forms etc, so that on a click of a button, the form is revealed. I want the modal to be centered and I would like to create some sort of effect, so that the background content is blurred/darkened when the modal is open.

    I initially tried with a <dialog> component, but got stuck as I could not get it to "float" above the rest of the page. I did try the advice in https://discord.com/channels/972416966683926538/1209567011554721853/1209567011554721853 but still had no luck.
  • elli4931-1407974226362761357

    Vizualinx

    3

    2 months ago

    Same login across multiple domains/projects
    If I have for example my main app on app.mydomain.com, and my admin page on admin.mydomain.com and for example my landing page on mydomain.com, everything as a separate project in nordcraft.

    How can I have with supabase one time login that would keep me logged in through all domains/projects? Maybe have the main login on auth.mydomain.com
  • jehex-1407274991656894544

    Jehex

    0

    2 months ago

    Update the value of a specific attribute from an object stored in the cache
    Hi there, Im currently store an object into the local storage for each of my " influencers " who contain some of their infos and allow me to load way faster some pages.

    The name use for store theses datas are currently "conversation_{name} " ( concatenation ) so I basically have objects stored into my local cache under this form "conversation_emilie" "conversation_kelly" "conversationjulia" etc...

    Would like to know how can I update a specific attribute of this object for all existing influencers ( so object conversation
    {name} stored in the cache )

    lets said I want to attribute "numberfollowers" for each existing objects conversation{name} , thanks a lot
  • matt_apollodev-1407073944359669810

    Matthieu B.

    4

    2 months ago

    Watch new message in gmail
  • immaculate_tiger_15139-1407036797946560703

    Kai

    5

    2 months ago

    Global css rules
    Hi!
    Can I create a CSS file and include it so that it globally defines, for example, all h tags in my pages?
  • ssssadsadasd-1407028789191643197

    ssssadsadasd

    19

    2 months ago

    Image/video dimensions (width/height/aspect ration)
    I need to save the image/video dimensions (width/height/aspect ration) in the database.
    so I use the input element in NC, upload the image/video, and before saving to database I need to fetch the image/video dimensions.
    has anyone implemented this before? I tried with AI but was not successful.

    thanks
  • ssssadsadasd-1407001192856551535

    ssssadsadasd

    17

    2 months ago

    Keep scrolling position while other things are added on top of it.
    Suppose I have three divs: parent tweets, tweet, children tweets. I come to the page and all tweets are fetched and I scroll to tweet immediately. However, parent tweets have some videos that take some time to load and when they are loaded the height of the parent tweets changes pushing down the postion where I initially scrolled (tweet).

    what I want to achieve is sth [like this](https://vimeo.com/1110966785?share=copy#t=0), where somehow the parent tweets do not push the other divs down but are added on top of them without changing the scrolling positions.

    I created a [sample page](https://editor.nordcraft.com/projects/seno12/branches/start/components/test-scrolling?canvas-width=800&canvas-height=1202.3&selection=onLoad.actions.2.events.tick&rightpanel=style) to illustrate it.

    I would not prefer to solve this using placeholders with a determinate height or getting the height of the video beforehand somehow as this seems too complicated and needs some database additions. and the example in the video seems to not use this anyway

    anyone has any idea how to solve this in nordcraft?

    thanks
<
1
126
>