Diffmatic

Browse the Journals of pages in the Lineup with a simple diff displayed between any two edits.

Between any two versions viewed in sequence we bound the difference from first to last change. This region is colored green when moving forward and red when backwards.

For this experiment we make two choices to begin: Choose a page from the lineup. Choose an item on that page. From there we see a list of Actions for that item and the box that displays the diff as sequences of applicable actions are selected. github

pages/diffmatic

http://next.ward.dojo.fed.wiki/assets/pages/diffmatic/select-to-diff.html HEIGHT 2000

Our experimental script can't see the lineup so we scrape it with a Mech and download to upload lineup.json.

CLICK LINEUP CODE pages DOWNLOAD lineup.json

Here we fetch the LINEUP as items, enrich this with page json, then write this as json to download to upload.

export async function pages() { let site = this.context.site let items = this.items let json = await Promise.all( items.map(ref => fetch(`//${ref.site||site}/${ref.slug}.json`) .then(res => res.json()) .then(page => Object.assign({page},ref)) ) ) this.json = json return `${Object.keys(json).length} pages` }