#dev 2023-11-10
2023-11-10 UTC
# GWG At least something helpful came out of the conversation. https://github.com/indieweb/indieauth/pull/129
geoffo, jan6, tbbrown, Kaja, gxt, t0nic, dustinm`, gRegorLove_ and [tantek] joined the channel
# jeremycherfas Trying to understand the display of a map.
# jeremycherfas Code contains `<div id="map_6fe9a186-a0ed-4660-b8c3-e7e0b52d723c" style="height: 250px"></div>`
# jeremycherfas But first line of script is `var map6fe9a186-a0ed-4660-b8c3-e7e0b52d723c = L.map('map_6fe9a186-a0ed-4660-b8c3-e7e0b52d723c', {
# jeremycherfas In other words, there is an underscore missing from the references to the map div's id, and that is true for all subsequent references to the map.
tbbrown joined the channel
# jeremycherfas Such as `addTo(map6fe9a186-a0ed-4660-b8c3-e7e0b52d723c)`
# jeremycherfas Could that mismatch be the reason for a map not displaying? Or have I misunderstood the connection between the ID of the map's div and the id in the script? (Quite possible)
tbbrown joined the channel
# jeremycherfas So they do not need to match?
# jeremycherfas Oh well, there goes my simplest explanation.
# jeremycherfas All the examples I have seen in tutorials, they do match.
# jeremycherfas Yes, that first parameter does match. OK. Thanks. I will keep digging.
# Loqi SVG is Scalable Vector Graphics, a standard way to display vector images that integrates well into HTML and is implemented in all modern browsers https://indieweb.org/SVG
[snarfed] joined the channel
# [tantek] then I don't understand this expression on the /Datenstrom page: "a flat-file CMS (static site generator)"
# Loqi It looks like we don't have a page for "flat-file CMS" yet. Would you like to create it? (Or just say "flat-file CMS is ____", a sentence describing the term)
# Loqi Static site generators or SSGs are programs that take a set of flat text files on disk and transforms them into a set of static HTML files ready to be served by a standard web server, or some variation of this example https://indieweb.org/static_site_generator
# jeremycherfas Grav is also flat-file CMS, builds pages dynamically from files, with quite aggressive caching.
# jeremycherfas But cannot just create static HTML.
# [KevinMarks] Anything can create static html with a bit of wrapping, but yes.
# [tantek] lol even in https://indieweb.org/events/2023-05-24-hwc-pacific "What's the difference between flat-file CMS and static site generator? "
# [tantek] so there's definitely confusion between the two because check out the list here which kinda conflates them: https://indieweb.org/file-storage#Flat_file_%22CMS%22_systems_in_the_wild
tbbrown joined the channel
[catgirlinspace] joined the channel
# jeremycherfas found at least one preliminary problem with maps in Known https://github.com/idno/known/issues/3161
# [KevinMarks] CAS - Content Anarchy System
# superkuh File and folders are the best CMS.
# superkuh Even 'flat files' are over-complication.
# jeremycherfas I've tracked it down as far as I can and have to hope that someone else can find a proper fix.
benji joined the channel
# jeremycherfas I don't use many other post types, really, so cannot say. But wouldn't it be easier to find the change and, if it only affects post ids etc change that back?
# jeremycherfas I know roughly when it changed, at least for my site. Between 2022-05-30 and 2022-06-15.
# jeremycherfas But I was not using git at that time.
# jeremycherfas And I'm not sure how to do a diff, although I do have an install of Known from 2022-01 locally
# jeremycherfas I couldn't seem to find exactly how the var CheckinMap is calculated
tbbrown joined the channel
# jeremycherfas Yes, going into the db and making the changes there would be too difficult, becuse of those blobs that I do not understand.
# jeremycherfas Which means I need to trace back to where $object gets its id.
# jeremycherfas Hard coded? I mean, replace `<?php echo $object->_id?>` with `` or something else unique?
# jeremycherfas Got to go out now; will pick this up again in a couple of days.
# jeremycherfas sknebel++
neceve, tbbrown and pharalia joined the channel
# [tantek] [KevinMarks] and other folks interested in cutting edge HTML-that-replaces-some-JS-use-cases, see the "Invoke" feature in progress: https://github.com/whatwg/html/pull/9841
# [KevinMarks] The html feature that blew my mind recently was <output>
# sknebel (https://open-ui.org/components/invokers.explainer/ for examples around the invoke feature, from the proposal link)
# [tantek] In particular I really like the list of default verbs here that give me memories of wanting to do all this declaratively like 10+ y ago: https://open-ui.org/components/invokers.explainer/#defaults (all the audio/video buttons, and fullscreen too!)
CRISPR, tbbrown and [schmarty] joined the channel
# Zegnat !tell jeremycherfas What I would propose as a fix is to wrap the contents of that <script> in a function. Then change all the variable names to not include the object ID at all. They only do that so they will not conflict incase multiple checkins have to be rendered on the same page. Happy to explain if you are interested!
# Zegnat !tell jeremycherfas actually, that whole thing was like a minute worth of work, so I just used the on-GitHub code-editor to file a PR. Let me know if it fixes it. Happy to explain the code change more if you want for learning! https://github.com/idno/known/pull/3162
BinarySavior and tbbrown joined the channel