https://htmx.org logo
Join Discord
Powered by
# htmx-general
  • m

    mysterious-toddler-20573

    08/09/2022, 1:32 PM
    which part do you think you can't do?
  • s

    some-hairdresser-28401

    08/09/2022, 1:35 PM
    Picking up the location header content
  • m

    mysterious-toddler-20573

    08/09/2022, 1:37 PM
    I think you could use the
    HX-Push
    header to update the URL to the new one and then let the event trigger normally, not sure I'm a big fan of the implicit timing dependency (the URL gets updated before the
    hx-get
    triggers) but I believe it should work
  • s

    some-hairdresser-28401

    08/09/2022, 1:45 PM
    I would prefer if I could stick with a 201/Location header workflow as suggested by the HTTP spec. Which makes me think would browsers do here with plain HTML 🤔
  • m

    mysterious-toddler-20573

    08/09/2022, 1:51 PM
    mmm
  • s

    some-hairdresser-28401

    08/09/2022, 1:57 PM
    Just tried it: 201 + Location header doesn't trigger a redirect to the
    Location
    header value in Firefox (with plain HTML without HTMX/JS etc).
  • s

    some-hairdresser-28401

    08/09/2022, 1:58 PM
    Which otoh is great as it avoids the issues the default 301 /303 browser behavior creates when using HTMX 🙂
  • b

    bland-coat-6833

    08/10/2022, 11:32 AM
    I've not been keeping track about where we got to with looking for a forum but it seems that Discord now has/has always had Forum Channels: https://support.discord.com/hc/en-us/articles/6208479917079-Forum-Channels-FAQ Might be worth an investigation. Tagging @mysterious-toddler-20573 and @gorgeous-ghost-95789 as they were last looking at it.
  • g

    gorgeous-airport-54386

    08/10/2022, 12:12 PM
    we had a forum and nobody used it, IM is just less stressful for most people asking questions and gets answers more quickly
  • g

    gorgeous-airport-54386

    08/10/2022, 1:01 PM
    FYI I'm exporting messages from here right now
  • t

    tall-dinner-62086

    08/10/2022, 1:03 PM
    wtf don't take my messages
  • g

    gorgeous-airport-54386

    08/10/2022, 1:07 PM
    why not (sincere question)? i assumed that since the server is public, it would be nice to have an archive for when discord inevitably shuts down
  • t

    tall-dinner-62086

    08/10/2022, 1:08 PM
    Because I'm embarrassed of all the dumb questions I ask
  • t

    tall-dinner-62086

    08/10/2022, 1:08 PM
    (I'm just joking, the concept of someone "stealing" public messages is amusing to me)
  • g

    gorgeous-airport-54386

    08/10/2022, 1:09 PM
    if we make the chat google-able, others won't need to ask those questions again 🙂
  • g

    gorgeous-airport-54386

    08/10/2022, 1:09 PM
    if we made it public we'd probably update it once a week or so
  • g

    gorgeous-airport-54386

    08/10/2022, 1:09 PM
    and deleted messages would go away (if they ever showed up in the first place)
  • b

    bland-coat-6833

    08/10/2022, 1:25 PM
    Fair enough - just saw another server switch their support channel to be a forum one and it made me think of here.
  • g

    gorgeous-airport-54386

    08/10/2022, 1:25 PM
    forum channels aren't search-engine-indexable, are they?
  • t

    tall-dinner-62086

    08/10/2022, 1:36 PM
    Should be easy enough to test with a new channel
  • b

    bland-coat-6833

    08/10/2022, 2:03 PM
    Yeah - I get the feeling that they aren't publicly searchable but could be better for people on the server
  • p

    polite-judge-3724

    08/10/2022, 3:16 PM
    Has anybody used htmx with some component system like vuejs or svelte or so? is that even possible or desireable?
  • g

    gorgeous-airport-54386

    08/10/2022, 3:24 PM
    Copy code
    shell
    $ du -hs htmx-discord/
    1017M    htmx-discord/
  • g

    gorgeous-airport-54386

    08/10/2022, 3:24 PM
    whole server including media
  • g

    gorgeous-airport-54386

    08/10/2022, 3:48 PM
    Copy code
    shell
    $ cat htmx-discord/htmx\ -\ General\ -\ htmx-general\ \[725789747212976259\].json \
      | jq '.messages[] | select(.content | contains("1cg")) | .author.name' -r | sort | uniq -c | sort -nrk1 | head
         49 benpate
         39 Fubarrr
         39 BenCroker
         34 alejandros
         28 cce
         26 1cg
         12 gnat
         10 Deniz AkÅŸimÅŸek
          8 3Dayo
          7 lllama
  • g

    gorgeous-airport-54386

    08/10/2022, 3:48 PM
    this is fun
  • b

    bland-coat-6833

    08/10/2022, 4:13 PM
    Oo. Top ten!
  • b

    bland-coat-6833

    08/10/2022, 4:15 PM
    How long did that jq filter take you? They need to update that xkcd about tar with jq instead.
  • g

    gorgeous-airport-54386

    08/10/2022, 4:38 PM
    Once you grok the stream model it's mostly a matter of memorizing filter names
  • g

    gorgeous-airport-54386

    08/10/2022, 4:39 PM
    Took me forever to remember
    select
    though, since C# uses it to mean "map"
1...773774775...1146Latest