From 39a3e8314215e7fe7bfa50a9e076517771f5ff04 Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Tue, 18 Apr 2023 00:14:30 -0500 Subject: [PATCH 01/14] handle smallcaps --- src/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app.js b/src/app.js index b7e076e..8ffe97e 100644 --- a/src/app.js +++ b/src/app.js @@ -95,8 +95,9 @@ const parseCranks = slogText => { const threshold = 8; const fmtMsg = ({ body, slots }) => { - const [method] = JSON.parse(body); - const args = body.slice(`["${method}"]`.length); + const bodyj = body.replace(/^#/, ''); + const [method] = JSON.parse(bodyj); + const args = bodyj.slice(`["${method}"]`.length); return `.${method}(${args.slice(0, threshold)}${ args.length > threshold ? `...${args.length}` : '' }, ${slots.slice(0, 3).join(',')})`; From 8e3de697eb51aefa271aafd16ba13a61980dd621 Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Tue, 18 Apr 2023 00:14:42 -0500 Subject: [PATCH 02/14] take advantage of dynamic vat names --- src/app.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app.js b/src/app.js index 8ffe97e..558ae49 100644 --- a/src/app.js +++ b/src/app.js @@ -295,6 +295,11 @@ const slogToDot = (cranks, cranksToShow, notes) => { const current = event.crankNum === currentCrankNum; switch (type) { + case 'create-vat': + const { vatID, name } = event; + vats.push({ vatID, name }); + summary = { type: 'create-vat', vatID, name }; + break; case 'clist': { switch (event.mode) { case 'import': @@ -322,8 +327,8 @@ const slogToDot = (cranks, cranksToShow, notes) => { switch (event.kd[0]) { case 'startVat': { const { vatID } = event; - const name = notes.vats[vatID]; - vats.push({ vatID, name }); + // const name = notes.vats[vatID]; + // vats.push({ vatID, name }); summary = { tag: 'startVat', vatID }; break; } From b8dbc9c015022614d3642f5e089b1ad9f963615f Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Tue, 18 Apr 2023 00:14:55 -0500 Subject: [PATCH 03/14] never mind vat name annotations --- www/index.html | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/www/index.html b/www/index.html index acfed65..98d1b71 100644 --- a/www/index.html +++ b/www/index.html @@ -29,28 +29,6 @@

Annotations