From 5203db794dcff7a9b47c2447d1c0118b4267c88e Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 13 Oct 2019 04:51:29 +0300 Subject: [PATCH] some tweaking, notes and docs... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/filesystem.js | 1 + ui (gen4)/features/virtual-blocks.js | 23 +++++++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/ui (gen4)/features/filesystem.js b/ui (gen4)/features/filesystem.js index fdce4a96..bc36ed04 100755 --- a/ui (gen4)/features/filesystem.js +++ b/ui (gen4)/features/filesystem.js @@ -2258,6 +2258,7 @@ var FileSystemWriterActions = actions.Actions({ logger && logger.emit('queued', to) var res = include_virtual + && !img.do_not_export && !fse.existsSync(to) && outputFile(to, img.text || '') diff --git a/ui (gen4)/features/virtual-blocks.js b/ui (gen4)/features/virtual-blocks.js index b6e87cba..f6c4130a 100644 --- a/ui (gen4)/features/virtual-blocks.js +++ b/ui (gen4)/features/virtual-blocks.js @@ -19,12 +19,27 @@ var browse = require('lib/widget/browse') /*********************************************************************/ - +// +// Virtual Block Format (Image): +// { +// // block type... +// type: 'virtual', +// +// // Block text (optional)... +// text: , +// +// // if true this block will not be exported... +// do_not_export: , +// +// // optional image attributes... +// // for more info see: imagegrid/images.js +// ... +// } +// // XXX should these be sortable and how??? // ...relative placement (i.e. "before ")??? -// XXX should these be importable from fs??? -// i.e. exported as json to .virt and imported back... -// ...might be a good idea to add custom import/export handlers... +// XXX should the export mechanism be extensible??? +// ...i.e. some way to identify the block and get it's ext and file content... // var VirtualBlocksActions = actions.Actions({ // construction of new "virtual images"...