https://www.dendron.so/ logo
Join Discord
Powered by
# dev
  • k

    kevins8

    11/17/2020, 4:50 PM
    you can see how we represent notes using
    Publish Pod -> JSON
    Copy code
    {
      "id": "39e9e1cf-042e-4751-8d65-ffaa9584d5b9",
      "title": "Mediawiki",
      "vault": {
        "fsPath": "/Users/kevinlin/Dropbox/Apps/Noah/notes"
      },
      "type": "note",
      "desc": "",
      "links": [
        {
          "type": "wiki",
          "from": {
            "fname": "pr.mediawiki",
            "id": "39e9e1cf-042e-4751-8d65-ffaa9584d5b9"
          },
          "original": "pr.mediawiki.scratch.2020.11.16.architecture",
          "value": "pr.mediawiki.scratch.2020.11.16.architecture",
          "alias": "architecture",
          "pos": {
            "start": 4,
            "end": 65
          },
          "to": {
            "fname": "pr.mediawiki.scratch.2020.11.16.architecture"
          }
        }
      ],
      "fname": "pr.mediawiki",
      "updated": 1605631430408,
      "created": 1605587387673,
      "parent": "f46d3d6c-9704-4ddc-ad7d-69612d214905",
      "children": [
        "6a6e84bf-5bdc-4ed3-a98c-f7e3ab690b03"
      ],
      "body": "\n\n- [[architecture|pr.mediawiki.scratch.2020.11.16.architecture]]",
      "data": {},
      "custom": {}
    }
  • k

    kevins8

    11/17/2020, 4:50 PM
    backlinks panel is currently being handled by
    dendron-markdown-notes
    extension which is why you can't find it in the dendron code base. we're planning on merging the functionality into dendron at which point we'll also add a
    backlinks
    property to the Note Object
  • k

    kevins8

    11/17/2020, 4:50 PM
    to add backlinks as a property, the best place to do it is after we've gone through all the notes for links. https://github.com/dendronhq/dendron/blob/master/packages/engine-server/src/drivers/file/storev2.ts#L469:L469 use logic that is similar to this: https://github.com/dendronhq/dendron/blob/master/packages/common-all/src/nodev2.ts#L538:L538 to find backlinks
  • k

    kevins8

    11/17/2020, 4:50 PM
    this is actually something I was planning on doing later this week but let me know if you're interested in taking a stab at this instead šŸ˜…
  • k

    kevins8

    11/17/2020, 4:52 PM
    @User @User I actually thought of the link janitor when I saw your feature request šŸ™‚ i think it would be a sensible integration to make. can you add it to the ticket? i don't think i have time to do it this week but will try to get it before end of the month (unless someone else beats me to it -- i can point out what files need to be changed)
  • m

    mhmd

    11/17/2020, 5:02 PM
    sure, I will add this link to the ticket
  • t

    tsnieman

    11/18/2020, 7:10 AM
    🚧 wip/first stab at the chakra'd version of the form-idable page.
  • b

    Buxel

    11/18/2020, 2:46 PM
    i don't mean to be pushy but i was looking for markdown pod export on the roadmap and couldn't find it. The pod docs just show that it is currently not implemented (https://www.dendron.so/notes/13c4a608-0a32-4c62-9c7e-2b7f9f2d18bf.html). I hope it hasn't been forgotten
  • k

    kevins8

    11/18/2020, 3:29 PM
    @User sexy šŸ™‚ one thing that i haven't mentioned - can we make the vaults read-only? they are automatically added when users use
    Vaul Add/Remove
    . power users can still just edit the yml if they know what they're doing but otherwise, its an easy way for people to be burned šŸ˜…
  • k

    kevins8

    11/18/2020, 3:30 PM
    @User your all good šŸ™‚ yes, its on the roadmap! https://github.com/dendronhq/dendron/issues/309 planning on doing it before the month is over though there's the chance it might leak into december
  • t

    tsnieman

    11/18/2020, 3:38 PM
    @kevins8 Definitely! I figured some fields would need to be disabled. I'll throw some tooltips/popovers on them to provide context to the user too.
  • b

    Buxel

    11/18/2020, 4:14 PM
    Looking forward to it šŸ‘
  • t

    tsnieman

    11/21/2020, 9:17 PM
    Diving back into form-idable config page āœŒļø
  • t

    tsnieman

    11/21/2020, 11:06 PM
    does nextjs preserve text values of inputs between reloads? weird behavior i'm getting rn, and i've only experienced it in this project (the only nextjs project i've worked on).
  • k

    kevins8

    11/22/2020, 12:36 AM
    i'm not sure. doubtful since it does a fresh compilation every time the page changes
  • k

    kevins8

    11/22/2020, 12:36 AM
    a good way of testing with text values is to pass them in to the component on creation while developing
  • t

    tsnieman

    11/22/2020, 12:52 AM
    all good. i'm guessing i just did something wonky and didn't realise, as i haven't reproduced in a while.
  • t

    tsnieman

    11/22/2020, 2:15 AM
    @User what's the Dendron Tree component for? https://github.com/dendronhq/dendron/blob/master/packages/dendron-next-server/components/dendronTree.tsx Or: can I delete this so I can remove
    antd
    as dependency as I'm ā™»ļø'ing things for Chakra. EDIT: nevermind, it is easy to convert. But still curious what this is planned for šŸ™‚
  • t

    tsnieman

    11/22/2020, 2:20 AM
    Hm, interestingly https://github.com/dendronhq/dendron/blob/master/packages/dendron-next-server/pages/schemas/edit.tsx has similar code.
  • k

    kevins8

    11/22/2020, 2:25 AM
    @User dendronTree was for the schema builder. its just a stub. feel free to delete or comment it tout
  • t

    tsnieman

    11/22/2020, 2:40 AM
    -
    antd
    purged (using
    chakra-ui
    now) - basic config form layout created & wired up to
    formik
  • t

    tsnieman

    11/22/2020, 2:49 AM
    Here's my PR with just the UI stuff described above: 🌱 https://github.com/dendronhq/dendron/pull/351 (doesn't have #327's requirement of a command to open the webview, nor does it display the user's actual config yet)
  • t

    tsnieman

    11/22/2020, 2:51 AM
    After this is merged, I'mma do a small PR for a dark mode toggle 🌚
  • t

    tsnieman

    11/22/2020, 3:10 AM
    I'm outta time tonight, but also a suggestion to add to the main
    dendron.so
    site: a
    Dendron Branding
    page that has the logo, brand color/s, etc.
  • k

    kevins8

    11/22/2020, 3:15 AM
    @User awesome, will take a look at this tonight šŸ™‚ might not be able to merge this with the weekly release but will aim to get it into the early seed build for next week šŸ™‚
  • t

    tsnieman

    11/22/2020, 3:16 AM
    No problem, I've got a few things I noticed I missed (like
    required
    on some fields) that I've made review-comments about on the PR. Looking forward to your feedback!
  • k

    kevins8

    11/22/2020, 3:18 AM
    branding page is a fantastic idea. would also love to have your input on it. currently my only thought is that we have the dendron green from the logo as part of the palette šŸ˜…
  • t

    tsnieman

    11/22/2020, 3:19 AM
    That's the color I used when I dropped the Chakra stuff in šŸ™‚ https://github.com/dendronhq/dendron/pull/351/files#diff-60385a5be0fb0bb7137b50432398af94d6e759bea5400936b84c890a87dfe79e
  • t

    tsnieman

    11/22/2020, 3:20 AM
    I'll definitely be working on some theme/color related stuff in general as we build out the frontend, so I can cross-document to
    dendron.so
    page as it solidifies.
  • f

    fudo

    11/22/2020, 12:46 PM
    so I'm trying to show my schema Graph and it results in an Error: "Command 'Dendron: Show Schema Graph' resulted in an error (Cannot read property 'forEach' of undefined)" And I can't find anything inside the logs that would correspond with that error
1...272829...108Latest