MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. mhr320
    3. Topics
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 10
    • Groups 0

    Topics

    • M

      Module to Display JSON data from a FILE

      Watching Ignoring Scheduled Pinned Locked Moved Solved Requests
      21
      0 Votes
      21 Posts
      3k Views
      S
      @timdows you should add a git pre-commit hook to run prettier for whoever… here is mine .pre-commit #!/bin/sh FILES=$(git diff --cached --name-only --diff-filter=ACMR "*.js" "*.jsx *.json" | sed 's| |\\ |g') [ -z "$FILES" ] && exit 0 # Prettify all selected files echo "$FILES" | xargs ./node_modules/.bin/prettier --write # Add back the modified/prettified files to staging echo "$FILES" | xargs git add exit 0 and an npm postinstall script to copy to the git folder #!/bin/bash #echo copying git pre-commit hook cp .pre-commit .git/hooks package.json "scripts": { "postinstall":"whatever you call it"
    • M

      MMM-JsonTable Layout Format

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Utilities
      1
      0 Votes
      1 Posts
      330 Views
      M
      I am using this module to display the daily lunch menu for my kids’ schools. Currently I am collecting 2 schools, next year it will be three. The layout of the json data works now, but I’d rather see it in columnar format with ‘\n’ applied, they are in the json itself. Any thoughts on how this might be accomplished? I understand there is a configuration settings for keepColumns, but do not quite understand how this implements. Any help is greatly appreciated.
    • 1 / 1