Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: possibilitiesInTest/JavaScript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: possibilitiesInTest/JavaScript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: moore-james-fp-working
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 13 files changed
  • 1 contributor

Commits on Jul 31, 2019

  1. update gitignore files

    gourav b committed Jul 31, 2019
    Configuration menu
    Copy the full SHA
    ffa4e11 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2019

  1. calorieCounter initial app setup:

    Model.js
         -setup init data model
         -set default vals for: description, calories, shoForm
          nextId, editId, meals[]
         -export default data model
    
    App.js
         -import { h, diff, patch }, createElement
         -set model to initModel
         -set currentView to val returned from view()
          passing in dispatch and model
         -set rootNode to val returned from createElement
          passing in currentView
         -append rootNode to child
    
        in dispatch()
           -set model to val returned from update
            passing in msg and model
           -set updatedView to val returned from view
            passing in dispatch and model
           -set patched to diff between current and updated view
           -set rootNode to val returned from applying patches to rootNode
           -set currentView to updatedView
    
         -export App
    
    Update.js
         -create an update() passing in msg and model
           return model
          -export update func
    
    View.js
          -import hh and { h }
          -set { pre } to hh(h)
          -create view func passing in dispatch and model
           return json string of (model, null, 2)
          -export view
    
    index.js
         -import Model, Update, View, App
         -set node to document get of 'app' elm
         -invoke app() passing in initModel, update, view, node
    gourav b committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    934d81f View commit details
    Browse the repository at this point in the history
Loading