From 0b996e1301034510b84e0987a77292c1b62b4af7 Mon Sep 17 00:00:00 2001 From: goldbuick Date: Fri, 13 Dec 2024 23:53:59 -0500 Subject: [PATCH 1/4] added chars count to history label --- zss/device/vm.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zss/device/vm.ts b/zss/device/vm.ts index abb51f48..80ba00d8 100644 --- a/zss/device/vm.ts +++ b/zss/device/vm.ts @@ -51,10 +51,11 @@ async function savestate() { const books = memoryreadbooklist() const mainbook = memoryreadbookbysoftware(MEMORY_LABEL.MAIN) if (books.length && ispresent(mainbook)) { + const content = await compressbooks(books) register_flush( vm.name(), - `${new Date().toISOString()} ${mainbook.name}`, - await compressbooks(books), + `${new Date().toISOString()} ${mainbook.name} ${content.length} chars`, + content, ) } } From 50aec0024ed136d00da1707dbb80fdfdebf68b58 Mon Sep 17 00:00:00 2001 From: Automated Version Bump Date: Sat, 14 Dec 2024 04:54:11 +0000 Subject: [PATCH 2/4] ci: version bump to v0.16.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 30e13856..b586d4d1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "zed-software-system", "private": true, - "version": "0.16.4", + "version": "0.16.5", "type": "module", "scripts": { "sloc": "npx sloc zss", From 833539282938ee98d6a7355bd6a1ceb16063e511 Mon Sep 17 00:00:00 2001 From: goldbuick Date: Fri, 13 Dec 2024 23:59:03 -0500 Subject: [PATCH 3/4] too crazy already --- zss/device/register.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zss/device/register.ts b/zss/device/register.ts index e204cc07..cfd5cccd 100644 --- a/zss/device/register.ts +++ b/zss/device/register.ts @@ -1,6 +1,7 @@ import { shortenUrl } from 'shaveurl' import { createdevice } from 'zss/device' import { useGadgetClient } from 'zss/gadget/data/state' +import { pick } from 'zss/mapping/array' import { doasync } from 'zss/mapping/func' import { waitfor } from 'zss/mapping/tick' import { isarray, ispresent, isstring } from 'zss/mapping/types' @@ -109,7 +110,10 @@ const register = createdevice( break case 'share': doasync('register:share', async function () { - const shorturl = await shortenUrl(window.location.href) + const shorturl = await shortenUrl( + window.location.href, + pick('1pt', 'cleanuri', 'isgd', 'shrtcode'), + ) writecopyit('share', shorturl, shorturl) }) break From 893aeb239cf5d7f057ebd6e218f14853578aa9af Mon Sep 17 00:00:00 2001 From: Automated Version Bump Date: Sat, 14 Dec 2024 04:59:24 +0000 Subject: [PATCH 4/4] ci: version bump to v0.16.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b586d4d1..c95f8501 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "zed-software-system", "private": true, - "version": "0.16.5", + "version": "0.16.6", "type": "module", "scripts": { "sloc": "npx sloc zss",